Modernize a spec file

This commit is contained in:
Petr Písař 2020-07-21 13:24:54 +02:00
parent 0427ca54b0
commit 50dcc7bdda
1 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
%global base_version 1.25 %global base_version 1.25
Name: perl-Unicode-Normalize Name: perl-Unicode-Normalize
Version: 1.27 Version: 1.27
Release: 456%{?dist} Release: 457%{?dist}
Summary: Unicode Normalization Forms Summary: Unicode Normalization Forms
License: GPL+ or Artistic License: GPL+ or Artistic
URL: https://metacpan.org/release/Unicode-Normalize URL: https://metacpan.org/release/Unicode-Normalize
@ -10,6 +10,7 @@ Source0: https://cpan.metacpan.org/authors/id/K/KH/KHW/Unicode-Normalize-
Patch0: Unicode-Normalize-1.25-Upgrade-to-1.26.patch Patch0: Unicode-Normalize-1.25-Upgrade-to-1.26.patch
# Unbundled from perl 5.32.0 # Unbundled from perl 5.32.0
Patch1: Unicode-Normalize-1.25-Upgrade-to-1.27.patch Patch1: Unicode-Normalize-1.25-Upgrade-to-1.27.patch
BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
BuildRequires: gcc BuildRequires: gcc
BuildRequires: make BuildRequires: make
@ -41,11 +42,11 @@ Unicode normalization forms as defined in Unicode Standard Annex #15.
%patch0 -p1 %patch0 -p1
%build %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT %{make_install}
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
@ -60,6 +61,9 @@ make test
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Tue Jul 21 2020 Petr Pisar <ppisar@redhat.com> - 1.27-457
- Modernize a spec file
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.27-456 * Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.27-456
- Upgrade to 1.27 as provided in perl-5.32.0 - Upgrade to 1.27 as provided in perl-5.32.0