From ba5a2a760a4a5c478fb12fbfede276add0a45500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Mon, 6 Jan 2020 10:26:26 +0100 Subject: [PATCH] Specify all dependencies and modernize the spec file --- perl-Filesys-Df.rpmlintrc | 2 ++ perl-Filesys-Df.spec | 36 +++++++++++++++++++++++------------- 2 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 perl-Filesys-Df.rpmlintrc diff --git a/perl-Filesys-Df.rpmlintrc b/perl-Filesys-Df.rpmlintrc new file mode 100644 index 0000000..717433c --- /dev/null +++ b/perl-Filesys-Df.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* DfPortable"); diff --git a/perl-Filesys-Df.spec b/perl-Filesys-Df.spec index 897cc5d..af6d8c9 100644 --- a/perl-Filesys-Df.spec +++ b/perl-Filesys-Df.spec @@ -1,39 +1,46 @@ Name: perl-Filesys-Df Version: 0.92 -Release: 35%{?dist} +Release: 36%{?dist} Summary: Perl extension for filesystem disk space information License: GPL+ or Artistic URL: https://metacpan.org/release/Filesys-Df Source0: https://cpan.metacpan.org/modules/by-module/Filesys/Filesys-Df-%{version}.tar.gz +BuildRequires: findutils BuildRequires: gcc +BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl-interpreter +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Run-time: +BuildRequires: perl(:VERSION) >= 5.6 +BuildRequires: perl(Carp) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description This module provides a way to obtain filesystem disk space information. This is a Unix only distribution. If you want to gather this information for Unix and Windows, use Filesys::DfPortable. The only major benefit of using Filesys::Df over Filesys::DfPortable, is that Filesys::Df supports -the use of open filehandles as arguments. +the use of open file handles as arguments. %prep %setup -q -n Filesys-Df-%{version} #readme is with dos EOL, convert it to unix -sed -i 's/\r//' README +perl -i -pe 's/\r//' README %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install PERL_INSTALL_ROOT=%{buildroot} - -find %{buildroot} -type f -name .packlist -exec rm -f {} \; -find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} \; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; - +%{make_install} +find %{buildroot} -type f -name '*.bs' -empty -delete %{_fixperms} %{buildroot}/* %check @@ -45,6 +52,9 @@ make test %{_mandir}/man3/* %changelog +* Mon Jan 06 2020 Petr Pisar - 0.92-36 +- Specify all dependencies + * Fri Jul 26 2019 Fedora Release Engineering - 0.92-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild