3 %bcond_without tests # do not perform "make test"
6 %define pnam Slurp-Tiny
7 %include /usr/lib/rpm/macros.perl
8 Summary: File::Slurp::Tiny - A simple, sane and efficient file slurper [DISCOURAGED]
9 Summary(pl.UTF-8): File::Slurp::Tiny - prosty, rozsądny i wydajny moduł do wciągania plików [ODRADZANY]
10 Name: perl-File-Slurp-Tiny
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 7575b81543281ea57cdb7e5eb3f73264
18 URL: http://search.cpan.org/dist/File-Slurp-Tiny/
19 BuildRequires: perl-devel >= 1:5.8.1
20 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module provides functions for fast and correct slurping and
28 spewing. All functions are optionally exported.
30 Note: this module is discouraged in favour of File::Slurper.
32 %description -l pl.UTF-8
33 Ten moduł udostępnia funkcje do szybkiego i poprawnego wciągania i
34 wypluwania. Wszystkie funkcje są eksportowane opcjonalnie.
36 Uwaga: ten moduł jest odradzany na rzecz modułu File::Slurper.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} pure_install \
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %dir %{perl_vendorlib}/File/Slurp
61 %{perl_vendorlib}/File/Slurp/Tiny.pm
62 %{_mandir}/man3/File::Slurp::Tiny.3pm*