Blame SPECS/libsmi.spec

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