70 lines
1.7 KiB
RPMSpec
70 lines
1.7 KiB
RPMSpec
Name: python-memcached
|
|
Version: 1.59
|
|
Release: 2
|
|
Summary: A Python memcached client library
|
|
License: Python
|
|
URL: https://github.com/linsomniac/python-memcached
|
|
Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
|
|
%bcond_without python3
|
|
%bcond_without check
|
|
|
|
|
|
%{?with_python3:BuildRequires: python3-devel,python3-setuptools,python3-six}
|
|
|
|
# Required for running test suite
|
|
%if %{with check}
|
|
BuildRequires: %{_bindir}/memcached
|
|
%endif
|
|
|
|
%global desc This software is a 100% Python interface to the memcached memory cache\
|
|
daemon. It is the client side software which allows storing values in one\
|
|
or more, possibly remote, memcached servers. Search google for memcached\
|
|
for more information.
|
|
|
|
%description
|
|
%{desc}
|
|
|
|
|
|
%package -n python3-memcached
|
|
Summary: %{summary}
|
|
%{?python_provide:%python_provide python3-memcached}
|
|
|
|
%description -n python3-memcached
|
|
%{desc}
|
|
|
|
%files -n python3-memcached
|
|
%doc ChangeLog README.md
|
|
%attr(755,root,root) %{python3_sitelib}/memcache.py
|
|
%{python3_sitelib}/memcache.py
|
|
%{python3_sitelib}/__pycache__/memcache.*
|
|
%{python3_sitelib}/python_memcached-%{version}-py*.egg-info/
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version}
|
|
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
|
|
|
|
%changelog
|
|
* Mon Jan 10 2022 yanglongkang <yanglongkang@huawei.com> - 1.59-2
|
|
- delete python-nose Buildrequires
|
|
|
|
* Thu Jul 15 2021 huangtianhua <huangtianhua@huawei.com> 1.59-1
|
|
- Upgrade to 1.59 to support OpenStack-W
|
|
|
|
* Fri Oct 30 2020 yanglongkang <yanglongkang@huawei.com> - 1.58.2
|
|
- remove python2 dependency
|
|
|
|
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.58.1
|
|
- Package init
|