1 |
Name: xournalpp |
2 |
Version: 1.0.15 |
3 |
Release: %mkrel 1 |
4 |
Summary: Notetaking software designed around a tablet |
5 |
License: GPL-2.0-or-later |
6 |
Group: Office/Utilities |
7 |
Url: https://github.com/xournalpp/xournalpp |
8 |
Source0: https://github.com/xournalpp/xournalpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz |
9 |
BuildRequires: cmake |
10 |
BuildRequires: fdupes |
11 |
BuildRequires: gcc-c++ |
12 |
BuildRequires: hicolor-icon-theme |
13 |
BuildRequires: pkgconfig |
14 |
BuildRequires: texlive |
15 |
BuildRequires: pkgconfig(glib-2.0) |
16 |
BuildRequires: pkgconfig(gthread-2.0) |
17 |
BuildRequires: pkgconfig(gtk+-3.0) |
18 |
BuildRequires: pkgconfig(libxml-2.0) |
19 |
BuildRequires: pkgconfig(libzip) |
20 |
BuildRequires: pkgconfig(poppler-glib) |
21 |
BuildRequires: pkgconfig(portaudiocpp) |
22 |
BuildRequires: pkgconfig(sndfile) |
23 |
BuildRequires: pkgconfig(zlib) |
24 |
BuildRequires: gettext |
25 |
|
26 |
%description |
27 |
Xournal++ is a hand note taking software. |
28 |
It supports pen input, e.g. Wacom tablets. |
29 |
|
30 |
%prep |
31 |
%setup -q |
32 |
|
33 |
%build |
34 |
CFLAGS='-O2 -g -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' |
35 |
CXXFLAGS='-O2 -g -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' |
36 |
%cmake . |
37 |
%make_build |
38 |
|
39 |
%install |
40 |
cd build |
41 |
%make_install |
42 |
cd .. |
43 |
%find_lang xournalpp |
44 |
|
45 |
# REMOVE UNNECESSARY SCRIPTS update-icon-cache IS TAKEN CARE OF BY RPM FILE TRIGGERS |
46 |
rm %{buildroot}%{_datadir}/%{name}/ui/*/hicolor/update-icon-cache.sh |
47 |
|
48 |
%files -f xournalpp.lang |
49 |
%license LICENSE |
50 |
%doc AUTHORS README.md |
51 |
%{_bindir}/xournal-thumbnailer |
52 |
%{_bindir}/xournalpp |
53 |
%{_datadir}/icons/hicolor/scalable/mimetypes/*.svg |
54 |
%{_datadir}/mime/packages/*.xml |
55 |
%{_datadir}/applications/com.github.xournalpp.xournalpp.desktop |
56 |
%{_datadir}/metainfo/com.github.xournalpp.xournalpp.appdata.xml |
57 |
%dir %{_datadir}/mimelnk |
58 |
%dir %{_datadir}/mimelnk/application |
59 |
%{_datadir}/mimelnk/application/*.desktop |
60 |
%{_datadir}/xournalpp/ |
61 |
%{_datadir}/icons/hicolor/*/apps/* |
62 |
%dir %{_datadir}/thumbnailers |
63 |
%{_datadir}/thumbnailers/*.thumbnailer |