]> git.pld-linux.org Git - SPECS.git/blob - sendip.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / sendip.spec
1 Summary:        SendIP is a commandline tool to allow sending arbitrary IP packets
2 Summary(pl.UTF-8):      Narzędzie do wysyłania dowolnych pakietów IP
3 Name:           sendip
4 Version:        2.5
5 Release:        1
6 Epoch:          1
7 License:        GPL v2
8 Group:          Applications/Networking
9 Source0:        http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz
10 # Source0-md5:  35fa3306f39bfd46d83371da63eec3ad
11 URL:            http://www.earth.li/projectpurple/progs/sendip.html
12 BuildRequires:  sed >= 4.0
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 SendIP is a command-line tool to send arbitrary IP packets. It has a
17 large number of options to specify the content of every header of a
18 RIP, RIPng, BGP, TCP, UDP, ICMP, or raw IPv4/IPv6 packet. It also
19 allows any data to be added to the packet. Checksums can be calculated
20 automatically, but if you wish to send out wrong checksums, that is
21 supported too.
22
23 %description -l pl.UTF-8
24 SendIP jest narzędziem pozwalającym wysyłać dowolne pakiety IP. SendIP
25 posiada olbrzymią liczbę opcji pozwalających opisać zawartość każdego
26 pola nagłówka RIP, RIPng, BGP, TCP, UDP, ICMP, lub surowego pakietu
27 IPv4/IPv6. SendIP pozwala dodać do pakietu dowolne dane. Sumy
28 kontrolne są obliczane automagicznie, ale można zażyczyć sobie także
29 wysyłania błędnych sum kontrolnych.
30
31 %prep
32 %setup -q
33
34 sed -i -e 's/ -g -W/ %{rpmcflags} -W/' Makefile
35
36 %build
37 %{__make} \
38         CC="%{__cc}" \
39         PREFIX=%{_prefix} \
40         LIBDIR=%{_libdir}/%{name}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} install \
46          PREFIX=$RPM_BUILD_ROOT%{_prefix} \
47          LIBDIR=$RPM_BUILD_ROOT%{_libdir}/%{name}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc CHANGES README TODO
55 %attr(755,root,root) %{_bindir}/%{name}
56 %dir %{_libdir}/%{name}
57 %attr(755,root,root) %{_libdir}/%{name}/*.so
58 %{_mandir}/man1/*
This page took 1.414381 seconds and 3 git commands to generate.