diff --git a/.cvsignore b/.cvsignore index e69de29..572b006 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Class-Base-0.03.tar.gz diff --git a/perl-Class-Base.spec b/perl-Class-Base.spec new file mode 100644 index 0000000..70992a5 --- /dev/null +++ b/perl-Class-Base.spec @@ -0,0 +1,56 @@ +Name: perl-Class-Base +Version: 0.03 +Release: 1%{?dist} +Summary: Useful base class for deriving other modules +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Class-Base/ +Source0: http://www.cpan.org/authors/id/A/AB/ABW/Class-Base-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# core +BuildRequires: perl(ExtUtils::MakeMaker) +# cpan + + +%description +This module implements a simple base class from which other modules can be +derived, thereby inheriting a number of useful methods such as new(), +init(), params(), clone(), error() and debug(). + +%prep +%setup -q -n Class-Base-%{version} + +chmod -c -x test.pl + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc Changes README TODO test.pl +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon May 14 2007 Chris Weyl 0.03-1 +- Specfile autogenerated by cpanspec 1.71. diff --git a/sources b/sources index e69de29..c1e6157 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +213f52c9747d2ea861c92bcd02842353 Class-Base-0.03.tar.gz