Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
Update glusterd2.spec
Browse files Browse the repository at this point in the history
- Create /etc/sysconfig/glusterd2
- Add BuildRequires on golang(go.opencensus.io)
- Update for v5.0.0-rc0
  • Loading branch information
kshlm committed Sep 18, 2018
1 parent bb96edd commit edfd0b2
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions extras/rpms/glusterd2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

%global gd2make %{__make} PREFIX=%{_prefix} EXEC_PREFIX=%{_exec_prefix} BINDIR=%{_bindir} SBINDIR=%{_sbindir} DATADIR=%{_datadir} LOCALSTATEDIR=%{_sharedstatedir} LOGDIR=%{_localstatedir}/log SYSCONFDIR=%{_sysconfdir} FASTBUILD=off

%global gd2version 4.1.0
%global gd2release 0
%global gd2version 5.0.0
%global gd2release rc0

Name: %{repo}
Version: 4.1.0
Release: 1%{?dist}
Version: %{gd2version}
Release: %{gd2release}%{?dist}
Summary: The GlusterFS management daemon (preview)
License: GPLv2 or LGPLv3+
URL: https://%{provider_prefix}
Expand Down Expand Up @@ -73,17 +73,18 @@ BuildRequires: golang(github.com/thejerf/suture)
BuildRequires: golang(golang.org/x/net/context)
BuildRequires: golang(golang.org/x/sys/unix)
BuildRequires: golang(google.golang.org/grpc)
BuildRequires: golang(go.opencensus.io)
%endif

Requires: glusterfs-server >= 4.1.0
Requires: glusterfs-server >= 5.0.0
Requires: /usr/bin/strings
%{?systemd_requires}

%description
The new GlusterFS management framework and daemon, for GlusterFS-4.0.

%prep
%setup -q -n %{name}-v%{version}-0
%setup -q -n %{name}-v%{gd2version}-%{gd2release}

%build
export GOPATH=$(pwd):%{gopath}
Expand All @@ -108,6 +109,8 @@ install -d -m 0755 %{buildroot}%{_sharedstatedir}/%{name}
install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name}
# Install logrotate config
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
# Setup sysconfig dir
install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig/%{name}

%post
%systemd_post %{name}.service
Expand All @@ -124,8 +127,14 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%dir %{_localstatedir}/log/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_sysconfdir}/bash_completion.d/glustercli.sh
%config %{_sysconfdir}/sysconfig/%{name}

%changelog
* Mon Sep 17 2018 Kaushal M <kshlmster@gmail.com> - 5.0.0-rc0
- Create /etc/sysconfig/glusterd2
- Add BuildRequires on golang(go.opencensus.io)
- Update for v5.0.0-rc0

* Fri Jun 15 2018 Kaushal M <kshlmster@gmail.com> - 4.1.0-1
- Update to v4.1.0

Expand Down

0 comments on commit edfd0b2

Please sign in to comment.