From 0f13080d3186fe40f416dfae3ecbc65450c55290 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 17 Feb 2017 23:25:37 +0100 Subject: [PATCH] enable tests --- .gitignore | 1 + poppler.spec | 15 ++++++++++++++- sources | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 433f85c..57aac99 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /poppler-0.51.0.tar.xz +/poppler-test-2009-05-13_0d2bfd4af4c76a3bac27ccaff793d9129df7b57a.tar.xz diff --git a/poppler.spec b/poppler.spec index 8785800..2bd21c7 100644 --- a/poppler.spec +++ b/poppler.spec @@ -1,3 +1,6 @@ +%global test_sha 0d2bfd4af4c76a3bac27ccaff793d9129df7b57a +%global test_date 2009-05-13 + Summary: PDF rendering library Name: poppler Version: 0.51.0 @@ -5,6 +8,8 @@ Release: 2%{?dist} License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT URL: http://poppler.freedesktop.org/ Source0: http://poppler.freedesktop.org/poppler-%{version}.tar.xz +# git archive --prefix test/ +Source1: %{name}-test-%{test_date}_%{test_sha}.tar.xz # https://bugzilla.redhat.com/show_bug.cgi?id=1185007 Patch0: poppler-0.30.0-rotated-words-selection.patch @@ -140,7 +145,12 @@ Requires: %{name}-glib%{?_isa} = %{version}-%{release} %{summary}. %prep -%autosetup -p1 +%autosetup -p1 -b 1 +sed -i \ + -e '/@\s*check_search\$(EXEEXT)/d' \ + -e '/@\s*check_password\$(EXEEXT)/d' \ + qt4/tests/Makefile.in \ + qt5/tests/Makefile.in %build @@ -176,6 +186,9 @@ make install DESTDIR=$RPM_BUILD_ROOT rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.la %check +export LD_LIBRARY_PATH=`pwd`/poppler/.libs:`pwd`/qt4/src/.libs:`pwd`/qt5/src/.libs:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +make %{?_smp_mflags} check + # verify pkg-config sanity/version export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig test "$(pkg-config --modversion poppler)" = "%{version}" diff --git a/sources b/sources index 0549fa9..13076c5 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ SHA512 (poppler-0.51.0.tar.xz) = f2e49cc8587396e38ac9125fa662bcb472eb0b9c9e0ce57135d72ad1792d55db858c7d00b8322b52ac3fe0cd97eacd2d570d3e579367c4acf2f04051f723c5c5 +SHA512 (poppler-test-2009-05-13_0d2bfd4af4c76a3bac27ccaff793d9129df7b57a.tar.xz) = f8ce114357043a893100de2d52ada8bd850148d19f0e8c889988ea97e9a92313f0545c0b88ef32a1ce7f0e9e58edc1a8c9066278c20b7718ca619913fd4bfb3c