File _service:set_version:mytetra.spec of Package mytetra

#
# spec file for package mytetra
#
# Copyright (c) 2012 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:           mytetra
Version:        1.32.59.20150219T164005
Release:        0
License:        GPL-3.0
Summary:        Smart Manager for Information Collecting
Url:            http://webhamster.ru/site/page/index/articles/projectcode/138
Group:          Productivity/Office/Organizers
Source0:        http://webhamster.ru/db/data/articles/105/mytetra_1_30_1_src.zip
Source1:        http://webhamster.ru/db/data/articles/105/user_guide_ru.pdf
# PATCH-FIX-OPENSUSE mytetra-1.30-install.patch lazy.kent@opensuse.org -- fix install path
Patch0:         mytetra-1.30-install.patch
# PATCH-FIX-UPSTREAM mytetra-1.30.1-gcc47.patch lazy.kent@opensuse.org -- fix compilation with GCC 4.7
Patch1:         mytetra-1.30.1-gcc47.patch
BuildRequires:  hicolor-icon-theme
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(QtCore)
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  pkgconfig(QtNetwork)
BuildRequires:  pkgconfig(QtXml)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.
- Customizable trash for recovery lost data.
- WYSIWYG editor.

%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 -qcn %{name}-%{version}
cp %{SOURCE1} .
%patch0
%patch1
chmod 644 desktop/any/mytetra.desktop

%build
qmake \
    QMAKE_CFLAGS+="%{optflags}" \
    QMAKE_CXXFLAGS+="%{optflags}" \
    QMAKE_STRIP=""
make %{?_smp_mflags}

%install
make INSTALL_ROOT=%{buildroot} install
%suse_update_desktop_file -r -G "Smart Manager for Information Collecting" %{name} Office Database

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun

%files
%defattr(-,root,root,-)
%doc readme.txt src/license.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*

%files doc
%defattr(-,root,root,-)
%doc user_guide_ru.pdf

%changelog
openSUSE Build Service is sponsored by