Update to 1.37 and modernize spec
- New upstream release 1.37 - I now recommend you use Throwable instead of this module; it has a nicer, more modern interface - Fixed warning from basic.t on 5.17.x (CPAN RT#79121) - 1.33 did not declare any prereqs (CPAN RT#79677) - Require Class::Data::Inheritable ≥ 0.02 - Fixed some stupidity in the tests that appears to have been highlighted by recent changes to Devel::StackTrace (CPAN RT#81245) - Fixed various bugs and confusion in the docs - Don't need to remove empty directories from the buildroot - Don't use macros for commands - Make the %files list more explicit - Use DESTDIR rather than PERL_INSTALL_ROOT - Drop release testing (now more extensive and would fail anyway) - Drop support for distributions older than EL-6 (test suite would need patching for EL-5 anyway)
This commit is contained in:
parent
4c6db9cf38
commit
fe576cdd60
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
Exception-Class-1.29.tar.gz
|
/Exception-Class-[0-9.]*.tar.gz
|
||||||
/Exception-Class-1.32.tar.gz
|
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
Name: perl-Exception-Class
|
Name: perl-Exception-Class
|
||||||
Version: 1.32
|
Version: 1.37
|
||||||
Release: 8%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Module that allows you to declare real exception classes in Perl
|
Summary: Module that allows you to declare real exception classes in Perl
|
||||||
License: Artistic 2.0
|
License: Artistic 2.0
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/Exception-Class/
|
URL: http://search.cpan.org/dist/Exception-Class/
|
||||||
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/Exception-Class-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/Exception-Class-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(base)
|
BuildRequires: perl(base)
|
||||||
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
|
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
|
||||||
@ -15,9 +14,7 @@ BuildRequires: perl(ExtUtils::MakeMaker)
|
|||||||
BuildRequires: perl(File::Spec)
|
BuildRequires: perl(File::Spec)
|
||||||
BuildRequires: perl(Scalar::Util)
|
BuildRequires: perl(Scalar::Util)
|
||||||
BuildRequires: perl(Test::More) >= 0.46
|
BuildRequires: perl(Test::More) >= 0.46
|
||||||
BuildRequires: perl(Test::Pod) >= 1.14
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Exception::Class allows you to declare exception hierarchies in your
|
Exception::Class allows you to declare exception hierarchies in your
|
||||||
@ -26,36 +23,44 @@ modules in a "Java-esque" manner.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n Exception-Class-%{version}
|
%setup -q -n Exception-Class-%{version}
|
||||||
|
|
||||||
chmod a-x lib/Exception/Class.pm
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make pure_install DESTDIR=$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 .packlist -exec rm -f {} \;
|
||||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
%{_fixperms} $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export IS_MAINTAINER=1
|
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc Changes LICENSE README
|
%doc Changes LICENSE README
|
||||||
%{perl_vendorlib}/*
|
%{perl_vendorlib}/Exception/
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/Exception::Class.3pm*
|
||||||
|
%{_mandir}/man3/Exception::Class::Base.3pm*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 24 2013 Paul Howarth <paul@city-fan.org> - 1.37-1
|
||||||
|
- Update to 1.37
|
||||||
|
- I now recommend you use Throwable instead of this module; it has a nicer,
|
||||||
|
more modern interface
|
||||||
|
- Fixed warning from basic.t on 5.17.x (CPAN RT#79121)
|
||||||
|
- 1.33 did not declare any prereqs (CPAN RT#79677)
|
||||||
|
- Require Class::Data::Inheritable ≥ 0.02
|
||||||
|
- Fixed some stupidity in the tests that appears to have been highlighted by
|
||||||
|
recent changes to Devel::StackTrace (CPAN RT#81245)
|
||||||
|
- Fixed various bugs and confusion in the docs
|
||||||
|
- Don't need to remove empty directories from the buildroot
|
||||||
|
- Don't use macros for commands
|
||||||
|
- Make the %%files list more explicit
|
||||||
|
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
||||||
|
- Drop release testing (now more extensive and would fail anyway)
|
||||||
|
- Drop support for distributions older than EL-6 (test suite would need
|
||||||
|
patching for EL-5 anyway)
|
||||||
|
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.32-8
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.32-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
@ -85,7 +90,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
- Add README to docs.
|
- Add README to docs.
|
||||||
|
|
||||||
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.29-5
|
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.29-5
|
||||||
- 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.29-4
|
* Sat May 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.29-4
|
||||||
- Mass rebuild with perl-5.12.0
|
- Mass rebuild with perl-5.12.0
|
||||||
@ -109,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
- Update to 1.26.
|
- Update to 1.26.
|
||||||
- Bump Devel::StackTrace dependency to 1.20.
|
- Bump Devel::StackTrace dependency to 1.20.
|
||||||
|
|
||||||
* Thu May 31 2008 Steven Pritchard <steve@kspei.com> 1.24-1
|
* Sat May 31 2008 Steven Pritchard <steve@kspei.com> 1.24-1
|
||||||
- Update to 1.24.
|
- Update to 1.24.
|
||||||
- Bump Devel::StackTrace dependency to 1.17.
|
- Bump Devel::StackTrace dependency to 1.17.
|
||||||
- Clean up to match current cpanspec output.
|
- Clean up to match current cpanspec output.
|
||||||
|
Loading…
Reference in New Issue
Block a user