From e5a46ea6e7239bd2b0900f54f5c098d546fc13a1 Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Wed, 17 Aug 2005 22:51:45 +0000 Subject: [PATCH] auto-import perl-Exception-Class-1.21-1 on branch devel from perl-Exception-Class-1.21-1.src.rpm --- .cvsignore | 1 + perl-Exception-Class.spec | 60 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+) create mode 100644 perl-Exception-Class.spec diff --git a/.cvsignore b/.cvsignore index e69de29..3ea7707 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Exception-Class-1.21.tar.gz diff --git a/perl-Exception-Class.spec b/perl-Exception-Class.spec new file mode 100644 index 0000000..15a58ff --- /dev/null +++ b/perl-Exception-Class.spec @@ -0,0 +1,60 @@ +%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)} + +Name: perl-Exception-Class +Version: 1.21 +Release: 1%{?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/modules/by-module/Exception/Exception-Class-1.21.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(Test::More) >= 0.46 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Devel::StackTrace) >= 1.1 +BuildRequires: perl(Class::Data::Inheritable) >= 0.02 +Requires: perl(Test::More) >= 0.46 +Requires: perl(Scalar::Util) +Requires: perl(Devel::StackTrace) >= 1.1 +Requires: perl(Class::Data::Inheritable) >= 0.02 +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} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile +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/* + +%check || : +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Aug 16 2005 Steven Pritchard 1.21-1 +- Specfile autogenerated. diff --git a/sources b/sources index e69de29..be1d74f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3268817e7fa4367209f666bd8e33037c Exception-Class-1.21.tar.gz