diff --git a/nmap.spec.in b/nmap.spec.in index ec2912577..fc236f341 100644 --- a/nmap.spec.in +++ b/nmap.spec.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. diff --git a/zenmap.spec.in b/zenmap.spec.in index d2c5a70aa..745771ab4 100644 --- a/zenmap.spec.in +++ b/zenmap.spec.in @@ -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