2014-04-29 12:22:07 +02:00
|
|
|
#
|
|
|
|
# spec file for package jmol
|
|
|
|
#
|
2020-12-24 13:25:23 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-04-29 12:22:07 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-20 13:59:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-04-29 12:22:07 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: jmol
|
2020-12-24 13:25:23 +01:00
|
|
|
Version: 14.31.20
|
2014-04-29 12:22:07 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: 3D Viewer for chemical structures
|
2018-10-20 13:59:29 +02:00
|
|
|
License: LGPL-2.1-only
|
2014-04-29 12:22:07 +02:00
|
|
|
Group: Productivity/Scientific/Chemistry
|
2019-12-19 23:29:43 +01:00
|
|
|
URL: http://jmol.sf.net/
|
2014-04-29 12:22:07 +02:00
|
|
|
|
2018-01-20 00:26:44 +01:00
|
|
|
#Source: http://downloads.sf.net/jmol/Jmol-%version-binary.tar.gz
|
|
|
|
Source: jmol-%version.tar.xz
|
2014-04-29 12:22:07 +02:00
|
|
|
Source2: Jmol_icon13.png
|
|
|
|
#Source2-Orig: http://wiki.jmol.org/index.php/File:Jmol_icon13.png
|
2016-05-28 20:18:02 +02:00
|
|
|
Source3: %name.man
|
|
|
|
Source4: %name.desktop
|
2018-01-20 00:26:44 +01:00
|
|
|
Source9: sanitize_binpkg.sh
|
2014-04-29 12:22:07 +02:00
|
|
|
Patch1: datadir.diff
|
|
|
|
BuildArch: noarch
|
2016-05-28 20:18:02 +02:00
|
|
|
BuildRequires: desktop-file-utils
|
2014-04-29 12:22:07 +02:00
|
|
|
BuildRequires: dos2unix
|
2016-05-28 20:18:02 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2018-10-20 13:59:29 +02:00
|
|
|
BuildRequires: xz
|
2020-12-24 13:25:23 +01:00
|
|
|
Requires: java >= 7
|
2014-04-29 12:22:07 +02:00
|
|
|
|
|
|
|
%description
|
2016-07-16 15:06:56 +02:00
|
|
|
Jmol is a Java-based viewer for chemical structures in 3D with
|
|
|
|
features for chemicals, crystals, materials and biomolecules.
|
2014-04-29 12:22:07 +02:00
|
|
|
|
|
|
|
%prep
|
2020-12-24 13:25:23 +01:00
|
|
|
%autosetup -p1
|
2014-04-29 12:22:07 +02:00
|
|
|
cp %{S:2} .
|
|
|
|
|
|
|
|
%build
|
|
|
|
dos2unix CHANGES.txt COPYRIGHT.txt LICENSE.txt README.txt
|
|
|
|
perl -i -pe 's{\@pkgdatadir\@}{%_datadir/%name}gs' jmol.sh
|
2016-05-28 19:35:14 +02:00
|
|
|
# man
|
|
|
|
cp %{S:3} .
|
2016-05-28 20:18:02 +02:00
|
|
|
sed -i 's/INST_VERSION/%version/' jmol.man
|
|
|
|
sed -i 's/INST_SUMMARY/%summary/' jmol.man
|
2017-12-26 00:55:27 +01:00
|
|
|
gzip -9 jmol.man
|
2014-04-29 12:22:07 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
|
|
|
# jar
|
|
|
|
mkdir -p "$b/%_datadir/%name"
|
2016-05-28 20:18:02 +02:00
|
|
|
install -p -m 644 Jmol.jar "$b/%_datadir/%name/"
|
2014-04-29 12:22:07 +02:00
|
|
|
# script
|
2016-05-28 20:18:02 +02:00
|
|
|
install -Dpm0755 jmol.sh "$b/%_bindir/jmol"
|
2014-04-29 12:22:07 +02:00
|
|
|
# icon
|
2016-05-28 20:18:02 +02:00
|
|
|
install -Dpm0644 Jmol_icon13.png "$b/%_datadir/pixmaps/%name.png"
|
2016-05-28 19:35:14 +02:00
|
|
|
# manual
|
2016-05-28 20:18:02 +02:00
|
|
|
install -Dpm0644 jmol.man.gz "$b/%_mandir/man1/jmol.1.gz"
|
2014-04-29 12:22:07 +02:00
|
|
|
# .desktop
|
2016-05-28 20:18:02 +02:00
|
|
|
desktop-file-install --dir %buildroot%_datadir/applications %{S:4}
|
|
|
|
%suse_update_desktop_file %name
|
2014-04-29 12:22:07 +02:00
|
|
|
|
|
|
|
%files
|
2020-12-24 13:25:23 +01:00
|
|
|
%license LICENSE.txt COPYRIGHT.txt
|
|
|
|
%doc README.txt CHANGES.txt
|
2016-05-28 19:35:14 +02:00
|
|
|
%_bindir/%name
|
2014-04-29 12:22:07 +02:00
|
|
|
%_datadir/%name
|
|
|
|
%_datadir/applications/%name.desktop
|
|
|
|
%_datadir/pixmaps/%name.png
|
2016-05-28 20:18:02 +02:00
|
|
|
%_mandir/man1/%name.1.gz
|
2014-04-29 12:22:07 +02:00
|
|
|
|
|
|
|
%changelog
|