[perl-Object-InsideOut] use perl_bootstrap macro
Marcela Mašláňová
mmaslano at fedoraproject.org
Tue Jun 28 11:53:22 UTC 2011
commit 7734a12b94568cec884980cc270d5f13b1feca61
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date: Tue Jun 28 13:52:52 2011 +0200
use perl_bootstrap macro
perl-Object-InsideOut.spec | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
---
diff --git a/perl-Object-InsideOut.spec b/perl-Object-InsideOut.spec
index 07ee1f4..8648c79 100644
--- a/perl-Object-InsideOut.spec
+++ b/perl-Object-InsideOut.spec
@@ -1,6 +1,6 @@
Name: perl-Object-InsideOut
Version: 3.79
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Comprehensive inside-out object support module
Group: Development/Libraries
@@ -11,10 +11,11 @@ Source0: http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/Object-InsideOut-%
BuildArch: noarch
BuildRequires: perl(Exception::Class) >= 1.29
BuildRequires: perl(Want) >= 0.12
+%if !%{defined perl_bootstrap}
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Math::Random::MT::Auto)
-
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
### auto-added brs!
@@ -22,7 +23,9 @@ BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Scalar::Util) >= 1.23
BuildRequires: perl(Config)
+%if !%{defined perl_bootstrap}
BuildRequires: perl(Test::More) >= 0.5
+%endif
BuildRequires: perl(B)
### auto-added reqs!
@@ -43,13 +46,9 @@ set as readonly to prevent accidental modifications to the ID. Object data
(i.e., fields) are stored within the class's package in either arrays indexed
by the object's ID, or hashes keyed to the object's ID.
-%{?filter_setup:
-%filter_from_requires /perl(t::Imp*/d
-%filter_from_requires /perl(Math::Random::MT::Auto)/d
-%filter_from_provides /perl(Object::InsideOut)$/d
-%?perl_default_filter
-}
-
+%{?perl_default_filter}
+%global __provides_exclude %{?__provides_exclude}|perl\\(Object::InsideOut\\)
+%global __requires_exclude %{?__requires_exclude}|perl\\(t::Imp|perl\\(Math::Random::MT::Auto\\)
%prep
%setup -q -n Object-InsideOut-%{version}
@@ -68,8 +67,9 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%check
+%if !%{defined perl_bootstrap}
make test
-
+%endif
%files
%defattr(-,root,root,-)
@@ -79,6 +79,9 @@ make test
%changelog
+* Tue Jun 28 2011 Marcela Mašláňová <mmaslano at redhat.com> - 3.79-2
+- use perl_bootstrap macro
+
* Fri Feb 25 2011 Iain Arnell <iarnell at gmail.com> 3.79-1
- update to latest upstream version
More information about the perl-devel
mailing list