File nmap.spec of Package nmap

#
# spec file for package nmap (Version 5.00)
#
# Copyright (c) 2009 SUSE LINUX Products 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/
#

# norootforbuild


Name:           nmap
BuildRequires:  gcc-c++ gtk2-devel libdnet-devel libpcap-devel lua-devel openssl-devel pcre-devel python-devel update-desktop-files
#BuildRequires:  lksctp-tools-devel
Url:            http://www.insecure.org/nmap/
License:        GPL v2 or later
Group:          Productivity/Networking/Diagnostic
AutoReqProv:    on
Version:        5.00
Release:        2
Summary:        Portscanner
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         http://nmap.org/dist/nmap-%{version}.tar.bz2
Patch:          nmap-4.00-libpcap-filter.diff
Patch1:         nmap-4.00-noreturn.diff
Patch2:         nmap-5.00-desktop_files.patch
Patch3:         nmap-4.75-nostrip.patch
Patch4:         nmap-5.00-fclose.patch

%description
Nmap is designed to allow system administrators and curious individuals
to scan large networks to determine which hosts are up and what
services they are offering. XNmap is a graphical front-end that shows
nmap's output clearly.

Find documentation in %{_docdir}/%{name}




Authors:
--------
    Fyodor <fyodor@dhp.com>

%package -n zenmap 
License:        GPL v2 or later
Summary:        A Graphical Front-End for Nmap
Group:          Productivity/Networking/Diagnostic
Requires:       %name = %version
Obsoletes:      %name-gtk
Provides:       %name-gtk = %{version}-%{release}
%py_requires

%description -n zenmap
zenmap is a graphical front-end for the nmap network scanner




Authors:
--------
    Fyodor <fyodor@dhp.com>

%package -n ncat
License:        GPL v2 or later
Summary:        Network Tool to concatenate and redirect Sockets
Group:          Productivity/Networking/Diagnostic

%description -n ncat
Ncat is a feature-packed networking utility which will read and write data
across a network from the command line. Ncat was written for the Nmap Project
and is the culmination of the currently splintered family of Netcat
incarnations. It uses both TCP and UDP for communication and is designed to be
a reliable back-end tool to instantly provide network connectivity to other
applications and users. Ncat will not only work with IPv4 and IPv6 but provides
the user with a virtually limitless number of potential uses.

Among Ncat´s vast number of features there is the ability to chain Ncats
together, redirect both TCP and UDP ports to other sites, SSL support, and
proxy connections via SOCKS4 or HTTP (CONNECT method) proxies (with optional
proxy authentication as well). Some general principles apply to most
applications and thus give you the capability of instantly adding networking
support to software that would normally never support it.  




Authors:
--------
    Fyodor <fyodor@dhp.com>

%package -n ndiff
License:        GPL v2 or later
Summary:        Compare Results of Nmap Scans
Group:          Productivity/Networking/Diagnostic
%py_requires

%description -n ndiff
Ndiff is a tool to aid in the comparison of Nmap scans. It takes two Nmap XML
output files and prints the differences between them: hosts coming up and down,
ports becoming open or closed, etc.




Authors:
--------
    Fyodor <fyodor@dhp.com>

%prep
%setup -q
%patch
%patch1 -p1
%patch2 -p0
%patch3 -p0
%patch4

%build
%configure --with-libpcap="%{_usr}" --with-libdnet=included --with-libpcre="%{_usr}"
%__make %{?jobs:-j%jobs} 

%install
%__make DESTDIR="$RPM_BUILD_ROOT" deskdir="%{_datadir}/gnome/apps/Utilities/" install
%__rm "$RPM_BUILD_ROOT%{_bindir}/uninstall_zenmap"
%__install -d "$RPM_BUILD_ROOT/usr/share/pixmaps/"
%__ln_s ../zenmap/pixmaps/zenmap.png "$RPM_BUILD_ROOT/usr/share/pixmaps/zenmap.png"
%suse_update_desktop_file zenmap System Network
%suse_update_desktop_file zenmap-root System Network
%find_lang zenmap

%clean
%__rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc COPYING* CHANGELOG HACKING
%doc docs/README 
%doc docs/nmap.usage.txt
%doc %_mandir/man1/nmap.1*
%{_bindir}/nmap
%{_datadir}/nmap

%files -n zenmap -f zenmap.lang
%defattr(-,root,root)
%{_bindir}/xnmap
%{_bindir}/zenmap
%{_bindir}/nmapfe
%{python_sitelib}/zenmap-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/zenmapCore
%{python_sitelib}/zenmapGUI
%{python_sitelib}/radialnet
%{_datadir}/applications/zenmap-root.desktop
%{_datadir}/applications/zenmap.desktop
%{_datadir}/pixmaps/zenmap.png
%{_datadir}/zenmap
%doc %_mandir/man1/zenmap.1*

%files -n ncat
%defattr(-,root,root)
%{_bindir}/ncat
%doc %{_mandir}/man1/ncat.1*
%dir %{_datadir}/ncat
%config(noreplace) %{_datadir}/ncat/ca-bundle.crt

%files -n ndiff
%defattr(-,root,root)
%{_bindir}/ndiff
%doc %{_mandir}/man1/ndiff.1*

%changelog
openSUSE Build Service is sponsored by