2c81584
Name:           libsmi
2c81584
Version:        0.4.5
2c81584
Release:        2%{?dist}
2c81584
Summary:        A library to access SMI MIB information
2c81584
2c81584
Group:          System Environment/Libraries
2c81584
License:        BSD
2c81584
URL:            http://www.ibr.cs.tu-bs.de/projects/libsmi/index.html
2c81584
Source0:        ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/%{name}-%{version}.tar.gz
2c81584
Source1:        smi.conf
2c81584
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2c81584
2c81584
BuildRequires:  libtool
2c81584
BuildRequires:  flex, bison
2c81584
Requires:       gawk, wget
2c81584
2c81584
%description
2c81584
Libsmi is a C library to access MIB module information through
2c81584
a well defined API that hides the nasty details of locating
2c81584
and parsing SMIv1/v2 MIB modules.
2c81584
2c81584
This package contains tools to check, dump, and convert MIB
2c81584
definitions and a steadily maintained and revised archive
2c81584
of all IETF and IANA maintained standard MIB modules.
2c81584
2c81584
2c81584
%package devel
2c81584
Summary:        Development environment for libsmi library
2c81584
Group:          Development/Libraries
2c81584
Requires:       %name = %version-%release
2c81584
Requires:       automake
2c81584
Requires:       pkgconfig
2c81584
2c81584
%description devel
2c81584
Libsmi is a C library to access MIB module information through
2c81584
a well defined API that hides the nasty details of locating
2c81584
and parsing SMIv1/v2 MIB modules.
2c81584
2c81584
This package contains development files needed to develop
2c81584
libsmi-based applications.
2c81584
2c81584
2c81584
%prep
2c81584
%setup -q
2c81584
2c81584
2c81584
%build
2c81584
%configure \
2c81584
    --enable-smi \
2c81584
    --enable-sming \
2c81584
    --enable-shared \
2c81584
    --disable-static
1685238
make LIBTOOL=/usr/bin/libtool %{?_smp_mflags}
2c81584
2c81584
2c81584
%install
2c81584
rm -rf $RPM_BUILD_ROOT
2c81584
2c81584
make install DESTDIR=$RPM_BUILD_ROOT
2c81584
2c81584
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}
2c81584
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/smi.conf
2c81584
2c81584
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
2c81584
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
2c81584
2c81584
2c81584
%check
2c81584
# fails a couple of tests (2 in {0.4.4, 0.4.5})
2c81584
make check ||:
2c81584
2c81584
2c81584
%clean
2c81584
rm -rf $RPM_BUILD_ROOT
2c81584
2c81584
2c81584
%post -p /sbin/ldconfig
2c81584
2c81584
%postun -p /sbin/ldconfig
2c81584
2c81584
2c81584
%files
2c81584
%doc ANNOUNCE ChangeLog COPYING README THANKS TODO
2c81584
%doc doc/draft-irtf-nmrg-sming-02.txt smi.conf-example
2c81584
%config(noreplace) %{_sysconfdir}/smi.conf
2c81584
%{_bindir}/*
2c81584
%{_libdir}/*.so.*
2c81584
%{_datadir}/mibs/
2c81584
%{_datadir}/pibs/
2c81584
%{_mandir}/man1/*.1*
2c81584
2c81584
%files devel
2c81584
%{_datadir}/aclocal/libsmi.m4
2c81584
%{_libdir}/pkgconfig/libsmi.pc
2c81584
%{_libdir}/*.so
2c81584
%{_includedir}/*
2c81584
%{_mandir}/man3/*.3*
2c81584
2c81584
2c81584
%changelog
2c81584
* Fri Oct  6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.5-2
2c81584
- Handle rpath problems in 64-bit systems (#209522).
2c81584
2c81584
* Mon May 29 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.5-1
2c81584
- Update to 0.4.5.
2c81584
2c81584
* Wed May 24 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.4-1
2c81584
- Update to 0.4.4.
2c81584
2c81584
* Fri Apr  7 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.3-1
2c81584
- First build.
2c81584
2c81584
# vim:set ai ts=4 sw=4 sts=4 et: