mirror of
https://abf.rosa.ru/djam/termshark.git
synced 2025-02-23 09:22:50 +00:00
Imported from SRPM
This commit is contained in:
commit
8b7afbea00
3 changed files with 41 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
termshark-1.0.0.tar.gz: 1126e05fc77854ccc6cef8f5bd5838f8a287d815
|
1
termshark.rpmlintrc
Normal file
1
termshark.rpmlintrc
Normal file
|
@ -0,0 +1 @@
|
|||
addFilter("E: missing-PT_GNU_STACK-section")
|
38
termshark.spec
Normal file
38
termshark.spec
Normal file
|
@ -0,0 +1,38 @@
|
|||
%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}
|
Loading…
Add table
Reference in a new issue