New powerline-go package
This commit is contained in:
51
centos/SPECS/powerline-go.spec
Normal file
51
centos/SPECS/powerline-go.spec
Normal 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.
|
||||||
|
|
||||||
51
fedora/SPECS/powerline-go.spec
Normal file
51
fedora/SPECS/powerline-go.spec
Normal 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.
|
||||||
|
|
||||||
Reference in New Issue
Block a user