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