1 |
# comment out when not pre-release |
2 |
#define prel beta1 |
3 |
|
4 |
%define rel 2 |
5 |
|
6 |
Name: qpdfview |
7 |
Summary: Tabbed PDF viewer |
8 |
Version: 0.5.0 |
9 |
Release: %mkrel %{?prel:0.%prel.}%{rel} |
10 |
License: GPLv2 |
11 |
Group: Office/Utilities |
12 |
URL: https://launchpad.net/qpdfview |
13 |
Source0: https://launchpad.net/qpdfview/trunk/%{version}%{?prel}/+download/%{name}-0.5%{?prel}.tar.gz |
14 |
BuildRequires: qttools6 |
15 |
BuildRequires: cups-devel |
16 |
BuildRequires: magic-devel |
17 |
BuildRequires: pkgconfig(ddjvuapi) |
18 |
BuildRequires: pkgconfig(libspectre) |
19 |
BuildRequires: pkgconfig(poppler-qt6) |
20 |
BuildRequires: pkgconfig(Qt6Concurrent) |
21 |
BuildRequires: pkgconfig(Qt6Gui) |
22 |
BuildRequires: pkgconfig(Qt6PrintSupport) |
23 |
BuildRequires: pkgconfig(Qt6Sql) |
24 |
BuildRequires: pkgconfig(Qt6Svg) |
25 |
BuildRequires: pkgconfig(Qt6DBus) |
26 |
BuildRequires: pkgconfig(Qt6Xml) |
27 |
BuildRequires: pkgconfig(zlib) |
28 |
|
29 |
Requires: qt6-database-plugin-sqlite |
30 |
|
31 |
%description |
32 |
qpdfview is a tabbed PDF, PS, and DjVu viewer. |
33 |
It uses the Poppler library for rendering and CUPS for printing. |
34 |
It provides a clear and simple graphical user interface using the Qt framework. |
35 |
|
36 |
%prep |
37 |
%setup -q -n %{name}-0.5%{?prel} |
38 |
%autopatch -p1 |
39 |
|
40 |
%build |
41 |
#translations |
42 |
%{_qt6_bindir}/lrelease qpdfview.pro |
43 |
|
44 |
%qmake_qt6 \ |
45 |
PLUGIN_INSTALL_PATH="%{_libdir}/%{name}" \ |
46 |
DATA_INSTALLPATH="%{_datadir}/%{name}" \ |
47 |
qpdfview.pro |
48 |
|
49 |
%make_build |
50 |
|
51 |
%install |
52 |
%make_install INSTALL_ROOT=%{buildroot} |
53 |
|
54 |
%files |
55 |
%{_bindir}/%{name} |
56 |
%{_libdir}/%{name}/ |
57 |
%{_datadir}/%{name}/ |
58 |
%{_metainfodir}/%{name}.appdata.xml |
59 |
%{_datadir}/applications/%{name}.desktop |
60 |
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg |
61 |
%{_mandir}/man1/%{name}.1* |