psabata pushed to perl-Memoize-ExpireLRU (master). "Prevent the FTBFS by correcting the build time dependency list (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Aug 10 17:37:41 UTC 2015


From b573257643fa40f37588c7804651c069d389ffe2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk at redhat.com>
Date: Mon, 10 Aug 2015 19:37:34 +0200
Subject: Prevent the FTBFS by correcting the build time dependency list

- Modernize the spec file

diff --git a/perl-Memoize-ExpireLRU.spec b/perl-Memoize-ExpireLRU.spec
index 9dae1a1..582ff29 100644
--- a/perl-Memoize-ExpireLRU.spec
+++ b/perl-Memoize-ExpireLRU.spec
@@ -1,23 +1,23 @@
 Name:           perl-Memoize-ExpireLRU
 Version:        0.55
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        Expiry plug-in for Memoize that adds LRU cache expiration
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Memoize-ExpireLRU/
 Source0:        http://www.cpan.org/authors/id/B/BP/BPOWERS/Memoize-ExpireLRU-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(ExtUtils::MakeMaker)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-# RPM 4.8 style:
-%{?perl_default_filter:
-%filter_from_provides /perl(Memoize::ExpireLRU)$/d
-%perl_default_filter
-}
-# RPM 4.9 style:
-%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(Memoize::ExpireLRU\\)\\s*$
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(AutoLoader)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+# Tests only
+BuildRequires:  perl(Memoize)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 
 %description
 This module implements an expiry policy for Memoize that follows LRU
@@ -28,32 +28,26 @@ argument to the CACHESIZE parameter, will be cached.
 %setup -q -n Memoize-ExpireLRU-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 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 \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Mon Aug 10 2015 Petr Ĺ abata <contyk at redhat.com> - 0.55-16
+- Prevent the FTBFS by correcting the build time dependency list
+- Modernize the spec file
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.55-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Memoize-ExpireLRU.git/commit/?h=master&id=b573257643fa40f37588c7804651c069d389ffe2


More information about the perl-devel mailing list