parent
f7d30836c3
commit
142d467c33
@ -0,0 +1 @@
|
||||
Class-Accessor-Grouped-0.07000.tar.gz
|
@ -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 <cweyl@alumni.drew.edu> 0.07000-1
|
||||
- Specfile autogenerated by cpanspec 1.71.
|
Loading…
Reference in new issue