]> git.pld-linux.org Git - packages/perl-File-Slurp-Tiny.git/blob - perl-File-Slurp-Tiny.spec
ccf1794f17e3e53723326f55de55ff4bd3c51447
[packages/perl-File-Slurp-Tiny.git] / perl-File-Slurp-Tiny.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    File
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
11 Version:        0.004
12 Release:        1
13 # same as perl
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
21 %if %{with tests}
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This module provides functions for fast and correct slurping and
28 spewing. All functions are optionally exported.
29
30 Note: this module is discouraged in favour of File::Slurper.
31
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.
35
36 Uwaga: ten moduł jest odradzany na rzecz modułu File::Slurper.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} pure_install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %dir %{perl_vendorlib}/File/Slurp
61 %{perl_vendorlib}/File/Slurp/Tiny.pm
62 %{_mandir}/man3/File::Slurp::Tiny.3pm*
This page took 0.045403 seconds and 2 git commands to generate.