Browse Source

poppler-0.61.1-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11311 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
cf43a8cb17
1 changed files with 39 additions and 16 deletions
  1. 39 16
      p/poppler/poppler-vl.spec

+ 39 - 16
p/poppler/poppler-vl.spec

@@ -1,6 +1,8 @@
+%bcond_with doc
+
 %define name	poppler
-%define version	0.43.0
-%define release	4%{?_dist_release}
+%define version	0.61.1
+%define release	1%{?_dist_release}
 
 Summary:	PDF rendering library.
 Summary(ja): 	PDF レンダリング用ライブラリ
@@ -10,14 +12,25 @@ Release: 	%{release}
 
 Source0:	http://poppler.freedesktop.org/%{name}-%{version}.tar.xz
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=1185007
+Patch0:  poppler-0.30.0-rotated-words-selection.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=1113172
+Patch1:  0001-workaround-a-bug-in-nss-header.patch
+
 License:	GPLv2
 Group:		System Environment/Libraries
 URL:		http://poppler.freedesktop.org/
 
+BuildRequires:	cmake
+BuildRequires:	gettext-devel
 BuildRequires:	gtk2-devel >= 2.2.0
+%if %{with doc}
+BuildRequires:	gtk-doc
+%endif
+BuildRequires:	gtk3-devel
 BuildRequires:	zlib-devel
 BuildRequires:  libjpeg-devel
-BuildRequires:  openjpeg-devel
+BuildRequires:  openjpeg2-devel
 BuildRequires:	cairo-devel
 BuildRequires:	qt4-devel >= 4.4.0
 BuildRequires:	qt5-qtbase-devel
@@ -121,25 +134,29 @@ converting PDF files to a number of other formats.
 #-----------------------------------------------------------------------------
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
-%configure \
-           --enable-silent-rules \
-           --enable-shared \
-           --disable-static \
-           --enable-xpdf-headers \
-           --enable-zlib \
-           --enable-introspection=yes \
-           --disable-gtk-doc \
-           --enable-poppler-qt4 \
-           --enable-poppler-qt5
-
+mkdir build
+cd build
+export CC="gcc -fPIC" # hack to make the cmake call pass
+%cmake \
+  -DENABLE_CMS=lcms2 \
+  -DENABLE_DCTDECODER=libjpeg \
+%if %{with doc}
+  -DENABLE_GTK_DOC=ON \
+%endif
+  -DENABLE_LIBOPENJPEG=openjpeg2 \
+  -DENABLE_XPDF_HEADERS=ON \
+  -DENABLE_ZLIB=OFF \
+  ..
+unset CC
 %{__make} %{?_smp_mflags}
 
 %install
 %{__rm} -rf ${RPM_BUILD_ROOT}
-%makeinstall
+cd build
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
 
 # remove unnecessary files.
 %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libpoppler.la
@@ -173,7 +190,9 @@ converting PDF files to a number of other formats.
 %{_libdir}/pkgconfig/*.pc
 %{_includedir}/poppler
 %{_datadir}/gir-1.0/*.gir
+%if %{with doc}
 %{_datadir}/gtk-doc/html/poppler
+%endif
 %exclude %{_libdir}/libpoppler-qt4.so
 %exclude %{_libdir}/libpoppler-qt5.so
 %exclude %{_libdir}/pkgconfig/poppler-qt4.pc
@@ -207,6 +226,10 @@ converting PDF files to a number of other formats.
 %{_mandir}/man1/pdf*
 
 %changelog
+* Sun Dec 31 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.61.1-1
+- new upstream release.
+- imported Patch0 and 1 from rawhide.
+
 * Thu Mar  9 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.43.0-4
 - new upstream release.
 - fixed qt5 stuff.