Modernize spec.

Convert license to SPDX.
Update sources to sha512.
This commit is contained in:
Ralf Corsépius 2022-11-28 17:01:20 +01:00
parent 87600a9360
commit fd1a4a41c1
2 changed files with 14 additions and 7 deletions

View File

@ -2,7 +2,7 @@
Name: perl-HTML-Format
Version: 2.16
Release: 20%{?dist}
Release: 21%{?dist}
Summary: HTML formatter modules
%if "%{version}" > "2.12"
@ -12,14 +12,16 @@ Summary: HTML formatter modules
%global tarname HTML-Format
%endif
License: GPL+ or Artistic
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/%{tarname}
Source0: https://cpan.metacpan.org/authors/id/N/NI/NIGELM/%{tarname}-%{version}.tar.gz
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: make
BuildRequires: %{__make}
BuildRequires: perl-generators
BuildRequires: perl(base)
BuildRequires: perl(blib)
BuildRequires: perl(bytes)
@ -90,11 +92,11 @@ A collection of modules that formats HTML as plaintext, PostScript or RTF.
%setup -q -n %{tarname}-%{version}
%build
%{__perl} Makefile.PL installdirs=vendor NO_PACKLIST=1
%{__make} %{?_smp_mflags}
%{__perl} Makefile.PL installdirs=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
@ -107,6 +109,11 @@ A collection of modules that formats HTML as plaintext, PostScript or RTF.
%{_mandir}/man3/HTML*
%changelog
* Mon Nov 28 2022 Ralf Corsépius <corsepiu@fedoraproject.org> - 2.16-21
- Modernize spec.
- Convert license to SPDX.
- Update sources to sha512.
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.16-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

View File

@ -1 +1 @@
16adca9bc55dbff85daa6c0ae74ff730 HTML-Formatter-2.16.tar.gz
SHA512 (HTML-Formatter-2.16.tar.gz) = feb09ed5eefa36f1368f051aa077a8123b5c22a50feea10c09f3b7f826c78ac45868a3fde4f96a340bc922a9512afc9c4b02ca6d97d6e538e517e7f3797bd47c