New powerline-go package

This commit is contained in:
2021-03-07 11:34:01 +01:00
parent af475a40c9
commit 818d4b99af
2 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
Name: powerline-go
Version: 1.21.0
Release: 1%{?dist}
Summary: A Powerline style prompt for your shell
%define debug_package %{nil}
License: MIT
URL: https://github.com/justjanne/powerline-go
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.conf
BuildRequires: golang >= 1.8
%if 0%{?rhel} >= 8
%else
BuildRequires: go-bindata
%endif
Requires: git
# Temporary solution while waiting for golang and go-bindata to be built in cbs.centos.org
ExclusiveArch: i686 x86_64
%description
A Powerline style prompt for your shell
%prep
%setup -q -n %name-%version
%build
go build
%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_datarootdir}/doc/%{name}
install %{name} $RPM_BUILD_ROOT/%{_bindir}/%{name}
install %{S:1} $RPM_BUILD_ROOT/%{_datarootdir}/doc/%{name}/%{name}.conf
%files
%doc LICENSE.md README.md
%doc %{_datarootdir}/doc/%{name}/%{name}.conf
%{_bindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%changelog
* Sun Mar 7 2021 Daniel Steiner <daniel.steiner@daniel-steiner.org>
- Initial version.