50 lines
1.2 KiB
RPMSpec
50 lines
1.2 KiB
RPMSpec
%define modname Exception-Class
|
|
Name: perl-%{modname}
|
|
Version: 1.23
|
|
Release: 1
|
|
Summary: A Module That Allows You to Declare Real Exception Classes in Perl
|
|
Requires: perl = %{perl_version}
|
|
BuildRequires: perl perl-Class-Data-Inheritable perl-Devel-StackTrace
|
|
Requires: perl-Class-Data-Inheritable perl-Devel-StackTrace
|
|
License: GPL/Artistic
|
|
Group: Development/Libraries/Perl
|
|
Source: %{modname}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-root
|
|
|
|
%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.
|
|
|
|
Authors:
|
|
--------
|
|
Dave Rolsky <autarch@urth.org>
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
make
|
|
make test
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
%perl_process_packlist
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc Changes LICENSE README
|
|
%doc %{_mandir}/man?/*
|
|
#%{perl_vendorlib}/
|
|
#%{perl_vendorarch}/auto/
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
%changelog
|
|
|
|
* Thu Nov 01 2007 - James Oakley <jfunk@funktronics.ca> - 1.23-1
|
|
- Initial release
|