File kemboss.spec of Package kemboss
#
# spec file for package kemboss
#
# Copyright (c) 2020 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kemboss
Summary: Molecular Biology User Interface for EMBOSS
# Files under /qtfindreplacedialog are LGPLv3
License: GPL-2.0 and LGPL-3.0
Group: Productivity/Scientific/Other
Version: 2.1.5
Release: 0
Source: http://www.kemboss.org/sources/kemboss-%{version}.tar.gz
Url: http://www.kemboss.org/
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5Core) >= 5.2
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2
BuildRequires: pkgconfig(Qt5Gui) >= 5.2
BuildRequires: pkgconfig(Qt5Network) >= 5.2
BuildRequires: pkgconfig(Qt5PrintSupport) >= 5.2
BuildRequires: libXext-devel
# for directory ownership
BuildRequires: hicolor-icon-theme
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Graphical user interface for the bioinformatics package EMBOSS
(http://www.emboss.org/). It uses Qt5 to show nice windows for
configuring and running the more than 200 programs included in EMBOSS.
It also contains some sequence editing capabilities.
%global debug_package %{nil}
%prep
%setup -q
%build
cd ./src
qmake-qt5 kemboss.pro
make RPM_OPT_FLAGS="%{optflags}"
%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}/data/
install -m 644 data/* %{buildroot}%{_datadir}/%{name}/data/
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/default_settings/
install -m 644 default_settings/* %{buildroot}%{_sysconfdir}/%{name}/default_settings/
mkdir -p %{buildroot}%{_datadir}/applications/
install -m 755 src/shared_X11/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
mv src/shared_X11/%{name}.png src/shared_X11/%{name}22.png
for res in 16 22 32 36 48 64 72 96 128 ; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/"$res"x"$res"/apps/
install -m 644 src/shared_X11/%{name}"$res".png %{buildroot}%{_datadir}/icons/hicolor/"$res"x"$res"/apps/%{name}.png
done
chmod a-x {copying_GPL_V2,copying_LGPL_V3,install_kemboss,copyright,todo,versions}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc copying_GPL_V2 copying_LGPL_V3 install_kemboss copyright todo versions
%config(noreplace) %{_sysconfdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%changelog