93 lines
2.7 KiB
RPMSpec
93 lines
2.7 KiB
RPMSpec
Name: perl-Exception-Class
|
|
Version: 1.23
|
|
Release: 6%{?dist}
|
|
Summary: Exception::Class Perl module
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Exception-Class/
|
|
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
|
|
BuildRequires: perl(Class::Data::Inheritable) >= 0.02
|
|
BuildRequires: perl(Devel::StackTrace) >= 1.12
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Test::More) >= 0.46
|
|
Requires: perl(Class::Data::Inheritable) >= 0.02
|
|
Requires: perl(Devel::StackTrace) >= 1.12
|
|
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.
|
|
|
|
%prep
|
|
%setup -q -n Exception-Class-%{version}
|
|
|
|
chmod a-x lib/Exception/Class.pm
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%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 -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
perldoc -t perlgpl > COPYING
|
|
perldoc -t perlartistic > Artistic
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes LICENSE README COPYING Artistic
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.23-6
|
|
- Rebuild for perl 5.10 (again)
|
|
|
|
* Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.23-5
|
|
- rebuild against new perl
|
|
|
|
* Sat Dec 29 2007 Ralf Corsépius 1.23-4
|
|
- BR: perl(Test::More) (BZ 419631).
|
|
- Adjust License-tag.
|
|
|
|
* Tue Apr 17 2007 Steven Pritchard <steve@kspei.com> 1.23-3
|
|
- Use fixperms macro instead of our own chmod incantation.
|
|
- BR ExtUtils::MakeMaker.
|
|
|
|
* Sat Sep 16 2006 Steven Pritchard <steve@kspei.com> 1.23-2
|
|
- Canonicalize Source0 URL.
|
|
- Fix find option order.
|
|
- Drop executable bit from Exception/Class.pm to avoid a rpmlint warning.
|
|
|
|
* Fri Feb 03 2006 Steven Pritchard <steve@kspei.com> 1.23-1
|
|
- Update to 1.23
|
|
|
|
* Tue Jan 10 2006 Steven Pritchard <steve@kspei.com> 1.22-1
|
|
- Update to 1.22
|
|
|
|
* Mon Sep 05 2005 Steven Pritchard <steve@kspei.com> 1.21-3
|
|
- Remove explicit core module dependencies
|
|
- Add COPYING and Artistic
|
|
|
|
* Wed Aug 17 2005 Steven Pritchard <steve@kspei.com> 1.21-2
|
|
- Minor spec cleanup
|
|
|
|
* Tue Aug 16 2005 Steven Pritchard <steve@kspei.com> 1.21-1
|
|
- Specfile autogenerated.
|