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:
parent
1be7c56daa
commit
b664a88988
@ -1 +1 @@
|
||||
Error-0.17010.tar.gz
|
||||
Error-0.17011.tar.gz
|
||||
|
@ -1,16 +1,15 @@
|
||||
Name: perl-Error
|
||||
Version: 0.17010
|
||||
Version: 0.17011
|
||||
Release: 1%{?dist}
|
||||
Epoch: 1
|
||||
Summary: Error Perl module
|
||||
|
||||
Summary: Error/exception handling in an OO-ish way
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
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)
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(Test::Pod)
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
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
|
||||
can simply be recorded.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n Error-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
./Build
|
||||
|
||||
%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 d -depth -exec rmdir {} 2>/dev/null \;
|
||||
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
|
||||
|
||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
./Build test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog README examples/
|
||||
%{perl_vendorlib}/Error*
|
||||
%{_mandir}/man3/*.3pm*
|
||||
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%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
|
||||
- Upstream update.
|
||||
- Update license tag.
|
||||
|
Loading…
Reference in New Issue
Block a user