File kleiner-brauhelfer-2.spec of Package kleiner-brauhelfer-2
#
# spec file for package kleiner-brauhelfer-2
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 Stefan Schaefer <stefan@invis-server.org<
#
# 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 https://bugs.opensuse.org/
#
Name: kleiner-brauhelfer-2
Version: 2.2.3
Release: 0
Summary: QT software for home-brewers
License: GPL-3.0-or-later
Group: Productivity/Office/Other
URL: https://github.com/kleiner-brauhelfer/kleiner-brauhelfer-2
Source0: kleiner-brauhelfer-2-%{version}.tar.gz
BuildRequires: libqt5-creator
BuildRequires: libqt5-qtbase-devel
BuildRequires: libqt5-qtwebengine-devel
BuildRequires: libQt5Charts5-devel
BuildRequires: libqt5-qtsvg-devel
BuildRequires: update-desktop-files
Requires: openssl-1_1
Requires: libQt5Core5
Requires: libQt5Sql5-sqlite
Requires: libQt5Svg5
Requires: libqt5-qtwebengine
Requires: libQt5Charts5
Patch0: bindir.patch
%description
Der kleine-brauhelfer ist ein Hilfsprogramm für Hobbybrauer zum Erstellen und Verwalten von Biersuden. Die Version 2 ist die Weiterentwicklung vom kleinen-brauhelfer.
%prep
%setup -q
%patch0 -p0
%build
qmake-qt5 kleiner-brauhelfer-2.pro -config release
make -j 8
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp bin/kleiner-brauhelfer-2 %{buildroot}%{_bindir}
cp deployment/linux/64bit/deb/kleiner-brauhelfer-2.desktop %{buildroot}%{_datadir}/applications/
cp deployment/kleiner-brauhelfer-2.svg %{buildroot}%{_datadir}/pixmaps
#cp LICENSE %{buildroot}%{_docdir}/
mv README.md README
%if %{?suse_version:1}0
%suse_update_desktop_file kleiner-brauhelfer-2 Office Finance
%endif
%post
%postun
%files
%{_bindir}/kleiner-brauhelfer-2
%{_datadir}/applications/kleiner-brauhelfer-2.desktop
%{_datadir}/pixmaps/kleiner-brauhelfer-2.svg
%doc LICENSE README
%changelog