]>
Commit | Line | Data |
---|---|---|
94b42734 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
150c63d8 | 4 | |
142de435 | 5 | %define pdir Text |
6 | %define pnam SimpleTemplate | |
150c63d8 | 7 | %include /usr/lib/rpm/macros.perl |
faa73b21 | 8 | Summary: Text::SimpleTemplate - yet another module for template processing |
b6a3997d | 9 | Summary(pl.UTF-8): Text::SimpleTemplate - jeszcze jeden moduł do przetwarzania szablonów |
a2bd075a | 10 | Name: perl-Text-SimpleTemplate |
11 | Version: 0.36 | |
f13d2826 | 12 | Release: 5 |
a2bd075a | 13 | License: GPL |
14 | Group: Development/Languages/Perl | |
0d22022c | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
f708647b | 16 | # Source0-md5: a2f05921270b96d8e8d21b263f22e3cc |
150c63d8 | 17 | URL: http://search.cpan.org/dist/Text-SimpleTemplate/ |
5c186e19 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
a2bd075a | 19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
fe2638ff | 23 | This is yet another library for template-based text generation. |
a2bd075a | 24 | |
f750a19a JR |
25 | %description -l pl.UTF-8 |
26 | To jest jeszcze jedna biblioteka do bazującego na szablonach | |
21be8c11 JB |
27 | generowania tekstu. |
28 | ||
a2bd075a | 29 | %prep |
30 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
31 | ||
32 | %build | |
5c186e19 | 33 | %{__perl} Makefile.PL \ |
94c84f07 | 34 | INSTALLDIRS=vendor |
a2bd075a | 35 | %{__make} |
36 | ||
94b42734 | 37 | %{?with_tests:%{__make} test} |
38 | ||
a2bd075a | 39 | %install |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
94b42734 | 42 | %{__make} install \ |
43 | DESTDIR=$RPM_BUILD_ROOT | |
a2bd075a | 44 | |
a2bd075a | 45 | %clean |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
21be8c11 | 50 | %doc README.TXT |
5c186e19 | 51 | %{perl_vendorlib}/Text/SimpleTemplate.pm |
a2bd075a | 52 | %{_mandir}/man3/* |