151 lines
6.6 KiB
RPMSpec
151 lines
6.6 KiB
RPMSpec
|
Name: jmol
|
||
|
Version: 11.4.4
|
||
|
Release: 2mamba
|
||
|
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 <silvan.calarco@mambasoft.it>
|
||
|
URL: http://jmol.sourceforge.net/download/
|
||
|
Source: http://downloads.sourceforge.net/sourceforge/jmol/%{name}-%{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
|
||
|
|
||
|
%description
|
||
|
Jmol is a Java based application and an applet for displaying 3D chemical information.
|
||
|
|
||
|
%prep
|
||
|
%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 -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
|
||
|
|
||
|
# Create the system menu entry
|
||
|
|
||
|
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
|
||
|
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
|
||
|
Terminal=0
|
||
|
Type=Application
|
||
|
X-KDE-StartupNotify=false
|
||
|
Categories=Education;Science;
|
||
|
EOF
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/Jmol.jar
|
||
|
%{_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
|
||
|
|
||
|
%changelog
|
||
|
* Tue Aug 27 2013 Automatic Build System <autodist@mambasoft.it> 11.4.4-2mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Sun Jun 15 2008 gil <puntogil@libero.it> 11.4.4-1mamba
|
||
|
- update to 11.4.4
|
||
|
|
||
|
* Fri Jul 22 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> full-1qilnx
|
||
|
- package created by autospec
|