!7 remove mongodb
From: @weiwei_150212 Reviewed-by: @small_leek,@hanxinke Signed-off-by: @small_leek,@hanxinke
This commit is contained in:
commit
d0e32b09fc
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-beaker
|
Name: python-beaker
|
||||||
Version: 1.10.0
|
Version: 1.10.0
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: A web session and general caching library.
|
Summary: A web session and general caching library.
|
||||||
License: BSD and MIT
|
License: BSD and MIT
|
||||||
URL: http://beaker.readthedocs.io
|
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
|
Patch6000: beaker-use-system-paste.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: %{_bindir}/mongod %{_bindir}/redis-server %{_bindir}/pkill %{_bindir}/netstat git
|
BuildRequires: %{_bindir}/redis-server %{_bindir}/netstat git
|
||||||
|
|
||||||
%global _description\
|
%global _description\
|
||||||
Beaker is a caching library that includes Session and Cache objects\
|
Beaker is a caching library that includes Session and Cache objects\
|
||||||
@ -23,7 +23,7 @@ is also included to manage Session objects and signed cookies.
|
|||||||
%package -n python2-beaker
|
%package -n python2-beaker
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
BuildRequires: python2-devel python2dist(cryptography) python2dist(funcsigs) python2dist(mock)
|
BuildRequires: python2-devel python2dist(cryptography) python2dist(funcsigs) python2dist(mock)
|
||||||
BuildRequires: python2dist(nose) python2dist(paste) python2dist(pycrypto) python2dist(pymongo)
|
BuildRequires: python2dist(nose) python2dist(paste) python2dist(pycrypto)
|
||||||
BuildRequires: python2dist(redis) python2dist(setuptools) python2dist(sqlalchemy)
|
BuildRequires: python2dist(redis) python2dist(setuptools) python2dist(sqlalchemy)
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python2dist(webtest)
|
BuildRequires: python2dist(webtest)
|
||||||
@ -43,7 +43,7 @@ Obsoletes: %{name} < %{version}-%{release}
|
|||||||
%package -n python3-beaker
|
%package -n python3-beaker
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
BuildRequires: python3-devel python3dist(cryptography) python3dist(funcsigs) python3dist(mock)
|
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)
|
BuildRequires: python3dist(redis) python3dist(setuptools) python3dist(sqlalchemy)
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3dist(webtest)
|
BuildRequires: python3dist(webtest)
|
||||||
@ -72,10 +72,6 @@ Recommends: python3dist(cryptography) python3dist(pycrypto) python3dist(pycrypto
|
|||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
redis-server &
|
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
|
rm -rf /tmp/beaker-tests
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} -m nose -v
|
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} -m nose -v
|
||||||
@ -83,7 +79,6 @@ PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} -m nose -v
|
|||||||
rm -rf /tmp/beaker-tests
|
rm -rf /tmp/beaker-tests
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m nose -v
|
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m nose -v
|
||||||
|
|
||||||
pkill mongod
|
|
||||||
kill %1
|
kill %1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -100,6 +95,9 @@ kill %1
|
|||||||
%{python3_sitelib}/Beaker*
|
%{python3_sitelib}/Beaker*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Dec 12 2020 tianwei <tianwei12@huawei.com> - 1.10.0-5
|
||||||
|
- remove mongod
|
||||||
|
|
||||||
* Thu Nov 21 2019 fangyufa <fangyufa1@huawei.com> - 1.10.0-4
|
* Thu Nov 21 2019 fangyufa <fangyufa1@huawei.com> - 1.10.0-4
|
||||||
- add buildrequires of git for x86_64 build
|
- add buildrequires of git for x86_64 build
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user