ALT repositories
Last updated at Fri, 24 Jul 2020 14:09:54 +0000 | SRPMs: 24174
en ru
SRPMs in branches
hide window
Group :: Other
Source RPM: ccat
Raw spec file

%global import_path github.com/jingweno/ccat
Name: ccat
Version: 1.1.0
Release: alt2

Summary: Colorizing cat
License: MIT
Group: Other
Url: https://github.com/jingweno/ccat

Packager: Mikhail Gordeev <obirvalger at altlinux.org>

Source: %name-%version.tar

BuildRequires(pre):
rpm-build-golang
BuildRequires: golang

%description
It works similar to cat but displays content with syntax highlighting.

%prep
%setup

%build
export GO111MODULE=auto
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"

%golang_prepare

cd .build/src/%import_path
%golang_build .

%install
export BUILDDIR="$PWD/.build"
export IGNORE_SOURCES=1

%golang_install

%files
%_bindir/*

%changelog
* Tue Feb 23 2021 Mikhail Gordeev <obirvalger at altlinux.org> 1.1.0-alt2
- set GO111MODULE=auto to fix build with go 1.16

* Mon Jan 08 2018 Mikhail Gordeev <obirvalger at altlinux.org> 1.1.0-alt1
- Initial build for Sisyphus
 
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.