forked from pool/python-elasticsearch
- fix Source url, use pypi package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=9
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%define repo elasticsearch-py
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Test files not included in source archive
|
||||
%bcond_with test
|
||||
@@ -27,8 +25,8 @@ Release: 0
|
||||
Summary: Python client for Elasticsearch
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/elastic/%{repo}
|
||||
Source: https://files.pythonhosted.org/packages/source/e/elasticsearch/%{repo}-%{version}.tar.gz
|
||||
Url: https://github.com/elastic/elasticsearch-py
|
||||
Source: https://files.pythonhosted.org/packages/source/e/elasticsearch/elasticsearch-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -53,7 +51,8 @@ ground for all Elasticsearch-related code in Python; because of this it tries
|
||||
to be opinion-free and very extendable.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{repo}-%{version}
|
||||
%setup -q -n elasticsearch-%{version}
|
||||
rm README.rst
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -68,8 +67,8 @@ to be opinion-free and very extendable.
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS Changelog.rst LICENSE README README.rst
|
||||
%license LICENSE
|
||||
%doc AUTHORS Changelog.rst README
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user