From a31cb6542c2e3db3cdc0367203fbc3b9cae8b5b6 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Thu, 7 Sep 2006 22:50:44 +0000 Subject: [PATCH] auto-import perl-SUPER-1.14-3.fc5 on branch devel from perl-SUPER-1.14-3.fc5.src.rpm --- .cvsignore | 1 + filter-provides.sh | 3 +++ perl-SUPER.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 67 insertions(+) create mode 100755 filter-provides.sh create mode 100644 perl-SUPER.spec diff --git a/.cvsignore b/.cvsignore index e69de29..db58263 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +SUPER-1.14.tar.gz diff --git a/filter-provides.sh b/filter-provides.sh new file mode 100755 index 0000000..50fa104 --- /dev/null +++ b/filter-provides.sh @@ -0,0 +1,3 @@ +#!/bin/sh +/usr/lib/rpm/perl.prov $* | + sed -e '/perl(UNIVERSAL)/d' -e '/perl(DB)/d' diff --git a/perl-SUPER.spec b/perl-SUPER.spec new file mode 100644 index 0000000..a462a4a --- /dev/null +++ b/perl-SUPER.spec @@ -0,0 +1,62 @@ +Name: perl-SUPER +Version: 1.14 +Release: 3%{?dist} +Summary: Sane superclass method dispatcher +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/SUPER/ +Source0: http://www.cpan.org/authors/id/C/CH/CHROMATIC/SUPER-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +# We don't really want to provide: perl(UNIVERSAL) +Source98: filter-provides.sh +%define __perl_provides %{SOURCE98} + +BuildRequires: perl(Module::Build) +BuildRequires: perl(Sub::Identify) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +When subclassing a class, you occasionally want to dispatch control to the +superclass -- at least conditionally and temporarily. This module provides +an easier, cleaner way for class methods to access their ancestor's +implementation. + +%prep +%setup -q -n SUPER-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build + +%install +rm -rf %{buildroot} + +./Build install destdir=%{buildroot} create_packlist=0 +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +./Build test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Sep 07 2006 Chris Weyl 1.14-3 +- update %%description and %%summary + +* Thu Sep 07 2006 Chris Weyl 1.14-2 +- filter errant perl(DB) provide + +* Tue Sep 05 2006 Chris Weyl 1.14-1 +- Specfile autogenerated by cpanspec 1.69.1. diff --git a/sources b/sources index e69de29..99604e3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +591389c353df308ee9e70d38f0e3570b SUPER-1.14.tar.gz