rpms/perl-IO-All/FC-4 IO-All-filter-requires.sh, NONE, 1.1 perl-IO-All.spec, 1.1, 1.2

Steven Pritchard (steve) fedora-extras-commits at redhat.com
Fri Mar 10 22:47:24 UTC 2006


Author: steve

Update of /cvs/extras/rpms/perl-IO-All/FC-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11599

Modified Files:
	perl-IO-All.spec 
Added Files:
	IO-All-filter-requires.sh 
Log Message:
Change dep filter.
Various cleanups to match current cpanspec.



--- NEW FILE IO-All-filter-requires.sh ---
#!/bin/sh

@@PERL_REQ@@ "$@" | sed -e '/^perl(mixin)$/d'


Index: perl-IO-All.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-IO-All/FC-4/perl-IO-All.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- perl-IO-All.spec	3 Mar 2006 01:22:22 -0000	1.1
+++ perl-IO-All.spec	10 Mar 2006 22:47:24 -0000	1.2
@@ -1,17 +1,21 @@
 Name:           perl-IO-All
 Version:        0.33
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        IO::All Perl module
 License:        GPL or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/IO-All/
-Source0:        http://www.cpan.org/modules/by-module/IO/IO-All-%{version}.tar.gz
+Source0:        http://www.cpan.org/authors/id/I/IN/INGY/IO-All-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(Spiffy) >= 0.21
 Requires:       perl(Spiffy) >= 0.21
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+Source98:       IO-All-filter-requires.sh
+%global real_perl_requires %{__perl_requires}
+%define __perl_requires %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-requires
+
 %description
 The IO::All object is a proxy for IO::File, IO::Dir, IO::Socket,
 IO::String, Tie::File, File::Spec, File::Path and File::ReadBackwards; as
@@ -23,11 +27,7 @@
 %prep
 %setup -q -n IO-All-%{version}
 
-cat <<EOF > $RPM_SOURCE_DIR/%{name}-req
-#!/bin/sh
-%{__perl_requires} $* | sed -e '/^perl(mixin)$/d'
-EOF
-%define __perl_requires %{_sourcedir}/%{name}-req
+sed -e 's,@@PERL_REQ@@,%{real_perl_requires},' %{SOURCE98} > %{__perl_requires}
 chmod +x %{__perl_requires}
 
 %build
@@ -44,22 +44,23 @@
 
 chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
 
-perldoc -t perlgpl > COPYING
-perldoc -t perlartistic > Artistic
-
 %check
 %{?_with_check:make test}
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT %{__perl_requires}
 
 %files
 %defattr(-,root,root,-)
-%doc Changes README COPYING Artistic
+%doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Fri Mar 10 2006 Steven Pritchard <steve at kspei.com> 0.33-3
+- Change dep filter.
+- Various cleanups to match current cpanspec.
+
 * Mon Feb 27 2006 Steven Pritchard <steve at kspei.com> 0.33-2
 - Filter Requires: perl(mixin).
 - Turn off "make test" for now.




More information about the fedora-extras-commits mailing list