!4 remove mongod

From: @weiwei_150212
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
This commit is contained in:
openeuler-ci-bot 2020-12-14 19:55:17 +08:00 committed by Gitee
commit 555e9ae07a

View File

@ -2,7 +2,7 @@
Name: python-beaker
Version: 1.10.0
Release: 5
Release: 6
Summary: A web session and general caching library.
License: BSD and MIT
URL: http://beaker.readthedocs.io
@ -11,7 +11,7 @@ Source0: https://github.com/bbangert/beaker/archive/%{version}/beaker-%{version}
Patch6000: beaker-use-system-paste.patch
BuildArch: noarch
BuildRequires: %{_bindir}/mongod %{_bindir}/redis-server %{_bindir}/pkill %{_bindir}/netstat git
BuildRequires: %{_bindir}/redis-server %{_bindir}/netstat git
%global _description\
Beaker is a caching library that includes Session and Cache objects\
@ -24,7 +24,7 @@ is also included to manage Session objects and signed cookies.
%package -n python3-beaker
Summary: %summary
BuildRequires: python3-devel python3dist(cryptography) python3dist(funcsigs) python3dist(mock)
BuildRequires: python3dist(nose) python3dist(paste) python3dist(pycrypto) python3dist(pymongo)
BuildRequires: python3dist(nose) python3dist(paste) python3dist(pycrypto)
BuildRequires: python3dist(redis) python3dist(setuptools) python3dist(sqlalchemy)
%if %{with tests}
BuildRequires: python3dist(webtest)
@ -51,15 +51,10 @@ Recommends: python3dist(cryptography) python3dist(pycrypto) python3dist(pycrypto
%if %{with tests}
%check
redis-server &
if [ "$(netstat -ln | grep :27017)" != "" ]; then pkill mongod; fi
mkdir ./mongod
mongod --fork --dbpath ./mongod --logpath ./mongod/mongod.log
while [ "$(netstat -ln | grep :27017)" == "" ]; do sleep 1; done
rm -rf /tmp/beaker-tests
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m nose -v
pkill mongod
kill %1
%endif
@ -70,6 +65,9 @@ kill %1
%{python3_sitelib}/Beaker*
%changelog
* Sat Dec 12 2020 tianwei <tianwei12@huawei.com> - 1.10.0-6
- remove mongod
* Wed Aug 5 2020 tianwei <tianwei12@huawei.com> - 1.10.0-5
- delete python2.