X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=poppler.spec;h=8457bc4db69eadafe7ed27ecf673c6fbc849aa30;hb=5d1986fc3396cb6bed3a4cf2475c431493920de3;hp=d645af594b82f00457d3efdf6898922b9b9ba2c7;hpb=d84a04fdeb976389362b22c32b6e588638d423fe;p=packages%2Fpoppler0.61.git diff --git a/poppler.spec b/poppler.spec index d645af5..8457bc4 100644 --- a/poppler.spec +++ b/poppler.spec @@ -2,22 +2,21 @@ # Conditional build: %bcond_without apidocs # disable gtk-doc %bcond_without cairo # disable Cairo backend -%bcond_without qt # disable qt wrapper %bcond_without qt4 # disable qt4 wrapper %bcond_without cpp # disable cpp wrapper %bcond_without glib # disable glib wrapper # -%define cairo_ver 1.8.4 +%define cairo_ver 1.10.0 # Summary: PDF rendering library Summary(pl.UTF-8): Biblioteka renderująca PDF Name: poppler -Version: 0.14.4 +Version: 0.18.3 Release: 1 License: GPL v2+ Group: Libraries Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz -# Source0-md5: a40fe96e1115f648ce4689e667743530 +# Source0-md5: d70d2d63d8acd29c97185f7e5f09c9b4 URL: http://poppler.freedesktop.org/ %{?with_qt4:BuildRequires: QtGui-devel >= 4.4.0} %{?with_qt4:BuildRequires: QtTest-devel >= 4.4.0} @@ -25,20 +24,23 @@ URL: http://poppler.freedesktop.org/ BuildRequires: autoconf >= 2.59 BuildRequires: automake %{?with_cairo:BuildRequires: cairo-devel >= %{cairo_ver}} +BuildRequires: curl-devel BuildRequires: docbook-dtd412-xml BuildRequires: fontconfig-devel >= 2.0.0 BuildRequires: freetype-devel >= 2.0 BuildRequires: gettext-devel %{?with_glib:BuildRequires: glib2-devel >= 1:2.18.0} -%{?with_apidocs:BuildRequires: gtk-doc >= 1.0} +BuildRequires: gobject-introspection-devel >= 0.6.7 +%{?with_apidocs:BuildRequires: gtk-doc >= 1.14} BuildRequires: lcms-devel BuildRequires: libjpeg-devel +BuildRequires: libpng-devel BuildRequires: libstdc++-devel +BuildRequires: libtiff-devel BuildRequires: libtool >= 2:1.5 BuildRequires: libxml2-devel >= 2.0 BuildRequires: openjpeg-devel -BuildRequires: pkgconfig -%{?with_qt:BuildRequires: qt-devel >= 3.0} +BuildRequires: pkgconfig >= 1:0.18 %{?with_qt4:BuildRequires: qt4-build} BuildRequires: sed >= 4.0 BuildRequires: which @@ -58,11 +60,16 @@ Summary: Poppler header files Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Poppler Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Requires: curl-devel Requires: fontconfig-devel >= 2.0.0 Requires: freetype-devel >= 2.0 Requires: lcms-devel +Requires: libjpeg-devel +Requires: libpng-devel Requires: libstdc++-devel +Requires: libtiff-devel Requires: openjpeg-devel +Requires: zlib-devel %description devel Header files for the Poppler library. @@ -172,44 +179,6 @@ Static version of GLib wrapper for poppler. %description glib-static -l pl.UTF-8 Statyczna wersja wrappera GLib dla popplera. -%package qt -Summary: Qt wrapper for poppler -Summary(pl.UTF-8): Wrapper Qt dla popplera -Group: Libraries -Requires: %{name} = %{version}-%{release} - -%description qt -Qt wrapper for poppler. - -%description qt -l pl.UTF-8 -Wrapper Qt dla popplera. - -%package qt-devel -Summary: Header files for Qt wrapper for poppler -Summary(pl.UTF-8): Pliki nagłówkowe wrappera Qt dla popplera -Group: Development/Libraries -Requires: %{name}-devel = %{version}-%{release} -Requires: %{name}-qt = %{version}-%{release} -Requires: qt-devel - -%description qt-devel -Header files for Qt wrapper for poppler. - -%description qt-devel -l pl.UTF-8 -Pliki nagłówkowe wrappera Qt dla popplera. - -%package qt-static -Summary: Static version of Qt wrapper for poppler -Summary(pl.UTF-8): Statyczna wersja wrappera Qt dla popplera -Group: Development/Libraries -Requires: %{name}-qt-devel = %{version}-%{release} - -%description qt-static -Static version of Qt wrapper for poppler. - -%description qt-static -l pl.UTF-8 -Statyczna wersja wrappera Qt dla popplera. - %package Qt Summary: Qt4 wrapper for poppler Summary(pl.UTF-8): Wrapper Qt4 dla popplera @@ -217,6 +186,7 @@ Group: Libraries Requires: %{name} = %{version}-%{release} Requires: QtGui >= 4.4.0 Requires: QtXml >= 4.4.0 +Obsoletes: poppler-qt %description Qt Qt4 wrapper for poppler. @@ -232,6 +202,7 @@ Requires: %{name}-Qt = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} Requires: QtGui-devel >= 4.4.0 Requires: QtXml-devel >= 4.4.0 +Obsoletes: poppler-qt-devel %description Qt-devel Header files for Qt4 wrapper for poppler. @@ -244,6 +215,7 @@ Summary: Static version of Qt4 wrapper for poppler Summary(pl.UTF-8): Statyczna wersja wrappera Qt4 dla popplera Group: Development/Libraries Requires: %{name}-Qt-devel = %{version}-%{release} +Obsoletes: poppler-qt-static %description Qt-static Static version of Qt4 wrapper for poppler. @@ -263,23 +235,20 @@ Obsoletes: xpdf-tools %description progs Package contains utilites for PDF files. These utilities allow to -- extract information about PDF files -- extract images from PDF files -- convert PDF files to HTML, plain text and PS formats +- extract information about PDF files, +- extract images from PDF files, +- convert PDF files to HTML, plain text and PS formats. %description progs -l pl.UTF-8 Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają -- wyświetlanie informacji o plikach PDF -- wydobywanie obrazków z plików PDF +- wyświetlanie informacji o plikach PDF, +- wydobywanie obrazków z plików PDF, - konwersję plików PDF do formatów takich jak HTML, PS czy też - czystego tekstu + czystego tekstu. %prep %setup -q -# fix link with Qt 3 libraries -%{__sed} -i 's,(POPPLER_QT_LIBS),(libqt3_LIBS),' qt/Makefile.am - %build %{?with_apidocs:%{__gtkdocize}} %{__libtoolize} @@ -288,17 +257,14 @@ Pakiet zawiera zestaw narzędzi do plików PDF. Programy te umożliwiają %{__autoheader} %{__automake} %configure \ - QTINC=%{_includedir}/qt \ - QTLIB=%{_libdir} \ --disable-gtk-test \ + --enable-libcurl \ + %{?with_apidocs:--enable-gtk-doc} \ %{!?with_cairo:--disable-cairo-output} \ - %{!?with_qt:--disable-poppler-qt} \ - %{!?with_qt4:--disable-poppler-qt4} \ %{!?with_cpp:--disable-poppler-cpp} \ %{!?with_glib:--disable-poppler-glib} \ + %{!?with_qt4:--disable-poppler-qt4} \ --disable-silent-rules \ - --enable-a4-paper \ - %{?with_apidocs:--enable-gtk-doc} \ --enable-xpdf-headers \ --enable-zlib \ --enable-dependency-tracking \ @@ -314,9 +280,11 @@ rm -rf $RPM_BUILD_ROOT %if %{without apidocs} # why it still installs them, brr -rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler +%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler || : %endif +%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la + %clean rm -rf $RPM_BUILD_ROOT @@ -329,9 +297,6 @@ rm -rf $RPM_BUILD_ROOT %post glib -p /sbin/ldconfig %postun glib -p /sbin/ldconfig -%post qt -p /sbin/ldconfig -%postun qt -p /sbin/ldconfig - %post Qt -p /sbin/ldconfig %postun Qt -p /sbin/ldconfig @@ -339,19 +304,17 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README* TODO %attr(755,root,root) %{_libdir}/libpoppler.so.*.*.* -%attr(755,root,root) %ghost %{_libdir}/libpoppler.so.7 +%attr(755,root,root) %ghost %{_libdir}/libpoppler.so.19 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpoppler.so -%{_libdir}/libpoppler.la %dir %{_includedir}/poppler %{_includedir}/poppler/poppler-config.h -%{_includedir}/poppler/[ABCDEFGJLMNOPRSTUX]*.h +%{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h %{_includedir}/poppler/fofi %{_includedir}/poppler/goo %{_includedir}/poppler/splash -%exclude %{_includedir}/poppler/glib %{_pkgconfigdir}/poppler.pc %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc} %{_pkgconfigdir}/poppler-splash.pc @@ -375,7 +338,6 @@ rm -rf $RPM_BUILD_ROOT %files cpp-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpoppler-cpp.so -%{_libdir}/libpoppler-cpp.la %{_includedir}/poppler/cpp %{_pkgconfigdir}/poppler-cpp.pc @@ -388,38 +350,21 @@ rm -rf $RPM_BUILD_ROOT %files glib %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpoppler-glib.so.*.*.* -%attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.5 +%attr(755,root,root) %ghost %{_libdir}/libpoppler-glib.so.8 +%{_libdir}/girepository-1.0/Poppler-0.18.typelib %files glib-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpoppler-glib.so -%{_libdir}/libpoppler-glib.la %{_includedir}/poppler/glib %{_pkgconfigdir}/poppler-glib.pc +%{_datadir}/gir-1.0/Poppler-0.18.gir %files glib-static %defattr(644,root,root,755) %{_libdir}/libpoppler-glib.a %endif -%if %{with qt} -%files qt -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.* -%attr(755,root,root) %ghost %{_libdir}/libpoppler-qt.so.2 - -%files qt-devel -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/libpoppler-qt.so -%{_libdir}/libpoppler-qt.la -%{_includedir}/poppler/qt3 -%{_pkgconfigdir}/poppler-qt.pc - -%files qt-static -%defattr(644,root,root,755) -%{_libdir}/libpoppler-qt.a -%endif - %if %{with qt4} %files Qt %defattr(644,root,root,755) @@ -429,7 +374,6 @@ rm -rf $RPM_BUILD_ROOT %files Qt-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libpoppler-qt4.so -%{_libdir}/libpoppler-qt4.la %{_includedir}/poppler/qt4 %{_pkgconfigdir}/poppler-qt4.pc