File perl-IO-All.spec of Package perl-IO-All
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-IO-All
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-IO-All
Version: 0.44
Release: 0
Summary: IO::All of it to Graham and Damian!
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/I/IN/INGY/IO-All-%{version}.tar.gz
Url: http://search.cpan.org/dist/IO-All
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(File::ReadBackwards)
BuildRequires: perl(IO::String)
Requires: perl(IO::String)
%description
IO::All combines all of the best Perl IO modules into a single nifty
object oriented interface to greatly simplify your everyday Perl IO
idioms. It exports a single function called "io", which returns a new
IO::All object. And that object can do it all!
%prep
%setup -q -n "IO-All-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
find "%{buildroot}" -name '*.pm' -type f -exec %__chmod 0644 {} \;
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/IO
%{perl_vendorlib}/IO/All
%{perl_vendorlib}/IO/All.pm
%doc %{perl_vendorlib}/IO/All.pod
%dir %{perl_vendorarch}/auto/IO
%{perl_vendorarch}/auto/IO/All
%doc %{perl_man3dir}/IO::All.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/IO::All::*.%{perl_man3ext}%{ext_man}
%changelog