v0.12.0-1
This commit is contained in:
46
tea.spec
Normal file
46
tea.spec
Normal file
@@ -0,0 +1,46 @@
|
||||
Name: tea
|
||||
Version: 0.12.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Gitea CLI tool for interacting with Gitea servers.
|
||||
License: MIT
|
||||
Group: System Environment/Base
|
||||
URL: https://gitea.com/gitea/tea
|
||||
|
||||
Source0: https://dl.gitea.com/tea/%{version}/tea-%{version}-linux-amd64
|
||||
Source1: https://dl.gitea.com/tea/%{version}/tea-%{version}-linux-arm64
|
||||
Source10: tea.bash
|
||||
Source11: _tea
|
||||
Source12: tea.fish
|
||||
|
||||
ExclusiveArch: x86_64 aarch64
|
||||
|
||||
%description
|
||||
tea is a command line tool to interact with Gitea servers.
|
||||
It uses the Gitea API to manage issues, pull requests, releases and more,
|
||||
similar to how gh works for GitHub.
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
install -d -m 755 %{buildroot}%{_bindir}
|
||||
%ifarch x86_64
|
||||
install -m 755 %{SOURCE0} %{buildroot}%{_bindir}/tea
|
||||
%endif
|
||||
|
||||
%ifarch aarch64
|
||||
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/tea
|
||||
%endif
|
||||
|
||||
install -p -D -m 644 %{SOURCE10} %{buildroot}%{_datadir}/bash-completion/completions/tea
|
||||
install -p -D -m 644 %{SOURCE11} %{buildroot}%{_datadir}/zsh/site-functions/_tea
|
||||
install -p -D -m 644 %{SOURCE12} %{buildroot}%{_datadir}/fish/vendor_completions.d/tea.fish
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/tea
|
||||
%{_datadir}/bash-completion/completions/tea
|
||||
%{_datadir}/zsh/site-functions/_tea
|
||||
%{_datadir}/fish/vendor_completions.d/tea.fish
|
||||
Reference in New Issue
Block a user