File mytetra.spec of Package mytetra

#
# spec file for package mytetra
#
# Copyright (c) 2018 SUSE LINUX 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:           mytetra
Version:        1.43.25
Release:        0
Summary:        Smart Manager for Information Collecting
License:        GPL-3.0-only AND BSD-3-Clause
Group:          Productivity/Office/Organizers
URL:            https://webhamster.ru/site/page/index/articles/projectcode/138
Source0:        https://github.com/xintrea/mytetra_dev/archive/v.%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        https://webhamster.ru/db/data/articles/105/user_guide_ru.pdf
# PATCH-FIX-OPENSUSE mytetra-install.patch lazy.kent@opensuse.org -- fix install path
Patch0:         mytetra-install.patch
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
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.

Capability:

- Infinite spreading tree for notes group.
- Arbitrary sorted notes in current branch.
- Arbitrary sorted branches in parent branch.
- Copy/Paste for notes and branches.
- Clickable tags.
- Customizable trash for recovery lost data.
- WYSIWYG editor.
- Notes encryption by RC5-32/12/16 + PBKDF2.
- Synchronization over any cloud storage system or version control system
  (i.e. Git on GitHub.com).
- History navigation.

%package doc
Summary:        MyTetra Russian User Guide
Group:          Documentation/Other
Provides:       locale(mytetra:ru)
BuildArch:      noarch

%description doc
MyTetra Russian user guide in PDF format.

%prep
%setup -qn mytetra_dev-v.%{version}
cp %{SOURCE1} .
%patch0 -p1
chmod 644 desktop/any/mytetra.desktop

%build
qmake-qt5 \
    QMAKE_CFLAGS+="%{optflags}" \
    QMAKE_CXXFLAGS+="%{optflags}" \
    QMAKE_STRIP="true"

make %{?_smp_mflags}

%install
make INSTALL_ROOT=%{buildroot} install

%suse_update_desktop_file -r -G "Smart Manager for Information Collecting" %{name} Office Database

%if 0%{?suse_version} && 0%{?suse_version} < 1500
%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun
%endif

%files
%license src/licenseBSD.txt src/licenseGPL.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*

%files doc
%doc user_guide_ru.pdf

%changelog
openSUSE Build Service is sponsored by