Blame SPECS/libsmi.spec

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