diff --git a/nmap.spec.in b/nmap.spec.in index 9afae905e..b730ce05d 100644 --- a/nmap.spec.in +++ b/nmap.spec.in @@ -13,6 +13,10 @@ %define release 1 %define _prefix /usr +# Find where Python modules are installed. See +# http://fedoraproject.org/wiki/Packaging/Python. +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + Summary: Network exploration tool and security scanner Name: %{name} Version: %{version} @@ -83,6 +87,8 @@ gzip $RPM_BUILD_ROOT%{_mandir}/man1/* || : %{_datadir}/nmap %{_bindir}/ndiff +# Ndiff is now a module and has e.g. /usr/lib/python2.4/site-packages/ndiff.py, /usr/lib/python2.4/site-packages/ndiff.pyc +%{python_sitelib}/ndiff* %doc %{_prefix}/share/man/man1/ndiff.1.gz # Ncat subpackage