A new user interface for you!

File golang-github.com-shiena-ansicolor.spec of Package golang-github-shiena-ansicolor

# spec file for package golang-github.com-hlandau-xlog
# 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 longhash        a422bbe96644373c5753384a59d678f7d261ff10
%{lua: rpm.define("shorthash " .. string.sub(rpm.expand("%{longhash}"),0,6) )}
%global provider        github
%global provider_tld    com
%global project         shiena
%global repo            ansicolor
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           golang-%{provider}-%{project}-%{repo}
Version:        0.0.1~%{shorthash}
Release:        0
Summary:        Ansicolor library provides color console in Windows as ANSICON for Golang
License:        MIT
Group:          Development/Languages/Golang
Url:            https://github.com/shiena/ansicolor
Source:         https://github.com/shiena/ansicolor/archive/%{shorthash}/%{repo}-%{shorthash}.tar.gz
BuildRequires:  golang-packaging
BuildRequires:  xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build



%setup -qn %{repo}-%{longhash}

%goprep %{import_path}
%gobuild ...



%files -f file.lst