From 99976f8c4460028d246ab94e1e1985251d2a3e64 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Jul 24 2012 15:06:06 +0000 Subject: Update to 0.24 - New upstream release 0.24 - Add Build.PL - Better support for debugger - Makefile.PL fixed - New test added - BR: perl(Carp) - Include demo files as %doc - Fix line endings on documentation - Upstream release is now a tarball rather than a zipfile - Drop %defattr, redundant since rpm 4.4 - Don't need to remove empty directories from the buildroot - Use DESTDIR rather than PERL_INSTALL_ROOT - Use %{_fixperms} macro rather than our own chmod incantation - Don't use macros for commands - Make %files list more explicit --- diff --git a/.gitignore b/.gitignore index a604d2e..c59b106 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -Hook-LexWrap-0.22.zip +/Hook-LexWrap-[0-9.]*.tar.gz diff --git a/perl-Hook-LexWrap.spec b/perl-Hook-LexWrap.spec index 7f32e62..07e1507 100644 --- a/perl-Hook-LexWrap.spec +++ b/perl-Hook-LexWrap.spec @@ -1,17 +1,18 @@ Name: perl-Hook-LexWrap -Version: 0.22 -Release: 11%{?dist} +Version: 0.24 +Release: 1%{?dist} Summary: Lexically scoped subroutine wrappers - Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/Hook-LexWrap/ -Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Hook-LexWrap-%{version}.zip -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - +Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Hook-LexWrap-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) BuildArch: noarch -BuildRequires: perl(ExtUtils::MakeMaker), perl(Test::More), perl(Test::Pod) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description Hook::LexWrap allows you to install a pre- or post-wrapper (or both) @@ -20,39 +21,51 @@ capacity (e.g. Hook::PreAndPost and Hook::WrapSub), Hook::LexWrap implements wrappers in such a way that the standard `caller' function works correctly within the wrapped subroutine. - %prep %setup -q -n Hook-LexWrap-%{version} +# Fix line endings +sed -i -e 's/\r$//' Changes README demo/* + %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor 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 -depth -type d -exec rmdir {} 2>/dev/null ';' -chmod -R u+w $RPM_BUILD_ROOT/* - +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot} %check make test - %clean -rm -rf $RPM_BUILD_ROOT - +rm -rf %{buildroot} %files -%defattr(-,root,root,-) -%doc Changes README +%doc Changes README demo/ %{perl_vendorlib}/Hook/ -%{_mandir}/man3/*.3pm* - +%{_mandir}/man3/Hook::LexWrap.3pm* %changelog +* Tue Jul 24 2012 Paul Howarth - 0.24-1 +- Update to 0.24 + - Add Build.PL + - Better support for debugger + - Makefile.PL fixed + - New test added +- BR: perl(Carp) +- Include demo files as %%doc +- Fix line endings on documentation +- Upstream release is now a tarball rather than a zipfile +- Drop %%defattr, redundant since rpm 4.4 +- Don't need to remove empty directories from the buildroot +- Use DESTDIR rather than PERL_INSTALL_ROOT +- Use %%{_fixperms} macro rather than our own chmod incantation +- Don't use macros for commands +- Make %%files list more explicit + * Fri Jul 20 2012 Fedora Release Engineering - 0.22-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/sources b/sources index ff7ea66..36415bc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c947a46e930aa2d84db9cdceafa54720 Hook-LexWrap-0.22.zip +3c08c1f388c529c532f71422d33913d1 Hook-LexWrap-0.24.tar.gz