Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
# Sensible Perl-specific RPM build macros.
2
#
3
# Note that these depend on the generic filtering system being in place in
4
# rpm core; but won't cause a build to fail if they're not present.
5
#
6
# Chris Weyl <cweyl@alumni.drew.edu> 2009
7
 
8
# keep track of what "revision" of the filtering we're at.  Each time we
9
# change the filter we should increment this.
10
 
11
%perl_default_filter_revision 2
12
 
13
# By default, for perl packages we want to filter all files in _docdir from
14
# req/prov scanning, as well as filtering out any provides caused by private
15
# libs in vendorarch/archlib (vendor/core).
16
#
17
# Note that this must be invoked in the spec file, preferably as
18
# "%{?perl_default_filter}", before any %description block.
19
 
20
%perl_default_filter %{?filter_setup: %{expand: \
21
%filter_provides_in %{perl_vendorarch}/.*\\.so$ \
22
%filter_provides_in -P %{perl_archlib}/(?!CORE/libperl).*\\.so$ \
23
%filter_from_provides /perl(UNIVERSAL)/d; /perl(DB)/d \
24
%filter_provides_in %{_docdir} \
25
%filter_requires_in %{_docdir} \
26
%filter_setup \
27
}}
28