Blame SPECS/libsmi.spec

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