1 |
%define upstream_name Mixin-Linewise |
2 |
%define upstream_version 0.003 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: Get linewise writeers for strings and filenames |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/Mixin/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(Carp) |
15 |
BuildRequires: perl(ExtUtils::MakeMaker) |
16 |
BuildRequires: perl(IO::File) |
17 |
BuildRequires: perl(IO::String) |
18 |
BuildRequires: perl(Sub::Exporter) |
19 |
|
20 |
BuildArch: noarch |
21 |
|
22 |
|
23 |
%description |
24 |
It's boring to deal with opening files for IO, converting strings to |
25 |
handle-like objects, and all that. With the Mixin::Linewise::Readers |
26 |
manpage and the Mixin::Linewise::Writers manpage, you can just write a |
27 |
method to handle handles, and methods for handling strings and filenames |
28 |
are added for you. |
29 |
|
30 |
%prep |
31 |
%setup -q -n %{upstream_name}-%{upstream_version} |
32 |
|
33 |
%build |
34 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
35 |
%make |
36 |
|
37 |
%check |
38 |
%make test |
39 |
|
40 |
%install |
41 |
rm -rf %buildroot |
42 |
%makeinstall_std |
43 |
|
44 |
%clean |
45 |
rm -rf %buildroot |
46 |
|
47 |
%files |
48 |
%defattr(-,root,root) |
49 |
%doc Changes LICENSE README META.yml |
50 |
%{_mandir}/man3/* |
51 |
%perl_vendorlib/* |