- add helper filtering macros to -devel, for perl-* package invocation
(#502402)
This commit is contained in:
parent
ff89a5e4ee
commit
b251c5341a
21
macros.perl
Normal file
21
macros.perl
Normal 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 \
|
||||||
|
}
|
||||||
|
|
15
perl.spec
15
perl.spec
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
Name: perl
|
Name: perl
|
||||||
Version: %{perl_version}
|
Version: %{perl_version}
|
||||||
Release: 78%{?dist}
|
Release: 79%{?dist}
|
||||||
Epoch: %{perl_epoch}
|
Epoch: %{perl_epoch}
|
||||||
Summary: Practical Extraction and Report Language
|
Summary: Practical Extraction and Report Language
|
||||||
Group: Development/Languages
|
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
|
Source0: http://search.cpan.org/CPAN/authors/id/R/RG/RGARCIA/perl-%{perl_version}.tar.gz
|
||||||
Source11: filter-requires.sh
|
Source11: filter-requires.sh
|
||||||
Source12: perl-5.8.0-libnet.cfg
|
Source12: perl-5.8.0-libnet.cfg
|
||||||
|
Source13: macros.perl
|
||||||
|
|
||||||
# Specific to Fedora/RHEL
|
# Specific to Fedora/RHEL
|
||||||
Patch1: perl-5.8.0-root.patch
|
Patch1: perl-5.8.0-root.patch
|
||||||
@ -1188,6 +1189,13 @@ done
|
|||||||
#
|
#
|
||||||
install -p -m 644 %{SOURCE12} %{comp_perl_lib}/Net/libnet.cfg
|
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
|
# Core modules removal
|
||||||
#
|
#
|
||||||
@ -1630,6 +1638,7 @@ TMPDIR="$PWD/tmp" make test
|
|||||||
%{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/*.h
|
%{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/*.h
|
||||||
%{_bindir}/xsubpp
|
%{_bindir}/xsubpp
|
||||||
%{_mandir}/man1/xsubpp*
|
%{_mandir}/man1/xsubpp*
|
||||||
|
%{_sysconfdir}/rpm/macros.perl
|
||||||
|
|
||||||
%files suidperl
|
%files suidperl
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -1930,6 +1939,10 @@ TMPDIR="$PWD/tmp" make test
|
|||||||
|
|
||||||
# Old changelog entries are preserved in CVS.
|
# Old changelog entries are preserved in CVS.
|
||||||
%changelog
|
%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
|
* Fri Jul 31 2009 Stepan Kasal <skasal@redhat.com> - 4:5.10.0-78
|
||||||
- Add configure option -DDEBUGGING=-g (#156113)
|
- Add configure option -DDEBUGGING=-g (#156113)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user