You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Class-Accessor-Grouped/perl-Class-Accessor-Grouped...

93 lines
2.3 KiB

17 years ago
Name: perl-Class-Accessor-Grouped
Version: 0.07000
17 years ago
Release: 4%{?dist}
17 years ago
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
17 years ago
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.07000-4
Rebuild for new perl
17 years ago
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.07000-3
- rebuild for new perl
17 years ago
* Sat Dec 08 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07000-2
- bump
17 years ago
* Tue Sep 18 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07000-1
- Specfile autogenerated by cpanspec 1.71.