From 142d467c33587570c1b01f847567c44f6cda098f Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Sun, 9 Dec 2007 00:53:57 +0000 Subject: [PATCH] initial commit --- .cvsignore | 1 + perl-Class-Accessor-Grouped.spec | 83 ++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 85 insertions(+) create mode 100644 perl-Class-Accessor-Grouped.spec diff --git a/.cvsignore b/.cvsignore index e69de29..02275f1 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Class-Accessor-Grouped-0.07000.tar.gz diff --git a/perl-Class-Accessor-Grouped.spec b/perl-Class-Accessor-Grouped.spec new file mode 100644 index 0000000..3f90d23 --- /dev/null +++ b/perl-Class-Accessor-Grouped.spec @@ -0,0 +1,83 @@ +Name: perl-Class-Accessor-Grouped +Version: 0.07000 +Release: 1%{?dist} +Summary: Lets you build groups of accessors +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Class-Accessor-Grouped/ +Source0: http://www.cpan.org/authors/id/C/CL/CLACO/Class-Accessor-Grouped-%{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 >= 1:5.6.1 +BuildRequires: perl(ExtUtils::MakeMaker) +#BuildRequires: perl(Carp) +#BuildRequires: perl(Scalar::Util) +# cpan +BuildRequires: perl(Class::Inspector) +BuildRequires: perl(MRO::Compat) +# test +BuildRequires: perl(Test::More) + +%description +This class lets you build groups of accessors that will call different +getters and setters. + +%prep +%setup -q -n Class-Accessor-Grouped-%{version} + +#find t/ -type f -name '*.t' -chmod +perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t + +# Filter unwanted Provides: +cat << \EOF > %{name}-prov +#!/bin/sh +%{__perl_provides} $* |\ + sed -e '/perl(.*Groups.*)/d' -e 's/perl(NotHashBased)//' +EOF + +%define __perl_provides %{_builddir}/Class-Accessor-Grouped-%{version}/%{name}-prov +chmod +x %{__perl_provides} + + +# Filter unwanted Requires: +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} $* |\ + sed -e '/perl(base)/d' +EOF + +%define __perl_requires %{_builddir}/Class-Accessor-Grouped-%{version}/%{name}-req +chmod +x %{__perl_requires} + +%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 t/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Sep 18 2007 Chris Weyl 0.07000-1 +- Specfile autogenerated by cpanspec 1.71. diff --git a/sources b/sources index e69de29..94e30db 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e38f47b4732df2e3af1cdcea035f9b2b Class-Accessor-Grouped-0.07000.tar.gz