File golang-drbdtop.spec of Package drbdtop

#
# spec file for package golang-drbdtop
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%global provider        github
%global provider_tld    com
%global project         linbit
%global repo            drbdtop
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           golang-%{repo}
Version:        v0.1+git.2c93b48
Release:        0
Summary:        Monitor for DRBD resource
License:        GPL-2.0+
Group:          Productivity/Clustering/HA
Url:            https://github.com/LINBIT/drbdtop
Source:         %{repo}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  golang(API) >= 1.7
BuildRequires:  golang-packaging
BuildRoot:      %{_tmppath}/%{repo}-%{version}-build

%{go_provides}

%description
drbdtop simplifies monitoring and administrating for DRBD resources.
Previously available tools and techniques that provide status
information on DRBD do not allow you to change the status of DRBD
resources, and tools that allow you to change the status of DRBD
resources, do not provide information on their status.

In addition to allowing the user control and monitor the general
state of resources from the same utility, detailed status information
is also provided to help the user gain insight to performance-related
factors.

%prep
%setup -q -n %{repo}-%{version}

%build
%{goprep} %{import_path}
%{gobuild} ...

%install
%{goinstall}
%{gosrc}
%{gofilelist}

%fdupes %{buildroot}/%{_prefix}

%check
%{gotest} %{import_path}...

%files
%defattr(-,root,root)
%{_bindir}/drbdtop
%{go_contribsrcdir}/*

%changelog
openSUSE Build Service is sponsored by