]>
Commit | Line | Data |
---|---|---|
0119ef56 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
fb32a33a | 4 | |
0119ef56 | 5 | %define pdir Template |
c10aedef | 6 | %define pnam Plugin-Number-Format |
0119ef56 | 7 | Summary: Plugin/filter interface to Number::Format |
9151d583 | 8 | Summary(pl.UTF-8): Wtyczka - interfejs filtru do Number::Format |
cdd89463 | 9 | Name: perl-Template-Plugin-Number-Format |
f7d2fdbd | 10 | Version: 1.02 |
d8473164 | 11 | Release: 1 |
0119ef56 | 12 | License: GPL v2 |
13 | Group: Development/Languages/Perl | |
f7d2fdbd | 14 | Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DARREN/%{pdir}-%{pnam}-%{version}.tar.gz |
15 | # Source0-md5: 6ccfbc9db84fc86ae64aae9973f037cf | |
fb32a33a | 16 | URL: http://search.cpan.org/dist/Template-Plugin-Number-Format/ |
dd613c0d | 17 | BuildRequires: perl-Number-Format |
0119ef56 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
0119ef56 | 20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Plugin/filter interface to Number::Format. | |
25 | ||
304eaee1 | 26 | %description -l pl.UTF-8 |
dd613c0d JB |
27 | Wtyczka - interfejs filtru do Number::Format. |
28 | ||
0119ef56 | 29 | %prep |
30 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
31 | ||
32 | %build | |
33 | %{__perl} Makefile.PL \ | |
34 | INSTALLDIRS=vendor | |
35 | ||
36 | %{__make} | |
37 | ||
38 | %{?with_tests:%{__make} test} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %{__make} pure_install \ | |
44 | DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %dir %{perl_vendorlib}/Template/Plugin/Number | |
52 | %{perl_vendorlib}/Template/Plugin/Number/Format.pm | |
53 | %{_mandir}/man3/* |