# Upstream versioning is broken, they use # 0.12 < 0.1234 < 0.13 even though numerically 1234 > 13 %global cpan_version 0.9504 # We simply add a full stop after first two-digit group to work around %global sane_version %(echo %{cpan_version} |sed 's/\\(\\.[0-9][0-9]\\)/\\1./') Name: perl-HTML-Template-Pro Version: %{sane_version} Release: 1%{?dist} Summary: Perl/XS module to use HTML Templates from CGI scripts License: GPL+ or Artistic or LGPLv2+ Group: Development/Libraries URL: http://search.cpan.org/dist/HTML-Template-Pro/ Source0: http://www.cpan.org/authors/id/V/VI/VIY/HTML-Template-Pro-%{cpan_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{cpan_version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: pcre-devel BuildRequires: perl(Test::More) BuildRequires: perl(JSON) %description A fast and lightweight C/Perl+XS HTML Template engine implementation. %prep %setup -q -n HTML-Template-Pro-%{cpan_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -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 ARTISTIC Changes FAQ LGPL README README.ru %{perl_vendorarch}/auto/* %{perl_vendorarch}/HTML* %{_mandir}/man3/* %changelog * Mon Jun 14 2010 Petr Sabata - 0.95-1 - Update to the latest upstream release * Sun May 02 2010 Marcela Maslanova - 0.93-2 - Mass rebuild with perl-5.12.0 * Sun Feb 21 2010 Lubomir Rintel (Good Data) - 0.93-1 - New upstream release * Mon Dec 7 2009 Stepan Kasal - 0.87-2 - rebuild against perl 5.10.1 * Mon Sep 07 2009 Lubomir Rintel (Good Data) 0.87-1 - New upstream release * Sat Jul 25 2009 Fedora Release Engineering - 0.74-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri May 08 2009 Lubomir Rintel (Good Data) - 0.74-1 - New upstream release * Thu Feb 26 2009 Fedora Release Engineering - 0.71-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.71-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Oct 23 2008 Lubomir Rintel (Good Data) - 0.71-1 - New upstream version * Tue Jul 15 2008 Lubomir Rintel (Good Data) - 0.70-1 - New upstream version * Mon Jun 02 2008 Lubomir Rintel (Good Data) 0.69-1 - Specfile autogenerated by cpanspec 1.75. - Fixed Build requirements for the tests to run - Enable PCRE support