- subpackage tests, drop t/ from doc

- update filtering (perl_default_filter)
- PERL_INSTALL_ROOT => DESTDIR in make install
- auto-update to 0.09002 (by cpan-spec-update 0.01)
epel9
Chris Weyl 15 years ago
parent b208b07c26
commit 247c6137dc

@ -1,7 +1,7 @@
Name: perl-Class-Accessor-Grouped
Version: 0.09000
Version: 0.09002
Release: 1%{?dist}
Summary: Lets you build groups of accessors
Summary: Build groups of accessors
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Class-Accessor-Grouped/
@ -10,30 +10,25 @@ 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) >= 6.42
#BuildRequires: perl(Carp)
#BuildRequires: perl(Scalar::Util)
# cpan
BuildRequires: perl(Carp)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Class::Inspector)
BuildRequires: perl(MRO::Compat)
# test
BuildRequires: perl(Test::More)
BuildRequires: perl(Sub::Identify)
BuildRequires: perl(Sub::Name) >= 0.04
BuildRequires: perl(CPAN)
### auto-added reqs!
Requires: perl(Carp)
Requires: perl(Class::Inspector)
Requires: perl(MRO::Compat)
Requires: perl(Scalar::Util)
Requires: perl(Sub::Name) >= 0.04
### auto-added brs!
BuildRequires: perl(Carp)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Identify)
BuildRequires: perl(Sub::Name) >= 0.04
BuildRequires: perl(CPAN)
%{?perl_default_filter}
%{?perl_default_subpackage_tests}
%description
This class lets you build groups of accessors that will call different
@ -42,30 +37,6 @@ 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}
@ -73,7 +44,7 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
@ -88,11 +59,20 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes README t/
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sun Feb 07 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.09002-1
- subpackage tests, drop t/ from doc
- update filtering (perl_default_filter)
- PERL_INSTALL_ROOT => DESTDIR in make install
- auto-update to 0.09002 (by cpan-spec-update 0.01)
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.09000-2
- rebuild against perl 5.10.1
* Tue Aug 25 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.09000-1
- auto-update to 0.09000 (by cpan-spec-update 0.01)
- added a new br on perl(Carp) (version 0)

@ -1 +1 @@
3e45eaf661a67dfc86becec239712355 Class-Accessor-Grouped-0.09000.tar.gz
86c3b2aacdaabf5e98110be04ac2f48e Class-Accessor-Grouped-0.09002.tar.gz

Loading…
Cancel
Save