From e9b6927a59730f9efc2c0a98918eb96e2d7cad77 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Fri, 19 Feb 2016 14:37:55 +0100 Subject: Package cleanup
--- perl-Module-Math-Depends.spec | 55 ++++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/perl-Module-Math-Depends.spec b/perl-Module-Math-Depends.spec index efb8e77..5c93613 100644 --- a/perl-Module-Math-Depends.spec +++ b/perl-Module-Math-Depends.spec @@ -1,21 +1,34 @@ Name: perl-Module-Math-Depends Version: 0.02 -Release: 20%{?dist} +Release: 21%{?dist} Summary: Convenience object for manipulating module dependencies License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/Module-Math-Depends/ Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Module-Math-Depends-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: perl >= 0:5.005 -BuildRequires: perl(ExtUtils::MakeMaker) +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(Carp) BuildRequires: perl(Params::Util) >= 0.10 -BuildRequires: perl(Test::More) >= 0.42 +BuildRequires: perl(strict) +BuildRequires: perl(vars) BuildRequires: perl(version) >= 0.74 +# Tests +BuildRequires: perl(constant) +BuildRequires: perl(Test::More) >= 0.42 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Params::Util) >= 0.10 Requires: perl(version) >= 0.74 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Params::Util\\)\s*$ +%global __requires_exclude %__requires_exclude|^perl\\(version\\)\s*$ %description This is a small convenience module created originally as part of @@ -25,33 +38,33 @@ find it useful in other contexts. %prep %setup -q -n Module-Math-Depends-%{version} +# 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 LICENSE README +%license LICENSE +%doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Fri Feb 19 2016 Jitka Plesnikova <jples...@redhat.com> - 0.02-21 +- Package cleanup + * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 0.02-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild @@ -106,7 +119,7 @@ rm -rf $RPM_BUILD_ROOT * Thu Feb 26 2009 Fedora Release Engineering <rel-...@lists.fedoraproject.org> - 0.02-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild -* Thu Sep 24 2008 Marcela Mašláňová <mmasl...@redhat.com> 0.02-2 +* Thu Sep 25 2008 Marcela Mašláňová <mmasl...@redhat.com> 0.02-2 - fix description and changelog, thanks mcepl * Wed Sep 24 2008 Marcela Mašláňová <mmasl...@redhat.com> 0.02-1 -- cgit v0.12 http://pkgs.fedoraproject.org/cgit/perl-Module-Math-Depends.git/commit/?h=master&id=e9b6927a59730f9efc2c0a98918eb96e2d7cad77 -- 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