summaryrefslogtreecommitdiffstats
path: root/gluster-block.spec.in
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2017-02-23 11:37:58 +0100
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2017-02-25 16:22:22 +0530
commitcf23c6e16217a9bc52e73799ad70cae22dc7a746 (patch)
tree4ee7f0bfda4276461a73db1e5c25a68ead3ec36d /gluster-block.spec.in
parent9f1c8a5ba49e7cad67b7ebf6e3e119eeb32a7ff0 (diff)
build: refactor
- tcmu-runner and targetcli are not build dependencies - use pkg-config to get libgfapi build parameters - cleanup .spec file Change-Id: Ib1451f7a375438cd2e78ae4137d1d02e01516fbd Signed-off-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'gluster-block.spec.in')
-rw-r--r--gluster-block.spec.in34
1 files changed, 20 insertions, 14 deletions
diff --git a/gluster-block.spec.in b/gluster-block.spec.in
index 352cce8..dec3f8d 100644
--- a/gluster-block.spec.in
+++ b/gluster-block.spec.in
@@ -2,30 +2,25 @@
Summary: Gluster block storage utility
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
-Vendor: Gluster Community
Release: @PACKAGE_RELEASE@
License: GPLv2 or LGPLv3+
-Group: System Environment/Base
-BuildRequires: tcmu-runner >= 1.0.4
-BuildRequires: targetcli >= 2.1.fb43
+URL: https://github.com/gluster/gluster-block
+Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
+
BuildRequires: glusterfs-api-devel >= 3.6.0
BuildRequires: help2man >= 1.36
-Requires: tcmu-runner >= 1.0.4
-Requires: targetcli >= 2.1.fb43
-Requires: glusterfs-api >= 3.6.0
%if ( 0%{?_with_systemd:1} )
-BuildRequires: systemd
+BuildRequires: systemd-units
%endif
-URL: http://www.gluster.org/docs/index.php/GlusterFS
-Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
+
+Requires: tcmu-runner >= 1.0.4
+Requires: targetcli >= 2.1.fb43
%description
-gluster-block is a CLI utility, which aims at making gluster backed
-block storage creation and maintenance as simple as possible.
+gluster-block is a CLI utility, which aims at making gluster backed block
+storage creation and maintenance as simple as possible.
%prep
-rm -rf %{_topdir}/BUILD/*
-
%setup
%build
@@ -39,6 +34,17 @@ make DESTDIR=${RPM_BUILD_ROOT} install
rm -rf ${RPM_BUILD_ROOT}
%files
+%license COPYING-GPLV2 COPYING-LGPLV3
+%doc README.md
%{_sbindir}/gluster-block
%{_sbindir}/gluster-blockd
+%if ( 0%{?_with_systemd:1} )
%{_unitdir}/gluster-blockd.service
+%endif
+
+%changelog
+* Thu Feb 23 2017 Niels de Vos <ndevos@redhat.com>
+- cleanup and add licenses and README.md to the package
+
+* Sun Feb 5 2017 Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
+- Initial spec file