auto-import libsmi-0.4.5-2 on branch devel from libsmi-0.4.5-2.src.rpm
This commit is contained in:
parent
762793fb1e
commit
2c815847b9
@ -0,0 +1 @@
|
||||
libsmi-0.4.5.tar.gz
|
||||
113
libsmi.spec
Normal file
113
libsmi.spec
Normal file
@ -0,0 +1,113 @@
|
||||
Name: libsmi
|
||||
Version: 0.4.5
|
||||
Release: 2%{?dist}
|
||||
Summary: A library to access SMI MIB information
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: BSD
|
||||
URL: http://www.ibr.cs.tu-bs.de/projects/libsmi/index.html
|
||||
Source0: ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/%{name}-%{version}.tar.gz
|
||||
Source1: smi.conf
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: libtool
|
||||
BuildRequires: flex, bison
|
||||
Requires: gawk, wget
|
||||
|
||||
%description
|
||||
Libsmi is a C library to access MIB module information through
|
||||
a well defined API that hides the nasty details of locating
|
||||
and parsing SMIv1/v2 MIB modules.
|
||||
|
||||
This package contains tools to check, dump, and convert MIB
|
||||
definitions and a steadily maintained and revised archive
|
||||
of all IETF and IANA maintained standard MIB modules.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development environment for libsmi library
|
||||
Group: Development/Libraries
|
||||
Requires: %name = %version-%release
|
||||
Requires: automake
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
Libsmi is a C library to access MIB module information through
|
||||
a well defined API that hides the nasty details of locating
|
||||
and parsing SMIv1/v2 MIB modules.
|
||||
|
||||
This package contains development files needed to develop
|
||||
libsmi-based applications.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--enable-smi \
|
||||
--enable-sming \
|
||||
--enable-shared \
|
||||
--disable-static
|
||||
LIBTOOL=/usr/bin/libtool make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}
|
||||
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/smi.conf
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
|
||||
|
||||
%check
|
||||
# fails a couple of tests (2 in {0.4.4, 0.4.5})
|
||||
make check ||:
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
%doc ANNOUNCE ChangeLog COPYING README THANKS TODO
|
||||
%doc doc/draft-irtf-nmrg-sming-02.txt smi.conf-example
|
||||
%config(noreplace) %{_sysconfdir}/smi.conf
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so.*
|
||||
%{_datadir}/mibs/
|
||||
%{_datadir}/pibs/
|
||||
%{_mandir}/man1/*.1*
|
||||
|
||||
%files devel
|
||||
%{_datadir}/aclocal/libsmi.m4
|
||||
%{_libdir}/pkgconfig/libsmi.pc
|
||||
%{_libdir}/*.so
|
||||
%{_includedir}/*
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.5-2
|
||||
- Handle rpath problems in 64-bit systems (#209522).
|
||||
|
||||
* Mon May 29 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.5-1
|
||||
- Update to 0.4.5.
|
||||
|
||||
* Wed May 24 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.4-1
|
||||
- Update to 0.4.4.
|
||||
|
||||
* Fri Apr 7 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.3-1
|
||||
- First build.
|
||||
|
||||
# vim:set ai ts=4 sw=4 sts=4 et:
|
||||
40
smi.conf
Normal file
40
smi.conf
Normal file
@ -0,0 +1,40 @@
|
||||
#
|
||||
# smi.conf - Global/User SMI configuration file.
|
||||
#
|
||||
# See smi_config(3) for detailed information on configuration files.
|
||||
#
|
||||
|
||||
# Extend (note the semicolon) the libsmi default module search path.
|
||||
#path :/usr/local/share/mibs/sun
|
||||
#path :/usr/local/share/mibs/cisco
|
||||
|
||||
# Add a private directory.
|
||||
#path :/home/strauss/lib/mibs
|
||||
|
||||
# EXPERIMENTAL: Add a caching method (works only on UNIX systems).
|
||||
# NOTE: the cache directory must exist and permissions must be
|
||||
# handled appropriately. A simple but insecure way is to apply
|
||||
# a tmp flag to the directory (chmod 1777 /usr/local/share/mibs/cache).
|
||||
#cache /usr/local/share/mibs/cache /usr/local/bin/smicache -d /usr/local/share/mibs/cache -p http://www.ibr.cs.tu-bs.de/projects/libsmi/smicache/
|
||||
|
||||
# Don't show any errors by default.
|
||||
level 0
|
||||
|
||||
# Preload some basic SMIv2 modules.
|
||||
load SNMPv2-SMI
|
||||
load SNMPv2-TC
|
||||
load SNMPv2-CONF
|
||||
|
||||
# Make smilint shout loud to report all errors and warnings.
|
||||
smilint: level 9
|
||||
|
||||
# But please don't claim about any names longer than 32 chars.
|
||||
# (note: this is the prefix of errors `namelength-32-module,
|
||||
# -type, -object, -enumeration, and -bit)
|
||||
smilint: hide namelength-32
|
||||
|
||||
# Preloading some more modules for special applications.
|
||||
tcpdump: load DISMAN-SCRIPT-MIB
|
||||
tcpdump: load IF-MIB
|
||||
smiquery: load IF-MIB
|
||||
|
||||
Loading…
Reference in New Issue
Block a user