Remove condition for perl(deprecated); Add BRs: perl(Tie::Scalar), perl(Tie::StdScalar)

epel9
Jitka Plesnikova 5 years ago
parent aeb96e35e7
commit 913d15e495

@ -2,38 +2,35 @@ Name: perl-Object-Accessor
# Epoch to compete with perl.spec
Epoch: 1
Version: 0.48
Release: 20%{?dist}
Release: 21%{?dist}
Summary: Interface to create per object accessors
License: GPL+ or Artistic
URL: https://metacpan.org/release/Object-Accessor
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Object-Accessor-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-interpreter
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
# Run-time:
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
%if 0%(perl -e 'print $] > 5.017')
BuildRequires: perl(deprecate)
%endif
BuildRequires: perl(if)
BuildRequires: perl(lib)
BuildRequires: perl(overload)
BuildRequires: perl(Params::Check) >= 0.34
# Tie::Scalar is not needed for tests
# Tie::StdScalar is not needed for tests
BuildRequires: perl(Tie::Scalar)
BuildRequires: perl(Tie::StdScalar)
BuildRequires: perl(vars)
# Tests:
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if 0%(perl -e 'print $] > 5.017')
Requires: perl(deprecate)
%endif
%description
Object::Accessor provides an interface to create per object accessors (as
@ -43,12 +40,11 @@ opposed to per Class accessors, as, for example, Class::Accessor provides).
%setup -q -n Object-Accessor-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
@ -60,6 +56,10 @@ make test
%{_mandir}/man3/*
%changelog
* Wed Mar 11 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.48-21
- Remove condition for perl(deprecated)
- Add BRs: perl(Tie::Scalar), perl(Tie::StdScalar)
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.48-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

Loading…
Cancel
Save