File perl-Catalyst-View-ContentNegotiation-XHTML.spec of Package perl-Catalyst-View-ContentNegotiation-XHTML
%define _real_name Catalyst-View-ContentNegotiation-XHTML
%define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
Summary: A sub-class of the TT view serves which application/xhtml+xml content if accepted
Name: perl-Catalyst-View-ContentNegotiation-XHTML
Version: 1.101
Release: 1
License: GPL
Group: Applications/CPAN
Packager: Leo Eraly <leo@unstable.be>
URL: http://search.cpan.org/~bobtfish/Catalyst-View-ContentNegotiation-XHTML-1.101/lib/Catalyst/View/TT/XHTML.pm
Buildarch: noarch
BuildRequires: perl-Catalyst-Runtime perl-Catalyst-Action-RenderView perl-Catalyst-View-TT perl-libwww-perl
Requires: perl-Catalyst-Runtime perl-Catalyst-Action-RenderView perl-Catalyst-View-TT perl-libwww-perl
Source: http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-View-ContentNegotiation-XHTML-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
A sub-class of the standard TT view which serves application/xhtml+xml content if the browser accepts it
%prep
%setup -n %{_real_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" destdir="%{buildroot}"
%{__make}
%install
%{__rm} -rf %{buildroot}
%{__make} install
%{__rm} -rf %{buildroot}%{perl_archlib}/perllocal.pod
find %{buildroot} -name .packlist -exec %{__rm} {} \;
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%{_mandir}/man3/*.gz
%dir %{perl_vendorlib}/Catalyst
%dir %{perl_vendorlib}/Catalyst/View/TT
%dir %{perl_vendorlib}/Catalyst/View/ContentNegotiation/
%{perl_vendorlib}/Catalyst/View/TT/*.pm
%{perl_vendorlib}/Catalyst/View/ContentNegotiation/*.pm
%changelog
* Wed Feb 18 2009 Leo Eraly <leo@unstable.be> - 1.101-1
- Initial package