+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
%include /usr/lib/rpm/macros.perl
-%define pdir Text
-%define pnam Template
-Summary: Text::Template - Expand template text with embedded Perl
+%define pdir Text
+%define pnam Template
+Summary: Text::Template - expand template text with embedded Perl
+Summary(pl.UTF-8): Text::Template - przetwarzanie szablonów tekstowych przez wbudowany Perl
Name: perl-Text-Template
-Version: 1.43
+Version: 1.44
Release: 2
-License: GPL
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
+Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 81a43d284d9c3cdb2b28e104c1c18609
+URL: http://search.cpan.org/dist/Text-Template/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
This is a library for generating form letters, building HTML pages,
or filling in templates generally. A `template' is a piece of text
that has little Perl programs embedded in it here and there. When you
-`fill in' a template, you evaluate the little programs and replace them
-with their values.
+`fill in' a template, you evaluate the little programs and replace
+them with their values.
+
+%description -l pl.UTF-8
+To jest biblioteka do generowania listów z formularzy, budowania stron
+HTML lub ogólnie wypełniania szablonów. Szablon (template) to kawałek
+tekstu, który ma wbudowane gdzieniegdzie małe programy w Perlu. Przy
+"wypełnianiu" szablonu te małe programy są wykonywane i zastępowane
+zwracanymi przez nie wartościami.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
+%{?with_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README
-%{perl_sitelib}/Text/Template.pm
-%{perl_sitelib}/Text/Template
+%{perl_vendorlib}/Text/Template.pm
+%{perl_vendorlib}/Text/Template
%{_mandir}/man3/*