Group :: Other
RPM: cue
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%global import_path github.com/cue-lang/cue
Name: cue
Version: 0.6.0
Release: alt1
Summary: Validate and define text-based and dynamic configuration
License: Apache-2.0
Group: Other
Url: https://github.com/cue-lang/cue
Packager: Mikhail Gordeev <obirvalger at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): rpm-build-golang
BuildRequires: golang
%description
Configure, Unify, Execute
CUE is an open source data constraint language which aims to simplify tasks
involving defining and using data.
It is a superset of JSON, allowing users familiar with JSON to get started
quickly.
%prep
%setup
%build
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
%golang_prepare
cd .build/src/%import_path
%golang_build cmd/cue
%install
export BUILDDIR="$PWD/.build"
export IGNORE_SOURCES=1
%golang_install
mkdir -p %buildroot%_datadir/zsh/site-functions
%buildroot%_bindir/%name completion zsh > %buildroot%_datadir/zsh/site-functions/_%name
mkdir -p %buildroot%_datadir/bash-completion/completions
%buildroot%_bindir/%name completion bash > %buildroot%_datadir/bash-completion/completions/%name
mkdir -p %buildroot%_datadir/fish/vendor_completions.d
%buildroot%_bindir/%name completion fish > %buildroot%_datadir/fish/vendor_completions.d/%name.fish
%files
%doc *.md
%_bindir/*
%_datadir/zsh/site-functions/_%name
%_datadir/bash-completion/completions/%name
%_datadir/fish/vendor_completions.d/%name.fish
%changelog
…
Full changelog you can see here
Name: cue
Version: 0.6.0
Release: alt1
Summary: Validate and define text-based and dynamic configuration
License: Apache-2.0
Group: Other
Url: https://github.com/cue-lang/cue
Packager: Mikhail Gordeev <obirvalger at altlinux.org>
Source: %name-%version.tar
BuildRequires(pre): rpm-build-golang
BuildRequires: golang
%description
Configure, Unify, Execute
CUE is an open source data constraint language which aims to simplify tasks
involving defining and using data.
It is a superset of JSON, allowing users familiar with JSON to get started
quickly.
%prep
%setup
%build
export BUILDDIR="$PWD/.build"
export IMPORT_PATH="%import_path"
export GOPATH="$BUILDDIR:%go_path"
%golang_prepare
cd .build/src/%import_path
%golang_build cmd/cue
%install
export BUILDDIR="$PWD/.build"
export IGNORE_SOURCES=1
%golang_install
mkdir -p %buildroot%_datadir/zsh/site-functions
%buildroot%_bindir/%name completion zsh > %buildroot%_datadir/zsh/site-functions/_%name
mkdir -p %buildroot%_datadir/bash-completion/completions
%buildroot%_bindir/%name completion bash > %buildroot%_datadir/bash-completion/completions/%name
mkdir -p %buildroot%_datadir/fish/vendor_completions.d
%buildroot%_bindir/%name completion fish > %buildroot%_datadir/fish/vendor_completions.d/%name.fish
%files
%doc *.md
%_bindir/*
%_datadir/zsh/site-functions/_%name
%_datadir/bash-completion/completions/%name
%_datadir/fish/vendor_completions.d/%name.fish
%changelog
…
Full changelog you can see here