[perl-MongoDB] Use perldoc to find Module::Install::Compiler
李瑞彬
cheeselee at fedoraproject.org
Mon Apr 22 03:43:38 UTC 2013
commit 394130d8fd06d8a511926a4baca6318c62232873
Author: Robin Lee <cheeselee at fedoraproject.org>
Date: Mon Apr 22 11:43:29 2013 +0800
Use perldoc to find Module::Install::Compiler
perl-MongoDB.spec | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/perl-MongoDB.spec b/perl-MongoDB.spec
index c390f64..1891e84 100644
--- a/perl-MongoDB.spec
+++ b/perl-MongoDB.spec
@@ -2,7 +2,7 @@
Name: perl-MongoDB
Version: 0.700.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Database driver
License: ASL 2.0
Group: Development/Libraries
@@ -11,7 +11,7 @@ Source0: http://www.cpan.org/authors/id/K/KR/KRISTINA/MongoDB-%{version}.
BuildRequires: perl >= 1:5.10.0
BuildRequires: openssl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
-BuildRequires: perl(Module::Install)
+BuildRequires: perl(Module::Install::Compiler)
BuildRequires: perl(Any::Moose)
BuildRequires: perl(Moose)
BuildRequires: perl(Class::Method::Modifiers)
@@ -20,6 +20,7 @@ BuildRequires: perl(Tie::IxHash)
BuildRequires: perl(DateTime)
BuildRequires: perl(XSLoader)
BuildRequires: perl(boolean)
+BuildRequires: /usr/bin/perldoc
# test requires
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Warn)
@@ -44,7 +45,7 @@ The perl database access module for MongoDB.
# upstream missed inc::Module::Install::Compiler
# https://github.com/mongodb/mongo-perl-driver/pull/54
-cp %{perl_vendorlib}/Module/Install/Compiler.pm inc/Module/Install
+cp `perldoc -l Module::Install::Compiler` inc/Module/Install
%build
%{__perl} Makefile.PL --ssl INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
@@ -72,6 +73,9 @@ kill `cat mongod.pid`
%{_mandir}/man3/*
%changelog
+* Mon Apr 22 2013 Robin Lee <cheeselee at fedoraproject.org> - 0.700.0-2
+- Use perldoc to find Module::Install::Compiler
+
* Mon Apr 22 2013 Robin Lee <cheeselee at fedoraproject.org> - 0.700.0-1
- Update to 0.700.0
More information about the scm-commits
mailing list