]>
Commit | Line | Data |
---|---|---|
f0ec8b98 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
fc44c345 | 5 | %include /usr/lib/rpm/macros.perl |
7c00e212 | 6 | %define pdir CGI |
7 | %define pnam FastTemplate | |
9391753d | 8 | Summary: CGI::FastTemplate - Perl extension for managing templates, and performing variable interpolation |
edce53b9 | 9 | Summary(pl.UTF-8): CGI::FastTemplate - rozszerzenie Perla do zarządzania wzorcami i zastępowania zmiennych |
01b7def8 | 10 | Name: perl-CGI-FastTemplate |
42d22e4e | 11 | Version: 1.09 |
ea187d1c | 12 | Release: 9 |
9391753d | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
01b7def8 | 15 | Group: Development/Languages/Perl |
8f7a39d4 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
1af16555 | 17 | # Source0-md5: c5fe8ead04c525c8d5633c9453af802f |
d4adb3ca | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
ee324896 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
43f3130e | 20 | BuildArch: noarch |
91fde90c | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
01b7def8 | 22 | |
23 | %description | |
9391753d | 24 | CGI::FastTemplate Perl module manages templates and parses templates |
25 | replacing variable names with values. | |
01b7def8 | 26 | |
edce53b9 JR |
27 | %description -l pl.UTF-8 |
28 | Moduł Perla CGI::FastTemplate zarządza wzorcami i analizuje je, | |
29 | zastępując przy tym nazwy zmiennych wartościami. | |
01b7def8 | 30 | |
31 | %prep | |
fc44c345 | 32 | %setup -q -n %{pdir}-%{pnam}-%{version} |
01b7def8 | 33 | |
34 | %build | |
ee324896 | 35 | %{__perl} Makefile.PL \ |
9c690903 | 36 | INSTALLDIRS=vendor |
d87f7039 | 37 | %{__make} |
01b7def8 | 38 | |
f0ec8b98 | 39 | %{?with_tests:%{__make} test} |
40 | ||
01b7def8 | 41 | %install |
42 | rm -rf $RPM_BUILD_ROOT | |
01b7def8 | 43 | |
f0ec8b98 | 44 | %{__make} install \ |
45 | DESTDIR=$RPM_BUILD_ROOT | |
01b7def8 | 46 | |
01b7def8 | 47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
099820ed | 52 | %doc README templates |
ee324896 | 53 | %{perl_vendorlib}/CGI/FastTemplate.pm |
01b7def8 | 54 | %{_mandir}/man3/* |