commit
9d3b13d877
@ -2,7 +2,7 @@
|
||||
|
||||
Name: python-beaker
|
||||
Version: 1.10.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: A web session and general caching library.
|
||||
License: BSD and MIT
|
||||
URL: http://beaker.readthedocs.io
|
||||
@ -20,25 +20,6 @@ is also included to manage Session objects and signed cookies.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-beaker
|
||||
Summary: %summary
|
||||
BuildRequires: python2-devel python2dist(cryptography) python2dist(funcsigs) python2dist(mock)
|
||||
BuildRequires: python2dist(nose) python2dist(paste) python2dist(pycrypto) python2dist(pymongo)
|
||||
BuildRequires: python2dist(redis) python2dist(setuptools) python2dist(sqlalchemy)
|
||||
%if %{with tests}
|
||||
BuildRequires: python2dist(webtest)
|
||||
%endif
|
||||
|
||||
Requires: python2dist(funcsigs) python2dist(paste)
|
||||
Recommends: python2dist(cryptography) python2dist(pycrypto) python2dist(pycryptodome) python2dist(pycryptopp)
|
||||
|
||||
%{?python_provide:%python_provide python2-beaker}
|
||||
Provides: %{name} = %{version}-%{release} %{name}%{?_isa} = %{version}-%{release}
|
||||
Obsoletes: %{name} < %{version}-%{release}
|
||||
|
||||
%description -n python2-beaker
|
||||
%_description
|
||||
|
||||
|
||||
%package -n python3-beaker
|
||||
Summary: %summary
|
||||
@ -62,11 +43,9 @@ Recommends: python3dist(cryptography) python3dist(pycrypto) python3dist(pycrypto
|
||||
%autosetup -n beaker-%{version} -p1 -Sgit
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%if %{with tests}
|
||||
@ -77,9 +56,6 @@ 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}%{python2_sitelib} %{__python2} -m nose -v
|
||||
|
||||
rm -rf /tmp/beaker-tests
|
||||
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m nose -v
|
||||
|
||||
@ -87,12 +63,6 @@ pkill mongod
|
||||
kill %1
|
||||
%endif
|
||||
|
||||
%files -n python2-beaker
|
||||
%license LICENSE
|
||||
%doc README.* CHANGELOG
|
||||
%{python2_sitelib}/beaker/
|
||||
%{python2_sitelib}/Beaker*
|
||||
|
||||
%files -n python3-beaker
|
||||
%license LICENSE
|
||||
%doc README.* CHANGELOG
|
||||
@ -100,6 +70,9 @@ kill %1
|
||||
%{python3_sitelib}/Beaker*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 5 2020 tianwei <tianwei12@huawei.com> - 1.10.0-5
|
||||
- delete python2.
|
||||
|
||||
* Thu Nov 21 2019 fangyufa <fangyufa1@huawei.com> - 1.10.0-4
|
||||
- add buildrequires of git for x86_64 build
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user