2024-01-06 00:16:52 +01:00
|
|
|
%define gitver %(echo %version | tr _ -)
|
2024-01-06 00:16:51 +01:00
|
|
|
Name: jchempaint
|
2024-01-06 00:16:52 +01:00
|
|
|
Version: 3.3_1210
|
|
|
|
Release: 1mamba
|
2024-01-06 00:16:51 +01:00
|
|
|
Summary: JChemPaint is an editor for 2D molecular structures
|
|
|
|
Group: Graphical Desktop/Applications/Educational
|
2024-01-06 00:16:52 +01:00
|
|
|
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
|
2024-01-06 00:16:51 +01:00
|
|
|
License: LGPL
|
2024-01-06 00:16:52 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: javapackages
|
|
|
|
BuildRequires: ImageMagick
|
|
|
|
Requires: java-runtime
|
2024-01-06 00:16:51 +01:00
|
|
|
|
|
|
|
%description
|
2024-01-06 00:16:52 +01:00
|
|
|
JChemPaint is an editor for 2D molecular structures.
|
2024-01-06 00:16:51 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-06 00:16:52 +01:00
|
|
|
%setup -q -c -T
|
|
|
|
jar -xf %{SOURCE0} org/openscience/jchempaint/resources/large-bin/icon_32x32.gif
|
2024-01-06 00:16:51 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 00:16:52 +01:00
|
|
|
mv org/openscience/jchempaint/resources/large-bin/icon_32x32.gif jchempaint.gif
|
|
|
|
convert jchempaint.gif jchempaint.png
|
|
|
|
|
2024-01-06 00:16:51 +01:00
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
2024-01-06 00:16:52 +01:00
|
|
|
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
|
2024-01-06 00:16:51 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 00:16:52 +01:00
|
|
|
%{_bindir}/jchempaint
|
|
|
|
%{_javadir}/jchempaint.jar
|
|
|
|
%{_datadir}/applications/jchempaint.desktop
|
|
|
|
%{_datadir}/pixmaps/jchempaint.png
|
2024-01-06 00:16:51 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 00:16:52 +01:00
|
|
|
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3_1210-1mamba
|
|
|
|
- update to 3.3_1210
|
|
|
|
|
2024-01-06 00:16:51 +01:00
|
|
|
* Mon Jul 25 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 2.0.12-1qilnx
|
|
|
|
- package created by autospec
|