-
Notifications
You must be signed in to change notification settings - Fork 0
/
gluster-block.spec
78 lines (63 loc) · 2.27 KB
/
gluster-block.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
Summary: Gluster block storage utility
Name: gluster-block
Version: 0.3
Release: 2%{?dist}
License: GPLv2 or LGPLv3+
URL: https://github.com/gluster/gluster-block
Source0: https://github.com/gluster/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0001: 0001-build-add-AM_PROG_CC_C_O-in-configure.ac.patch
BuildRequires: pkgconfig(glusterfs-api)
BuildRequires: pkgconfig(json-c)
BuildRequires: help2man >= 1.36
%{?systemd_requires}
BuildRequires: systemd
# tarball releases require running ./autogen.sh
BuildRequires: automake, autoconf, libtool, git
Requires: tcmu-runner-handler-glfs >= 1.0.4
Requires: targetcli >= 2.1.fb43
Requires: rpcbind
%description
gluster-block is a CLI utility, which aims at making gluster backed block
storage creation and maintenance as simple as possible.
%prep
%setup -q
%patch0001 -p1 -b.AM_PROG_CC_C_O
%build
echo %{version} > VERSION
./autogen.sh
%configure
%make_build
%install
%make_install
%post
%systemd_post gluster-block-target.service
%systemd_post gluster-blockd.service
%preun
%systemd_preun gluster-block-target.service
%systemd_preun gluster-blockd.service
%postun
%systemd_postun_with_restart gluster-block-target.service
%systemd_postun_with_restart gluster-blockd.service
%files
%license COPYING-GPLV2 COPYING-LGPLV3
%doc README.md
%{_sbindir}/gluster-block
%{_sbindir}/gluster-blockd
%{_mandir}/man8/gluster-block*.8*
%{_unitdir}/gluster-blockd.service
%{_unitdir}/gluster-block-target.service
%config(noreplace) %{_sysconfdir}/sysconfig/gluster-blockd
%changelog
* Wed Dec 20 2017 Niels de Vos <[email protected]> - 0.3-2
- tcmu-runner has subpackages now, we need tcmu-runner-handler-glfs
* Mon Nov 06 2017 Prasanna Kumar Kalever <[email protected]> - 0.3-1
- Update to 0.3
* Wed Sep 13 2017 Niels de Vos <[email protected]> - 0.2.1-2
- use pkgconfig for BuildRequires
- run setup in quiet mode
- run make_* macros instead of make commands in build/install section
- drop the INSTALL file from the documentation
* Fri Jun 30 2017 Niels de Vos <[email protected]> - 0.2.1-1
- initial packaging, based on upstream .spec
- prevent ./autogen.sh'd need for git to determine the version
- added systemd macros in the scriptlets