1 | %global prerelease beta2
|
---|
2 | %global title Tabbed PDF Viewer
|
---|
3 |
|
---|
4 | Name: qpdfview
|
---|
5 | Version: 0.4.17
|
---|
6 | Release: 6%{?prerelease}%{?dist}
|
---|
7 | License: GPLv2+
|
---|
8 | Summary: %{title}
|
---|
9 | Url: https://launchpad.net/qpdfview
|
---|
10 |
|
---|
11 | Vendor: bww bitwise works GmbH
|
---|
12 | %scm_source github https://github.com/bitwiseworks/qpdfview-os2 master
|
---|
13 |
|
---|
14 | Requires: bww-resources-rpm
|
---|
15 | Requires: libqt4
|
---|
16 | Requires: cups
|
---|
17 | Requires: poppler-qt4
|
---|
18 | Requires: libspectre ghostscript
|
---|
19 | Requires: zlib
|
---|
20 | Requires: djvulibre
|
---|
21 | Requires: libjpeg libtiff libpng
|
---|
22 | Requires: %{name}-common = %{version}-%{release}
|
---|
23 |
|
---|
24 | BuildRequires: libqt4-devel
|
---|
25 | BuildRequires: cups-devel
|
---|
26 | BuildRequires: poppler-qt4-devel
|
---|
27 | BuildRequires: libspectre-devel ghostscript-devel
|
---|
28 | BuildRequires: zlib-devel
|
---|
29 | BuildRequires: djvulibre-devel
|
---|
30 | BuildRequires: libjpeg-devel libtiff-devel libpng-devel
|
---|
31 | BuildRequires: bww-resources-rpm-build
|
---|
32 |
|
---|
33 | %description
|
---|
34 | qpdfview is a tabbed PDF viewer.
|
---|
35 | It uses the Poppler library for rendering and CUPS for printing.
|
---|
36 | It provides a clear and simple graphical user interface using the Qt framework.
|
---|
37 |
|
---|
38 | %package common
|
---|
39 | Summary: Common files for %{name}
|
---|
40 | BuildArch: noarch
|
---|
41 |
|
---|
42 | %description common
|
---|
43 | This package provides common files for %{name}.
|
---|
44 |
|
---|
45 | %prep
|
---|
46 | %scm_setup
|
---|
47 |
|
---|
48 |
|
---|
49 | %build
|
---|
50 | export QMAKE_SH=$SHELL
|
---|
51 | # do a fast qt build, as runmapsym and wmapsym is not needed here
|
---|
52 | export FAST_BUILD=1
|
---|
53 | LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
54 |
|
---|
55 | /@unixroot/usr/lib/qt4/bin/lrelease qpdfview.pro
|
---|
56 | qmake \
|
---|
57 | TARGET_INSTALL_PATH="%{_bindir}" \
|
---|
58 | PLUGIN_INSTALL_PATH="%{_libdir}/%{name}" \
|
---|
59 | DATA_INSTALL_PATH="%{_datadir}/%{name}" \
|
---|
60 | MANUAL_INSTALL_PATH="%{_mandir}/man1" \
|
---|
61 | ICON_INSTALL_PATH="%{_datadir}/icons/hicolor/scalable/apps" \
|
---|
62 | LAUNCHER_INSTALL_PATH="%{_datadir}/applications" \
|
---|
63 | APPDATA_INSTALL_PATH="%{_datadir}/appdata" \
|
---|
64 | "CONFIG+=no_install_debuginfo" "CONFIG+=without_dbus" "CONFIG+=without_magic" \
|
---|
65 | qpdfview.pro
|
---|
66 | make %{?_smp_mflags}
|
---|
67 |
|
---|
68 |
|
---|
69 | %install
|
---|
70 | make INSTALL_ROOT=%{buildroot} install
|
---|
71 | %find_lang %{name} --with-qt --without-mo
|
---|
72 | # unknown language
|
---|
73 | rm -f %{buildroot}/%{_datadir}/%{name}/%{name}_ast.qm
|
---|
74 |
|
---|
75 | # remove not needed desktop files
|
---|
76 | rm -rf %{buildroot}/%{_datadir}/appdata
|
---|
77 | rm -rf %{buildroot}/%{_datadir}/applications
|
---|
78 | rm -rf %{buildroot}/%{_datadir}/icons
|
---|
79 |
|
---|
80 | # adjust install.os2 with the right version and build
|
---|
81 | sed -i -e "s|_VERSION_|%{version}|" -e "s|_BUILD_|%{release}|" %{_builddir}/%{buildsubdir}/install.os2
|
---|
82 |
|
---|
83 |
|
---|
84 | %post
|
---|
85 | if [ "$1" -ge 1 ]; then # (upon update)
|
---|
86 | %wps_object_delete_all
|
---|
87 | fi
|
---|
88 | # for the definition of the parameters see macros.bww
|
---|
89 | %bww_folder -t %{title}
|
---|
90 | %bww_app -f %{_bindir}/%{name}.exe -t %{title} -a *.pdf,*.ps,*.eps,*.djvu,*.djv
|
---|
91 | %bww_app_shadow
|
---|
92 | %bww_readme -f %_defaultdocdir/%{name}-common-%{version}/README
|
---|
93 |
|
---|
94 |
|
---|
95 | %postun
|
---|
96 | if [ "$1" -eq 0 ]; then # (upon removal)
|
---|
97 | %wps_object_delete_all
|
---|
98 | fi
|
---|
99 |
|
---|
100 |
|
---|
101 | %files
|
---|
102 | %{_bindir}/%{name}.exe
|
---|
103 | %{_libdir}/%{name}/
|
---|
104 |
|
---|
105 | %files common -f %{name}.lang
|
---|
106 | %license COPYING
|
---|
107 | %doc CHANGES CONTRIBUTORS README TODO
|
---|
108 | %doc install.os2
|
---|
109 | %dir %{_datadir}/%{name}
|
---|
110 | %{_datadir}/%{name}/help*.html
|
---|
111 | %{_mandir}/man?/*
|
---|
112 |
|
---|
113 | %changelog
|
---|
114 | * Thu Jul 12 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.4.17-6.beta2
|
---|
115 | - updated to latest vendor version
|
---|
116 |
|
---|
117 | * Thu Jun 21 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.4.17-5.beta1
|
---|
118 | - fix a glitch in the folder description
|
---|
119 |
|
---|
120 | * Thu Jun 21 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.4.17-4.beta1
|
---|
121 | - rebuild with latest macro.bww to fix several glitches
|
---|
122 | - fix a printing issue with umlaut in file names
|
---|
123 |
|
---|
124 | * Wed Jun 28 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.4.17-3.beta1
|
---|
125 | - rebuild with latest macro.bww to fix an install glitch
|
---|
126 |
|
---|
127 | * Mon Mar 20 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.4.17-2.beta1
|
---|
128 | - rebuild with latest bwwres
|
---|
129 | - added noarch rpm for the really noarch files
|
---|
130 |
|
---|
131 | * Fri Mar 17 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.4.17-1
|
---|
132 | - initial version
|
---|