diff --git a/jmol.spec b/jmol.spec index 5b083b3..28c1924 100644 --- a/jmol.spec +++ b/jmol.spec @@ -1,18 +1,17 @@ +%define majver %(echo %version | cut -d_ -f1) Name: jmol -Version: 11.4.4 -Release: 2mamba +Version: 14.2.9_2014.11.23 +Release: 1mamba Summary: Jmol is a Java based application and an applet for displaying 3D chemical information. Group: Graphical Desktop/Applications/Educational Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco 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 License: LGPL -Requires: sun-java-runtime ## AUTOBUILDREQ-BEGIN -BuildRequires: sun-java-runtime ## AUTOBUILDREQ-END 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} %build -JAVA_HOME=/opt/java/jdk ANT_HOME=/usr/java/ant %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} -mkdir -p %{buildroot}%{_bindir} -mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/jars/ -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 -d -m0755 %{buildroot}%{_datadir}/jmol +cp -a * %{buildroot}%{_datadir}/jmol/ -install -m 755 plugin-jars/dadmlbrowser.jar %{buildroot}%{_datadir}/%{name}-%{version}/plugin-jars/dadmlbrowser.jar -install -m 755 plugin-jars/dirbrowser.jar %{buildroot}%{_datadir}/%{name}-%{version}/plugin-jars/dirbrowser.jar - -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 +rm -rf %{buildroot}%{_datadir}/jmol/{jmol.zip,src,manifest} +install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/jmol.png +install -D -m0755 jmol %{buildroot}%{_bindir}/jmol # Create the system menu entry - +install -d -m0755 %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Name=%{name} -GenericName=it is an applet for displaying 3D chemical information. -GenericName[it]=applet per mostrare formule chimiche in 3d +GenericName=An applet for displaying 3D chemical information. +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[de]=3D-Betrachter für Molekül- und Kristall-Strukturen -Exec=java -jar /usr/bin/Jmol.jar -Icon=/usr/share/pixmaps/jmol.png +Exec=%{_bindir}/jmol +Icon=%{_datadir}/pixmaps/jmol.png Terminal=0 Type=Application X-KDE-StartupNotify=false @@ -90,56 +55,17 @@ EOF %files %defattr(-,root,root) -%{_bindir}/Jmol.jar +%{_bindir}/jmol %{_datadir}/applications/jmol.desktop %{_datadir}/pixmaps/jmol.png -%dir %{_datadir}/jmol-11.4.4 -%{_datadir}/jmol-11.4.4/Jmol.js -%{_datadir}/jmol-11.4.4/*.jar -%{_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 +%dir %{_datadir}/jmol +%{_datadir}/jmol/* +%doc LICENSE.txt COPYRIGHT.txt %changelog +* Sun Dec 28 2014 Silvan Calarco 14.2.9_2014.11.23-1mamba +- update to 14.2.9_2014.11.23 + * Tue Aug 27 2013 Automatic Build System 11.4.4-2mamba - automatic rebuild by autodist