auto-import perl-IO-All-0.33-2 on branch devel from
perl-IO-All-0.33-2.src.rpm
This commit is contained in:
parent
6663f847d9
commit
51982e796c
@ -0,0 +1 @@
|
||||
IO-All-0.33.tar.gz
|
||||
69
perl-IO-All.spec
Normal file
69
perl-IO-All.spec
Normal file
@ -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 <<EOF > $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 <steve@kspei.com> 0.33-2
|
||||
- Filter Requires: perl(mixin).
|
||||
- Turn off "make test" for now.
|
||||
- Drop explict BR: perl.
|
||||
|
||||
* Wed Dec 28 2005 Steven Pritchard <steve@kspei.com> 0.33-1
|
||||
- Specfile autogenerated.
|
||||
Loading…
Reference in New Issue
Block a user