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