# # Conditional build: %bcond_without cairo # disable Cairo backend # Summary: PDF rendering library Summary(pl): Biblioteka renderująca PDF Name: poppler Version: 0.1.2 Release: 1 License: GPL Group: Libraries Source0: http://poppler.freedesktop.org/%{name}-%{version}.tar.gz # Source0-md5: d169c24c11eb74baaf3be6aa87cd3fbb Patch0: %{name}-link.patch URL: http://poppler.freedesktop.org/ BuildRequires: autoconf >= 2.59 BuildRequires: automake %{?with_cairo:BuildRequires: cairo-devel >= 0.4.0} BuildRequires: fontconfig-devel BuildRequires: freetype-devel >= 2.0 BuildRequires: libstdc++-devel BuildRequires: libtool >= 2:1.5 BuildRequires: pkgconfig %{?with_cairo:Requires: cairo >= 0.4.0} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description A common PDF rendering library for integrating PDF viewing into desktop applications (based on the xpdf-3.0 code base). %description -l pl Wspólna biblioteka renderująca PDF do integrowania oglądania PDF w aplikacjach desktopowych (oparta na kodzie xpdf-3.0). %package devel Summary: Poppler header files Summary(pl): Pliki nagłówkowe biblioteki Poppler Group: Development/Libraries Requires: %{name} = %{version}-%{release} %{?with_cairo:Requires: cairo-devel >= 0.3.0} Requires: fontconfig-devel Requires: freetype-devel >= 2.0 Requires: libstdc++-devel %description devel Header files for the Poppler library. %description devel -l pl Pliki nagłówkowe biblioteki Poppler. %package static Summary: Poppler static libraries Summary(pl): Statyczne biblioteki Poppler Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static Poppler static libraries. %description static -l pl Statyczne biblioteki Poppler. %prep %setup -q %patch0 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} %configure \ %{!?with_cairo:--disable-cairo-output} \ --enable-a4-paper %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README* TODO %attr(755,root,root) %{_libdir}/lib*.so.*.* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so %{_libdir}/lib*.la %{_includedir}/poppler %{_pkgconfigdir}/*.pc %files static %defattr(644,root,root,755) %{_libdir}/lib*.a