%define perl_vendorarch %(perl -MConfig -le 'print $Config{vendorarchexp}') Summary: A library for processing PDF on the fly Name: PDFlib-Lite Version: 6.0.1 Release: 2 Source0: http://www.pdflib.com/products/pdflib/download/601src/%{name}-%{version}.tar.gz License: free for non-profit personal use Group: Development/Libraries URL: http://www.pdflib.com/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Conflicts: PDFlib %description PDFlib is a development tool for PDF-enabling your software, or generating PDF on your server. PDFlib saves you the intricate details of PDF generation by offering 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: %{name} development libraries and header files Group: Development/Libraries Requires: %{name} = %{version} %description devel PDFlib is a development tool for PDF-enabling your software, or generating PDF on your server. PDFlib saves you the intricate details of PDF generation by offering 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 libraries and include files that you can use to develop PDFlib applications. %package perl Summary: Perl bindings for %{name} Group: Development/Libraries Requires: %{name} = %{version} Requires: %(perl -MConfig -le '$out = $Config{useithreads} ? "" : "OUT"; print "perl(:WITH${out}_ITHREADS)"') Requires: %(perl -MConfig -le '$out = $Config{usethreads} ? "" : "OUT"; print "perl(:WITH${out}_THREADS)"') Requires: %(perl -MConfig -le '$out = $Config{uselargefiles} ? "" : "OUT"; print "perl(:WITH${out}_LARGEFILES)"') Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) %description perl PDFlib is a development tool for PDF-enabling your software, or generating PDF on your server. PDFlib saves you the intricate details of PDF generation by offering 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 Perl bindings for %{name}. %prep %setup %build %configure \ --with-perl=%{__perl} \ --with-py=no \ --with-java=no \ --with-tcl=no \ --enable-static=no \ --enable-large_files make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} export PERLLIBDIR=${RPM_BUILD_ROOT}%{perl_vendorarch} mkdir -p $RPM_BUILD_ROOT%{_bindir} ${PERLLIBDIR} %{makeinstall} -e %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %{_libdir}/libpdf.so.* %doc doc/* %files devel %defattr(-, root, root) %{_bindir}/* %{_includedir}/* %{_libdir}/*.so %exclude %{_libdir}/libpdf.la %files perl %defattr(-, root, root) %{perl_vendorarch}/*.pm %{perl_vendorarch}/*.so* %exclude %{perl_vendorarch}/*.la %changelog * Sat Apr 09 2005 Scott R. Shinn - initial import into archive * Thu Jan 20 2005 Marius FERARU 6.0.1-1.n0i.1 - initial packaging attempt