A new user interface for you! Read more...

File WizNote.spec of Package WizNote

#
# spec file for package wiz-note
#
# Copyright (c) 2014 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:           WizNote
Version:        2.5.8
Release:        1%{?dist}
License:        GPL-3.0
Summary:        WizNote QT Client
Url:	        https://github.com/WizTeam/WizQTClient
Group:          Applications/Editors
Source:         %{name}-%{version}.tar.xz
BuildRequires:	fdupes
BuildRequires:	gcc-c++
BuildRequires:	hicolor-icon-theme
BuildRequires:	update-desktop-files
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	chrpath
BuildRequires:	libqt5-qtbase-devel
BuildRequires:	libqt5-qttools-devel
BuildRequires:	libQt5WebKit5-devel
BuildRequires:	libQt5WebKitWidgets-devel
BuildRequires:	libqt5-qtwebengine-devel
BuildRequires:	libqt5-qtwebsockets-devel
BuildRequires:	libQt5WebSockets5
Requires:	libQt5WebSockets5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
WizNote is a cross platform cloud based note-taking application.

%prep
%setup -q

%build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DCMAK_BUILD_TYPE=Release \
      -DWIZNOTE_USE_QT5=ON 

make %{?_smp_mflags}

%install
%make_install

rm -rf %{buildroot}%{_datadir}/licenses/
rm -rf %{buildroot}%{_datadir}/icons/hicolor/{512x512,8x8}
%suse_update_desktop_file wiznote Office Calendar
%fdupes %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/WizNote
%{_datadir}/applications/wiznote.desktop
%{_datadir}/icons/hicolor/*/apps/wiznote.png
%{_datadir}/wiznote

%changelog