Name: perl-HTML-Template
Version: 2.9
Release: 10%{?dist}
Summary: Perl module to use HTML Templates
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/HTML-Template/
Source0: http://www.cpan.org/authors/id/S/SA/SAMTREGAR/HTML-Template-%{version}.tar.gz
Patch0: perl-HTML-Template-manpages.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(CGI)
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IPC::SharedCache)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module attempts make using HTML templates simple and natural. It
extends standard HTML with a few new HTML-esque tags - ,
, , and . The file
written with HTML and these new tags is called a template. It is
usually saved separate from your script - possibly even created by
someone else! Using this module you fill in the values for the
variables, loops and branches declared in the template. This allows
you to separate design - the HTML - from the data, which you generate
in the Perl script.
%prep
%setup -q -n HTML-Template-%{version}
%patch0 -p1 -b .manpages
%{__perl} -pi -e 's/\r//g' README
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
TEST_SHARED_MEMORY=1 make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc ANNOUNCE ARTISTIC Changes FAQ GPL README
%{perl_vendorlib}/HTML/
%{_mandir}/man3/*.3pm*
%changelog
* Sun Apr 24 2011 Tom Callaway - 2.9-10
- actually apply man page fixes patch
* Tue Feb 08 2011 Fedora Release Engineering - 2.9-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Dec 17 2010 Marcela Maslanova - 2.9-8
- 661697 rebuild for fixing problems with vendorach/lib
- add missing BR CGI
- add man page fixes from Debian
* Sun May 02 2010 Marcela Maslanova - 2.9-7
- Mass rebuild with perl-5.12.0
* Mon Dec 7 2009 Stepan Kasal - 2.9-6
- rebuild against perl 5.10.1
* Sat Jul 25 2009 Fedora Release Engineering - 2.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering - 2.9-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering - 2.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Fri Feb 8 2008 Tom "spot" Callaway - 2.9-2
- rebuild for new perl
* Tue Oct 16 2007 Tom "spot" Callaway - 2.9-1.2
- add BR: perl(Test::More)
* Tue Oct 16 2007 Tom "spot" Callaway - 2.9-1.1
- correct license tag
- add BR: perl(ExtUtils::MakeMaker)
* Tue Jan 30 2007 Jose Pedro Oliveira - 2.9-1
- Update to 2.9.
* Fri Sep 8 2006 Jose Pedro Oliveira - 2.8-3
- Rebuild for FC6.
* Sat Feb 18 2006 Jose Pedro Oliveira - 2.8-2
- Rebuild for FC5 (perl 5.8.8).
* Thu Dec 29 2005 Jose Pedro Oliveira - 2.8-1
- Update to 2.8.
* Sat Aug 13 2005 Jose Pedro Oliveira - 2.7-4
- README file: corrected the end-of-line encoding (#165874).
- Bring up to date with Fedora Extras template.
* Fri Apr 7 2005 Michael Schwendt - 2.7-3
- rebuilt
* Mon Oct 25 2004 Jose Pedro Oliveira - 0:2.7-0.fdr.2
- Typo correction (rpmlint warning).
- Build requirements: removed perl(CGI).
* Fri Jun 25 2004 Ville Skyttä - 0:2.7-0.fdr.1
- First build after 2nd time of losing the specfile somewhere :(