diff --git a/perl-Tie-EncryptedHash.rpmlintrc b/perl-Tie-EncryptedHash.rpmlintrc new file mode 100644 index 0000000..9cc3a23 --- /dev/null +++ b/perl-Tie-EncryptedHash.rpmlintrc @@ -0,0 +1,3 @@ +from Config import * + +addFilter("spelling-error %description -l en_US (ciphertext|decrypt|keyspace) -> ") diff --git a/perl-Tie-EncryptedHash.spec b/perl-Tie-EncryptedHash.spec index bf58d9e..e833b2e 100644 --- a/perl-Tie-EncryptedHash.spec +++ b/perl-Tie-EncryptedHash.spec @@ -1,24 +1,34 @@ Summary: Hashes (and objects based on hashes) with encrypting fields Name: perl-Tie-EncryptedHash Version: 1.24 -Release: 32%{?dist} +Release: 33%{?dist} License: GPL+ or Artistic -Url: https://metacpan.org/release/Tie-EncryptedHash -Source0: https://cpan.metacpan.org/authors/id/V/VI/VIPUL/Tie-EncryptedHash-%{version}.tar.gz +URL: https://metacpan.org/release/Tie-EncryptedHash +Source0: https://cpan.metacpan.org/modules/by-module/Tie/Tie-EncryptedHash-%{version}.tar.gz BuildArch: noarch -BuildRequires: make +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: sed # Run-time BuildRequires: perl(Carp) +BuildRequires: perl(Crypt::Blowfish) BuildRequires: perl(Crypt::CBC) BuildRequires: perl(Crypt::DES) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Digest::MD5) +BuildRequires: perl(strict) +BuildRequires: perl(vars) # Tests -BuildRequires: perl(Crypt::Blowfish) BuildRequires: perl(lib) +BuildRequires: perl(warnings) +# Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Crypt::Blowfish) +Requires: perl(Crypt::DES) %description Tie::EncryptedHash augments Perl hash semantics to build secure, encrypting @@ -40,6 +50,8 @@ default, but can be instructed to employ any cipher supported by Crypt::CBC(3). %prep %setup -q -n Tie-EncryptedHash-%{version} + +# Drop redundant shellbang in perl module sed -i -e '/^#! *\/usr\/bin\/perl /d' lib/Tie/EncryptedHash.pm %build @@ -50,17 +62,28 @@ make %{?_smp_mflags} make test %install -rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -%{_fixperms} %{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} %files -%doc Changes LICENSE README.html TODO +%license LICENSE +%doc Changes README.html TODO %{perl_vendorlib}/Tie/ -%{_mandir}/man3/Tie::EncryptedHash.3pm* +%{_mandir}/man3/Tie::EncryptedHash.3* %changelog +* Fri Jan 15 2021 Paul Howarth - 1.24-33 +- Spec tidy-up + - Use author-independent source URL + - Specify all build dependencies + - Explicitly require default encryption module, Crypt::Blowfish + - Explicitly require Crypt::DES too, as per META.yml + - Drop redundant buildroot cleaning in %%install section + - Simplify find command using -delete + - Fix permissions verbosely + - Use %%license macro + * Tue Jul 28 2020 Fedora Release Engineering - 1.24-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild