#
# spec file for package poppler
#
# Copyright (c) 2010 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# bugdb: bugzilla.freedesktop.org
#
Release: 1
# date:2009-04-20 type:bug owner:dkenny bugster:6685564
# date:2009-08-30 type:bug owner:dkenny
# date:2010-01-14 type:bug owner:gheet doo:13889
# date:2011-07-14 type:branding owner:gheet bugster:7059720
very few libraries and runs a wide range of X based platforms. This
is a strong feature and reasonable design goal. However, with poppler
we would like to replace parts of xpdf that are now available as
standard components of modern Unix desktop environments. One such
example is fontconfig, which solves the problem of matching and
locating fonts on the system, in a standardized and well understood
way. Another example is cairo, which provides high quality 2D
rendering.
%package devel
Summary: PDF Rendering Library
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: cairo-devel >= %{cairo_version}
Requires: gtk2-devel >= %{gtk2_version}
%description devel
Poppler is a fork of the xpdf PDF viewer developed by Derek Noonburg
of Glyph and Cog, LLC. The purpose of forking xpdf is twofold.
First, we want to provide PDF rendering functionality as a shared
library, to centralize the maintenence effort. Today a number of
applications incorporate the xpdf code base, and whenever a security
issue is discovered, all these applications exchange patches and put
out new releases. In turn, all distributions must package and release
there's a lot of duplicated effort with the current situaion. Even if
poppler in the short term introduces yet another xpdf derived code
base to the world, we hope that over time these applications will
adopt poppler. After all, we only need one application to use poppler
to break even.
Second, we would like to move libpoppler forward in a number of areas
%prep
%setup -q
%if %cc_is_gcc
%else
fi
%else
CPUS=1
fi
# create dummy config.rpath required by AC_REQUIRE_AUX_FILE
# otherwise automake complains and fails.
automake -a -c -f
CFLAGS="$RPM_OPT_FLAGS" \
--sysconfdir=%{_sysconfdir} \
#Workaround a bug in libtool where it's using -Qoption to pass arguments
#to ld, which causes the build to fail. See bugster#6877423.
%if %cc_is_gcc
%else
%post
%{_bindir}
%{_includedir}/poppler/