update to 3.3_1210 [release 3.3_1210-1mamba;Sun Apr 11 2021]
This commit is contained in:
parent
8fe3116dbf
commit
98d721bcac
@ -1,4 +1,4 @@
|
||||
# jchempaint
|
||||
|
||||
JChemPaint is an editor for 2D molecular structures
|
||||
JChemPaint is an editor for 2D molecular structures.
|
||||
|
||||
|
8
jchempaint.desktop
Normal file
8
jchempaint.desktop
Normal 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
2
jchempaint.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec /usr/bin/java -jar '/usr/share/java/jchempaint.jar' "\$@"
|
@ -1,65 +1,55 @@
|
||||
%define gitver %(echo %version | tr _ -)
|
||||
Name: jchempaint
|
||||
Version: 2.0.12
|
||||
Release: 1qilnx
|
||||
Version: 3.3_1210
|
||||
Release: 1mamba
|
||||
Summary: JChemPaint is an editor for 2D molecular structures
|
||||
Group: Graphical Desktop/Applications/Educational
|
||||
Vendor: QiLinux
|
||||
Distribution: QiLinux
|
||||
Packager: Alessandro Ramazzina <alessandro.ramazzina@qilinux.it>
|
||||
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 <silvan.calarco@mambasoft.it>
|
||||
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 <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
|
||||
- package created by autospec
|
||||
|
Loading…
Reference in New Issue
Block a user