bittwist/bittwist.spec

62 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package bittwist
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# 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: bittwist
Version: 2.0
Release: 0
Summary: A libpcap-based Ethernet packet generator
License: GPL-2.0
Group: Productivity/Networking/Diagnostic
Url: http://bittwist.sourceforge.net/
Source: http://downloads.sourceforge.net/%{name}/Linux/Bit-Twist%%20%{version}/%{name}-linux-%{version}.tar.gz
Patch0: bittwist-makefile.diff
BuildRequires: libpcap-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Bit-Twist is a libpcap-based Ethernet packet generator complementing
tcpdump. It replays traffic captured in .pcap files onto a live
network. It comes with a trace file editor to allow you to change the
contents of a trace file.
A packet generator is useful in simulating networking traffic or
testing firewall, IDS, and IPS, and troubleshooting various network
problems.
%prep
%setup -q -n %{name}-linux-%{version}
%patch0 -p1
perl -i -pe 's/\r\n/\n/gs' AUTHORS BUGS CHANGES COPYING README VERSION
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
%make_install
%files
%defattr(-,root,root)
%doc AUTHORS BUGS CHANGES COPYING README VERSION
%{_bindir}/bittwist
%{_bindir}/bittwiste
%{_mandir}/man1/bittwist.1%{ext_man}
%{_mandir}/man1/bittwiste.1%{ext_man}
%changelog