mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
6bf513b42a
commit
f83dc2c6c2
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue