1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 10:59:02 +00:00

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

This commit is contained in:
fyodor
2014-04-11 04:04:42 +00:00
parent 6bf513b42a
commit f83dc2c6c2

View File

@@ -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