mirror of
https://abf.rosa.ru/djam/termshark.git
synced 2025-02-23 09:22:50 +00:00
38 lines
No EOL
678 B
RPMSpec
38 lines
No EOL
678 B
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
|
|
Name: termshark
|
|
Version: 1.0.0
|
|
Release: 1
|
|
Summary: A terminal UI for tshark
|
|
License: MIT
|
|
Group: Development/Other
|
|
URL: https://termshark.io/
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1000: %{name}.rpmlintrc
|
|
BuildRequires: go >= 1.11
|
|
BuildRequires: git
|
|
BuildRequires: upx
|
|
Requires: tshark
|
|
|
|
|
|
%description
|
|
A terminal user-interface for tshark, inspired by Wireshark
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
GO111MODULE=on go get .
|
|
pushd cmd/%{name}
|
|
go build -o %{name} %{name}.go
|
|
upx %{name}
|
|
popd
|
|
|
|
%install
|
|
install -d %{buildroot}%{_bindir}
|
|
install -Dm0755 cmd/%{name}/%{name} %{buildroot}%{_bindir}
|
|
|
|
%files
|
|
%doc README.md docs
|
|
%{_bindir}/%{name} |