-
Notifications
You must be signed in to change notification settings - Fork 5
/
gluster-zeroconf.spec
120 lines (90 loc) · 3.04 KB
/
gluster-zeroconf.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# python-gluster does not have python3 support yet
#%%global with_python3 1
Name: gluster-zeroconf
Version: 0.1.3
Release: 1%{?dist}
%global sum Automatic discovery for Gluster Storage servers
Summary: %{sum}
License: LGPLv3
URL: https://github.com/gluster/gluster-zeroconf
Source0: gluster-zeroconf-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel, python2-gluster
%if 0%{?with_python3}
BuildRequires: python3-devel, python3-gluster
%endif
%description
gluster-zeroconf is project that provides an autodiscovery mechanism for
Gluster Storage Servers. It uses Avahi to register a GlusterD service, and
provides `gluster-discovery` that can be used to display the storage servers
that announce themselves.
%package -n python2-%{name}
Summary: %{sum}
%{?python_provide:%python_provide python2-%{name}}
Requires: glusterfs-cli
Requires: python2-zeroconf, python2-xmltodict, python2-gluster
%description -n python2-%{name}
gluster-zeroconf is project that provides an autodiscovery mechanism for
Gluster Storage Servers. It uses Avahi to register a GlusterD service, and
provides `gluster-discovery` that can be used to display the storage servers
that announce themselves.
This package provides `gluster-discovery` and the Python libraries to discover
storage servers.
%if 0%{?with_python3}
%package -n python3-%{name}
Summary: %{sum}
%{?python_provide:%python_provide python3-%{name}}
Requires: glusterfs-cli
Requires: python3-zeroconf, python3-xmltodict, python3-gluster
%description -n python3-%{name}
gluster-zeroconf is project that provides an autodiscovery mechanism for
Gluster Storage Servers. It uses Avahi to register a GlusterD service, and
provides `gluster-discovery` that can be used to display the storage servers
that announce themselves.
This package provides the Python libraries to discover storage servers.
%endif
%package -n %{name}-avahi
Summary: %{sum}
Requires: glusterfs-server
Requires: avahi
%description -n %{name}-avahi
gluster-zeroconf is project that provides an autodiscovery mechanism for
Gluster Storage Servers. It uses Avahi to register a GlusterD service, and
provides `gluster-discovery` that can be used to display the storage servers
that announce themselves.
This package provides the configuration for Avahi, and makes the system
discoverable.
%prep
%setup -q
%build
%py2_build
%if 0%{?with_python3}
%py3_build
%endif
%install
%py2_install
%if 0%{?with_python3}
%py3_install
%endif
%files -n python2-%{name}
%license COPYING COPYING.LESSER
%doc README.md
%{python2_sitelib}/*
%if ! 0%{?with_python3}
%{_bindir}/gluster-discovery
%endif
%if 0%{?with_python3}
%files -n python3-%{name}
%license COPYING COPYING.LESSER
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/gluster-discovery
%endif
%files -n %{name}-avahi
# dropping the file in the avahi/services directory activates it immediately
/etc/avahi/services/glusterd.service
%changelog
* Mon Feb 05 2018 Ramakrishna Reddy Yekulla <rreddy@redhat.com> - 0.1.0-2
- Spec file URL change
* Fri Aug 25 2017 Niels de Vos <ndevos@redhat.com> - 0.1.0-1
- Initial packaging