Update to 0.17020

- New upstream release 0.17020
  - Change to Shlomi Fish's new E-mail and web address
  - Clarify the licence of lib/Error/Simple.pm (CPAN RT#81277)
  - Correct typos (CPAN RT#85023)
- Don't use macros for commands
- Don't need to remove empty directories from the buildroot
- Make %files list more explicit
- Drop %defattr, redundant since rpm 4.4
- Avoid provides/requires from examples
This commit is contained in:
Paul Howarth 2013-05-05 13:48:00 +01:00
parent a682b502b7
commit b21caadfda
3 changed files with 31 additions and 18 deletions

3
.gitignore vendored
View File

@ -1,2 +1 @@
Error-0.17016.tar.gz
/Error-0.17018.tar.gz
/Error-[0-9.]*.tar.gz

View File

@ -1,14 +1,13 @@
Name: perl-Error
Version: 0.17018
Release: 6%{?dist}
Version: 0.17020
Release: 1%{?dist}
Epoch: 1
Summary: Error/exception handling in an OO-ish way
# MIT license in lib/Error/Simple.pm https://rt.cpan.org/Ticket/Display.html?id=81277
License: (GPL+ or Artistic) and MIT
Group: Development/Libraries
URL: http://search.cpan.org/dist/Error/
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 -nu)
BuildArch: noarch
BuildRequires: perl(File::Spec)
BuildRequires: perl(lib)
@ -25,9 +24,13 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Carp)
# Avoid provides/requires from examples
%global __provides_exclude_from ^%{_docdir}
%global __requires_exclude_from ^%{_docdir}
%description
The Error package provides two interfaces. Firstly Error provides a
procedural interface to exception handling. Secondly Error is a base class
@ -38,16 +41,13 @@ can simply be recorded.
%setup -q -n Error-%{version}
%build
%{__perl} Build.PL installdirs=vendor
perl Build.PL installdirs=vendor
./Build
%install
rm -rf $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/*
%{_fixperms} $RPM_BUILD_ROOT
%check
./Build test
@ -56,12 +56,26 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
# GPL+ or Artistic
%doc ChangeLog README examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{perl_vendorlib}/Error.pm
%{_mandir}/man3/Error.3pm*
# MIT
%{perl_vendorlib}/Error/
%{_mandir}/man3/Error::Simple.3pm*
%changelog
* Sun May 5 2013 Paul Howarth <paul@city-fan.org> - 1:0.17020-1
- Update to 0.17020
- Change to Shlomi Fish's new E-mail and web address
- Clarify the licence of lib/Error/Simple.pm (CPAN RT#81277)
- Correct typos (CPAN RT#85023)
- Don't use macros for commands
- Don't need to remove empty directories from the buildroot
- Make %%files list more explicit
- Drop %%defattr, redundant since rpm 4.4
- Avoid provides/requires from examples
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.17018-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
@ -92,7 +106,7 @@ rm -rf $RPM_BUILD_ROOT
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.17016-4
- 661697 rebuild for fixing problems with vendorach/lib
- Rebuild to fix problems with vendorarch/lib (#661697)
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:0.17016-3
- Mass rebuild with perl-5.12.0
@ -177,7 +191,7 @@ rm -rf $RPM_BUILD_ROOT
* Thu Dec 29 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.15-3
- Dist tag.
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.15-2
* Wed Apr 6 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.15-2
- rebuilt
* Fri Jun 11 2004 Steven Pritchard <steve@kspei.com> 0:0.15-1

View File

@ -1 +1 @@
1137a7bbb94c9508a2268c467583207f Error-0.17018.tar.gz
4ff667250bd9afabfe26c739382e656d Error-0.17020.tar.gz