%global debug_package %{nil} Name: nmap Epoch: 3 Version: 7.99 Release: 2%{?dist} Summary: Network exploration tool and security scanner License: Nmap URL: https://nmap.org/ Source0: https://nmap.org/dist/%{name}-%{version}.tgz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: redhat-rpm-config BuildRequires: openssl-devel BuildRequires: zlib-devel BuildRequires: libssh2-devel Requires: nmap-ncat = %{epoch}:%{version}-%{release} %description Nmap ("Network Mapper") is an open source utility for network discovery, security auditing and network inventory. It determines which hosts are available on a network, which services they offer, which operating systems they are running, and many other characteristics. %package -n nmap-ncat Summary: Nmap's Netcat replacement %description -n nmap-ncat Ncat is a modern networking utility for reading and writing data across networks. It supports IPv4, IPv6, TCP, UDP, SSL, proxies and many advanced features useful for administrators and security professionals. %package -n nmap-nping Summary: Network packet generation tool %description -n nmap-nping Nping is a packet generation and network response analysis tool that is distributed as part of the Nmap project. %prep %autosetup -n %{name}-%{version} %build %configure \ --without-zenmap \ --without-ndiff \ --with-openssl=/usr \ --with-libssh2 \ --with-libdnet=included \ --with-libpcap=included \ --with-libpcre=included \ --with-liblua=included \ --with-libz=included %make_build %install %make_install find %{buildroot} -name '*.la' -delete %files %license LICENSE %doc docs/README %doc docs/nmap.usage.txt %{_bindir}/nmap %{_mandir}/man1/nmap.1* %{_mandir}/*/man1/nmap.1* %{_datadir}/nmap %files -n nmap-ncat %{_bindir}/ncat %{_mandir}/man1/ncat.1* %{_datadir}/ncat %files -n nmap-nping %{_bindir}/nping %{_mandir}/man1/nping.1* %changelog * Tue Jul 28 2026 Danie de Jager - 7.99-1 - Update to 7.99. - Modernize RPM spec for AL2023, EPEL 9 and EPEL 10. - Split ncat and nping into subpackages. - Remove obsolete RPM constructs.