From 1fc67280f75bf1ee95e319c0d235da8e999495d4 Mon Sep 17 00:00:00 2001 From: fyodor Date: Fri, 11 Apr 2014 23:12:35 +0000 Subject: [PATCH] Add "AutoReqProv:no" because automatic dependency calculation was adding "python(abi) = 2.4" even though our setup.py takes care of adjusting sys.path to point to wherever the modules were installed. We use this same approach for Zemap. Hopefully this doesn't cause problems. There were the dependencies before this change: $ rpm -qpR nmap-6.45-1.x86_64.rpm /usr/bin/python libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libsvn_client-1.so.0()(64bit) python >= 2.4 python(abi) = 2.4 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rtld(GNU_HASH) And here they are after: $ rpm -qpR nmap-6.45-1.x86_64.rpm python >= 2.4 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 --- nmap.spec.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nmap.spec.in b/nmap.spec.in index b730ce05d..68449079c 100644 --- a/nmap.spec.in +++ b/nmap.spec.in @@ -27,6 +27,13 @@ Group: Applications/System Source0: http://nmap.org/dist/%{name}-%{version}.tgz URL: http://nmap.org +# Disable automatic dependency calculation because we want to provide +# packages for more than one version of Python. Without this, RPM will +# grep through the installed files and automatically add things like +# Requires: python(abi) = 2.4 +# 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 # For Ndiff. Requires: python >= 2.4