Accepting request 184004 from net-snmp:factory
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/184004 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/net-snmp?expand=0&rev=66
This commit is contained in:
parent
2637d7fe62
commit
fd65364a40
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 15 11:49:08 UTC 2013 - mardnh@gmx.de
|
||||||
|
|
||||||
|
- add support for python bindings
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 10 08:26:14 UTC 2013 - lars@linux-schulserver.de
|
Wed Jul 10 08:26:14 UTC 2013 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
# compatibility for SLES11 <=SP1
|
||||||
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
|
|
||||||
%define pkg_name net-snmp
|
%define pkg_name net-snmp
|
||||||
%ifnarch s390 s390x
|
%ifnarch s390 s390x
|
||||||
%define netsnmp_with_sensors 1
|
%define netsnmp_with_sensors 1
|
||||||
@ -30,6 +34,8 @@ Version: 5.7.2
|
|||||||
Release: 0
|
Release: 0
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: rpm-devel
|
BuildRequires: rpm-devel
|
||||||
BuildRequires: tcpd-devel
|
BuildRequires: tcpd-devel
|
||||||
%if 0%{?netsnmp_with_sensors}
|
%if 0%{?netsnmp_with_sensors}
|
||||||
@ -201,6 +207,22 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
G.S. Marzot <gmarzot@nortelnetworks.com>
|
G.S. Marzot <gmarzot@nortelnetworks.com>
|
||||||
|
|
||||||
|
%package python
|
||||||
|
Summary: The Python 'netsnmp' module for the Net-SNMP
|
||||||
|
License: BSD-3-Clause and MIT
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
|
||||||
|
%description python
|
||||||
|
The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3,
|
||||||
|
SNMPv2c, SNMPv1) client API. The 'netsnmp' module internals rely on the
|
||||||
|
Net-SNMP toolkit library.
|
||||||
|
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
G.S. Marzot <gmarzot@nortelnetworks.com>
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
@ -244,6 +266,10 @@ MIBS="$MIBS ucd-snmp/lmsensorsMib"
|
|||||||
# module and libnetsnmp are not correctly defined.
|
# module and libnetsnmp are not correctly defined.
|
||||||
make #%{?_smp_mflags}
|
make #%{?_smp_mflags}
|
||||||
|
|
||||||
|
pushd python
|
||||||
|
%{__python} setup.py --basedir="../" build
|
||||||
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?netsnmp_check}
|
%if 0%{?netsnmp_check}
|
||||||
%ifnarch %arm
|
%ifnarch %arm
|
||||||
@ -273,6 +299,9 @@ pushd perl
|
|||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%{__rm} -f %{buildroot}/%{perl_vendorarch}/Bundle/Makefile.subs.pl
|
%{__rm} -f %{buildroot}/%{perl_vendorarch}/Bundle/Makefile.subs.pl
|
||||||
popd
|
popd
|
||||||
|
pushd python
|
||||||
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
popd
|
||||||
%{__grep} -v "^#define PACKAGE" %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h > \
|
%{__grep} -v "^#define PACKAGE" %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h > \
|
||||||
%{buildroot}%{_includedir}/net-snmp/net-snmp-config.h.new
|
%{buildroot}%{_includedir}/net-snmp/net-snmp-config.h.new
|
||||||
%{__mv} %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h{.new,}
|
%{__mv} %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h{.new,}
|
||||||
@ -384,4 +413,9 @@ rm -f "%buildroot/%_libdir"/*.la
|
|||||||
/var/adm/perl-modules/net-snmp
|
/var/adm/perl-modules/net-snmp
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%files python
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README
|
||||||
|
%{python_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user