Changes of Revision 10
[-] | Changed | PDFlib-Lite.spec |
x 1
2 URL: http://www.pdflib.com/ 3 Source0: %{name}-%{version}.tar.gz 4 Patch0: %{name}-%{version}.diff 5 +Patch1: %{name}-%{version}_configure.diff 6 BuildRoot: %{_tmppath}/%{name}-%{version}-build 7 Packager: Carsten Schoene <cs@linux-administrator.com> 8 Vendor: linux-administrator.com 9
10 %endif 11 %endif 12 13 +%if 0%{?fedora_version} 14 +BuildRequires: perl-devel 15 +%endif 16 + 17 %description 18 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. 19 20
21 %prep 22 %setup -q 23 %patch -p1 24 - 25 +%patch1 -p1 26 %configure --enable-cxx \ 27 --with-perl=%{_bindir}/perl \ 28 --with-py=%{_bindir} \ 29
30 %{_libdir}/libpdf.so 31 %{_libdir}/libpdf.so.6* 32 %doc doc/* 33 -%doc bind/pdflib 34 35 %files perl 36 %defattr(-,root,root,-) 37
38 %{perl_sitelib}/pdflib_pl.la 39 %{perl_sitelib}/pdflib_pl.so* 40 %ifarch %ix86 41 -%{perl_sitelib}/i586-linux-thread-multi 42 +%{perl_sitelib}/i*86-linux-thread-multi 43 %endif 44 %ifarch x86_64 45 %{perl_sitelib}/x86_64-linux-thread-multi 46
47 48 %else 49 50 +%if 0%{?fedora_version} || 0%{?centos_version} 51 + 52 +%files tcl 53 +%defattr(-,root,root,-) 54 +%dir %{_prefix}/share/tcl%{tcl_version}/pdflib 55 +%{_prefix}/share/tcl%{tcl_version}/pdflib/pdflib_tcl.a 56 +%{_prefix}/share/tcl%{tcl_version}/pdflib/pdflib_tcl.la 57 +%{_prefix}/share/tcl%{tcl_version}/pdflib/pdflib_tcl.so* 58 +%{_prefix}/share/tcl%{tcl_version}/pdflib/pkgIndex.tcl 59 + 60 +%else 61 + 62 %files tcl 63 %defattr(-,root,root,-) 64 %dir %{_prefix}/share/tcl/tcl%{tcl_version}/pdflib 65
66 %{_prefix}/share/tcl/tcl%{tcl_version}/pdflib/pkgIndex.tcl 67 68 %endif 69 +%endif 70 71 %changelog 72 * Wed Sep 12 2007 Carsten Schoene <cs@linux-administrator.com> 73 |
||
[+] | Added | PDFlib-Lite-7.0.2_configure.diff ^ |
@@ -0,0 +1,26 @@ +--- PDFlib-Lite-7.0.2/configure.orig 2007-12-24 16:30:51.000000000 +0100 ++++ PDFlib-Lite-7.0.2/configure 2007-12-24 16:32:35.000000000 +0100 +@@ -8502,6 +8502,10 @@ + echo $ECHO_N "checking for Python header files... $ECHO_C" >&6 + + dirs="$PYINCLUDE \ ++ $PYINCLUDE/python2.5 \ ++ $prefix/include/python2.5 \ ++ /usr/local/include/python2.5 \ ++ /usr/include/python2.5 \ + $PYINCLUDE/python2.4 \ + $prefix/include/python2.4 \ + /usr/local/include/python2.4 \ +--- PDFlib-Lite-7.0.2/configure.in.orig 2007-12-24 16:35:28.000000000 +0100 ++++ PDFlib-Lite-7.0.2/configure.in 2007-12-24 16:35:31.000000000 +0100 +@@ -694,6 +694,10 @@ + AC_MSG_CHECKING(for Python header files) + + dirs="$PYINCLUDE \ ++ $PYINCLUDE/python2.5 \ ++ $prefix/include/python2.5 \ ++ /usr/local/include/python2.5 \ ++ /usr/include/python2.5 \ + $PYINCLUDE/python2.4 \ + $prefix/include/python2.4 \ + /usr/local/include/python2.4 \ |