Summary: C library for analyzing BGP related dump files Name: libbgpdump Version: 1.6.2 Release: 2%{?dist} License: MIT AND GPL-2.0-or-later URL: https://github.com/RIPE-NCC/bgpdump/wiki Source0: https://github.com/RIPE-NCC/bgpdump/releases/download/v%{version}/%{name}-%{version}.tgz # Upstream .so name versioning proposed at https://github.com/RIPE-NCC/bgpdump/issues/11 Patch0: https://github.com/RIPE-NCC/bgpdump/commit/2fc04a828fe35dc84654164157966b0823429c81.patch#/libbgpdump-1.6.2-soname-versioning.patch BuildRequires: bzip2-devel %if 0%{?rhel} && 0%{?rhel} < 8 BuildRequires: devtoolset-8-toolchain %endif BuildRequires: gcc BuildRequires: make BuildRequires: zlib-devel %description Libbgpdump is a C library designed to help with analyzing BGP related dump files in Zebra/Quagga or MRT RIB (Multi-Threaded Routing Toolkit Routing Information Base) format, e.g. produced by Zebra/Quagga, BIRD, OpenBGPD or PyRT. %package devel Summary: Development files for the bgpdump library Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The libbgpdump-devel package includes header files and libraries necessary for developing programs which use the bgpdump C library. %package -n bgpdump Summary: MRT file reader for handling BGP related data Requires: %{name}%{?_isa} = %{version}-%{release} %description -n bgpdump Bgpdump translates (possibly compressed) binary MRT RIB dump files, e.g. produced by Zebra/Quagga, BIRD, OpenBGPD or PyRT, into human readable output. Publicly available MRT RIB dump files are e.g. supplied by the RIPE NCC routing information service (RIPE RIS). %prep %setup -q %patch0 -p1 -b .soname-versioning %build %if 0%{?rhel} && 0%{?rhel} < 8 . /opt/rh/devtoolset-8/enable %endif %configure %make_build %install %make_install rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.a %check export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$RPM_BUILD_ROOT%{_libdir}" $RPM_BUILD_ROOT%{_bindir}/bgpdump -T %ldconfig_scriptlets %files %license COPYING %doc ChangeLog README %{_libdir}/%{name}.so.0* %files devel %{_libdir}/%{name}.so %{_includedir}/bgpdump_attr.h %{_includedir}/bgpdump_formats.h %{_includedir}/bgpdump_lib.h %{_includedir}/bgpdump_mstream.h %files -n bgpdump %{_bindir}/bgpdump %changelog * Thu Jul 20 2023 Fedora Release Engineering - 1.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon May 29 2023 Robert Scheck 1.6.2-1 - Upgrade to 1.6.2 (#2210804) * Thu Jan 19 2023 Fedora Release Engineering - 1.6.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.6.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.6.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.6.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.6.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Apr 26 2020 Robert Scheck 1.6.0-5 - Added patch to avoid -shared linking for bgpdump (#1818875) * Wed Jan 29 2020 Fedora Release Engineering - 1.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Apr 28 2019 Robert Scheck 1.6.0-2 - Add corrections from package review (#1702017 #c1) * Mon Apr 22 2019 Robert Scheck 1.6.0-1 - Upgrade to 1.6.0 (#1702017) - Initial spec file for Fedora and Red Hat Enterprise Linux