File project.diff of Package nmap

--- nmap.changes.orig
+++ nmap.changes
@@ -1,4 +1,105 @@
 -------------------------------------------------------------------
+Wed May 14 06:33:28 UTC 2025 - Robert Frohl <rfrohl@suse.com>
+
+- Update to 7.97:
+  * Fixed an issue with the parallel forward DNS resolver: it had not been
+    consulting /etc/hosts, nor did it correctly handle the 'localhost' name.
+
+-------------------------------------------------------------------
+Wed May  7 08:12:06 UTC 2025 - Robert Frohl <rfrohl@suse.com>
+
+- Update to 7.96:
+  * [Nping] Promoted Nping version number from a 0.7.95 alpha release to the
+    same release version as Nmap.
+  * Fixed an issue preventing the Nmap OEM 7.95 uninstaller from correctly
+    uninstalling Nmap OEM.
+  * [Zenmap] Fixed a Zenmap crash in DiffViewer when Ndiff exits with error.
+  * [Zenmap] Fixed several UnicodeDecodeError or UnicodeEncodeError crashes throughout Zenmap.
+  * [Zenmap] Fixed an issue preventing Zenmap from launching if nmap was not in
+    the PATH. The issue primarily affected macOS users. [Daniel Miller]
+  * Fixed a couple of issues with parsing the argument to the -iR option.
+  * [NSE] Added TLS support to redis.lua and improved -sV detection of redis.
+  * [Zenmap] Added dark mode, accessed via Profile->Toggle Dark Mode or window::dark_mode
+    in zenmap.conf. [Daniel Miller]
+  * Upgraded included libraries: Lua 5.4.7, libssh2 1.11.1, libpcap 1.10.5, libpcre 10.45
+  * [NSE] New script targets-ipv6-eui64 generates target IPv6 addresses from a
+    user-provided file of MAC addresses, using the EUI-64 method. [Daniel Miller]
+  * [NSE] New service probes and scripts for MikroTik's WinBox router admin service.
+    mikrotik-routeros-version queries the 'info' and 'list' files to get the RouterOS
+    version. mikrotik-routeros-username-brute brute-forces usernames for the router
+    using CVE-2024-54772. [deauther890, Daniel Miller]
+  * Fix 2 potential crashes in parsing IPv6 extension headers discovered using
+    AFL++ fuzzer. [Domen Puncer Kugler, Daniel Miller]
+  * [Nping] Bind raw socket to device when possible. This was already done for
+    IPv6, but was needed for IPv4 L3 tunnels. [ValdikSS]
+  * [Ncat] Ncat in connect mode no longer defaults to half-closed TCP connections.
+    This makes it more compatible with other netcats. The -k option will enable the
+    old behavior. See https://seclists.org/nmap-dev/2013/q1/188 [Daniel Miller]
+  * [Nsock] Fix an issue affecting Ncat where unread bytes in the SSL layer's buffer
+    could not be read until more data arrived on the socket, which could lead to deadlock. [Daniel Miller]
+  * [Ncat] New Ncat option -q to delay quit after EOF on stdin, the same as traditional
+    netcat's -q option. [Daniel Miller]
+  * [Ncat] Ncat in listen mode with -e or -c correctly handles error and EOF conditions
+    that had not been being delivered to the child process.
+  * [Ncat][Windows] All Nsock engines now work correctly. The default is still 'select',
+    but others can be set with --nsock-engine=iocp or --nsock-engine=poll [Daniel Miller]
+  * [NSE] SSH NSE scripts now catch connection errors thrown by the libssh2 Lua binding,
+    providing useful output instead of a backtrace. [Joshua Rogers, Daniel Miller]
+  * [NSE] Several fixes and extensions to the libssh2 NSE bindings: fixed libssh2.channel_read_stderr,
+    which was reading stdout instead; add binding for libssh2_userauth_publickey_frommemory;
+    allow open_channel to avoid allocating a pty;
+  * [Nsock][Windows] Fixed the IOCP Nsock engine, which had been demoted since Nmap 7.91
+    due to unresolved issues around SSL sockets and IPv6. [Daniel Miller]
+  * [Nsock] Improvements for platforms without selectable pcap handles (e.g. Windows).
+    Interleaved pcap and socket events were favoring pcap reads, possibly resulting
+    in timeouts of the socket events. [Daniel Miller]
+  * [Nsock] Improved memory performance of poll engine on Windows. [Daniel Miller]
+  * [Nsock] Improvements to Nsock event list management, fixing errors like
+    "could not find 1 of the purportedly pending events on that IOD." [Daniel Miller]
+  * Fixed the issue where TCP Connect scans (-sT) on Windows would show 'filtered'
+    instead of 'closed', due to differences in understanding timeouts.
+  * Nmap will now allow targets to be specified both on the command line and in
+    an input file with -iL. Previously, if targets were provided in both places,
+    only the targets in the input file would be scanned, and no notice was given
+    that the command-line targets were ignored. [Daniel Miller]
+  * Nmap now performs forward DNS lookups in parallel, using the same engine that has
+    been reliably performing reverse-DNS lookups for nearly a decade. Scanning large lists
+    of hostnames is now enormously faster and avoids the unresponsive wait for blocking
+    system calls, so progress stats can be shown. In testing, resolving 1 million website
+    names to both IPv4 and IPv6 took just over an hour. The previous system took 49 hours
+    for the same data set! [Daniel Miller]
+  * When Nmap is used with --disable-arp-ping, a local IP that cannot be ARP-resolved
+    will use the "no-route" reason instead of the "unknown-response" reason, since
+    no response was received.
+  * [NSE] Various bug fixes in the mssql NSE library. [johnjaylward, nnposter]
+  * [NSE] Testing for acceptance of SSH keys for a given username caused heap
+    corruption. [Julijan Nedic, nnposter]
+  * [NSE] Scripts were not able to load SSH public keys. from a file. [nnposter]
+  * [NSE] Encryption/decryption performed by the OpenSSL NSE module did not work
+    correctly when the IV started with a null byte. [nnposter]
+  * [NSE] Arbitrary separator in stdnse.tohex() is now supported. Script smb-protocols
+    now reports SMB dialects correctly. [nnposter]
+  * [NSE] ether_type inconsistency in packet.Frame has been resolved. Both Frame:new()
+    and Frame:build_ether_frame() now use an integer. [nnposter]
+  * Nmap is now able to scan IP protocol 255. [nnposter]
+- Added ndiff_build.patch and ndiff_install.patch
+
+-------------------------------------------------------------------
+Tue Jan 21 11:25:05 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
+
+- Fix dependencies (this is a python 3 app, based on
+  gobject-introspection):
+  + Add gobject-introspection BuildRequires: let the build add the
+    relevant typelib() dependencies.
+  + Drop python-gtk Requires: python2 bindings for GTK.
+  + Replace python-gobject2 Requires with python3-gobject-Gdk:
+    bring this to python3 and gi-bindings.
+- Drop gtk2-devel: not needed, as the bindings are GTK3 based.
+- Replace pcre-devel with pcre2-devel: this used to be pulled in by
+  gtk2-devel, masking the fact that pcre-devel is not actually
+  used.
+
+-------------------------------------------------------------------
 Thu Aug  1 15:29:35 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
 
 - fix python-gobject2 dependency of zenmap - boo#1228750
--- nmap.spec.orig
+++ nmap.spec
@@ -28,7 +28,7 @@
 %endif
 %define pythons python3
 Name:           nmap
-Version:        7.95
+Version:        7.97
 Release:        0
 Summary:        Network exploration tool and security scanner
 # nmap 7.94 is licensed under Nmap Public Source License Version 0.95
@@ -45,14 +45,16 @@ Patch2:         nmap-4.75-nostrip.patch
 Patch3:         su-to-zenmap.patch
 Patch4:         nmap-ncat-skip-network-tests.patch
 Patch5:         zenmap-fix-locale-install.patch
+Patch6:         ndiff_build.patch
+Patch7:         ndiff_install.patch
 BuildRequires:  dos2unix
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
-BuildRequires:  gtk2-devel
+BuildRequires:  gobject-introspection
 BuildRequires:  libopenssl-3-devel
 BuildRequires:  libpcap-devel
 BuildRequires:  libssh2-devel
-BuildRequires:  pcre-devel
+BuildRequires:  pcre2-devel
 BuildRequires:  python3-base
 BuildRequires:  update-desktop-files
 BuildRequires:  zlib-devel
@@ -79,8 +81,7 @@ and works fine against single hosts.
 Summary:        A graphical front-end for Nmap
 Group:          Productivity/Networking/Diagnostic
 Requires:       %{name} = %{version}
-Requires:       python-gtk
-Requires:       python-gobject2
+Requires:       python3-gobject-Gdk
 Obsoletes:      %{name}-gtk < %{version}
 Provides:       %{name}-gtk = %{version}-%{release}
 
@@ -157,8 +158,6 @@ make DESTDIR=%{buildroot} deskdir="%{_da
 install -d "%{buildroot}%{_datadir}/pixmaps/"
 install -d "%{buildroot}%{_datadir}/applications/"
 
-rm "%{buildroot}%{_bindir}/uninstall_ndiff"
-
 pushd zenmap
 %pyproject_install
 install -m 644 ../docs/zenmap.1 %{buildroot}%{_mandir}/man1/
@@ -168,6 +167,9 @@ ln -s %{python_sitelib}/zenmapCore/data/
 ln -sf zenmap %{buildroot}%{_bindir}/nmapfe
 ln -sf zenmap %{buildroot}%{_bindir}/xnmap
 popd
+# TODO: only temporary fix and might need cleanup later on:
+#   7.97 build does not produce the correct dist-info folder yet, likely due to new ndiff build process
+mv %{buildroot}%{python_sitelib}/ndiff-7.96.dist-info/ %{buildroot}%{python_sitelib}/ndiff-%{version}.dist-info
 
 %find_lang zenmap
 
@@ -247,6 +249,7 @@ compiled_with=$("%{buildroot}%{_bindir}/
 %{_bindir}/ndiff
 %{_mandir}/man1/ndiff.1%{?ext_man}
 %{python_sitelib}/ndiff.*
+%{python_sitelib}/ndiff-%{version}.dist-info
 %pycache_only %{python_sitelib}/__pycache__/ndiff.*
 
 %files -n ncat
openSUSE Build Service is sponsored by