|
|
fe609d |
Name: libsmi
|
|
|
fe609d |
Version: 0.4.8
|
|
|
fe609d |
Release: 13%{?dist}
|
|
|
fe609d |
Summary: A library to access SMI MIB information
|
|
|
fe609d |
|
|
|
fe609d |
Group: System Environment/Libraries
|
|
|
fe609d |
License: GPLv2+ and BSD
|
|
|
fe609d |
URL: http://www.ibr.cs.tu-bs.de/projects/libsmi/index.html
|
|
|
fe609d |
Source0: ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/%{name}-%{version}.tar.gz
|
|
|
fe609d |
Source1: smi.conf
|
|
|
fe609d |
Source2: IETF-MIB-LICENSE.txt
|
|
|
fe609d |
Patch0: libsmi-0.4.8-wget111.patch
|
|
|
fe609d |
Patch1: libsmi-0.4.8-CVE-2010-2891.patch
|
|
|
fe609d |
Patch2: libsmi-0.4.8-symbols-clash.patch
|
|
|
fe609d |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
fe609d |
|
|
|
fe609d |
BuildRequires: libtool
|
|
|
fe609d |
BuildRequires: flex, bison
|
|
|
fe609d |
Requires: gawk, wget
|
|
|
fe609d |
|
|
|
fe609d |
%description
|
|
|
fe609d |
Libsmi is a C library to access MIB module information through
|
|
|
fe609d |
a well defined API that hides the nasty details of locating
|
|
|
fe609d |
and parsing SMIv1/v2 MIB modules.
|
|
|
fe609d |
|
|
|
fe609d |
This package contains tools to check, dump, and convert MIB
|
|
|
fe609d |
definitions and a steadily maintained and revised archive
|
|
|
fe609d |
of all IETF and IANA maintained standard MIB modules.
|
|
|
fe609d |
|
|
|
fe609d |
|
|
|
fe609d |
%package devel
|
|
|
fe609d |
Summary: Development environment for libsmi library
|
|
|
fe609d |
Group: Development/Libraries
|
|
|
fe609d |
Requires: %name = %version-%release
|
|
|
fe609d |
Requires: pkgconfig
|
|
|
fe609d |
|
|
|
fe609d |
%description devel
|
|
|
fe609d |
Libsmi is a C library to access MIB module information through
|
|
|
fe609d |
a well defined API that hides the nasty details of locating
|
|
|
fe609d |
and parsing SMIv1/v2 MIB modules.
|
|
|
fe609d |
|
|
|
fe609d |
This package contains development files needed to develop
|
|
|
fe609d |
libsmi-based applications.
|
|
|
fe609d |
|
|
|
fe609d |
%prep
|
|
|
fe609d |
%setup -q
|
|
|
fe609d |
%patch0 -p1 -b .wget111
|
|
|
fe609d |
%patch1 -p1 -b .CVE-2010-2891
|
|
|
fe609d |
%patch2 -p1 -b .clash
|
|
|
fe609d |
cp %{SOURCE2} .
|
|
|
fe609d |
|
|
|
fe609d |
%build
|
|
|
fe609d |
%configure \
|
|
|
fe609d |
--enable-smi \
|
|
|
fe609d |
--enable-sming \
|
|
|
fe609d |
--enable-shared \
|
|
|
fe609d |
--disable-static
|
|
|
fe609d |
make LIBTOOL=/usr/bin/libtool %{?_smp_mflags}
|
|
|
fe609d |
|
|
|
fe609d |
iconv -f latin1 -t utf-8 <COPYING >COPYING.utf8
|
|
|
fe609d |
mv COPYING.utf8 COPYING
|
|
|
fe609d |
|
|
|
fe609d |
%install
|
|
|
fe609d |
rm -rf $RPM_BUILD_ROOT
|
|
|
fe609d |
|
|
|
fe609d |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
fe609d |
|
|
|
fe609d |
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
fe609d |
install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/smi.conf
|
|
|
fe609d |
|
|
|
fe609d |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
fe609d |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
fe609d |
|
|
|
fe609d |
%check
|
|
|
fe609d |
# fails a couple of tests (2 in {0.4.4, 0.4.5})
|
|
|
fe609d |
make check ||:
|
|
|
fe609d |
|
|
|
fe609d |
%clean
|
|
|
fe609d |
rm -rf $RPM_BUILD_ROOT
|
|
|
fe609d |
|
|
|
fe609d |
%post -p /sbin/ldconfig
|
|
|
fe609d |
|
|
|
fe609d |
%postun -p /sbin/ldconfig
|
|
|
fe609d |
|
|
|
fe609d |
|
|
|
fe609d |
%files
|
|
|
fe609d |
%defattr(-,root,root,-)
|
|
|
fe609d |
%doc ANNOUNCE ChangeLog COPYING README THANKS TODO
|
|
|
fe609d |
%doc doc/draft-irtf-nmrg-sming-02.txt smi.conf-example
|
|
|
fe609d |
%doc IETF-MIB-LICENSE.txt
|
|
|
fe609d |
%config(noreplace) %{_sysconfdir}/smi.conf
|
|
|
fe609d |
%{_bindir}/*
|
|
|
fe609d |
%{_libdir}/*.so.*
|
|
|
fe609d |
%{_datadir}/mibs/
|
|
|
fe609d |
%{_datadir}/pibs/
|
|
|
fe609d |
%{_mandir}/man1/*.1*
|
|
|
fe609d |
|
|
|
fe609d |
%files devel
|
|
|
fe609d |
%defattr(-,root,root,-)
|
|
|
fe609d |
%{_datadir}/aclocal/libsmi.m4
|
|
|
fe609d |
%{_libdir}/pkgconfig/libsmi.pc
|
|
|
fe609d |
%{_libdir}/*.so
|
|
|
fe609d |
%{_includedir}/*
|
|
|
fe609d |
%{_mandir}/man3/*.3*
|
|
|
fe609d |
|
|
|
fe609d |
|
|
|
fe609d |
%changelog
|
|
|
fe609d |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.4.8-13
|
|
|
fe609d |
- Mass rebuild 2014-01-24
|
|
|
fe609d |
|
|
|
fe609d |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.4.8-12
|
|
|
fe609d |
- Mass rebuild 2013-12-27
|
|
|
fe609d |
|
|
|
fe609d |
* Thu Feb 14 2013 Tom Callaway <spot@fedoraproject.org> - 0.4.8-11
|
|
|
fe609d |
- add IETF MIB license text to resolve legal issue
|
|
|
fe609d |
|
|
|
fe609d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-10
|
|
|
fe609d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
fe609d |
|
|
|
fe609d |
* Wed Oct 24 2012 Tom Callaway <spot@fedoraproject.org> - 0.4.8-9
|
|
|
fe609d |
- mark symbols which conflict with RPM as "internal", resolves bz 864324
|
|
|
fe609d |
Thanks to Michele Baldessari
|
|
|
fe609d |
|
|
|
fe609d |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-8
|
|
|
fe609d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
fe609d |
|
|
|
fe609d |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-7
|
|
|
fe609d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
fe609d |
|
|
|
fe609d |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-6
|
|
|
fe609d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
fe609d |
|
|
|
fe609d |
* Mon Nov 1 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.8-5
|
|
|
fe609d |
- fix CVE-2010-2891
|
|
|
fe609d |
|
|
|
fe609d |
* Thu Feb 25 2010 Radek Vokal <rvokal@redhat.com> - 0.4.8-4
|
|
|
fe609d |
- fix lincese field, based on the tarball project is now GPL+
|
|
|
fe609d |
|
|
|
fe609d |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-3
|
|
|
fe609d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
fe609d |
|
|
|
fe609d |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.8-2
|
|
|
fe609d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
fe609d |
|
|
|
fe609d |
* Wed Apr 23 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.4.8-1
|
|
|
fe609d |
- update to 0.4.8
|
|
|
fe609d |
- patch fix for bz 441944
|
|
|
fe609d |
|
|
|
fe609d |
* Tue Feb 12 2008 Adam Jackson <ajax@redhat.com> 0.4.5-4
|
|
|
fe609d |
- Add %%defattr. (#430298)
|
|
|
fe609d |
|
|
|
fe609d |
* Thu Jan 10 2008 Stepan Kasal <skasal@redhat.com> - 0.4.5-3
|
|
|
fe609d |
- libsmi-devel should not require automake
|
|
|
fe609d |
- convert COPYING to utf-8
|
|
|
fe609d |
|
|
|
fe609d |
* Fri Oct 6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.5-2
|
|
|
fe609d |
- Handle rpath problems in 64-bit systems (#209522).
|
|
|
fe609d |
|
|
|
fe609d |
* Mon May 29 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.5-1
|
|
|
fe609d |
- Update to 0.4.5.
|
|
|
fe609d |
|
|
|
fe609d |
* Wed May 24 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.4-1
|
|
|
fe609d |
- Update to 0.4.4.
|
|
|
fe609d |
|
|
|
fe609d |
* Fri Apr 7 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.4.3-1
|
|
|
fe609d |
- First build.
|
|
|
fe609d |
|
|
|
fe609d |
# vim:set ai ts=4 sw=4 sts=4 et:
|