diff --git a/.cvsignore b/.cvsignore index e69de29..bc8bbaa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +IO-All-0.33.tar.gz diff --git a/perl-IO-All.spec b/perl-IO-All.spec new file mode 100644 index 0000000..eb4c373 --- /dev/null +++ b/perl-IO-All.spec @@ -0,0 +1,69 @@ +Name: perl-IO-All +Version: 0.33 +Release: 2%{?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 +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)) + +%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 +well as all the DBM and MLDBM modules. You can use most of the methods +found in these classes and in IO::Handle (which they inherit from). IO::All +adds dozens of other helpful idiomatic methods including file stat and +manipulation functions. + +%prep +%setup -q -n IO-All-%{version} + +cat < $RPM_SOURCE_DIR/%{name}-req +#!/bin/sh +%{__perl_requires} $* | sed -e '/^perl(mixin)$/d' +EOF +%define __perl_requires %{_sourcedir}/%{name}-req +chmod +x %{__perl_requires} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +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 -type d -depth -exec rmdir {} 2>/dev/null \; + +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 + +%files +%defattr(-,root,root,-) +%doc Changes README COPYING Artistic +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Feb 27 2006 Steven Pritchard 0.33-2 +- Filter Requires: perl(mixin). +- Turn off "make test" for now. +- Drop explict BR: perl. + +* Wed Dec 28 2005 Steven Pritchard 0.33-1 +- Specfile autogenerated. diff --git a/sources b/sources index e69de29..29d4484 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7e9e83dc8ec4404d79ee73af08f6421f IO-All-0.33.tar.gz