]>
Commit | Line | Data |
---|---|---|
fc4d47cb JB |
1 | # |
2 | # Conditional build: | |
294e77b0 | 3 | %bcond_without tests # do not perform "make test" |
4d210665 | 4 | |
5bcddc34 | 5 | %define pdir Regexp |
6 | %define pnam Subst-Parallel | |
4d210665 | 7 | %include /usr/lib/rpm/macros.perl |
fc4d47cb | 8 | Summary: Regexp::Subst::Parallel - multiple substitutions on a string in parallel |
40f0d855 | 9 | Summary(pl.UTF-8): Regexp::Subst::Parallel - jednoczesne wykonywanie wielu podstawień w łańcuchu |
fc4d47cb | 10 | Name: perl-Regexp-Subst-Parallel |
8a324dc8 | 11 | Version: 0.11 |
84d6ec2b | 12 | Release: 2 |
58ea728d | 13 | # same as perl |
fc4d47cb JB |
14 | License: GPL v1+ or Artistic |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
8a324dc8 | 17 | # Source0-md5: ebebdad0aea5835daeb8e3cb7add383e |
4d210665 | 18 | URL: http://search.cpan.org/dist/Regexp-Subst-Parallel/ |
17957251 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
fc4d47cb JB |
20 | BuildRequires: rpm-perlprov >= 4.1-13 |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Regexp::Subst::Parallel is a module that allows you to make multiple | |
26 | simultaneous substitutions safely. Using the sole exported subst | |
27 | function has a rather different effect from doing each substitution | |
28 | sequentially. | |
29 | ||
7e9dbaed JR |
30 | %description -l pl.UTF-8 |
31 | Regexp::Subst::Parallel to moduł pozwalający na bezpieczne wykonywanie | |
32 | wielu podstawień jednocześnie. Użycie zwykłej funkcji subst daje | |
33 | raczej inny efekt niż wykonywanie podstawień sekwencyjnie. | |
fc4d47cb JB |
34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
39 | %{__perl} Makefile.PL \ | |
40 | INSTALLDIRS=vendor | |
fc4d47cb JB |
41 | %{__make} |
42 | ||
294e77b0 | 43 | %{?with_tests:%{__make} test} |
fc4d47cb JB |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
8a324dc8 AM |
56 | %dir %{perl_vendorlib}/%{pdir}/Subst |
57 | %{perl_vendorlib}/%{pdir}/Subst/Parallel.pm | |
fc4d47cb | 58 | %{_mandir}/man3/* |