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