2009-08-28 05:39:58 +00:00
|
|
|
# Sensible Perl-specific RPM build macros.
|
2009-08-23 18:16:14 +00:00
|
|
|
#
|
|
|
|
# Note that these depend on the generic filtering system being in place in
|
2009-08-28 05:39:58 +00:00
|
|
|
# rpm core; but won't cause a build to fail if they're not present.
|
2009-08-23 18:16:14 +00:00
|
|
|
#
|
|
|
|
# Chris Weyl <cweyl@alumni.drew.edu> 2009
|
|
|
|
|
2009-10-01 14:41:53 +00:00
|
|
|
# keep track of what "revision" of the filtering we're at. Each time we
|
|
|
|
# change the filter we should increment this.
|
|
|
|
|
|
|
|
%perl_default_filter_revision 2
|
|
|
|
|
2009-08-23 18:16:14 +00:00
|
|
|
# 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
|
2009-08-28 05:39:58 +00:00
|
|
|
# libs in vendorarch/archlib (vendor/core).
|
2009-08-23 18:16:14 +00:00
|
|
|
#
|
2009-08-28 05:39:58 +00:00
|
|
|
# Note that this must be invoked in the spec file, preferably as
|
|
|
|
# "%{?perl_default_filter}", before any %description block.
|
2009-08-23 18:16:14 +00:00
|
|
|
|
2009-08-28 05:39:58 +00:00
|
|
|
%perl_default_filter %{?filter_setup: %{expand: \
|
2009-08-23 18:16:14 +00:00
|
|
|
%filter_provides_in %{perl_vendorarch}/.*\\.so$ \
|
|
|
|
%filter_provides_in -P %{perl_archlib}/(?!CORE/libperl).*\\.so$ \
|
2009-10-01 14:41:53 +00:00
|
|
|
%filter_from_provides /perl(UNIVERSAL)/d; /perl(DB)/d \
|
2009-08-23 18:16:14 +00:00
|
|
|
%filter_provides_in %{_docdir} \
|
|
|
|
%filter_requires_in %{_docdir} \
|
|
|
|
%filter_setup \
|
2009-08-28 05:39:58 +00:00
|
|
|
}}
|
2009-08-23 18:16:14 +00:00
|
|
|
|