]>
Commit | Line | Data |
---|---|---|
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 | |
7 | %define pnam Plugin-Number-Format | |
8 | Summary: Plugin/filter interface to Number::Format | |
9 | Summary(pl.UTF-8): Wtyczka - interfejs filtru do Number::Format | |
10 | Name: perl-Template-Plugin-Number-Format | |
11 | Version: 1.01 | |
12 | Release: 1 | |
13 | License: GPL v2 | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Template/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 0822bca562c536abc3450cebd66c83f1 | |
17 | BuildRequires: perl-Number-Format | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
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 | ||
28 | %description -l pl.UTF-8 | |
29 | Wtyczka - interfejs filtru do Number::Format. | |
30 | ||
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/* |