update to 3.3_1210 [release 3.3_1210-1mamba;Sun Apr 11 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 00:16:52 +01:00
parent 8fe3116dbf
commit 98d721bcac
5 changed files with 43 additions and 43 deletions

View File

@ -1,4 +1,4 @@
# jchempaint # jchempaint
JChemPaint is an editor for 2D molecular structures JChemPaint is an editor for 2D molecular structures.

BIN
jchem.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

8
jchempaint.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Version=1.0
Name=JChemPaint
GenericName=2D Chemistry Drawing
GenericName[it]=Editor di strutture molecolari in 2D
Exec=/usr/bin/jchempaint
Icon=jchempaint %u
Categories=Science;Chemistry;Education

2
jchempaint.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec /usr/bin/java -jar '/usr/share/java/jchempaint.jar' "\$@"

View File

@ -1,65 +1,55 @@
%define gitver %(echo %version | tr _ -)
Name: jchempaint Name: jchempaint
Version: 2.0.12 Version: 3.3_1210
Release: 1qilnx Release: 1mamba
Summary: JChemPaint is an editor for 2D molecular structures Summary: JChemPaint is an editor for 2D molecular structures
Group: Graphical Desktop/Applications/Educational Group: Graphical Desktop/Applications/Educational
Vendor: QiLinux Vendor: openmamba
Distribution: QiLinux Distribution: openmamba
Packager: Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://almost.cubic.uni-koeln.de/cdk/jcp URL: https://almost.cubic.uni-koeln.de/cdk/jcp
Source: http://switch.dl.sourceforge.net/sourceforge/jchempaint/%{name}-%{version}.source.tar.gz Source: https://github.com/downloads/JChemPaint/jchempaint/jchempaint-%{gitver}.jar
Source1: jchem.png Source1: jchempaint.desktop
Source2: jchempaint.sh
License: LGPL License: LGPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
BuildRequires: ImageMagick
Requires: java-runtime
%description %description
JChemPaint is an editor for 2D molecular structures JChemPaint is an editor for 2D molecular structures.
%prep %prep
%setup -q %setup -q -c -T
jar -xf %{SOURCE0} org/openscience/jchempaint/resources/large-bin/icon_32x32.gif
%build %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 %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/lib install -D -m0755 %{SOURCE0} %{buildroot}%{_javadir}/jchempaint.jar
mkdir -p %{buildroot}/usr/share/%{name}-%{version}/doc/ install -D -m0755 %{SOURCE2} %{buildroot}%{_bindir}/jchempaint
install -m 755 jchempaint-2.0.12.jar %{buildroot}/usr/lib install -D -m0644 jchempaint.png %{buildroot}%{_datadir}/pixmaps/jchempaint.png
cp -r doc/* %{buildroot}/usr/share/%{name}-%{version}/doc/ install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/jchempaint.desktop
#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 %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc README.txt %{_bindir}/jchempaint
%{_libdir}/jchempaint-2.0.12.jar %{_javadir}/jchempaint.jar
%{_datadir}/applnk/Edutainment/Science/jchempaint.desktop %{_datadir}/applications/jchempaint.desktop
%dir %{_datadir}/jchempaint-2.0.12/doc %{_datadir}/pixmaps/jchempaint.png
%{_datadir}/jchempaint-2.0.12/doc/*
%{_datadir}/pixmaps/jchem.png
%changelog %changelog
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3_1210-1mamba
- update to 3.3_1210
* Mon Jul 25 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.0.12-1qilnx * Mon Jul 25 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.0.12-1qilnx
- package created by autospec - package created by autospec