- use filtering macros

epel9
Štěpán Kasal 15 years ago
parent a50ad69a2d
commit 5da28251d0

@ -1,6 +1,6 @@
Name: perl-AppConfig
Version: 1.66
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Perl module for reading configuration files
Group: Development/Libraries
@ -23,18 +23,16 @@ Vromans' extensive Getopt::Long module. Johan will continue to
develop the functionality of this package and its features will
automatically become available through AppConfig.
# filter out the unversioned provide AppConfig::State from Getopt.pm:
%{?filter_setup:
%filter_from_provides /^perl(AppConfig::State)$/d
%?perl_default_filter
}
%prep
%setup -q -n AppConfig-%{version}
# Provides: exclude perl(AppConfig::State)
cat <<__EOF__ > %{name}-perl.prov
#!/bin/sh
/usr/lib/rpm/perl.prov \$* | grep -v '^perl(AppConfig::State)$'
__EOF__
%define __perl_provides %{_builddir}/AppConfig-%{version}/%{name}-perl.prov
chmod +x %{__perl_provides}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@ -45,7 +43,7 @@ make %{?_smp_mflags}
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir {} ';'
chmod -R u+w $RPM_BUILD_ROOT/*
@ -65,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Jan 25 2010 Stepan Kasal <skasal@redhat.com> - 1.66-7
- use filtering macros
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.66-6
- rebuild against perl 5.10.1

Loading…
Cancel
Save