Blob Blame History Raw
Name:           perl-ParseTemplate
Version:        3.03
Release:        1%{?dist}
Summary:        ParseTemplate Perl module
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/ParseTemplate/
Source0:        http://www.cpan.org/authors/id/P/PS/PSCUST/ParseTemplate-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Parse::Template was initially created to serve as a code generator for the
Parse::Lex class. The class is now available as a separate module.

%prep
%setup -q -n ParseTemplate-%{version}
chmod 644 VERSION

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install DESTDIR=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Wed May 05 2010 Marcela Mašláňová <mmaslano@redhat.com> 3.03-1
- Specfile autogenerated by cpanspec 1.78.