From a1becf0f9ee57834fc272d927b096f81c7a4eff8 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Thu, 18 Feb 2016 15:57:22 +0100 Subject: Package cleanup
--- perl-Format-Human-Bytes.spec | 43 +++++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/perl-Format-Human-Bytes.spec b/perl-Format-Human-Bytes.spec index 30e9ef5..fb33676 100644 --- a/perl-Format-Human-Bytes.spec +++ b/perl-Format-Human-Bytes.spec @@ -1,18 +1,26 @@ Name: perl-Format-Human-Bytes Version: 0.06 -Release: 15%{?dist} +Release: 16%{?dist} Summary: Format a bytecount and make it human readable License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/Format-Human-Bytes/ Source0: http://www.cpan.org/authors/id/S/SE/SEWI/Format-Human-Bytes-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: Format-Human-Bytes-no-autoinstall.patch BuildArch: noarch -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(Module::Install) +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: sed +# Run-time +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Tests BuildRequires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description This module returns you a printable string which is more readable by humans than @@ -22,33 +30,32 @@ a simple bytecount. %setup -q -n Format-Human-Bytes-%{version} %patch0 -p1 -b .noautoinstall +# Remove bundled libraries +rm -r inc +sed -i -e '/^inc\// d' MANIFEST +find -type f -exec chmod -x {} + + %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT - -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT - -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -delete %{_fixperms} $RPM_BUILD_ROOT/* %check make test -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Thu Feb 18 2016 Jitka Plesnikova <jples...@redhat.com> - 0.06-16 +- Package cleanup + * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 0.06-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Format-Human-Bytes.git/commit/?h=master&id=a1becf0f9ee57834fc272d927b096f81c7a4eff8 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@lists.fedoraproject.org http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org