Modernize spec

- Use %{make_build} and %{make_install}
- Use author-independent source URL
e8
Paul Howarth 5 years ago
parent b65ec0d686
commit 9f7a2c9ca5

@ -1,18 +1,18 @@
Name: perl-PerlIO-gzip
Version: 0.20
Release: 9%{?dist}
Release: 10%{?dist}
Summary: Perl extension to provide a PerlIO layer to gzip/gunzip
License: GPL+ or Artistic
URL: https://metacpan.org/release/PerlIO-gzip
Source0: https://cpan.metacpan.org/authors/id/N/NW/NWCLARK/PerlIO-gzip-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/PerlIO/PerlIO-gzip-%{version}.tar.gz
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: zlib-devel
@ -47,10 +47,10 @@ perl Makefile.PL \
OPTIMIZE="%{optflags}" \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make %{?_smp_mflags}
%{make_build}
%install
make install DESTDIR=%{buildroot}
%{make_install}
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}
@ -64,6 +64,11 @@ make test
%{_mandir}/man3/PerlIO::gzip.3*
%changelog
* Thu Sep 26 2019 Paul Howarth <paul@city-fan.org> - 0.20-10
- Modernize spec
- Use %%{make_build} and %%{make_install}
- Use author-independent source URL
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save