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

Last change on this file since 1063 was 1063, checked in by Silvan Scherrer, 9 years ago

spec: qpdfview: Release version 0.4.17-2beta1.

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