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 52
[-]
[+]
Changed
PDFlib-Lite.spec
@@ -13,10 +13,8 @@ Vendor: linux-administrator.com BuildRequires: tcl-devel python-devel perl gcc-c++ openssl-devel glibc glibc-devel libgcc gcc libtiff-devel -%if 0%{?fedora_version} >= 9 +%if 0%{?fedora_version} >= 9 || 0%{?suse_version} >= 1100 %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 @@ -28,30 +26,6 @@ %ifarch x86_64 %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 - -%if 0%{?suse_version} >= 1100 -%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 - %endif %ifarch x86_64