fix compilation of the python module

This commit is contained in:
Jan Šafránek 2009-12-08 09:36:22 +00:00
parent e4f9c3c90a
commit e57a6afe9f
1 changed files with 8 additions and 4 deletions

View File

@ -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 <jsafrane@redhat.com> - 1:5.5-6
- fix compilation of the python module
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1:5.5-5
- rebuild against perl 5.10.1