From 913d15e495e787c9e529b04c7c58ce0e93acb12a Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Wed, 11 Mar 2020 17:10:44 +0100 Subject: [PATCH] Remove condition for perl(deprecated); Add BRs: perl(Tie::Scalar), perl(Tie::StdScalar) --- perl-Object-Accessor.spec | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/perl-Object-Accessor.spec b/perl-Object-Accessor.spec index 705e124..bd3f17d 100644 --- a/perl-Object-Accessor.spec +++ b/perl-Object-Accessor.spec @@ -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 - 1:0.48-21 +- Remove condition for perl(deprecated) +- Add BRs: perl(Tie::Scalar), perl(Tie::StdScalar) + * Thu Jan 30 2020 Fedora Release Engineering - 1:0.48-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild