diff --git a/.cvsignore b/.cvsignore index e69de29..74c0d4c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +HTML-Template-2.7.tar.gz diff --git a/perl-HTML-Template.spec b/perl-HTML-Template.spec new file mode 100644 index 0000000..9bf7871 --- /dev/null +++ b/perl-HTML-Template.spec @@ -0,0 +1,70 @@ +%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} + +Name: perl-HTML-Template +Version: 2.7 +Release: 0.fdr.2.rh90 +Epoch: 0 +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-2.7.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1, perl(Test::More), perl(Digest::MD5) +BuildRequires: perl(IPC::SharedCache), perl(Storable) +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} + + +%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 -type d -depth -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 +%{_mandir}/man3/*.3* +%{perl_vendorlib}/* + + +%changelog +* 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 :( diff --git a/sources b/sources index e69de29..e251aae 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +376f572659b4c0c40a9dd68823a0dd6b HTML-Template-2.7.tar.gz