%include /usr/lib/rpm/macros.perl
-Summary: Text-Template perl module
-Summary(pl): Modu³ perla Text-Template
+%define pdir Text
+%define pnam Template
+Summary: Text::Template - Expand template text with embedded Perl
Name: perl-Text-Template
-Version: 1.20
-Release: 3
-Copyright: GPL
+Version: 1.43
+Release: 1
+License: GPL
Group: Development/Languages/Perl
-Group(pl): Programowanie/Jêzyki/Perl
-Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/Text-Template-%{version}.tar.gz
+Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-%requires_eq perl
-Requires: %{perl_sitearch}
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Text-Template perl module.
-
-%description -l pl
-Modu³ perla Text-Template.
+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.
%prep
-%setup -q -n Text-Template-%{version}
+%setup -q -n %{pdir}-%{pnam}-%{version}
%build
perl Makefile.PL
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-(
- cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Text/Template
- sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
- mv .packlist.new .packlist
-)
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
- ChangeLog README
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc {ChangeLog,README}.gz
-
+%doc README
%{perl_sitelib}/Text/Template.pm
-%{perl_sitearch}/auto/Text/Template
-
+%{perl_sitelib}/Text/Template
%{_mandir}/man3/*