Hello community,

here is the log from the commit of package net-snmp for openSUSE:Factory 
checked in at 2013-07-25 15:10:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/net-snmp (Old)
 and      /work/SRC/openSUSE:Factory/.net-snmp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "net-snmp"

Changes:
--------
--- /work/SRC/openSUSE:Factory/net-snmp/net-snmp.changes        2013-07-18 
16:07:02.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.net-snmp.new/net-snmp.changes   2013-07-25 
15:10:24.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Jul 15 11:49:08 UTC 2013 - [email protected]
+
+- add support for python bindings
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ net-snmp.spec ++++++
--- /var/tmp/diff_new_pack.DysGcF/_old  2013-07-25 15:10:25.000000000 +0200
+++ /var/tmp/diff_new_pack.DysGcF/_new  2013-07-25 15:10:25.000000000 +0200
@@ -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
 %ifnarch s390 s390x
 %define netsnmp_with_sensors 1
@@ -30,6 +34,8 @@
 Release:        0
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  openssl-devel
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
 BuildRequires:  rpm-devel
 BuildRequires:  tcpd-devel
 %if 0%{?netsnmp_with_sensors}
@@ -201,6 +207,22 @@
 --------
     G.S. Marzot <[email protected]>
 
+%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 <[email protected]>
+
+
 %prep
 %setup -q -n %{pkg_name}-%{version}
 %patch1 -p1
@@ -244,6 +266,10 @@
 # module and libnetsnmp are not correctly defined.
 make #%{?_smp_mflags}
 
+pushd python
+%{__python} setup.py --basedir="../" build
+popd
+
 %check
 %if 0%{?netsnmp_check}
 %ifnarch %arm
@@ -273,6 +299,9 @@
     %perl_process_packlist
     %{__rm} -f %{buildroot}/%{perl_vendorarch}/Bundle/Makefile.subs.pl
 popd
+pushd python
+%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
+popd
 %{__grep} -v "^#define PACKAGE" 
%{buildroot}%{_includedir}/net-snmp/net-snmp-config.h > \
     %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h.new
 %{__mv}  %{buildroot}%{_includedir}/net-snmp/net-snmp-config.h{.new,}
@@ -384,4 +413,9 @@
 /var/adm/perl-modules/net-snmp
 %endif
 
+%files python
+%defattr(-,root,root)
+%doc README
+%{python_sitearch}/*
+
 %changelog

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to