SHA256
3
0
forked from pool/perl

Accepting request 54168 from devel:languages:perl

Accepted submit request 54168 from user coolo

OBS-URL: https://build.opensuse.org/request/show/54168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl?expand=0&rev=53
This commit is contained in:
Marcus Rückert 2010-11-30 14:36:30 +00:00 committed by Git OBS Bridge
commit 9238e80278
2 changed files with 24 additions and 7 deletions

View File

@ -22,17 +22,24 @@
%perl_installarchlib %(perl -V:installarchlib | sed "s!.*='!!;s!'.*!!")
%perl_prefix %{buildroot}
# Macro to encapsulate perl requires (empty for fedora and suse > 11.3)
# we keep the complicated form even here to easy sync the other macros with
# perl-macros package
#
%perl_requires() \
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1700 \
Requires: perl = %{perl_version} \
%endif
# suse specific macros
#
%perl_make_install make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist(n:) \
if [ %{_target_cpu} == noarch ]; then \
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 rm ; \
find $RPM_BUILD_ROOT%perl_vendorarch/auto -depth -type d -print0 | xargs -0 -r rmdir ; \
else \
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 rm ; \
if test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT%perl_vendorarch/auto; then \
find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r rm \
if [ %{_target_cpu} == noarch ]; then \
find $RPM_BUILD_ROOT%perl_vendorarch/auto -depth -type d -print0 | xargs -0 -r rmdir \
fi \
fi \
rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod \
%nil

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Nov 30 10:23:06 UTC 2010 - coolo@novell.com
- added a new macro %perl_requires
-------------------------------------------------------------------
Mon Nov 29 15:20:19 UTC 2010 - coolo@novell.com
- simplify macro logic a bit
-------------------------------------------------------------------
Mon Nov 22 19:27:42 UTC 2010 - chris@computersalat.de