3 %bcond_without tests # do not perform "make test"
7 Summary: Mixin::Linewise - write your linewise code for handles; this does the rest
8 Summary(pl.UTF-8): Mixin::Linewise - wystarczy napisać kod liniowy dla uchwytów; ten moduł zrobi resztę
9 Name: perl-Mixin-Linewise
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-authors/id/R/RJ/RJBS/Mixin-Linewise-%{version}.tar.gz
16 # Source0-md5: 466b2b42a0cec2b163729fa581ac4b1d
18 URL: https://metacpan.org/dist/Mixin-Linewise
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRequires: perl-PerlIO-utf8_strict
24 BuildRequires: perl-Sub-Exporter
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 It's boring to deal with opening files for I/O, converting strings to
31 handle-like objects, and all that. With Mixin::Linewise::Readers and
32 Mixin::Linewise::Writers, you can just write a method to handle
33 handles, and methods for handling strings and filenames are added for
36 %description -l pl.UTF-8
37 Czynności związane z otwieraniem plików do we/wy, przekształcaniem
38 łańcuchów na obiekty uchwytów itd. są nudne. Dzięki
39 Mixin::Linewise::Readers i Mixin::Linewise::Writers wystarczy napisać
40 metodę obsługującą uchwyty, a metody do obsługi łańcuchów i nazw
41 plików zostaną dodane za programistę.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
57 %{__make} pure_install \
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %dir %{perl_vendorlib}/Mixin
67 %{perl_vendorlib}/Mixin/Linewise.pm
68 %{perl_vendorlib}/Mixin/Linewise
69 %{_mandir}/man3/Mixin::Linewise*.3pm*