diff --git a/centos/SPECS/powerline-go.spec b/centos/SPECS/powerline-go.spec new file mode 100644 index 0000000..6295d25 --- /dev/null +++ b/centos/SPECS/powerline-go.spec @@ -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 +- Initial version. + diff --git a/fedora/SPECS/powerline-go.spec b/fedora/SPECS/powerline-go.spec new file mode 100644 index 0000000..6295d25 --- /dev/null +++ b/fedora/SPECS/powerline-go.spec @@ -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 +- Initial version. +