]> git.pld-linux.org Git - packages/poppler.git/commitdiff
- qt bcond added
authorfreetz <freetz@pld-linux.org>
Sun, 24 Apr 2005 11:47:49 +0000 (11:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poppler.spec -> 1.11

poppler.spec

index 480f5e58ff374009ba86eb0ca18886136b7fd3d4..961ae59454ac876be7c0eaad3d51aa0266b655a7 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without cairo   # disable Cairo backend
+%bcond_without qt      # disable qt backend
 #
 Summary:       PDF rendering library
 Summary(pl):   Biblioteka renderujĀ±ca PDF
@@ -23,7 +24,7 @@ BuildRequires:        gtk+2-devel >= 2.0.0
 BuildRequires: libstdc++-devel
 BuildRequires: libtool >= 2:1.5
 BuildRequires: pkgconfig
-BuildRequires: qt-devel
+%{?with_qt:BuildRequires:      qt-devel}
 %{?with_cairo:Requires:        cairo >= 0.4.0}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -153,6 +154,7 @@ Statyczna wersja wrappera Qt dla popplera.
 %configure \
        QTLIB=%{_libdir} \
        %{!?with_cairo:--disable-cairo-output} \
+       %{!?with_qt:--disable-poppler-qt} \
        --enable-a4-paper
 %{__make}
 
@@ -185,7 +187,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libpoppler.la
 %{_includedir}/poppler
 %exclude %{_includedir}/poppler/glib
-%exclude %{_includedir}/poppler/poppler-qt.h
+%{?with_qt:%exclude %{_includedir}/poppler/poppler-qt.h}
 %{_pkgconfigdir}/poppler.pc
 %{?with_cairo:%{_pkgconfigdir}/poppler-cairo.pc}
 %{_pkgconfigdir}/poppler-splash.pc
@@ -209,6 +211,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libpoppler-glib.a
 
+%if %{with qt}
 %files qt
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libpoppler-qt.so.*.*.*
@@ -223,3 +226,4 @@ rm -rf $RPM_BUILD_ROOT
 %files qt-static
 %defattr(644,root,root,755)
 %{_libdir}/libpoppler-qt.a
+%endif
This page took 0.112082 seconds and 4 git commands to generate.