# # spec file for package perl-Mixin-Linewise # # 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-Mixin-Linewise Version: 0.003 Release: 1 License: GPL+ or Artistic %define cpan_name Mixin-Linewise Summary: Write your linewise code for handles; this does the rest Url: http://search.cpan.org/dist/Mixin-Linewise/ Group: Development/Libraries/Perl #Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Mixin-Linewise-%{version}.tar.gz Source: %{cpan_name}-%{version}.tar.bz2 Patch1: perl-Mixin-Linewise-use_lib.patch BuildRequires: perl(Carp) BuildRequires: perl(IO::File) BuildRequires: perl(IO::String) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Sub::Exporter) >= 0.9 BuildRequires: perl BuildRequires: perl-macros Requires: perl(Carp) Requires: perl(IO::File) Requires: perl(IO::String) Requires: perl(Sub::Exporter) >= 0.9 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %{perl_requires} %description It's boring to deal with opening files for IO, converting strings to handle-like objects, and all that. With the Mixin::Linewise::Readers manpage and the Mixin::Linewise::Writers manpage, you can just write a method to handle handles, and methods for handling strings and filenames are added for you. %prep %setup -q -n %{cpan_name}-%{version} %if 0%{?suse_version} <= 1110 %patch1 -p1 sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t %endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(644,root,root,755) %doc Changes LICENSE README %changelog