Imported from SRPM

This commit is contained in:
User 2019-04-24 00:19:17 +03:00
commit 8b7afbea00
3 changed files with 41 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
termshark-1.0.0.tar.gz: 1126e05fc77854ccc6cef8f5bd5838f8a287d815

1
termshark.rpmlintrc Normal file
View file

@ -0,0 +1 @@
addFilter("E: missing-PT_GNU_STACK-section")

38
termshark.spec Normal file
View 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}