%define modname HTML-Mason
Name: perl-%{modname}
Version: 1.37
Release: 1
Summary: A High-Performance, Dynamic Web Site Authoring System
Requires: perl = %{perl_version}
BuildRequires: perl perl-Cache-Cache perl-Class-Container perl-HTML-Parser perl-Exception-Class
BuildRequires: perl-Module-Build perl-Params-Validate
Requires: perl-Cache-Cache perl-Class-Container perl-HTML-Parser perl-Exception-Class
BuildRequires: perl-Module-Build perl-Params-Validate
License: GPL/Artistic
Group: Development/Libraries/Perl
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-root
%description
Mason is a tool for building, serving and managing large web sites. It's
features make it an ideal backend for high load sites serving dynamic content,
such as online newspapers or database driven e-commerce sites.
Authors:
--------
Jonathan Swartz
Dave Rolsky
Ken Williams
John Williams
%prep
%setup -q -n %{modname}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install
# Apparently, Module::Build::Compat doesn't support vendorlib
mkdir -p %{buildroot}%{perl_vendorlib}
cp -a %{buildroot}%{perl_sitelib}/* %{buildroot}%{perl_vendorlib}
rm -rf %{buildroot}%{perl_sitelib}
mkdir -p %{buildroot}%{perl_vendorarch}
cp -a %{buildroot}%{perl_sitearch}/* %{buildroot}%{perl_vendorarch}
rm -rf %{buildroot}%{perl_sitearch}
%perl_process_packlist
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc CREDITS Changes LICENSE README UPGRADE
%doc %{_mandir}/man?/*
#%{perl_vendorlib}/
#%{perl_vendorarch}/auto/
/var/adm/perl-modules/%{name}
%changelog
* Thu Nov 01 2007 - James Oakley - 1.37-1
- Initial release