-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-elasticsearch.spec
58 lines (39 loc) · 1.69 KB
/
python-elasticsearch.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
########################################################################################
%define package_name elasticsearch
%define source_name %{package_name}-py
########################################################################################
Summary: Python client for Elasticsearch 2.x
Name: python-%{package_name}
Version: 2.4.0
Release: 0%{?dist}
License: ASLv2.0
Group: Development/Libraries
URL: https://github.com/elastic/elasticsearch-py
Source: https://github.com/elastic/%{source_name}/archive/%{version}.tar.gz
BuildRequires: python-devel python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Provides: %{name} = %{verion}-%{release}
########################################################################################
%description
Official low-level client for Elasticsearch. Its goal is to provide common ground for
all Elasticsearch-related code in Python; because of this it tries to be opinion-free
and very extendable.
########################################################################################
%prep
%setup -qn %{source_name}-%{version}
%clean
rm -rf %{buildroot}
%build
python setup.py build
%install
rm -rf %{buildroot}
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
########################################################################################
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
########################################################################################
%changelog
* Tue Sep 06 2016 Gleb Goncharov <ggoncharov@simtechdev.com> - 2.4.0-0
- Initial build