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