%global prerelease beta2 %global title Tabbed PDF Viewer Name: qpdfview Version: 0.4.17 Release: 6%{?prerelease}%{?dist} License: GPLv2+ Summary: %{title} Url: https://launchpad.net/qpdfview Vendor: bww bitwise works GmbH %scm_source github https://github.com/bitwiseworks/qpdfview-os2 master Requires: bww-resources-rpm Requires: libqt4 Requires: cups Requires: poppler-qt4 Requires: libspectre ghostscript Requires: zlib Requires: djvulibre Requires: libjpeg libtiff libpng Requires: %{name}-common = %{version}-%{release} BuildRequires: libqt4-devel BuildRequires: cups-devel BuildRequires: poppler-qt4-devel BuildRequires: libspectre-devel ghostscript-devel BuildRequires: zlib-devel BuildRequires: djvulibre-devel BuildRequires: libjpeg-devel libtiff-devel libpng-devel BuildRequires: bww-resources-rpm-build %description qpdfview is a tabbed PDF viewer. It uses the Poppler library for rendering and CUPS for printing. It provides a clear and simple graphical user interface using the Qt framework. %package common Summary: Common files for %{name} BuildArch: noarch %description common This package provides common files for %{name}. %prep %scm_setup %build export QMAKE_SH=$SHELL # do a fast qt build, as runmapsym and wmapsym is not needed here export FAST_BUILD=1 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" /@unixroot/usr/lib/qt4/bin/lrelease qpdfview.pro qmake \ TARGET_INSTALL_PATH="%{_bindir}" \ PLUGIN_INSTALL_PATH="%{_libdir}/%{name}" \ DATA_INSTALL_PATH="%{_datadir}/%{name}" \ MANUAL_INSTALL_PATH="%{_mandir}/man1" \ ICON_INSTALL_PATH="%{_datadir}/icons/hicolor/scalable/apps" \ LAUNCHER_INSTALL_PATH="%{_datadir}/applications" \ APPDATA_INSTALL_PATH="%{_datadir}/appdata" \ "CONFIG+=no_install_debuginfo" "CONFIG+=without_dbus" "CONFIG+=without_magic" \ qpdfview.pro make %{?_smp_mflags} %install make INSTALL_ROOT=%{buildroot} install %find_lang %{name} --with-qt --without-mo # unknown language rm -f %{buildroot}/%{_datadir}/%{name}/%{name}_ast.qm # remove not needed desktop files rm -rf %{buildroot}/%{_datadir}/appdata rm -rf %{buildroot}/%{_datadir}/applications rm -rf %{buildroot}/%{_datadir}/icons # adjust install.os2 with the right version and build sed -i -e "s|_VERSION_|%{version}|" -e "s|_BUILD_|%{release}|" %{_builddir}/%{buildsubdir}/install.os2 %post if [ "$1" -ge 1 ]; then # (upon update) %wps_object_delete_all fi # for the definition of the parameters see macros.bww %bww_folder -t %{title} %bww_app -f %{_bindir}/%{name}.exe -t %{title} -a *.pdf,*.ps,*.eps,*.djvu,*.djv %bww_app_shadow %bww_readme -f %_defaultdocdir/%{name}-common-%{version}/README %postun if [ "$1" -eq 0 ]; then # (upon removal) %wps_object_delete_all fi %files %{_bindir}/%{name}.exe %{_libdir}/%{name}/ %files common -f %{name}.lang %license COPYING %doc CHANGES CONTRIBUTORS README TODO %doc install.os2 %dir %{_datadir}/%{name} %{_datadir}/%{name}/help*.html %{_mandir}/man?/* %changelog * Thu Jul 12 2018 Silvan Scherrer - 0.4.17-6.beta2 - updated to latest vendor version * Thu Jun 21 2018 Silvan Scherrer - 0.4.17-5.beta1 - fix a glitch in the folder description * Thu Jun 21 2018 Silvan Scherrer - 0.4.17-4.beta1 - rebuild with latest macro.bww to fix several glitches - fix a printing issue with umlaut in file names * Wed Jun 28 2017 Silvan Scherrer - 0.4.17-3.beta1 - rebuild with latest macro.bww to fix an install glitch * Mon Mar 20 2017 Silvan Scherrer - 0.4.17-2.beta1 - rebuild with latest bwwres - added noarch rpm for the really noarch files * Fri Mar 17 2017 Silvan Scherrer - 0.4.17-1 - initial version