From f83dc2c6c26d5d66b753af6a016dcf065f35c233 Mon Sep 17 00:00:00 2001 From: fyodor Date: Fri, 11 Apr 2014 04:04:42 +0000 Subject: [PATCH] Since ndiff is now module-based, add some code to the spec file to hopefully allow it to find the site-packages/ndiff* and ^Cild the RPM --- nmap.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) 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