Update to 1.24. Bump Devel::StackTrace dependency to 1.17. Clean up to
match current cpanspec output. Improve Summary and description. Build with Module::Build.
This commit is contained in:
parent
bba646bfb3
commit
31c3333823
@ -1 +1 @@
|
||||
Exception-Class-1.23.tar.gz
|
||||
Exception-Class-1.24.tar.gz
|
||||
|
@ -1,7 +1,7 @@
|
||||
Name: perl-Exception-Class
|
||||
Version: 1.23
|
||||
Release: 6%{?dist}
|
||||
Summary: Exception::Class Perl module
|
||||
Version: 1.24
|
||||
Release: 1%{?dist}
|
||||
Summary: Module that allows you to declare real exception classes in Perl
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Exception-Class/
|
||||
@ -9,17 +9,16 @@ Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/Exception-Class-%{ve
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
|
||||
BuildRequires: perl(Devel::StackTrace) >= 1.12
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Devel::StackTrace) >= 1.17
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(Test::More) >= 0.46
|
||||
Requires: perl(Class::Data::Inheritable) >= 0.02
|
||||
Requires: perl(Devel::StackTrace) >= 1.12
|
||||
Requires: perl(Devel::StackTrace) >= 1.17
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
This module allows you to declare hierarchies of exception classes for use
|
||||
in your code. It also provides a simple exception class that it uses as
|
||||
the default base class for all other exceptions.
|
||||
Exception::Class allows you to declare exception hierarchies in your
|
||||
modules in a "Java-esque" manner.
|
||||
|
||||
%prep
|
||||
%setup -q -n Exception-Class-%{version}
|
||||
@ -27,35 +26,37 @@ the default base class for all other exceptions.
|
||||
chmod a-x lib/Exception/Class.pm
|
||||
|
||||
%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 {} \;
|
||||
./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/*
|
||||
|
||||
perldoc -t perlgpl > COPYING
|
||||
perldoc -t perlartistic > Artistic
|
||||
|
||||
%check
|
||||
make test
|
||||
./Build test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE README COPYING Artistic
|
||||
%doc Changes LICENSE
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu May 15 2008 Steven Pritchard <steve@kspei.com> 1.24-1
|
||||
- Update to 1.24.
|
||||
- Bump Devel::StackTrace dependency to 1.17.
|
||||
- Clean up to match current cpanspec output.
|
||||
- Improve Summary and description.
|
||||
- Build with Module::Build.
|
||||
|
||||
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23-6
|
||||
- Rebuild for perl 5.10 (again)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user