]> git.pld-linux.org Git - packages/net-snmp.git/blobdiff - net-snmp.spec
- updated to 5.8 (note: new sonames)
[packages/net-snmp.git] / net-snmp.spec
index 2714e82f5cab5351f94c9fa371e4d0e7fa1721c0..4e0b98919648f0d24d408aac7fcba57d658e59c1 100644 (file)
@@ -3,7 +3,6 @@
 # - FHS: #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
 #
 # Conditional build:
-%bcond_without autodeps        # don't BR packages only for deps resolving
 %bcond_without rpm             # don't include RPM support
 %bcond_without kerberos5       # don't include kerberos support
 %bcond_without lm_sensors      # don't include sensors support
@@ -15,7 +14,7 @@
 %undefine      with_lm_sensors
 %endif
 
-%define                so_version      30
+%define                so_version      35
 %include       /usr/lib/rpm/macros.perl
 Summary:       A collection of SNMP protocol tools
 Summary(es.UTF-8):     Agente SNMP de la UCD
@@ -25,12 +24,12 @@ Summary(ru.UTF-8):  Набор утилит для протокола SNMP от U
 Summary(uk.UTF-8):     Набір утиліт для протоколу SNMP від UC-Davis
 Name:          net-snmp
 # NOTE: 5.7.x is LTS version
-Version:       5.7.3
-Release:       9
+Version:       5.8
+Release:       1
 License:       BSD-like
 Group:         Networking/Daemons
 Source0:       http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
-# Source0-md5: d4a3459e1577d0efa8d96ca70a885e53
+# Source0-md5: 63bfc65fbb86cdb616598df1aff6458a
 Source1:       %{name}d.init
 Source2:       %{name}d.conf
 Source3:       %{name}d.sysconfig
@@ -48,28 +47,30 @@ Patch4:             %{name}-link.patch
 Patch5:                %{name}-llinterfaces.patch
 Patch6:                %{name}-kernel_headers.patch
 Patch7:                %{name}-rpmpath.patch
-Patch8:                swinst_apt.patch
 Patch9:                %{name}-python.patch
 Patch10:       %{name}-lvalue.patch
 Patch11:       %{name}-defaultconfig.patch
 Patch12:       %{name}-use-rpm-hrmib.patch
 Patch13:       %{name}-TCP_STATS_CACHE_TIMEOUT.patch
-
-Patch17:       %{name}-logging.patch
+Patch14:       %{name}-logging.patch
+Patch17:       1314610.patch
 URL:           http://www.net-snmp.org/
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake
 BuildRequires: elfutils-devel
 %{?with_kerberos5:BuildRequires:       heimdal-devel}
 BuildRequires: libnl-devel >= 1:3.2
+BuildRequires: libpcap-devel
 BuildRequires: libssh2-devel
 BuildRequires: libtool >= 1.4
 BuildRequires: libwrap-devel
 %{?with_lm_sensors:BuildRequires:      lm_sensors-devel >= 3.0.1}
+BuildRequires: ncurses-devel
 BuildRequires: openssl-devel >= 0.9.7d
 BuildRequires: pciutils-devel
-%{?with_autodeps:BuildRequires:        perl-Term-ReadKey}
+BuildRequires: pcre-devel
 BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: pkgconfig >= 1:0.9.0
 %if %{with python}
 BuildRequires: python-devel
 BuildRequires: python-modules
@@ -161,6 +162,7 @@ Biblioteki SNMP.
 
 %package agent-libs
 Summary:       The NET-SNMP runtime agent libraries
+Summary(pl.UTF-8):     Biblioteki uruchomieniowe agenta NET-SNMP
 Group:         Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 
@@ -168,13 +170,16 @@ Requires: %{name}-libs = %{version}-%{release}
 The net-snmp-agent-libs package contains the runtime agent libraries
 for shared binaries and applications.
 
+%description agent-libs -l pl.UTF-8
+Ten pakiet zawiera biblioteki uruchomieniowe agenta SNMP.
+
 %package devel
 Summary:       The development environment for the net-snmp project
 Summary(es.UTF-8):     Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
 Summary(pl.UTF-8):     Pliki dla programistów używających bibliotek net-snmp
 Summary(pt_BR.UTF-8):  Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
-Summary(ru.UTF-8):     Среда разработки для проекта UCD-SNMP
-Summary(uk.UTF-8):     Середовище розробки для проекту UCD-SNMP
+Summary(ru.UTF-8):     Среда разработки для проекта NET-SNMP
+Summary(uk.UTF-8):     Середовище розробки для проекту NET-SNMP
 Group:         Development/Libraries
 Requires:      %{name}-agent-libs = %{version}-%{release}
 Requires:      %{name}-libs = %{version}-%{release}
@@ -234,12 +239,12 @@ Statyczne biblioteki net-snmp.
 Bibliotecas estáticas para desenvolvimento com net-snmp.
 
 %package compat-devel
-Summary:       The development environment for the UCD-SNMP project
+Summary:       The development environment for the NET-SNMP project
 Summary(es.UTF-8):     Archivos de inclusión y bibliotecas para desarrollo en el SNMP de la UCD
-Summary(pl.UTF-8):     Pliki dla programistów używających bibliotek UCD-SNMP
+Summary(pl.UTF-8):     Pliki dla programistów używających bibliotek NET-SNMP
 Summary(pt_BR.UTF-8):  Arquivos de inclusão e bibliotecas para desenvolvimento no SNMP da UCD
-Summary(ru.UTF-8):     Среда разработки для проекта UCD-SNMP
-Summary(uk.UTF-8):     Середовище розробки для проекту UCD-SNMP
+Summary(ru.UTF-8):     Среда разработки для проекта NET-SNMP
+Summary(uk.UTF-8):     Середовище розробки для проекту NET-SNMP
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 Requires:      openssl-devel >= 0.9.7d
@@ -248,7 +253,7 @@ Obsoletes:  ucd-snmp-devel
 
 %description compat-devel
 The ucd-snmp-devel package contains the development libraries and
-header files for use with the UCD-SNMP project's network management
+header files for use with the NET-SNMP project's network management
 tools.
 
 %description compat-devel -l es.UTF-8
@@ -267,27 +272,27 @@ para uso no gerenciamento de redes.
 
 %description compat-devel -l ru.UTF-8
 Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
-использования с утилитами управления сетью проекта UCD-SNMP.
+использования с утилитами управления сетью проекта NET-SNMP.
 
 %description compat-devel -l uk.UTF-8
 Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
-використання з утилітами керування мережею проекту UCD-SNMP.
+використання з утилітами керування мережею проекту NET-SNMP.
 
 %package compat-static
-Summary:       Static UCD-SNMP libraries
-Summary(pl.UTF-8):     Statyczne biblioteki UCD-SNMP
+Summary:       Static NET-SNMP libraries
+Summary(pl.UTF-8):     Statyczne biblioteki NET-SNMP
 Summary(pt_BR.UTF-8):  Bibliotecas estáticas para desenvolvimento com ucd-snmp
-Summary(ru.UTF-8):     Статические библиотеки для проекта UCD-SNMP
-Summary(uk.UTF-8):     Статичні бібліотеки для проекту UCD-SNMP
+Summary(ru.UTF-8):     Статические библиотеки для проекта NET-SNMP
+Summary(uk.UTF-8):     Статичні бібліотеки для проекту NET-SNMP
 Group:         Development/Libraries
 Requires:      %{name}-compat-devel = %{version}-%{release}
 Obsoletes:     ucd-snmp-static
 
 %description compat-static
-Static UCD-SNMP libraries.
+Static NET-SNMP libraries.
 
 %description compat-static -l pl.UTF-8
-Statyczne biblioteki UCD-SNMP.
+Statyczne biblioteki NET-SNMP.
 
 %description compat-static -l pt_BR.UTF-8
 Bibliotecas estáticas para desenvolvimento com ucd-snmp.
@@ -444,13 +449,12 @@ SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1).
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
-
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
 %patch13 -p1
-
+%patch14 -p1
 %patch17 -p1
 
 %build
@@ -458,7 +462,6 @@ SNMP dla trzech wersji tego protokołu (SNMPv3, SNMPv2c, SNMPv1).
 %{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
-cp -f /usr/share/automake/config.sub .
 
 MIBS="\
 host agentx smux \
@@ -508,14 +511,14 @@ MIBS="$MIBS ucd-snmp/lmsensorsMib"
 %{__make} -j1
 
 cd perl
-%{__perl} Makefile.PL \
+%{__perl} -I. Makefile.PL \
        -NET-SNMP-IN-SOURCE=true \
        INSTALLDIRS=vendor \
        OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
        </dev/null
 
 # avoid rpaths generated by MakeMaker
-perl -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
+%{__perl} -pi -e 's@LD_RUN_PATH="\$\(LD_RUN_PATH\)" @@' */Makefile */*/Makefile
 
 bd=$(cd ..; pwd)
 %{__make} \
@@ -555,7 +558,7 @@ cd ..
 # IP-Filter (non-Linux)
 %{__rm} $RPM_BUILD_ROOT%{_bindir}/ipf-mod.pl
 
-%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/Makefile.subs.pl
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle/MakefileSubs.pm
 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
 
@@ -739,11 +742,15 @@ fi
 %attr(755,root,root) %{_bindir}/snmpgetnext
 %attr(755,root,root) %{_bindir}/snmpinform
 %attr(755,root,root) %{_bindir}/snmpnetstat
+%attr(755,root,root) %{_bindir}/snmppcap
+%attr(755,root,root) %{_bindir}/snmpping
+%attr(755,root,root) %{_bindir}/snmpps
 %attr(755,root,root) %{_bindir}/snmpset
 %attr(755,root,root) %{_bindir}/snmpstatus
 %attr(755,root,root) %{_bindir}/snmptable
 %attr(755,root,root) %{_bindir}/snmptest
 %attr(755,root,root) %{_bindir}/snmptls
+%attr(755,root,root) %{_bindir}/snmptop
 %attr(755,root,root) %{_bindir}/snmptranslate
 %attr(755,root,root) %{_bindir}/snmptrap
 %attr(755,root,root) %{_bindir}/snmpusm
@@ -760,10 +767,12 @@ fi
 %{_mandir}/man1/snmpgetnext.1*
 %{_mandir}/man1/snmpinform.1*
 %{_mandir}/man1/snmpnetstat.1*
+%{_mandir}/man1/snmpps.1*
 %{_mandir}/man1/snmpset.1*
 %{_mandir}/man1/snmpstatus.1*
 %{_mandir}/man1/snmptable.1*
 %{_mandir}/man1/snmptest.1*
+%{_mandir}/man1/snmptop.1*
 %{_mandir}/man1/snmptranslate.1*
 %{_mandir}/man1/snmptrap.1*
 %{_mandir}/man1/snmpusm.1*
@@ -796,6 +805,7 @@ fi
 
 %files utils-perl
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/checkbandwidth
 %attr(755,root,root) %{_bindir}/fixproc
 %attr(755,root,root) %{_bindir}/net-snmp-cert
 %attr(755,root,root) %{_bindir}/snmp-bridge-mib
@@ -823,7 +833,7 @@ fi
 %files -n python-netsnmp
 %defattr(644,root,root,755)
 %dir %{py_sitedir}/netsnmp
-%attr(755,root,root) %{py_sitedir}/netsnmp/*.so
+%attr(755,root,root) %{py_sitedir}/netsnmp/client_intf.so
 %{py_sitedir}/netsnmp/*.py[co]
 %{py_sitedir}/netsnmp_python-*.egg-info
 %endif
This page took 0.060234 seconds and 4 git commands to generate.