File nixnote2.spec of Package nixnote2
#
# spec file for package nixnote2
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name:           nixnote2
Version:        @SERVICE@
Release:        0
Summary:        A clone of Evernote for Linux
License:        GPL-2.0-or-later
Group:          Productivity/Text/Editors
URL:            https://github.com/robert7/nixnote2
Source:         %{name}-%{version}.tar.xz
BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
#uildRequires:  libtidy-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5LinguistTools)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5WebEngine)
BuildRequires:  pkgconfig(Qt5WebEngineWidgets)
BuildRequires:  pkgconfig(Qt5WebKit)
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(hunspell)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(poppler-qt5)
BuildRequires:  pkgconfig(tidy) >= 5.6
%description
An unofficial client of Evernote for Linux.
%lang_package
%prep
%setup -q
%build
%qmake5 CONFIG+=release QMAKE_STRIP="/bin/true"
make %{?_smp_mflags}
%install
%qmake5_install
rm -rf %{buildroot}%{_datadir}/doc/%{name}
%suse_update_desktop_file -r %{name} Qt Utility TextEditor
%fdupes %{buildroot}%{_datadir}
%find_lang %{name} --with-qt
%files
%doc changelog.txt CONTRIBUTING.md README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.??g
%{_mandir}/man?/%{name}.?%{ext_man}
%exclude %{_datadir}/%{name}/translations
%license LICENSE
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}/translations
%changelog