update to 14.2.9_2014.11.23 [release 14.2.9_2014.11.23-1mamba;Sun Dec 28 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 00:19:33 +01:00
parent b6146e4e2a
commit 70213127f2

116
jmol.spec
View File

@ -1,18 +1,17 @@
%define majver %(echo %version | cut -d_ -f1)
Name: jmol Name: jmol
Version: 11.4.4 Version: 14.2.9_2014.11.23
Release: 2mamba Release: 1mamba
Summary: Jmol is a Java based application and an applet for displaying 3D chemical information. Summary: Jmol is a Java based application and an applet for displaying 3D chemical information.
Group: Graphical Desktop/Applications/Educational Group: Graphical Desktop/Applications/Educational
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://jmol.sourceforge.net/download/ URL: http://jmol.sourceforge.net/download/
Source: http://downloads.sourceforge.net/sourceforge/jmol/%{name}-%{version}-full.tar.gz Source: http://downloads.sourceforge.net/project/jmol/Jmol/Version%2014.2/Version%20%{majver}/Jmol-%{version}-full.tar.gz
Source1: jmol.png Source1: jmol.png
License: LGPL License: LGPL
Requires: sun-java-runtime
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: sun-java-runtime
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -23,62 +22,28 @@ Jmol is a Java based application and an applet for displaying 3D chemical inform
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%build %build
JAVA_HOME=/opt/java/jdk ANT_HOME=/usr/java/ant
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir} install -d -m0755 %{buildroot}%{_datadir}/jmol
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/jars/ cp -a * %{buildroot}%{_datadir}/jmol/
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/doc/
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/appletweb/
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/manifest/
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/plugin-jars/
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 755 plugin-jars/dadmlbrowser.jar %{buildroot}%{_datadir}/%{name}-%{version}/plugin-jars/dadmlbrowser.jar rm -rf %{buildroot}%{_datadir}/jmol/{jmol.zip,src,manifest}
install -m 755 plugin-jars/dirbrowser.jar %{buildroot}%{_datadir}/%{name}-%{version}/plugin-jars/dirbrowser.jar install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/jmol.png
install -D -m0755 jmol %{buildroot}%{_bindir}/jmol
for unsigned in JmolApplet.jar JmolApplet0_Core.jar JmolApplet0_i18n.jar JmolApplet0.jar JmolApplet0_Jars.jar JmolApplet0_Jvxl.jar JmolApplet0_Main.jar JmolApplet0_Popup.jar JmolApplet0_Quantum.jar JmolApplet0_ReadersCifPdb.jar JmolApplet0_ReadersMolXyz.jar JmolApplet0_ReadersMore.jar JmolApplet0_ReadersXml.jar JmolApplet0_ShapeBio.jar JmolApplet0_ShapeSpecial.jar JmolApplet0_Smiles.jar JmolApplet0_Viewer.jar ; do
install -m 755 $unsigned %{buildroot}%{_datadir}/%{name}-%{version}/$unsigned
done
for signed in JmolAppletSigned0_Core.jar JmolAppletSigned0_i18n.jar JmolAppletSigned0.jar JmolAppletSigned0_Jars.jar JmolAppletSigned0_Jvxl.jar JmolAppletSigned0_Main.jar JmolAppletSigned0_Popup.jar JmolAppletSigned0_Quantum.jar JmolAppletSigned0_ReadersCifPdb.jar JmolAppletSigned0_ReadersMolXyz.jar JmolAppletSigned0_ReadersMore.jar JmolAppletSigned0_ReadersXml.jar JmolAppletSigned0_ShapeBio.jar JmolAppletSigned0_ShapeSpecial.jar JmolAppletSigned0_Smiles.jar JmolAppletSigned0_Viewer.jar JmolAppletSigned.jar ; do
install -m 755 $signed %{buildroot}%{_datadir}/%{name}-%{version}/$signed
done
cd jars
for j in Acme.jar ant-contrib.jar commons-cli-1.0.jar gnujaxp.jar gnujaxp-onlysax.jar itext-1.4.5.jar junit.jar netscape.jar saxon.jar vecmath1.2-1.14.jar vecmath1.2-1.14.tar.gz ; do
install -m 755 $j %{buildroot}%{_datadir}/%{name}-%{version}/jars/$j
done
install -m 644 vecmath1.2-1.14.tar.gz %{buildroot}%{_datadir}/%{name}-%{version}/jars/vecmath1.2-1.14.tar.gz
cd ..
install -m 755 jmol %{buildroot}%{_datadir}/%{name}-%{version}/jmol
install -m 755 jmol.sh %{buildroot}%{_datadir}/%{name}-%{version}/jmol.sh
install -m 755 Jmol.js %{buildroot}%{_datadir}/%{name}-%{version}/Jmol.js
install -m 755 Jmol.jar %{buildroot}%{_bindir}/Jmol.jar
cp -a jars/* %{buildroot}%{_datadir}/%{name}-%{version}/jars/
cp -a appletweb/* %{buildroot}%{_datadir}/%{name}-%{version}/appletweb/
cp -a doc/* %{buildroot}%{_datadir}/%{name}-%{version}/doc/
cp -a manifest/* %{buildroot}%{_datadir}/%{name}-%{version}/manifest/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/jmol.png
# Create the system menu entry # Create the system menu entry
install -d -m0755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry] [Desktop Entry]
Name=%{name} Name=%{name}
GenericName=it is an applet for displaying 3D chemical information. GenericName=An applet for displaying 3D chemical information.
GenericName[it]=applet per mostrare formule chimiche in 3d GenericName[it]=Applet per mostrare formule chimiche in 3d
Comment=jmol is a Java based application and an applet for displaying 3D chemical information. Comment=jmol is a Java based application and an applet for displaying 3D chemical information.
Comment[de]=3D-Betrachter für Molekül- und Kristall-Strukturen Comment[de]=3D-Betrachter für Molekül- und Kristall-Strukturen
Exec=java -jar /usr/bin/Jmol.jar Exec=%{_bindir}/jmol
Icon=/usr/share/pixmaps/jmol.png Icon=%{_datadir}/pixmaps/jmol.png
Terminal=0 Terminal=0
Type=Application Type=Application
X-KDE-StartupNotify=false X-KDE-StartupNotify=false
@ -90,56 +55,17 @@ EOF
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/Jmol.jar %{_bindir}/jmol
%{_datadir}/applications/jmol.desktop %{_datadir}/applications/jmol.desktop
%{_datadir}/pixmaps/jmol.png %{_datadir}/pixmaps/jmol.png
%dir %{_datadir}/jmol-11.4.4 %dir %{_datadir}/jmol
%{_datadir}/jmol-11.4.4/Jmol.js %{_datadir}/jmol/*
%{_datadir}/jmol-11.4.4/*.jar %doc LICENSE.txt COPYRIGHT.txt
%{_datadir}/jmol-11.4.4/jmol
%{_datadir}/jmol-11.4.4/jmol.sh
%dir %{_datadir}/jmol-11.4.4/appletweb
%{_datadir}/jmol-11.4.4/appletweb/*.js
%{_datadir}/jmol-11.4.4/appletweb/JmolApplet.properties
%{_datadir}/jmol-11.4.4/appletweb/JmolAppletProxy.cgi
%{_datadir}/jmol-11.4.4/appletweb/SystemGetProperty.java
%{_datadir}/jmol-11.4.4/appletweb/chime2jmol.pl
%{_datadir}/jmol-11.4.4/appletweb/testSystemGetProperty.html
%dir %{_datadir}/jmol-11.4.4/jars
%{_datadir}/jmol-11.4.4/jars/*.jar
%{_datadir}/jmol-11.4.4/jars/vecmath1.2-1.14.tar.gz
%dir %{_datadir}/jmol-11.4.4/plugin-jars
%{_datadir}/jmol-11.4.4/plugin-jars/*.jar
%dir %{_datadir}/jmol-11.4.4/doc
%{_datadir}/jmol-11.4.4/doc/splash.ai
%{_datadir}/jmol-11.4.4/doc/docbook-xml-4.4.zip
%{_datadir}/jmol-11.4.4/doc/*.tar.gz
%{_datadir}/jmol-11.4.4/doc/*.license
%{_datadir}/jmol-11.4.4/doc/*.html
%dir %{_datadir}/jmol-11.4.4/doc/source
%{_datadir}/jmol-11.4.4/doc/source/xml2po.bat
%{_datadir}/jmol-11.4.4/doc/source/xml2po.py
%{_datadir}/jmol-11.4.4/doc/source/xml2po.sh
%{_datadir}/jmol-11.4.4/doc/source/*.xml
%{_datadir}/jmol-11.4.4/doc/source/JmolHistoryToHtml.xsl
%dir %{_datadir}/jmol-11.4.4/doc/JmolUserGuide
%{_datadir}/jmol-11.4.4/doc/JmolUserGuide/*.html
%dir %{_datadir}/jmol-11.4.4/doc/source/applet
%{_datadir}/jmol-11.4.4/doc/source/applet/*.docbook.xml
%dir %{_datadir}/jmol-11.4.4/doc/source/guide
%{_datadir}/jmol-11.4.4/doc/source/guide/*.docbook.xml
%dir %{_datadir}/jmol-11.4.4/doc/source/history
%{_datadir}/jmol-11.4.4/doc/source/history/*.xml
%dir %{_datadir}/jmol-11.4.4/doc/source/po
%{_datadir}/jmol-11.4.4/doc/source/po/*.de.po
%{_datadir}/jmol-11.4.4/doc/source/po/*.pot
%dir %{_datadir}/jmol-11.4.4/doc/source/xml2po-modes
%{_datadir}/jmol-11.4.4/doc/source/xml2po-modes/*.py
%dir %{_datadir}/jmol-11.4.4/manifest
%{_datadir}/jmol-11.4.4/manifest/*.txt
%doc ChangeLog.html README.txt LEAME.txt LICENSE.txt CHANGES.txt COPYRIGHT.txt
%changelog %changelog
* Sun Dec 28 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 14.2.9_2014.11.23-1mamba
- update to 14.2.9_2014.11.23
* Tue Aug 27 2013 Automatic Build System <autodist@mambasoft.it> 11.4.4-2mamba * Tue Aug 27 2013 Automatic Build System <autodist@mambasoft.it> 11.4.4-2mamba
- automatic rebuild by autodist - automatic rebuild by autodist