]> git.pld-linux.org Git - packages/perl-Mixin-Linewise.git/blame - perl-Mixin-Linewise.spec
- pl, rpm macros for perl dependency generators
[packages/perl-Mixin-Linewise.git] / perl-Mixin-Linewise.spec
CommitLineData
cd11dbaa
JR
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Mixin
6%define pnam Linewise
cd11dbaa 7Summary: Mixin::Linewise - write your linewise code for handles; this does the rest
3dbd1f8c 8Summary(pl.UTF-8): Mixin::Linewise - wystarczy napisać kod liniowy dla uchwytów; ten moduł zrobi resztę
cd11dbaa 9Name: perl-Mixin-Linewise
b287a143 10Version: 0.110
56629686 11Release: 3
cd11dbaa
JR
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
da8bc7e4 15Source0: http://www.cpan.org/modules/by-authors/id/R/RJ/RJBS/Mixin-Linewise-%{version}.tar.gz
b287a143 16# Source0-md5: 466b2b42a0cec2b163729fa581ac4b1d
56629686 17Patch0: version.patch
3dbd1f8c 18URL: https://metacpan.org/dist/Mixin-Linewise
cd11dbaa
JR
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
3dbd1f8c 21BuildRequires: rpmbuild(macros) >= 1.745
cd11dbaa 22%if %{with tests}
3dbd1f8c 23BuildRequires: perl-PerlIO-utf8_strict
cd11dbaa
JR
24BuildRequires: perl-Sub-Exporter
25%endif
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
3dbd1f8c
JB
30It's boring to deal with opening files for I/O, converting strings to
31handle-like objects, and all that. With Mixin::Linewise::Readers and
cd11dbaa
JR
32Mixin::Linewise::Writers, you can just write a method to handle
33handles, and methods for handling strings and filenames are added for
34you.
35
3dbd1f8c
JB
36%description -l pl.UTF-8
37Czynnoś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
39Mixin::Linewise::Readers i Mixin::Linewise::Writers wystarczy napisać
40metodę obsługującą uchwyty, a metody do obsługi łańcuchów i nazw
41plików zostaną dodane za programistę.
42
cd11dbaa
JR
43%prep
44%setup -q -n %{pdir}-%{pnam}-%{version}
56629686 45%patch0 -p1
cd11dbaa
JR
46
47%build
48%{__perl} Makefile.PL \
49 INSTALLDIRS=vendor
50%{__make}
51
52%{?with_tests:%{__make} test}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} pure_install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes README
66%dir %{perl_vendorlib}/Mixin
3dbd1f8c 67%{perl_vendorlib}/Mixin/Linewise.pm
cd11dbaa 68%{perl_vendorlib}/Mixin/Linewise
3dbd1f8c 69%{_mandir}/man3/Mixin::Linewise*.3pm*
This page took 0.149313 seconds and 4 git commands to generate.