diff --git a/perl-Convert-Bencode.rpmlintrc b/perl-Convert-Bencode.rpmlintrc new file mode 100644 index 0000000..92f291a --- /dev/null +++ b/perl-Convert-Bencode.rpmlintrc @@ -0,0 +1,3 @@ +from Config import * +addFilter("spelling-error Summary\(en_US\) bencoded -> ") +addFilter("spelling-error %description -l en_US b(de|en)coded? -> ") diff --git a/perl-Convert-Bencode.spec b/perl-Convert-Bencode.spec index 8d33ef2..376afc4 100644 --- a/perl-Convert-Bencode.spec +++ b/perl-Convert-Bencode.spec @@ -1,15 +1,17 @@ Name: perl-Convert-Bencode Version: 1.03 -Release: 25%{?dist} +Release: 26%{?dist} Summary: Functions for converting to/from bencoded strings License: GPL+ or Artistic URL: https://metacpan.org/release/Convert-Bencode -Source0: https://cpan.metacpan.org/authors/id/O/OR/ORCLEV/Convert-Bencode-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Convert/Convert-Bencode-%{version}.tar.gz BuildArch: noarch # Build +BuildRequires: coreutils +BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Runtime BuildRequires: perl(bytes) @@ -19,6 +21,7 @@ BuildRequires: perl(strict) BuildRequires: perl(warnings) # Tests only BuildRequires: perl(Test::More) >= 0.45 +# Dependencies Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) %description @@ -29,12 +32,12 @@ decode bencoded strings respectively. %setup -q -n Convert-Bencode-%{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=%{buildroot} -%{_fixperms} %{buildroot}/* +%{make_install} +%{_fixperms} -c %{buildroot} %check make test @@ -42,10 +45,14 @@ make test %files %license LICENSE %doc Changes README Todo -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/Convert/ +%{_mandir}/man3/Convert::Bencode.3* %changelog +* Sat Sep 21 2019 Paul Howarth - 1.03-26 +- Use author-independent source URL +- Modernize spec using %%{make_build} and %%{make_install} + * Fri Jul 26 2019 Fedora Release Engineering - 1.03-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild