Blame SPECS/libsmi.spec

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