rpms/perl-Module-Info/devel Module-Info-filter-provides.sh, NONE, 1.1 perl-Module-Info.spec, 1.7, 1.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Author: steve

Update of /cvs/pkgs/rpms/perl-Module-Info/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17786

Modified Files:
	perl-Module-Info.spec 
Added Files:
	Module-Info-filter-provides.sh 
Log Message:
BR Test::Pod::Coverage.
Filter B::Utils auto-provides.



--- NEW FILE Module-Info-filter-provides.sh ---
#!/bin/sh

@@PERL_PROV@@ "$@" | sed -e '/^perl(B::Utils)/d'


Index: perl-Module-Info.spec
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Module-Info/devel/perl-Module-Info.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- perl-Module-Info.spec	28 Feb 2008 13:11:10 -0000	1.7
+++ perl-Module-Info.spec	17 Dec 2008 17:25:07 -0000	1.8
@@ -1,6 +1,6 @@
 Name:           perl-Module-Info
 Version:        0.31
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Information about Perl modules
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -10,10 +10,15 @@
 BuildArch:      noarch
 BuildRequires:  perl(Module::Build)
 BuildRequires:  perl(Test::Pod)
+BuildRequires:  perl(Test::Pod::Coverage)
 BuildRequires:  perl(version)
 Requires:       perl(version)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+Source99:       Module-Info-filter-provides.sh
+%global real_perl_provides %{__perl_provides}
+%define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-provides
+
 %description
 Module::Info gives you information about Perl modules without actually
 loading the module. It actually isn't specific to modules and should work
@@ -22,6 +27,9 @@
 %prep
 %setup -q -n Module-Info-%{version}
 
+sed -e 's,@@PERL_PROV@@,%{real_perl_provides},' %{SOURCE99} > %{__perl_provides}
+chmod +x %{__perl_provides}
+
 %build
 %{__perl} Build.PL installdirs=vendor
 ./Build
@@ -30,6 +38,7 @@
 rm -rf $RPM_BUILD_ROOT
 
 ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 
 %{_fixperms} $RPM_BUILD_ROOT/*
 
@@ -37,7 +46,7 @@
 ./Build test
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT %{__perl_provides}
 
 %files
 %defattr(-,root,root,-)
@@ -48,6 +57,10 @@
 %{_mandir}/man3/*
 
 %changelog
+* Wed Dec 17 2008 Steven Pritchard <steve@xxxxxxxxx> 0.31-4
+- BR Test::Pod::Coverage.
+- Filter B::Utils auto-provides.
+
 * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@xxxxxxxxxx> - 0.31-3
 - Rebuild for perl 5.10 (again)
 

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
Fedora-perl-devel-list mailing list
Fedora-perl-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-perl-devel-list

[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux