diff --git a/README.md b/README.md index 63f731c..0bfcb5e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # jchempaint +JChemPaint is an editor for 2D molecular structures + diff --git a/jchem.png b/jchem.png new file mode 100644 index 0000000..e21153f Binary files /dev/null and b/jchem.png differ diff --git a/jchempaint.spec b/jchempaint.spec new file mode 100644 index 0000000..09139a1 --- /dev/null +++ b/jchempaint.spec @@ -0,0 +1,65 @@ +Name: jchempaint +Version: 2.0.12 +Release: 1qilnx +Summary: JChemPaint is an editor for 2D molecular structures +Group: Graphical Desktop/Applications/Educational +Vendor: QiLinux +Distribution: QiLinux +Packager: Alessandro Ramazzina +URL: http://almost.cubic.uni-koeln.de/cdk/jcp +Source: http://switch.dl.sourceforge.net/sourceforge/jchempaint/%{name}-%{version}.source.tar.gz +Source1: jchem.png +License: LGPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +JChemPaint is an editor for 2D molecular structures + +%prep +%setup -q + +%build +JAVA_HOME=/usr/java/j2sdk1.4 ant + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +mkdir -p %{buildroot}/usr/lib +mkdir -p %{buildroot}/usr/share/%{name}-%{version}/doc/ +install -m 755 jchempaint-2.0.12.jar %{buildroot}/usr/lib +cp -r doc/* %{buildroot}/usr/share/%{name}-%{version}/doc/ + +#Icon +mkdir -p %{buildroot}%{_datadir}/pixmaps +install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/jchem.png + +# Create the system menu entry +mkdir -p %{buildroot}%{_datadir}/applnk/Edutainment/Science +cat > %{buildroot}%{_datadir}/applnk/Edutainment/Science/%{name}.desktop << EOF +[Desktop Entry] +Name=%{name} +GenericName=JChemPaint is an editor for 2D molecular structures. +GenericName[it]=editor di strutture molecolari in 2d. +Comment=JChemPaint is an editor for 2D molecular structures. +Exec=java -jar %{_libdir}/jchempaint-2.0.12.jar +Icon=%{_datadir}/pixmaps/jchem.png +Terminal=0 +Type=Application +X-KDE-StartupNotify=false +EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc README.txt +%{_libdir}/jchempaint-2.0.12.jar +%{_datadir}/applnk/Edutainment/Science/jchempaint.desktop +%dir %{_datadir}/jchempaint-2.0.12/doc +%{_datadir}/jchempaint-2.0.12/doc/* +%{_datadir}/pixmaps/jchem.png + +%changelog +* Mon Jul 25 2005 Alessandro Ramazzina 2.0.12-1qilnx +- package created by autospec