perl-Error/perl-Error.spec

62 lines
1.6 KiB
RPMSpec
Raw Normal View History

Name: perl-Error
Version: 0.15
2006-02-17 19:03:52 +00:00
Release: 4%{?dist}
Summary: Error Perl module
2005-12-29 00:30:15 +00:00
License: GPL or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Error/
2005-12-29 00:30:15 +00:00
Source0: http://www.cpan.org/modules/by-module/Error/Error-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2005-12-29 00:30:15 +00:00
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
The Error package provides two interfaces. Firstly Error provides a
procedural interface to exception handling. Secondly Error is a base class
for errors/exceptions that can either be thrown, for subsequent catch, or
can simply be recorded.
2005-12-29 00:30:15 +00:00
%prep
%setup -q -n Error-%{version}
%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 -type d -depth -exec rmdir {} 2>/dev/null \;
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
2005-12-29 00:30:15 +00:00
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
2005-12-29 00:30:15 +00:00
%files
%defattr(-,root,root,-)
%doc ChangeLog README example
%{perl_vendorlib}/*
%{_mandir}/man3/*
2005-12-29 00:30:15 +00:00
%changelog
2006-02-17 19:03:52 +00:00
* Fri Feb 17 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.15-4
- Rebuild for FC5 (perl 5.8.8).
2005-12-29 00:30:15 +00:00
* 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
- rebuilt
* Fri Jun 11 2004 Steven Pritchard <steve@kspei.com> 0:0.15-1
- Specfile autogenerated.