Update to 0.17011. Canonicalize Source0 URL. Fix find option order. Use

fixperms macro instead of our own chmod incantation. Improve Summary.
    Reformat to match cpanspec output. Build with Module::Build.
This commit is contained in:
Steven Pritchard 2008-01-07 19:51:16 +00:00
parent 1be7c56daa
commit b664a88988
3 changed files with 25 additions and 19 deletions

View File

@ -1 +1 @@
Error-0.17010.tar.gz Error-0.17011.tar.gz

View File

@ -1,16 +1,15 @@
Name: perl-Error Name: perl-Error
Version: 0.17010 Version: 0.17011
Release: 1%{?dist} Release: 1%{?dist}
Epoch: 1 Epoch: 1
Summary: Error Perl module Summary: Error/exception handling in an OO-ish way
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Error/ URL: http://search.cpan.org/dist/Error/
Source0: http://www.cpan.org/modules/by-module/Error/Error-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/S/SH/SHLOMIF/Error-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(Test::Pod::Coverage)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -21,36 +20,43 @@ procedural interface to exception handling. Secondly Error is a base class
for errors/exceptions that can either be thrown, for subsequent catch, or for errors/exceptions that can either be thrown, for subsequent catch, or
can simply be recorded. can simply be recorded.
%prep %prep
%setup -q -n Error-%{version} %setup -q -n Error-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Build.PL installdirs=vendor
make %{?_smp_mflags} ./Build
%install %install
rm -rf $RPM_BUILD_ROOT 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 {} \; ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
%{_fixperms} $RPM_BUILD_ROOT/*
%check %check
make test ./Build test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc ChangeLog README examples/ %doc ChangeLog README examples/
%{perl_vendorlib}/Error* %{perl_vendorlib}/*
%{_mandir}/man3/*.3pm* %{_mandir}/man3/*
%changelog %changelog
* Mon Jan 07 2008 Steven Pritchard <steve@kspei.com> 1:0.17011-1
- Update to 0.17011.
- Canonicalize Source0 URL.
- Fix find option order.
- Use fixperms macro instead of our own chmod incantation.
- Improve Summary.
- Reformat to match cpanspec output.
- Build with Module::Build.
* Tue Dec 04 2007 Ralf Corsépius <rc040203@freenet.de> - 1:0.17010-1 * Tue Dec 04 2007 Ralf Corsépius <rc040203@freenet.de> - 1:0.17010-1
- Upstream update. - Upstream update.
- Update license tag. - Update license tag.

View File

@ -1 +1 @@
12b870fc1f9e3b0f33e64f9e4474d0aa Error-0.17010.tar.gz 64cbb2e27481ea8a2fce4a033eabc956 Error-0.17011.tar.gz