diff --git a/qpdfview-0.4.12.tar.gz b/qpdfview-0.4.12.tar.gz deleted file mode 100644 index c4d7495..0000000 Binary files a/qpdfview-0.4.12.tar.gz and /dev/null differ diff --git a/qpdfview-0.4.13-arm.patch b/qpdfview-0.4.13-arm.patch new file mode 100644 index 0000000..7593e5c --- /dev/null +++ b/qpdfview-0.4.13-arm.patch @@ -0,0 +1,13 @@ +--- sources/documentview.cpp.orig 2014-11-19 12:59:30.017166782 +0300 ++++ sources/documentview.cpp 2014-11-19 13:48:55.115179111 +0300 +@@ -786,8 +786,8 @@ + + // Fetch at most half of a line as centered on the given rectangle as possible. + const qreal pageWidth = m_pages.at(page - 1)->size().width(); +- const qreal width = qMax(rect.width(), pageWidth / 2.0); +- const qreal x = qBound(0.0, rect.x() + rect.width() / 2.0 - width / 2.0, pageWidth - width); ++ const qreal width = qMax(rect.width(), pageWidth / 2.0f); ++ const qreal x = qBound(qreal(0.0), rect.x() + rect.width() / 2.0f - width / 2.0f, pageWidth - width); + + const QRectF surroundingRect(x, rect.top(), width, rect.height()); + diff --git a/qpdfview-0.4.13.tar.gz b/qpdfview-0.4.13.tar.gz new file mode 100644 index 0000000..a81ba1c Binary files /dev/null and b/qpdfview-0.4.13.tar.gz differ diff --git a/qpdfview.spec b/qpdfview.spec index 181b598..063bf84 100644 --- a/qpdfview.spec +++ b/qpdfview.spec @@ -1,10 +1,11 @@ Name: qpdfview -Version: 0.4.12 +Version: 0.4.13 Release: 1%{?dist} License: GPLv2+ Summary: Tabbed PDF Viewer Url: https://launchpad.net/qpdfview -Source0: https://launchpad.net/qpdfview/trunk/0.4.5/+download/%{name}-%{version}.tar.gz +Source0: https://launchpad.net/qpdfview/trunk/%{version}/+download/%{name}-%{version}.tar.gz +Patch0: %{name}-%{version}-arm.patch BuildRequires: desktop-file-utils file-devel cups-devel hicolor-icon-theme pkgconfig(poppler-qt4) pkgconfig(libspectre) pkgconfig(QtGui) pkgconfig(QtDBus) pkgconfig(zlib) %if 0%{?centos_version} Requires: qt-sqlite @@ -17,8 +18,11 @@ 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. + %prep -%setup -q +%setup0 -q +%patch0 -p 0 + %build lrelease-qt4 qpdfview.pro @@ -34,6 +38,7 @@ qmake-qt4 \ qpdfview.pro make %{?_smp_mflags} + %install make INSTALL_ROOT=%{buildroot} install install -Dm 0644 icons/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg @@ -42,10 +47,13 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop # unknown language rm -f %{buildroot}/%{_datadir}/%{name}/%{name}_ast.qm + %post -p /sbin/ldconfig + %postun -p /sbin/ldconfig + %files -f %{name}.lang %doc CHANGES CONTRIBUTORS COPYING README TODO %{_bindir}/%{name} @@ -59,6 +67,9 @@ rm -f %{buildroot}/%{_datadir}/%{name}/%{name}_ast.qm %{_mandir}/man?/* %changelog +* Tue Nov 18 2014 TI_Eugene 0.4.13-1 +- Version bump + * Mon Oct 06 2014 TI_Eugene 0.4.12-1 - Version bump