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
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
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)

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!

%setup -q -n "IO-All-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL

%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}


find "%{buildroot}" -name '*.pm' -type f -exec %__chmod 0644 {} \;


%__make test

%{?buildroot:%__rm -rf "%{buildroot}"}

%doc Changes README
%dir %{perl_vendorlib}/IO
%doc %{perl_vendorlib}/IO/All.pod
%dir %{perl_vendorarch}/auto/IO
%doc %{perl_man3dir}/IO::All.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/IO::All::*.%{perl_man3ext}%{ext_man}