]> git.pld-linux.org Git - packages/perl-Sub-Quote.git/blob - perl-Sub-Quote.spec
231400b5a50307c27cd2f8cce17327ede0456790
[packages/perl-Sub-Quote.git] / perl-Sub-Quote.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Sub
6 %define         pnam    Quote
7 Summary:        Sub::Quote - Efficient generation of subroutines via string eval
8 Summary(pl.UTF-8):      Sub::Quote - wydajne generowanie podprocedur poprzez ewaluację łańcuchów znaków
9 Name:           perl-Sub-Quote
10 Version:        2.006006
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Sub/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  1bb9caee697bcfa738f419d40505e506
17 URL:            https://metacpan.org/release/Sub-Quote/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Test-Fatal >= 0.003
22 BuildRequires:  perl-Test-Simple >= 0.94
23 %endif
24 Conflicts:      perl-Moo < 2.003000
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This package provides performant ways to generate subroutines from
30 strings.
31
32 %description -l pl.UTF-8
33 Ten pakiet udostępnia wydajne sposoby generowania podprocedur z
34 łańcuchów znaków.
35
36 %prep
37 %setup -q -n %{pdir}-%{pnam}-%{version}
38
39 %build
40 %{__perl} Makefile.PL \
41         INSTALLDIRS=vendor
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} pure_install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Changes README
58 %{perl_vendorlib}/Sub/Defer.pm
59 %{perl_vendorlib}/Sub/Quote.pm
60 %{_mandir}/man3/Sub::Defer.3pm*
61 %{_mandir}/man3/Sub::Quote.3pm*
This page took 0.063784 seconds and 2 git commands to generate.