source: spec/trunk/SPECS/qpdfview.spec@ 1566

Last change on this file since 1566 was 1440, checked in by Silvan Scherrer, 7 years ago

spec: qpdfview: Release version 0.4.17-6beta2.

File size: 3.9 KB
Line 
1%global prerelease beta2
2%global title Tabbed PDF Viewer
3
4Name: qpdfview
5Version: 0.4.17
6Release: 6%{?prerelease}%{?dist}
7License: GPLv2+
8Summary: %{title}
9Url: https://launchpad.net/qpdfview
10
11Vendor: bww bitwise works GmbH
12%scm_source github https://github.com/bitwiseworks/qpdfview-os2 master
13
14Requires: bww-resources-rpm
15Requires: libqt4
16Requires: cups
17Requires: poppler-qt4
18Requires: libspectre ghostscript
19Requires: zlib
20Requires: djvulibre
21Requires: libjpeg libtiff libpng
22Requires: %{name}-common = %{version}-%{release}
23
24BuildRequires: libqt4-devel
25BuildRequires: cups-devel
26BuildRequires: poppler-qt4-devel
27BuildRequires: libspectre-devel ghostscript-devel
28BuildRequires: zlib-devel
29BuildRequires: djvulibre-devel
30BuildRequires: libjpeg-devel libtiff-devel libpng-devel
31BuildRequires: bww-resources-rpm-build
32
33%description
34qpdfview is a tabbed PDF viewer.
35It uses the Poppler library for rendering and CUPS for printing.
36It provides a clear and simple graphical user interface using the Qt framework.
37
38%package common
39Summary: Common files for %{name}
40BuildArch: noarch
41
42%description common
43This package provides common files for %{name}.
44
45%prep
46%scm_setup
47
48
49%build
50export QMAKE_SH=$SHELL
51# do a fast qt build, as runmapsym and wmapsym is not needed here
52export FAST_BUILD=1
53LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
54
55/@unixroot/usr/lib/qt4/bin/lrelease qpdfview.pro
56qmake \
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
66make %{?_smp_mflags}
67
68
69%install
70make INSTALL_ROOT=%{buildroot} install
71%find_lang %{name} --with-qt --without-mo
72# unknown language
73rm -f %{buildroot}/%{_datadir}/%{name}/%{name}_ast.qm
74
75# remove not needed desktop files
76rm -rf %{buildroot}/%{_datadir}/appdata
77rm -rf %{buildroot}/%{_datadir}/applications
78rm -rf %{buildroot}/%{_datadir}/icons
79
80# adjust install.os2 with the right version and build
81sed -i -e "s|_VERSION_|%{version}|" -e "s|_BUILD_|%{release}|" %{_builddir}/%{buildsubdir}/install.os2
82
83
84%post
85if [ "$1" -ge 1 ]; then # (upon update)
86 %wps_object_delete_all
87fi
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
96if [ "$1" -eq 0 ]; then # (upon removal)
97 %wps_object_delete_all
98fi
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
Note: See TracBrowser for help on using the repository browser.