File hexinject.spec of Package hexinject

#
# spec file for package hexinject
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           hexinject
Version:        1.6
Release:        0
Summary:        Hexadecimal and raw packet injector and sniffer
License:        BSD-2-Clause
Group:          Productivity/Networking/Diagnostic
Url:            http://hexinject.sourceforge.net
Source0:        http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0:         %{name}-Makefile.patch
BuildRequires:  libpcap-devel
Requires:       tcl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Hexadecimal and raw packet injector and sniffer. Can be easily combined
with other tools to provide a powerful cmdline framework for raw network
access.

%prep
%setup -q -n %{name}
%patch0 -p1

%build
make %{?_smp_mflags}


%install
install -D -m 0755 hex2raw %{buildroot}%{_bindir}/hex2raw
install -D -m 0755 hexinject %{buildroot}%{_bindir}/hexinject
install -D -m 0755 packets.tcl %{buildroot}%{_bindir}/packets.tcl
install -D -m 0755 prettypacket %{buildroot}%{_bindir}/prettypacket

%files
%defattr(-,root,root)
%doc README
%{_bindir}/hex2raw
%{_bindir}/hexinject
%{_bindir}/packets.tcl
%{_bindir}/prettypacket

%changelog
openSUSE Build Service is sponsored by