Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
PDFlib-Lite
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 49
[-]
[+]
Changed
PDFlib-Lite.spec
@@ -6,10 +6,8 @@ Summary: PDFlib Summary(de): PDFlib URL: http://www.pdflib.com/ -Source0: %{name}-%{version}.tar.gz +Source0: %{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}_perlvendor.diff -#Patch0: %{name}-%{version}.diff -#Patch1: %{name}-%{version}_configure.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build Packager: Carsten Schoene <cs@linux-administrator.com> Vendor: linux-administrator.com @@ -17,21 +15,42 @@ %if 0%{?fedora_version} >= 9 %define tcl_version %(echo 'puts [package require Tcl]' | tclsh | awk -F. '{print $1"."$2}') +%else +%define tcl_version %(echo 'puts [package require Tcl]' | tclsh) %endif %if 0%{?centos_version} >= 5 || 0%{?fedora_version} || 0%{?rhel_version} >= 500 BuildRequires: libtool-ltdl-devel %endif +# define extra macros %if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} %ifarch x86_64 -%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib | sed -e s@/lib@/lib64@g`"; echo $installvendorlib) +%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib | sed -e s@/lib@/lib64@g`"; echo $installvendorlib) %endif + +%define perl_process_packlist(n:) \ + mkdir -p $RPM_BUILD_ROOT/var/adm/perl-modules \ + test -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod && { sed -e "s@$RPM_BUILD_ROOT@@g" < $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod > $RPM_BUILD_ROOT/var/adm/perl-modules/%{-n:%{-n*}}%{!-n:%{name}} ; } ; \ + test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT/%perl_sitearch/auto && find $RPM_BUILD_ROOT/%perl_sitearch/auto -name .packlist -print0 | xargs -0 -r perl -spi -e "s@$RPM_BUILD_ROOT@@g" ; \ + test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT/%perl_vendorarch/auto && find $RPM_BUILD_ROOT/%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r perl -spi -e "s@$RPM_BUILD_ROOT@@g" ; \ + rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod \ + %nil + +#------------------------------------------------------------------------------ +# Python specific macro definitions (originally from PLD). +# +%define py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND) +%define py_prefix %(python -c "import sys; print sys.prefix" 2>/dev/null || echo PYTHON-NOT-FOUND) +%define py_libdir %{py_prefix}/%{_lib}/python%{py_ver} +%define py_incdir %{py_prefix}/include/python%{py_ver} +%define py_sitedir %{py_libdir}/site-packages + %endif %ifarch x86_64 %if 0%{?suse_version} -BuildRequires: glibc-devel-32bit +BuildRequires: glibc-devel-32bit glibc-32bit %endif %endif @@ -45,49 +64,189 @@ %description(de) PDFlib ist ein Entwicklungs-Tool, mit dem Sie Ihre Software PDF-fähig machen oder PDF dynamisch auf Ihrem Server generieren können. PDFlib erspart Ihnen die komplizierten Interna der PDF-Erzeugung und bietet statt dessen eine einfach anzuwendende Programmierschnittstelle, mit der Sie programmgesteuert PDF-Dateien aus Ihren Anwender- oder Serverprogrammen erzeugen können. PDFlib verwendet oder erfordert keine zur PDF-Erzeugung keinerlei Zusatz-Software oder andere Tools. +%files +%defattr(-,root,root,-) +%{_bindir}/pdfimage +%doc doc/* + +###################################################################### +%package -n libpdf6 +Summary: %{name} library files +Group: Development/Libraries + +%description -n libpdf6 +%{name} library files + +%post -n libpdf6 -p /sbin/ldconfig + +%postun -n libpdf6 -p /sbin/ldconfig + +%files -n libpdf6 +%defattr(-,root,root,-) +%{_libdir}/libpdf.so +%{_libdir}/libpdf.so.6* + + ###################################################################### -%package devel +%package -n libpdf6-devel Summary: %{name} development files Group: Development/Libraries -Requires: %{name} +Requires: libpdf6 -%description devel +%description -n libpdf6-devel %{name} development files (includes & extra libs) +%files -n libpdf6-devel +%defattr(-,root,root,-) +%{_libdir}/libpdf.a +%{_libdir}/libpdf.la +%{_prefix}/include/pdflib.h +%{_bindir}/pdflib-config +%doc doc/* + ###################################################################### %package perl Summary: %{name} for Perl Group: Development/Libraries -Requires: %{name}, perl +Requires: perl %description perl %{name} Perl Extension +%files perl +%defattr(-,root,root,-) +%{perl_vendorlib}/pdflib_pl.so* +%{perl_vendorlib}/pdflib_pl.pm + + +###################################################################### +%package perl-devel +Summary: %{name} for Perl development files +Group: Development/Libraries +Requires: %{name}-perl + +%description perl-devel +%{name} Perl Extension development files + +%files perl-devel +%defattr(-,root,root,-) +%{perl_vendorlib}/pdflib_pl.a +%{perl_vendorlib}/pdflib_pl.la + ###################################################################### %package tcl Summary: %{name} for TCL Group: Development/Libraries -Requires: %{name}, tcl +Requires: tcl %description tcl %{name} TCL Extension +%files tcl +%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} +%defattr(-,root,root,-) +%{_prefix}/share/tcl%{tcl_version}/pdflib/pdflib_tcl.so +%{_prefix}/share/tcl%{tcl_version}/pdflib/pdflib_tcl.so.0 +%{_prefix}/share/tcl%{tcl_version}/pdflib/pdflib_tcl.so.0.0.0 +%{_prefix}/share/tcl%{tcl_version}/pdflib/pkgIndex.tcl +%endif + +%if 0%{?suse_version} == 930 || 0%{?sles_version} == 9 +%defattr(-,root,root,-) +%dir %{_prefix}/%{_lib}/tcl%{tcl_version}/pdflib +%{_prefix}/%{_lib}/tcl%{tcl_version}/pdflib/pdflib_tcl.so +%{_prefix}/%{_lib}/tcl%{tcl_version}/pdflib/pdflib_tcl.so.0 +%{_prefix}/%{_lib}/tcl%{tcl_version}/pdflib/pdflib_tcl.so.0.0.0 +%{_prefix}/%{_lib}/tcl%{tcl_version}/pdflib/pkgIndex.tcl +%endif + +%if 0%{?suse_version} > 930 && 0%{?suse_version} <= 1030 +%defattr(-,root,root,-) +%dir %{_prefix}/share/tcl/tcl%{tcl_version}/pdflib +%{_prefix}/share/tcl/tcl%{tcl_version}/pdflib/pdflib_tcl.so* +%{_prefix}/share/tcl/tcl%{tcl_version}/pdflib/pkgIndex.tcl +%endif + +%if 0%{?suse_version} >= 1100 +%defattr(-,root,root,-) +#%dir %{_libdir}/tcl/tcl%{tcl_version}/pdflib +%{_libdir}/tcl/tcl%{tcl_version}/pdflib/pdflib_tcl.so +%{_libdir}/tcl/tcl%{tcl_version}/pdflib/pdflib_tcl.so.0 +%{_libdir}/tcl/tcl%{tcl_version}/pdflib/pdflib_tcl.so.0.0.0 +%{_libdir}/tcl/tcl%{tcl_version}/pdflib/pkgIndex.tcl +%endif + + +###################################################################### +%package tcl-devel +Summary: %{name} for TCL development files +Group: Development/Libraries +Requires: %{name}-tcl + +%description tcl-devel +%{name} TCL Extension development files + +%files tcl-devel +%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} +%defattr(-,root,root,-) +%{_prefix}/share/tcl%{tcl_version}/pdflib/pdflib_tcl.a +%{_prefix}/share/tcl%{tcl_version}/pdflib/pdflib_tcl.la +%endif + +%if 0%{?suse_version} == 930 || 0%{?sles_version} == 9 +%defattr(-,root,root,-) +%{_prefix}/%{_lib}/tcl%{tcl_version}/pdflib/pdflib_tcl.a
Renamed
PDFlib-Lite-7.0.3.tar.bz2
^