mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Update RPM specs for Python3
This commit is contained in:
@@ -31,7 +31,7 @@ URL: https://nmap.org
|
||||
# modules were installed so it's not dependent on any particular ABI.
|
||||
AutoReqProv: no
|
||||
# For Ndiff.
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-devel, epel-rpm-macros
|
||||
Requires: python >= 3.0
|
||||
|
||||
# RPM can't be relocatable until I stop storing path info in the binary.
|
||||
|
||||
@@ -25,7 +25,7 @@ BuildArch: noarch
|
||||
# setup.py takes care of adjusting sys.path to point to wherever the
|
||||
# modules were installed so it's not dependent on any particular ABI.
|
||||
AutoReqProv: no
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-devel, epel-rpm-macros
|
||||
Requires: python >= 3.0, nmap, python-gobject, gtk3
|
||||
|
||||
Prefix: %{_prefix}
|
||||
@@ -55,7 +55,7 @@ from Umit, an Nmap GUI created as part of the Google Summer of Code.
|
||||
--infodir=%{_prefix}/share/info \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--without-openssl \
|
||||
--with-zenmap PYTHON="%{__python}"
|
||||
--with-zenmap # PYTHON="%{__python}"
|
||||
make build-zenmap DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
%install
|
||||
@@ -75,8 +75,11 @@ gzip $RPM_BUILD_ROOT%{_mandir}/man1/* || :
|
||||
%{_bindir}/nmapfe
|
||||
%{_bindir}/xnmap
|
||||
# This gets the modules and the .egg-info file if it was installed.
|
||||
%pycached %{python3_sitelib}/*
|
||||
%{_datadir}/zenmap
|
||||
%{python3_sitelib}/zenmapGUI/
|
||||
%{python3_sitelib}/zenmapCore/
|
||||
%{python3_sitelib}/radialnet/
|
||||
%{python3_sitelib}/zenmap-*.egg-info
|
||||
%{_datadir}/zenmap/
|
||||
%{_datadir}/applications/*.desktop
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user