Chris Weyl cee07e6
Name:           perl-Template-Provider-Encoding
Chris Weyl cee07e6
Version:        0.10
b7418ae
Release:        4%{?dist}
Chris Weyl cee07e6
Summary:        Explicitly declare encodings of your templates
Chris Weyl cee07e6
License:        GPL+ or Artistic
Chris Weyl cee07e6
Group:          Development/Libraries
Chris Weyl cee07e6
URL:            http://search.cpan.org/dist/Template-Provider-Encoding/
Chris Weyl cee07e6
Source0:        http://www.cpan.org/authors/id/M/MI/MIYAGAWA/Template-Provider-Encoding-%{version}.tar.gz
Chris Weyl cee07e6
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Chris Weyl cee07e6
BuildArch:      noarch
Chris Weyl cee07e6
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Chris Weyl cee07e6
Chris Weyl cee07e6
BuildRequires:  perl(ExtUtils::MakeMaker)
Chris Weyl cee07e6
BuildRequires:  perl(Encode)                >= 1.00
Chris Weyl cee07e6
BuildRequires:  perl(Template)              >= 2.1
Chris Weyl cee07e6
BuildRequires:  perl(Test::More)            >= 0.32
Chris Weyl cee07e6
# testing
Chris Weyl cee07e6
BuildRequires:  perl(DateTime)
Chris Weyl cee07e6
Chris Weyl cee07e6
%description
Chris Weyl cee07e6
Template::Provider::Encoding is a Template Provider subclass to decode
Chris Weyl cee07e6
template using its declaration. You have to declare encoding of the
Chris Weyl cee07e6
template in the 1st line of the template using the (fake) encoding TT
Chris Weyl cee07e6
plugin; otherwise the template is handled as utf-8.
Chris Weyl cee07e6
Chris Weyl cee07e6
%prep
Chris Weyl cee07e6
%setup -q -n Template-Provider-Encoding-%{version}
Chris Weyl cee07e6
Chris Weyl cee07e6
%build
Chris Weyl cee07e6
%{__perl} Makefile.PL INSTALLDIRS=vendor
Chris Weyl cee07e6
make %{?_smp_mflags}
Chris Weyl cee07e6
Chris Weyl cee07e6
%install
Chris Weyl cee07e6
rm -rf %{buildroot}
Chris Weyl cee07e6
Chris Weyl cee07e6
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Chris Weyl cee07e6
Chris Weyl cee07e6
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
Chris Weyl cee07e6
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
Chris Weyl cee07e6
Chris Weyl cee07e6
%{_fixperms} %{buildroot}/*
Chris Weyl cee07e6
Chris Weyl cee07e6
%check
Chris Weyl cee07e6
make test
Chris Weyl cee07e6
Chris Weyl cee07e6
%clean
Chris Weyl cee07e6
rm -rf %{buildroot}
Chris Weyl cee07e6
Chris Weyl cee07e6
%files
Chris Weyl cee07e6
%defattr(-,root,root,-)
Chris Weyl cee07e6
%doc Changes t/
Chris Weyl cee07e6
%{perl_vendorlib}/*
Chris Weyl cee07e6
%{_mandir}/man3/*
Chris Weyl cee07e6
Chris Weyl cee07e6
%changelog
b7418ae
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
b7418ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b7418ae
43c7c66
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
43c7c66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
43c7c66
Chris Weyl c79316f
* Sat May 31 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.10-2
Chris Weyl c79316f
- bump
Chris Weyl c79316f
Chris Weyl cee07e6
* Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.10-1
Chris Weyl cee07e6
- Specfile autogenerated by cpanspec 1.75.