From e57a6afe9fb6e69dfc2d3ac1e0cff3398a693b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0afr=C3=A1nek?= Date: Tue, 8 Dec 2009 09:36:22 +0000 Subject: [PATCH] fix compilation of the python module --- net-snmp.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/net-snmp.spec b/net-snmp.spec index 7108f04..8f13797 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -1,16 +1,17 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} - # use netsnmp_tcp_wrappers 0 to disable tcp_wrappers support %{!?netsnmp_tcp_wrappers:%define netsnmp_tcp_wrappers 1} # use nestnmp_check 0 to speed up packaging by disabling 'make test' %{!?netsnmp_check: %define netsnmp_check 1} + # Arches on which we need to prevent arch conflicts on net-snmp-config.h %define multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x x86_64 sparc sparcv9 sparc64 +# allow compilation on old Fedoras +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: 5.5 -Release: 5%{?dist} +Release: 6%{?dist} Epoch: 1 License: BSD and MIT @@ -385,7 +386,7 @@ rm -rf ${RPM_BUILD_ROOT} %files python %defattr(-,root,root,-) %doc README -%{python_sitelib}/* +%{python_sitearch}/* %files gui %defattr(-,root,root) @@ -401,6 +402,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/snmp/mibs/* %changelog +* Tue Dec 8 2009 Jan Safranek - 1:5.5-6 +- fix compilation of the python module + * Mon Dec 7 2009 Stepan Kasal - 1:5.5-5 - rebuild against perl 5.10.1