From 98d721bcac8d8aca9484f5c082830b172630c1e3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 00:16:52 +0100 Subject: [PATCH] update to 3.3_1210 [release 3.3_1210-1mamba;Sun Apr 11 2021] --- README.md | 2 +- jchem.png | Bin 319 -> 0 bytes jchempaint.desktop | 8 +++++ jchempaint.sh | 2 ++ jchempaint.spec | 74 ++++++++++++++++++++------------------------- 5 files changed, 43 insertions(+), 43 deletions(-) delete mode 100644 jchem.png create mode 100644 jchempaint.desktop create mode 100644 jchempaint.sh diff --git a/README.md b/README.md index 0bfcb5e..423edb8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # jchempaint -JChemPaint is an editor for 2D molecular structures +JChemPaint is an editor for 2D molecular structures. diff --git a/jchem.png b/jchem.png deleted file mode 100644 index e21153f1e000045a87338d06d22a5abdfe7e3adc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 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 +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://almost.cubic.uni-koeln.de/cdk/jcp +Source: https://github.com/downloads/JChemPaint/jchempaint/jchempaint-%{gitver}.jar +Source1: jchempaint.desktop +Source2: jchempaint.sh License: LGPL -BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: javapackages +BuildRequires: ImageMagick +Requires: java-runtime %description -JChemPaint is an editor for 2D molecular structures +JChemPaint is an editor for 2D molecular structures. %prep -%setup -q +%setup -q -c -T +jar -xf %{SOURCE0} org/openscience/jchempaint/resources/large-bin/icon_32x32.gif %build -JAVA_HOME=/usr/java/j2sdk1.4 ant - +mv org/openscience/jchempaint/resources/large-bin/icon_32x32.gif jchempaint.gif +convert jchempaint.gif jchempaint.png + %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 +install -D -m0755 %{SOURCE0} %{buildroot}%{_javadir}/jchempaint.jar +install -D -m0755 %{SOURCE2} %{buildroot}%{_bindir}/jchempaint +install -D -m0644 jchempaint.png %{buildroot}%{_datadir}/pixmaps/jchempaint.png +install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/jchempaint.desktop %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 +%{_bindir}/jchempaint +%{_javadir}/jchempaint.jar +%{_datadir}/applications/jchempaint.desktop +%{_datadir}/pixmaps/jchempaint.png %changelog +* Sun Apr 11 2021 Silvan Calarco 3.3_1210-1mamba +- update to 3.3_1210 + * Mon Jul 25 2005 Alessandro Ramazzina 2.0.12-1qilnx - package created by autospec