%define pkg_name MasonX-Request-HTMLTemplate
%define pkg_version 0.06
%define rpm_pkg_version 0.06
%define rpm_pkg_release 1.n0i.2
Summary: Add templates to the Mason Request object
Name: perl-%{pkg_name}
Version: %{rpm_pkg_version}
%if "%{pkg_version}" == "%{rpm_pkg_version}"
Release: %{rpm_pkg_release}%{?dist}
%else
Release: %{rpm_pkg_release}.%(echo %{pkg_version} | tr - _)%{?dist}
%endif
Group: Development/Libraries
License: Artistic
URL: http://search.cpan.org/dist/%{pkg_name}/
Source0: ftp://ftp.cpan.org/authors/id/E/EB/EBRUNI/%{pkg_name}-%{pkg_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V'))
Requires: perl(HTML::Template::Extension) >= 0.23
Requires: perl(HTML::Mason) >= 1.16
%{!?_without_test:BuildRequires: perl(HTML::Template::Extension) >= 0.23}
%{!?_without_test:BuildRequires: perl(Params::Validate)}
%{!?_without_test:BuildRequires: perl(HTML::Mason) >= 1.16}
%description
This module tries to add two peculiar functionalities to Mason:
- easy use of templates
- easy building of localized web site
%prep
%setup -n %{pkg_name}-%{pkg_version}
find . -type f | xargs -r chmod 0644
%build
PERL_MM_USE_DEFAULT=1 %{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make}
# where are the templates? ;-)
%{!?_without_test:%{__make} test || :}
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name .packlist -delete || :
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -empty -delete || :
find $RPM_BUILD_ROOT -depth -type d -a -empty -delete || :
%{__chmod} -R u+w $RPM_BUILD_ROOT/*
find $RPM_BUILD_ROOT | xargs -r touch
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man*/*
%changelog
* Mon Jul 03 2006 Marius Feraru - 0.06-1.n0i.2
- version 0.06
* Sat Jul 30 2005 Marius Feraru 0.05-2.n0i.1
- spec file (re)created using N0i::CPAN::RPMizer/1.01
- rebuild on perl 5.8.7
* Sun Mar 20 2005 Marius Feraru 0:0.05-1.n0i.2
- automatic rebuild (perl 5.8.6)
* Mon Dec 06 2004 Marius Feraru 0:0.05-1.n0i.1
- version 0.05
- spec file (re?)created using N0i::CPAN::RPMizer/2004083101