|
|
|
@ -1,53 +1,68 @@
|
|
|
|
|
# Use optional Class::XSAccessor
|
|
|
|
|
%bcond_without perl_Class_Accessor_Grouped_enables_Class_XSAccessor
|
|
|
|
|
# Run optional test
|
|
|
|
|
%bcond_without perl_Class_Accessor_Grouped_enables_optional_test
|
|
|
|
|
# Support arbitrary method names using Sub::Name
|
|
|
|
|
%bcond_without perl_Class_Accessor_Grouped_enables_Sub_Name
|
|
|
|
|
|
|
|
|
|
Name: perl-Class-Accessor-Grouped
|
|
|
|
|
Version: 0.10012
|
|
|
|
|
Release: 11%{?dist}
|
|
|
|
|
Version: 0.10014
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Build groups of accessors
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: https://metacpan.org/release/Class-Accessor-Grouped
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/Class-Accessor-Grouped-%{version}.tar.gz
|
|
|
|
|
Patch0: Class-Accessor-Grouped-0.10012-Fix-building-on-Perl-without-dot-in-INC.patch
|
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/Class-Accessor-Grouped-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
|
BuildRequires: perl(Config)
|
|
|
|
|
BuildRequires: perl(CPAN)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MM_Unix)
|
|
|
|
|
BuildRequires: perl(Fcntl)
|
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
|
BuildRequires: perl(File::Path)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: perl(:VERSION) >= 5.6
|
|
|
|
|
BuildRequires: perl(ExtUtils::HasCompiler)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
BuildRequires: perl(Text::ParseWords)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Runtime
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
|
BuildRequires: perl(Module::Runtime)
|
|
|
|
|
BuildRequires: perl(Module::Runtime) >= 0.012
|
|
|
|
|
BuildRequires: perl(mro)
|
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
|
# Tests only
|
|
|
|
|
# Optional run-time:
|
|
|
|
|
%if %{with perl_Class_Accessor_Grouped_enables_Sub_Name}
|
|
|
|
|
BuildRequires: perl(Sub::Name) >= 0.05
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with perl_Class_Accessor_Grouped_enables_Class_XSAccessor}
|
|
|
|
|
BuildRequires: perl(Class::XSAccessor) >= 1.19
|
|
|
|
|
%endif
|
|
|
|
|
# Tests
|
|
|
|
|
BuildRequires: perl(base)
|
|
|
|
|
BuildRequires: perl(Class::XSAccessor)
|
|
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
|
%if %{with perl_Class_Accessor_Grouped_enables_Sub_Name}
|
|
|
|
|
BuildRequires: perl(Devel::Hide)
|
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
|
|
|
BuildRequires: perl(File::Spec::Unix)
|
|
|
|
|
BuildRequires: perl(FindBin)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
BuildRequires: perl(Package::Stash)
|
|
|
|
|
BuildRequires: perl(Sub::Name)
|
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
%if %{with perl_Class_Accessor_Grouped_enables_optional_test}
|
|
|
|
|
# Optional tests:
|
|
|
|
|
# MRO::Compat not used on Perl >= 5.9.5
|
|
|
|
|
BuildRequires: perl(Package::Stash)
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
|
Requires: perl(Class::XSAccessor) >= 1.19
|
|
|
|
|
Requires: perl(Sub::Name) >= 0.05
|
|
|
|
|
%if %{with perl_Class_Accessor_Grouped_enables_Class_XSAccessor}
|
|
|
|
|
Recommends: perl(Class::XSAccessor) >= 1.19
|
|
|
|
|
%endif
|
|
|
|
|
Requires: perl(mro)
|
|
|
|
|
%if %{with perl_Class_Accessor_Grouped_enables_Sub_Name}
|
|
|
|
|
Recommends: perl(Sub::Name) >= 0.05
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
|
|
|
|
@ -57,15 +72,16 @@ getters and setters.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Class-Accessor-Grouped-%{version}
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
# Remove bundled modules
|
|
|
|
|
rm -r inc
|
|
|
|
|
sed -i -e '/^inc\//d' MANIFEST
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find %{buildroot} -type f -name .packlist -delete
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -77,6 +93,9 @@ make test
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jul 02 2018 Petr Pisar <ppisar@redhat.com> - 0.10014-1
|
|
|
|
|
- 0.10014 bump
|
|
|
|
|
|
|
|
|
|
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.10012-11
|
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
|
|
|
|
|