|
|
|
@ -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 <ppisar@redhat.com> - 0.92-36
|
|
|
|
|
- Specify all dependencies
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-35
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|