Author: remi
Update of /cvs/nonfree/rpms/pdflib-lite/F-9
In directory se02.es.rpmfusion.net:/tmp/cvs-serv22079
Modified Files:
sources
Added Files:
pdflib-lite-gcc43.patch pdflib-lite.spec
Log Message:
first
pdflib-lite-gcc43.patch:
--- NEW FILE pdflib-lite-gcc43.patch ---
diff -up bind/pdflib/cpp/pdflib.hpp.gcc43 bind/pdflib/cpp/pdflib.hpp
--- bind/pdflib/cpp/pdflib.hpp.gcc43 2008-02-28 10:43:00.000000000 +0100
+++ bind/pdflib/cpp/pdflib.hpp 2008-02-29 21:47:34.000000000 +0100
@@ -28,6 +28,8 @@
#endif
#include <string>
+#include <cstring>
+#include <cstdlib>
#include "pdflib.h"
#if defined(_MSC_VER) && defined(_MANAGED)
--- NEW FILE pdflib-lite.spec ---
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_include: %define python_include %(%{__python} -c "from
distutils.sysconfig import get_python_inc; print get_python_inc(0)")}
Summary: Portable C library for dynamically generating PDF files
Name: pdflib-lite
# Remenber to check the URL after changing this...
Version: 7.0.3
Release: 1%{?dist}
License: Distributable
Group: System Environment/Libraries
URL:
http://www.pdflib.com/
Source:
http://www.pdflib.com/binaries/PDFlib/703/PDFlib-Lite-%{version}.tar.gz
Patch0: pdflib-lite-gcc43.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
PDFlib is a development tool for PDF-enabling your software,
or generating PDF on your server. PDFlib offers a simple-to-use API
for programmatically creating PDF files from within your own server-
or client-side software. PDFlib doesn't make use of third-party software
for generating PDF, nor does it require any other tools.
%package devel
Summary: Development files for pdflib
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
PDFlib is a development tool for PDF-enabling your software,
or generating PDF on your server. PDFlib offers a simple-to-use API
for programmatically creating PDF files from within your own server-
or client-side software. PDFlib doesn't make use of third-party software
for generating PDF, nor does it require any other tools.
This package contains the files needed for compiling programs that will use
the PDFlib library.
%package python
Summary: Python shared library for pdflib
Group: System Environment/Libraries
BuildRequires: python-devel
Requires: %{name} = %{version}-%{release}
Provides: python-pdflib = %{version}-%{release}
%description python
PDFlib is a development tool for PDF-enabling your software,
or generating PDF on your server. PDFlib offers a simple-to-use API
for programmatically creating PDF files from within your own server-
or client-side software. PDFlib doesn't make use of third-party software
for generating PDF, nor does it require any other tools.
This package contains the library needed for python programs
that will use the PDFlib library.
%package perl
Summary: Perl shared library for pdflib
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))
Provides: perl-pdflib = %{version}-%{release}
%if 0%{?fedora} >= 7
BuildRequires: perl-devel
%endif
%description perl
PDFlib is a development tool for PDF-enabling your software,
or generating PDF on your server. PDFlib offers a simple-to-use API
for programmatically creating PDF files from within your own server-
or client-side software. PDFlib doesn't make use of third-party software
for generating PDF, nor does it require any other tools.
This package contains the library needed for perl programs
that will use the PDFlib library.
%prep
%setup -q -n PDFlib-Lite-%{version}
%patch0 -p0 -b .gcc43
sed -i -e 's,^PYTHONLIBDIR.*,PYTHONLIBDIR = %{python_sitearch},' \
-e 's,^PERLLIBDIR.*,PERLLIBDIR = %{perl_vendorarch},' \
config/mkcommon.inc.in
%build
# C, CPP, perl and python bindings enabled
# java, ruby and tcl disabled
# File a bug with RFE and patch if you need it
%configure \
--with-pyincl=%{python_include} \
--with-java=no \
--with-ruby=no \
--with-tcl=no \
--enable-large_files --enable-tiffwrite
# for x86_64 build
sed -i -e s@/usr/lib@%{_libdir}@ libtool
%{__make} %{?_smp_mflags}
%install
rm -rf %{buildroot} examples
mkdir -p %{buildroot}%{python_sitearch}
mkdir -p %{buildroot}%{perl_vendorarch}
make install DESTDIR=%{buildroot}
install -p -m 0644 bind/pdflib/cpp/pdflib.hpp %{buildroot}%{_includedir}/pdflib.hpp
rm %{buildroot}%{_libdir}/*.{la,a}
rm %{buildroot}%{python_sitearch}/*.{la,a}
rm %{buildroot}%{perl_vendorarch}/*.{la,a}
# require to extract debuginfo
chmod +x %{buildroot}%{_libdir}/libpdf*
chmod +x %{buildroot}%{python_sitearch}/pdflib_py.so*
chmod +x %{buildroot}%{perl_vendorarch}/pdflib_pl.so*
# Only sources
mkdir -p examples/{c,cpp,perl,php,python}
cp -r bind/pdflib/data examples/data
cp bind/pdflib/c/*.c \
bind/pdflib/c/Makefile \
bind/pdflib/c/readme.txt \
examples/c
cp bind/pdflib/cpp/*.cpp \
bind/pdflib/cpp/Makefile \
bind/pdflib/cpp/readme.txt \
examples/cpp
cp bind/pdflib/perl/*.pl \
bind/pdflib/perl/Makefile \
bind/pdflib/perl/readme.txt \
examples/perl
cp bind/pdflib/python/*.py \
bind/pdflib/python/Makefile \
bind/pdflib/python/readme.txt \
examples/python
cp bind/pdflib/php/*.php \
bind/pdflib/php/readme.txt \
examples/php
# overwrite the default php4 one
cp bind/pdflib/php/examples.php5/*.php \
examples/php
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root, -)
%doc readme.txt doc/pdflib/PDFlib-Lite-license.pdf
%{_bindir}/pdfimage
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root, -)
%doc doc/pdflib/PDFlib-Lite-license.pdf
%doc doc/pdflib/changes.txt doc/pdflib/compatibility.txt examples
%doc doc/pdflib/PDFlib-API-reference.pdf doc/pdflib/PDFlib-tutorial.pdf
doc/pdflib/readme-source-unix.txt
%{_bindir}/pdflib-config
%{_includedir}/*
%{_libdir}/*.so
%files python
%defattr(-, root, root, -)
%doc doc/pdflib/PDFlib-Lite-license.pdf
%{python_sitearch}/pdflib_py.so*
%files perl
%defattr(-, root, root, -)
%doc doc/pdflib/PDFlib-Lite-license.pdf
%{perl_vendorarch}/pdflib_pl.*
%changelog
* Fri Mar 28 2008 Remi Collet <Fedora(a)FamilleCollet.com> 7.0.3-1
- update to 7.0.3
- fix CVE-2007-6561: PDFlib stack-based buffer overflows
* Sat Mar 15 2008 Thorsten Leemhuis <fedora at leemhuis.info> 7.0.2p8-2
- rebuild for new perl
* Fri Feb 29 2008 Remi Collet <Fedora(a)FamilleCollet.com> 7.0.2p8-1
- update to 7.0.2p8
- del destdir.patch ("make install DESTDIR" is now ok)
- add gcc43.patch for Fedora 9
* Thu Aug 16 2007 Remi Collet <Fedora(a)FamilleCollet.com> 7.0.2-1
- Add BR perl-devel for fedora >= 7
* Thu Aug 16 2007 Remi Collet <Fedora(a)FamilleCollet.com> 7.0.2-1
- update to 7.0.2
* Thu Mar 15 2007 Remi Collet <Fedora(a)FamilleCollet.com> 7.0.1-1
- update to 7.0.1
* Mon Dec 18 2006 Remi Collet <Fedora(a)FamilleCollet.com> 7.0.0p3-3
- review for Livna
- Requires/BuildRequires cleanup
- Change License = Distributable, include PDFlib-Lite-license.pdf in sub-packages
- add --with-pyinc, python2.5 not defined in configure
- add some comments
* Sun Dec 10 2006 Remi Collet <Fedora(a)FamilleCollet.com> 7.0.0p3-2
- add python subpackage
- add perl subpackage
* Sat Dec 09 2006 Remi Collet <Fedora(a)FamilleCollet.com> 7.0.0p3-1
- initial release for Extras
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/pdflib-lite/F-9/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:40:53 -0000 1.1
+++ sources 26 Jul 2008 13:57:42 -0000 1.2
@@ -0,0 +1 @@
+97bcdd73206bae30b322f49d2c0d852b PDFlib-Lite-7.0.3.tar.gz