forked from Ri0n/QtNote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtnote.spec
83 lines (72 loc) · 2.54 KB
/
qtnote.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%if 0%{?fedora}
%define _pkgconfig pkgconfig
%define _qt5linguist qt5-linguist
%define _qt5basedevel qt5-qtbase-devel
%else
%define qmake_qt5 qmake-qt5
%define _pkgconfig pkg-config
%define _qt5linguist libqt5-linguist
%define _qt5basedevel libqt5-qtbase-devel
%endif
Name: qtnote
Version: 3.0.5
Release: 1%{?dist}
Summary: Simple note-taking application in Qt
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPLv3+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Productivity/Office/Other
Url: http://ri0n.github.io/QtNote
Source: https://github.com/Ri0n/QtNote/releases/download/%{version}/%{name}-%{version}.tar.gz
Requires: libhunspell >= 1.6
Requires: libQt5Widgets
BuildRequires: gcc-c++
BuildRequires: %{_pkgconfig}
BuildRequires: %{_qt5linguist}
BuildRequires: %{_qt5basedevel}
#BuildRequires: qtsingleapplication-devel # unfortunately no in suse repos
BuildRequires: hunspell-devel
BuildRequires: kwindowsystem-devel
BuildRequires: knotifications-devel
BuildRequires: kglobalaccel-devel
%debug_package
%description
Note-taking application written with Qt in mind.
It's mostly Tomboy clone but with less features. So it's app
which lives in your system tray and allows you to make notes quickly
%package devel
Summary: QtNote development files
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains headers and libraries required to build applications
using libqtnote and also to build QtNote plugins.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%if 0%{?fedora}
%{cmake} -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release LIBDIR=%{_libdir} -DQMAKE_CXXFLAGS="%{optflags}" -DQMAKE_CFLAGS="%{optflags}" .
%else
%{cmake} -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=Release LIBDIR=%{_libdir} -DQMAKE_CXXFLAGS="%{optflags}" -DQMAKE_CFLAGS="%{optflags}" .
%endif
%make_build
%install
make install INSTALL_ROOT=%{buildroot}
%files
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_libdir}/libqtnote.so.*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor
%{_datadir}/%{name}/*.qm
%{_mandir}/man1/%{name}.1.gz
%license license.txt
%doc Changelog README.md
%files devel
%{_prefix}/include
%{_libdir}/libqtnote.so
%{_datadir}/%{name}/common.pri
%{_datadir}/%{name}/plugins/plugin.pri
%changelog
* Sun Nov 18 2018 Sergey Ilinykh <rion4ik@gmail.com> - 3.0.5-1
- First rpm build