File golang-github-mattn-runewidth.spec of Package golang-github-mattn-runewidth

#
# spec file for package golang-github-mattn-runewidth
#
# Copyright (c) 2017 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         mattn
%global repo            go-runewidth
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           golang-%{provider}-%{project}-runewidth
Version:        0.0.4
Release:        0
Summary:        Get fixed width of the character or string
License:        MIT
Group:          Development/Languages/Golang
Url:            https://github.com/mattn/go-runewidth
Source0:        https://github.com/mattn/go-runewidth/archive/v%{version}.tar.gz#/go-runewidth-%{version}.tar.gz
Source1:        rpmlintrc
BuildRequires:  golang-packaging
BuildRequires:  xz
%{go_nostrip}
%{go_provides}

%description
Provides functions to get fixed width of the character or string.

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

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

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

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

%files -f file.lst
%doc README.mkd
%license LICENSE

%changelog
openSUSE Build Service is sponsored by