- add helper filtering macros to -devel, for perl-* package invocation

(#502402)
This commit is contained in:
Chris Weyl 2009-08-23 18:16:14 +00:00
parent ff89a5e4ee
commit b251c5341a
2 changed files with 35 additions and 1 deletions

21
macros.perl Normal file
View File

@ -0,0 +1,21 @@
# Sensible Perl-specific RPM build macros
#
# Note that these depend on the generic filtering system being in place in
# rpm core.
#
# Chris Weyl <cweyl@alumni.drew.edu> 2009
# By default, for perl packages we want to filter all files in _docdir from
# req/prov scanning, as well as filtering out any provides caused by private
# libs in vendorarch/archlib (vendor/core)
#
# This should also give a good sense of how to use these macros.
%define perl_default_filter %{expand: \
%filter_provides_in %{perl_vendorarch}/.*\\.so$ \
%filter_provides_in -P %{perl_archlib}/(?!CORE/libperl).*\\.so$ \
%filter_provides_in %{_docdir} \
%filter_requires_in %{_docdir} \
%filter_setup \
}

View File

@ -7,7 +7,7 @@
Name: perl
Version: %{perl_version}
Release: 78%{?dist}
Release: 79%{?dist}
Epoch: %{perl_epoch}
Summary: Practical Extraction and Report Language
Group: Development/Languages
@ -18,6 +18,7 @@ Url: http://www.perl.org/
Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/perl-%{perl_version}.tar.gz
Source11: filter-requires.sh
Source12: perl-5.8.0-libnet.cfg
Source13: macros.perl
# Specific to Fedora/RHEL
Patch1: perl-5.8.0-root.patch
@ -1188,6 +1189,13 @@ done
#
install -p -m 644 %{SOURCE12} %{comp_perl_lib}/Net/libnet.cfg
#
# perl RPM macros
#
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/rpm
install -p -m 644 %{SOURCE13} ${RPM_BUILD_ROOT}%{_sysconfdir}/rpm/
#
# Core modules removal
#
@ -1630,6 +1638,7 @@ TMPDIR="$PWD/tmp" make test
%{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/*.h
%{_bindir}/xsubpp
%{_mandir}/man1/xsubpp*
%{_sysconfdir}/rpm/macros.perl
%files suidperl
%defattr(-,root,root,-)
@ -1930,6 +1939,10 @@ TMPDIR="$PWD/tmp" make test
# Old changelog entries are preserved in CVS.
%changelog
* Fri Aug 21 2009 Chris Weyl <cweyl@alumni.drew.edu> - 4:5.10.0-79
- add helper filtering macros to -devel, for perl-* package invocation
(#502402)
* Fri Jul 31 2009 Stepan Kasal <skasal@redhat.com> - 4:5.10.0-78
- Add configure option -DDEBUGGING=-g (#156113)