diff --git a/nmap.spec b/nmap.spec index b55bc05..4bf450a 100644 --- a/nmap.spec +++ b/nmap.spec @@ -2,7 +2,7 @@ %define with_zenmap 1 Name: nmap -Version: 7.93 +Version: 7.94 Release: 1mamba Epoch: 1 Summary: Network exploration tool and security scanner @@ -70,12 +70,20 @@ This package contains zenmap, a PyGTK frontend for Nmap. %prep %setup -q -%patch0 -p1 +#-D -T +#:<< _EOF +%patch 0 -p1 cd nping autoconf cd .. +# ensure to build using system deps +rm -rf liblua libpcap libpcre macosx mwin32 libssh2 libz + +autoreconf -fi + %build +#:<< _EOF %configure \ --enable-ipv6 \ %if %with_systemlua @@ -86,7 +94,7 @@ cd .. %else --without-umit \ %endif - PYTHON=%{__python27} + PYTHON=%{__python3} %make @@ -99,7 +107,7 @@ cd .. %if %with_zenmap sed -i "s,%{buildroot},,g" %{buildroot}%{_bindir}/zenmap sed -i "s,%{buildroot},,g" %{buildroot}%{_bindir}/uninstall_zenmap -find %{buildroot}%{python_sitearch} -name \*.py -type f | \ +find %{buildroot}%{python3_sitelib} -name \*.py -type f | \ while read f; do sed -i "s,%{buildroot},,g" $f done @@ -107,9 +115,9 @@ install -D -m644 %{S:1} \ %{buildroot}%{_datadir}/applications/zenmap.desktop #install -D -m644 %{S:2} \ # %{buildroot}%{_datadir}/applications/zenmap-root.desktop -mv %{buildroot}%{_datadir}/zenmap/locale %{buildroot}%{_datadir}/ +#mv %{buildroot}%{_datadir}/zenmap/locale %{buildroot}%{_datadir}/ -%find_lang zenmap +#% find_lang zenmap --with-man %endif rm -f %{buildroot}%{_datadir}/applications/zenmap-root.desktop @@ -134,7 +142,8 @@ rm -f %{buildroot}%{_datadir}/applications/zenmap-root.desktop #%doc CHANGELOG HACKING docs/README docs/*.txt %if %with_zenmap -%files -n zenmap -f zenmap.lang +%files -n zenmap +#-f zenmap.lang %defattr(-,root,root) %{_bindir}/zenmap %{_bindir}/uninstall_zenmap @@ -155,15 +164,19 @@ rm -f %{buildroot}%{_datadir}/applications/zenmap-root.desktop %{_datadir}/zenmap/su-to-zenmap.sh %doc %{_datadir}/zenmap/docs %{_datadir}/zenmap/misc -%{python27_sitelib}/ndiff.py* -%{python27_sitelib}/radialnet/* -%{python27_sitelib}/zenmapCore -%{python27_sitelib}/zenmapGUI -%{python27_sitelib}/zenmap-%{version}-py%{python27_version}.egg-info +%{python3_sitelib}/ndiff.py* +%{python3_sitelib}/radialnet/* +%{python3_sitelib}/zenmapCore +%{python3_sitelib}/zenmapGUI +%{python3_sitelib}/zenmap-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/__pycache__/ndiff.cpython-*.pyc %{_mandir}/man1/zenmap.* %endif %changelog +* Tue Dec 12 2023 Automatic Build System 7.94-1mamba +- automatic version update by autodist + * Sun Sep 04 2022 Automatic Build System 7.93-1mamba - automatic version update by autodist