From 8fe3116dbf96273d6361cc6e8e8d1ecc35746322 Mon Sep 17 00:00:00 2001 From: Alessandro Ramazzina Date: Sat, 6 Jan 2024 00:16:51 +0100 Subject: [PATCH] package created by autospec [release 2.0.12-1qilnx;Mon Jul 25 2005] --- README.md | 2 ++ jchem.png | Bin 0 -> 319 bytes jchempaint.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 jchem.png create mode 100644 jchempaint.spec 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 0000000000000000000000000000000000000000..e21153f1e000045a87338d06d22a5abdfe7e3adc GIT binary patch literal 319 zcmeAS@N?(olHy`uVBq!ia0vp^0wBx*Bp9q_EZ7UAn3BBRT^Rni_n+Ah4nJ za0`PlBg3pY5H=O_N(lYe8S>Cw{WEag)VryIEF}E4n4P9??|9X>&N{6?nbRU zTog^XI`1`Sgi7TvHsFnOOxNO?>a8RsxxKF?!K1~=o6pB}%{-xTUH|8#RHlYM zW@d5B5-;<=?cQg?8NmCXuJWH4gS3kK^kD6;508Y+&*o9T9$)^ax%HyuZ{~iD&A0Wr z_#2mexRd>)KTb<;=7JM({>yiF8;8vl6r9L^?ypi`^gOQ*m6Oj&t<~{tSDo%s{W|gN zX78>&^Je>t_J{MaCCoi*TVa24x8NiZd+E&Oxp|A~rQZA0T(4*R{iLW +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