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.
136 lines
4.0 KiB
136 lines
4.0 KiB
Name: perl-Class-Accessor-Grouped
|
|
Version: 0.09000
|
|
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://search.cpan.org/CPAN/authors/id/R/RK/RKITOVER/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) >= 6.42
|
|
#BuildRequires: perl(Carp)
|
|
#BuildRequires: perl(Scalar::Util)
|
|
# cpan
|
|
BuildRequires: perl(Class::Inspector)
|
|
BuildRequires: perl(MRO::Compat)
|
|
# test
|
|
BuildRequires: perl(Test::More)
|
|
|
|
### 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)
|
|
|
|
%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 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)
|
|
- altered br on perl(ExtUtils::MakeMaker) (0 => 6.42)
|
|
- added a new br on perl(Scalar::Util) (version 0)
|
|
- added a new br on perl(Sub::Identify) (version 0)
|
|
- added a new br on perl(Sub::Name) (version 0.04)
|
|
- added a new br on CPAN (inc::Module::AutoInstall found)
|
|
- added a new req on perl(Carp) (version 0)
|
|
- added a new req on perl(Class::Inspector) (version 0)
|
|
- added a new req on perl(MRO::Compat) (version 0)
|
|
- added a new req on perl(Scalar::Util) (version 0)
|
|
- added a new req on perl(Sub::Name) (version 0.04)
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08003-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Apr 02 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.08003-1
|
|
- update to 0.08003
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08002-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Tue Dec 02 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.08002-1
|
|
- update to 0.08002
|
|
|
|
* Wed May 21 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.08001-1
|
|
- update to 0.08001
|
|
|
|
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.07000-4
|
|
Rebuild for new perl
|
|
|
|
* Wed Mar 05 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.07000-3
|
|
- rebuild for new perl
|
|
|
|
* Sat Dec 08 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07000-2
|
|
- bump
|
|
|
|
* Tue Sep 18 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.07000-1
|
|
- Specfile autogenerated by cpanspec 1.71.
|