]> git.pld-linux.org Git - packages/poppler0.61.git/blobdiff - poppler.spec
- Up to 0.18.3
[packages/poppler0.61.git] / poppler.spec
index c81562891f1536c39cc2e7165b49319e35816cde..8457bc4db69eadafe7ed27ecf673c6fbc849aa30 100644 (file)
@@ -2,7 +2,6 @@
 # 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
 Summary:       PDF rendering library
 Summary(pl.UTF-8):     Biblioteka renderująca PDF
 Name:          poppler
-Version:       0.16.3
-Release:       2
+Version:       0.18.3
+Release:       1
 License:       GPL v2+
 Group:         Libraries
 Source0:       http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
-# Source0-md5: 42227f1a1498089213a07533596b22f4
+# 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,6 +24,7 @@ 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
@@ -34,12 +34,13 @@ 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 >= 1:0.18
-%{?with_qt:BuildRequires:      qt-devel >= 3.0}
 %{?with_qt4:BuildRequires:     qt4-build}
 BuildRequires: sed >= 4.0
 BuildRequires: which
@@ -59,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.
@@ -173,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
@@ -218,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.
@@ -233,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.
@@ -245,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.
@@ -264,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}
@@ -289,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 \
@@ -315,7 +280,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{without apidocs}
 # why it still installs them, brr
-%{__rm} -r $RPM_BUILD_ROOT%{_gtkdocdir}/poppler
+%{__rm} -rf $RPM_BUILD_ROOT%{_gtkdocdir}/poppler || :
 %endif
 
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
@@ -332,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
 
@@ -342,14 +304,14 @@ 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.13
+%attr(755,root,root) %ghost %{_libdir}/libpoppler.so.19
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libpoppler.so
 %dir %{_includedir}/poppler
 %{_includedir}/poppler/poppler-config.h
-%{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUX]*.h
+%{_includedir}/poppler/[ABCDEFGHJLMNOPRSTUVX]*.h
 %{_includedir}/poppler/fofi
 %{_includedir}/poppler/goo
 %{_includedir}/poppler/splash
@@ -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.6
-%{_libdir}/girepository-1.0/Poppler-0.16.typelib
+%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
 %{_includedir}/poppler/glib
 %{_pkgconfigdir}/poppler-glib.pc
-%{_datadir}/gir-1.0/Poppler-0.16.gir
+%{_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.3
-
-%files qt-devel
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libpoppler-qt.so
-%{_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)
This page took 0.076291 seconds and 4 git commands to generate.