initial package creation

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2025-11-10 15:22:03 +01:00
commit b6df4a11ce
2 changed files with 50 additions and 0 deletions

0
SOURCES/.gitkeeper Normal file
View File

50
SPECS/github-dash.spec Normal file
View File

@ -0,0 +1,50 @@
%define debug_package %{nil}

Name : github-dash
Version : 4.19.0
Release : 1%{?dist}
Summary : A rich terminal UI for GitHub that doesn't break your flow.
Group : System/Web
License : MIT License
URL : https://github.com/cli/cli
BuildRequires : golang
BuildRequires : git
Requires : git


%description
A rich terminal UI for GitHub that doesn't break your flow.


%prep
%setup -T -q -c %{name}-%{version}
mkdir go
export GOPATH=`pwd`/go
export GO111MODULE=on
mkdir src
cd src
git clone https://github.com/dlvhdr/gh-dash
cd gh-dash
git checkout tags/v%{version}


%build
export GOPATH=`pwd`/go
export GO111MODULE=on
cd src/gh-dash
git checkout tags/v%{version}
export SHORTCOMMIT=$(git rev-parse --short HEAD)
export BUILDDATE=$(date +%Y%m%d)
go build -v -trimpath -ldflags "-extldflags -s -w -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -buildid "%{version}" -X github.com/dlvhdr/gh-dash/cmd.Version="%{version}" -X github.com/dlvhdr/gh-dash/cmd.Commit="$SHORTCOMMIT" -X github.com/dlvhdr/gh-dash/cmd.BuiltBy=PowerEL -X github.com/dlvhdr/gh-dash/cmd.Date="$BUILDDATE -o github-dash gh-dash.go


%install
install -p -D -m 0755 src/gh-dash/github-dash %{buildroot}%{_bindir}/github-dash


%files
%doc
%{_bindir}/github-dash


%changelog