File mytetra.spec of Package mytetra
#
# spec file for package mytetra
#
# Copyright (c) 2020 SUSE LLC
#
# 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: mytetra
Version: @SERVICE@
Release: 0
Summary: Smart crossplatform manager for information collecting
License: GPL-3.0-only AND BSD-3-Clause
Group: Productivity/Office/Organizers
URL: https://github.com/xintrea/mytetra_dev
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
%description
MyTetra is an information collecting manager. It is a powerful program
for memorization data and structuring notes.
%package doc
Summary: MyTetra User Guide
Group: Documentation/Other
Provides: locale(mytetra:ru)
BuildArch: noarch
%description doc
MyTetra Russian user guide in PDF format.
%prep
%setup -q
sed -i '/BINARY_INSTALL_PATH=/s|local/bin|bin|' app/app.pro
%build
%qmake5
%make_jobs
%install
%qmake5_install
%suse_update_desktop_file -r -G "Smart Manager for Information Collecting" %{name} Office Database
%files
%doc README*.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%license app/src/license*.txt
%files doc
%doc app/doc/guide/user_guide_ru.pdf
%changelog