blob: e344a06ce0eb3de3c16c038af486974d060682a0 (
plain)
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
59
60
61
62
63
64
65
66
67
68
69
|
# What's in a name ? :‑O
#
# * The source repo is named libgfapi-python
# * The python package is named gfapi
# * The RPM package is named python-glusterfs-api to be analogous to
# glusterfs-api RPM which provides the libgfapi C library
%global python_package_name gfapi
Name: python-glusterfs-api
Summary: Python bindings for GlusterFS libgfapi
Version: 1.1
Release: 1%{?dist}
License: GPLv2 or LGPLv3+
Group: System Environment/Libraries
Vendor: Gluster Community
URL: https://github.com/gluster/libgfapi-python
Source0: https://files.pythonhosted.org/packages/source/g/gfapi/%{python_package_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-setuptools
# Provides libgfapi.so
Requires: glusterfs-api >= 3.7.0
# Provides gluster/__init__.py
Requires: python-gluster >= 3.7.0
%description
libgfapi is a library that allows applications to natively access GlusterFS
volumes. This package contains python bindings to libgfapi.
See http://libgfapi-python.rtfd.io/ for more details.
%prep
%setup -q -n %{python_package_name}-%{version}
%build
%{__python2} setup.py build
%install
rm -rf %{buildroot}
%{__python2} setup.py install --skip-build --root %{buildroot}
%files
%doc README.rst
%license COPYING-GPLV2 COPYING-LGPLV3
%{python2_sitelib}/*
# As weird as it may seem, excluding __init__.py[co] is intentional as
# it is provided by python-gluster package which is a dependency.
%exclude %{python2_sitelib}/gluster/__init__*
%changelog
* Tue Aug 9 2016 Prashanth Pai <ppai@redhat.com> - 1.1-1
- Update spec file
* Wed May 20 2015 Humble Chirammal <hchiramm@redhat.com> - 1.0.0-1
- Change Package name to python-glusterfs-api instead of python-gluster-gfapi.
* Mon May 18 2015 Humble Chirammal <hchiramm@redhat.com> - 1.0.0-0beta3
- Added license macro.
* Wed Apr 15 2015 Humble Chirammal <hchiramm@redhat.com> - 1.0.0-0beta2
- Added detailed description for this package.
* Tue Apr 14 2015 Humble Chirammal <hchiramm@redhat.com> - 1.0.0-0beta1
- Renamed glusterfs module to gluster
* Wed Feb 11 2015 Humble Chirammal <hchiramm@redhat.com> - 1.0.0-0
- Introducing spec file.
|