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 - 0.3-2 - tcmu-runner has subpackages now, we need tcmu-runner-handler-glfs * Mon Nov 06 2017 Prasanna Kumar Kalever - 0.3-1 - Update to 0.3 * Wed Sep 13 2017 Niels de Vos - 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 - 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