]> git.pld-linux.org Git - SPECS.git/blob - netwox.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / netwox.spec
1 Summary:        A toolbox for network administrators and network hackers
2 Summary(pl.UTF-8):      Zestaw narzędzi dla administratorów sieci i hackerów sieciowych
3 Name:           netwox
4 %define         _base_version   5.36
5 Version:        %{_base_version}.0
6 Release:        1
7 Epoch:          0
8 License:        GPL
9 Group:          Applications/Networking
10 Source0:        http://www.laurentconstantin.com/common/netw/netwox/download/v5/%{name}-%{version}-src.tgz
11 # Source0-md5:  c4575d64bf842377ee97f7b895741fb2
12 Patch0:         %{name}-config.patch
13 URL:            http://www.laurentconstantin.com/en/netw/netwox/
14 BuildRequires:  libnet-devel
15 BuildRequires:  libpcap-devel
16 BuildRequires:  netwib-devel >= %{version}
17 BuildRequires:  sed >= 4.0
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _man_suffix     %(echo %{_base_version} | tr -d . )
21
22 %description
23 Netwox is a toolbox for network administrators and network hackers.
24 Netwox contains over 100 tools using network library netwib.
25
26 %description -l pl.UTF-8
27 Netwox to zestaw narzędzi dla administratorów sieci i hackerów
28 sieciowych. Zawiera ponad 100 narzędzi używających biblioteki
29 sieciowej netwib.
30
31 %prep
32 %setup -q -n %{name}-%{version}-src
33 %patch0 -p1
34
35 %build
36 cd src
37 ./genemake \
38         NETWIBDEF_INSTPREFIX="/usr"
39 sed -i -e 's#444#644#' -e 's#555#755#g' Makefile
40 %{__make} \
41         CC="%{__cc}" \
42         GCCOPT="%{rpmcflags}"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
47
48 %{__make} -C src install \
49         INSTBIN=$RPM_BUILD_ROOT%{_bindir} \
50         INSTMAN1=$RPM_BUILD_ROOT%{_mandir}/man1 \
51         INSTUSERGROUP="$(id -u):$(id -g)"
52
53 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/netwox.1
54 echo ".so netwox%{_man_suffix}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/netwox.1
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc doc/*.txt
62 %attr(755,root,root) %{_bindir}/*
63 %{_mandir}/man?/*
This page took 0.196825 seconds and 3 git commands to generate.