[perl-MongoDB] - BR revised - Prepare a MongoDB server to run the test suite - Other minor cleanup
cheeselee
cheeselee at fedoraproject.org
Wed Jan 11 05:49:41 UTC 2012
commit b068a32e6924695fa1a0b573cb95cb0ba4133846
Author: Robin Lee <cheeselee at fedoraproject.org>
Date: Wed Jan 11 13:49:21 2012 +0800
- BR revised
- Prepare a MongoDB server to run the test suite
- Other minor cleanup
perl-MongoDB.spec | 35 +++++++++++++++++++++--------------
1 files changed, 21 insertions(+), 14 deletions(-)
---
diff --git a/perl-MongoDB.spec b/perl-MongoDB.spec
index 1323c45..53d255c 100644
--- a/perl-MongoDB.spec
+++ b/perl-MongoDB.spec
@@ -2,25 +2,30 @@
Name: perl-MongoDB
Version: 0.45
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Database driver
License: ASL 2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/MongoDB/
Source0: http://www.cpan.org/authors/id/K/KR/KRISTINA/MongoDB-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: perl >= 1:5.8.7
+BuildRequires: perl >= 1:5.8.4
+BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Any::Moose)
-BuildRequires: perl(boolean)
BuildRequires: perl(Class::Method::Modifiers)
-BuildRequires: perl(Data::Types)
+BuildRequires: perl(Digest::MD5)
+BuildRequires: perl(Tie::IxHash)
BuildRequires: perl(DateTime)
-BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(XSLoader)
+BuildRequires: perl(boolean)
+# test requires
+BuildRequires: perl(Test::Exception)
+BuildRequires: perl(Data::Types)
BuildRequires: perl(File::Slurp)
+BuildRequires: perl(FileHandle)
BuildRequires: perl(JSON)
-BuildRequires: perl(Test::Exception)
-BuildRequires: perl(Tie::IxHash)
+BuildRequires: perl(File::Temp) >= 0.17
BuildRequires: perl(Try::Tiny)
+BuildRequires: mongodb-server
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
@@ -34,8 +39,6 @@ The perl database access module for MongoDB.
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 {} \;
@@ -45,19 +48,23 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
+mkdir test_db
+mongod --fork --logpath $PWD/mongod.log --pidfilepath $PWD/mongod.pid --dbpath $PWD/test_db/
make test
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+kill `cat mongod.pid`
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/MongoDB*
%{_mandir}/man3/*
%changelog
+* Wed Jan 11 2012 Robin Lee <cheeselee at fedoraproject.org> - 0.45-2
+- BR revised
+- Prepare a MongoDB server to run the test suite
+- Other minor cleanup
+
* Tue Sep 20 2011 Michal Ingeli <mi at v3.sk> 0.45-1
- Upstream upgrade 0.45
- removed ccflags patch, fixed in upstream
More information about the scm-commits
mailing list