# - where to install libpdf_java.so? %{_libdir} does not seem to be good
# choice. BTW what is standard java.library.path in other distros?
# - do we really need to package libpdf_(binding).so.*? libpdf_(binding).so
-# should be enough for python, perl and tcl.
+# should be enough for python, perl and tcl. -- patch linking with -avoid-version
+# - fix install so that executable perms are preserved
#
# Conditional build:
%bcond_without java # Java binding
Summary(pl.UTF-8): Przenośna biblioteka C do dynamicznego generowania plików PDF
Name: pdflib
Version: 4.0.3
-Release: 21
+Release: 33
License: Aladdin Free Public License
Group: Libraries
Source0: %{name}-%{version}.tar.gz
Patch4: %{name}-ac.patch
Patch5: %{name}-build.patch
Patch6: %{name}-libpng.patch
+Patch7: format-security.patch
URL: http://www.pdflib.com/
BuildRequires: autoconf
BuildRequires: automake
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%configure \
+ CFLAGS="-DUSE_INTERP_RESULT %{rpmcflags}" \
--enable-cxx \
--enable-shared-pdflib \
%{?with_java:--with-java=%{java_home}}%{!?with_java:--without-java} \