%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
%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
%include /usr/lib/rpm/macros.perl
Summary: A collection of SNMP protocol tools
Summary(es.UTF-8): Agente SNMP de la UCD
%include /usr/lib/rpm/macros.perl
Summary: A collection of SNMP protocol tools
Summary(es.UTF-8): Agente SNMP de la UCD
License: BSD-like
Group: Networking/Daemons
Source0: http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
License: BSD-like
Group: Networking/Daemons
Source0: http://downloads.sourceforge.net/net-snmp/%{name}-%{version}.tar.gz
Patch5: %{name}-llinterfaces.patch
Patch6: %{name}-kernel_headers.patch
Patch7: %{name}-rpmpath.patch
Patch5: %{name}-llinterfaces.patch
Patch6: %{name}-kernel_headers.patch
Patch7: %{name}-rpmpath.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
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
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
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: libssh2-devel
BuildRequires: libtool >= 1.4
BuildRequires: libwrap-devel
%{?with_lm_sensors:BuildRequires: lm_sensors-devel >= 3.0.1}
BuildRequires: libssh2-devel
BuildRequires: libtool >= 1.4
BuildRequires: libwrap-devel
%{?with_lm_sensors:BuildRequires: lm_sensors-devel >= 3.0.1}
The net-snmp-agent-libs package contains the runtime agent libraries
for shared binaries and applications.
The net-snmp-agent-libs package contains the runtime agent libraries
for shared binaries and applications.
%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
%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}
Group: Development/Libraries
Requires: %{name}-agent-libs = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
-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
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
Requires: openssl-devel >= 0.9.7d
%description compat-devel -l ru.UTF-8
Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
%description compat-devel -l ru.UTF-8
Пакет ucd-snmp-devel содержит библиотеки разработчика и хедера для
%description compat-devel -l uk.UTF-8
Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
%description compat-devel -l uk.UTF-8
Пакет ucd-snmp-devel містить бібліотеки програміста та хедери для
-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
Group: Development/Libraries
Requires: %{name}-compat-devel = %{version}-%{release}
Obsoletes: ucd-snmp-static
%description compat-static
-NET-SNMP-IN-SOURCE=true \
INSTALLDIRS=vendor \
OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
</dev/null
# avoid rpaths generated by MakeMaker
-NET-SNMP-IN-SOURCE=true \
INSTALLDIRS=vendor \
OPTIMIZE="%{rpmcflags} %{rpmcppflags}" \
</dev/null
# avoid rpaths generated by MakeMaker
rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Bundle/NetSNMP/.packlist
%attr(755,root,root) %{_bindir}/snmpgetnext
%attr(755,root,root) %{_bindir}/snmpinform
%attr(755,root,root) %{_bindir}/snmpnetstat
%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}/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}/snmptranslate
%attr(755,root,root) %{_bindir}/snmptrap
%attr(755,root,root) %{_bindir}/snmpusm
%attr(755,root,root) %{_bindir}/snmptranslate
%attr(755,root,root) %{_bindir}/snmptrap
%attr(755,root,root) %{_bindir}/snmpusm
%{_mandir}/man1/snmpgetnext.1*
%{_mandir}/man1/snmpinform.1*
%{_mandir}/man1/snmpnetstat.1*
%{_mandir}/man1/snmpgetnext.1*
%{_mandir}/man1/snmpinform.1*
%{_mandir}/man1/snmpnetstat.1*
%{_mandir}/man1/snmpset.1*
%{_mandir}/man1/snmpstatus.1*
%{_mandir}/man1/snmptable.1*
%{_mandir}/man1/snmptest.1*
%{_mandir}/man1/snmpset.1*
%{_mandir}/man1/snmpstatus.1*
%{_mandir}/man1/snmptable.1*
%{_mandir}/man1/snmptest.1*
%{_mandir}/man1/snmptranslate.1*
%{_mandir}/man1/snmptrap.1*
%{_mandir}/man1/snmpusm.1*
%{_mandir}/man1/snmptranslate.1*
%{_mandir}/man1/snmptrap.1*
%{_mandir}/man1/snmpusm.1*
%files utils-perl
%defattr(644,root,root,755)
%files utils-perl
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/fixproc
%attr(755,root,root) %{_bindir}/net-snmp-cert
%attr(755,root,root) %{_bindir}/snmp-bridge-mib
%attr(755,root,root) %{_bindir}/fixproc
%attr(755,root,root) %{_bindir}/net-snmp-cert
%attr(755,root,root) %{_bindir}/snmp-bridge-mib
%files -n python-netsnmp
%defattr(644,root,root,755)
%dir %{py_sitedir}/netsnmp
%files -n python-netsnmp
%defattr(644,root,root,755)
%dir %{py_sitedir}/netsnmp