Modernize a spec file

This commit is contained in:
Petr Písař 2020-01-06 13:03:45 +01:00
parent 4b8f7a4feb
commit c35c5ebdd1

View File

@ -9,17 +9,25 @@ Source0: https://cpan.metacpan.org/authors/id/G/GB/GBARR/TimeDate-%{versi
# Adjust tests to pass 4-digit years to Time::Local, CPAN RT#124509
Patch0: TimeDate-2.30-Pass_4_digit_year_in_tests.patch
BuildArch: noarch
BuildRequires: coreutils
# glibc-common for iconv tool
BuildRequires: glibc-common
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.4
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::Local)
BuildRequires: perl(utf8)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
# Tests:
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
@ -39,12 +47,11 @@ mv ChangeLog.utf8 ChangeLog
chmod -x lib/Date/Language/{Russian_cp1251,Russian_koi8r,Turkish}.pm
%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
@ -59,6 +66,7 @@ make test
%changelog
* Mon Jan 06 2020 Petr Pisar <ppisar@redhat.com> - 1:2.30-19
- Adjust tests to pass 4-digit years to Time::Local (CPAN RT#124509)
- Modernize a spec file
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.30-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild