2021-01-01 13:47:47 +00:00
|
|
|
%global frrversion 7.5
|
2019-07-21 13:10:06 +00:00
|
|
|
%global frr_libdir /usr/lib/frr
|
|
|
|
|
|
|
|
%global _hardened_build 1
|
2020-02-19 09:42:42 +00:00
|
|
|
%define _legacy_common_support 1
|
2019-07-21 13:10:06 +00:00
|
|
|
|
|
|
|
Name: frr
|
2021-01-01 13:47:47 +00:00
|
|
|
Version: 7.5
|
2021-03-02 15:13:45 +00:00
|
|
|
Release: 4%{?checkout}%{?dist}
|
2019-07-21 13:10:06 +00:00
|
|
|
Summary: Routing daemon
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://www.frrouting.org
|
|
|
|
Source0: https://github.com/FRRouting/frr/releases/download/%{name}-%{frrversion}/%{name}-%{frrversion}.tar.gz
|
2020-06-18 09:05:15 +00:00
|
|
|
Source1: %{name}-tmpfiles.conf
|
2019-07-21 13:10:06 +00:00
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: net-snmp-devel
|
2020-05-19 11:23:43 +00:00
|
|
|
BuildRequires: texinfo libcap-devel autoconf automake libtool patch groff
|
2019-07-21 13:10:06 +00:00
|
|
|
BuildRequires: readline readline-devel ncurses ncurses-devel
|
|
|
|
BuildRequires: git pam-devel c-ares-devel
|
|
|
|
BuildRequires: json-c-devel bison >= 2.7 flex perl-XML-LibXML
|
|
|
|
BuildRequires: python3-devel python3-sphinx python3-pytest
|
|
|
|
BuildRequires: systemd systemd-devel
|
|
|
|
BuildRequires: libyang-devel >= 0.16.74
|
2020-12-18 22:55:29 +00:00
|
|
|
BuildRequires: make
|
2019-07-21 13:10:06 +00:00
|
|
|
Requires: net-snmp ncurses
|
|
|
|
Requires(post): systemd /sbin/install-info
|
|
|
|
Requires(preun): systemd /sbin/install-info
|
|
|
|
Requires(postun): systemd
|
|
|
|
Provides: routingdaemon = %{version}-%{release}
|
|
|
|
Conflicts: quagga
|
|
|
|
|
|
|
|
Patch0000: 0000-remove-babeld-and-ldpd.patch
|
|
|
|
Patch0001: 0001-use-python3.patch
|
2019-09-13 14:38:56 +00:00
|
|
|
Patch0002: 0002-enable-openssl.patch
|
|
|
|
Patch0003: 0003-disable-eigrp-crypto.patch
|
|
|
|
Patch0004: 0004-fips-mode.patch
|
2021-02-16 16:14:30 +00:00
|
|
|
Patch0005: 0005-icc-options.patch
|
2019-07-21 13:10:06 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
FRRouting is free software that manages TCP/IP based routing protocols. It takes
|
|
|
|
a multi-server and multi-threaded approach to resolve the current complexity
|
|
|
|
of the Internet.
|
|
|
|
|
|
|
|
FRRouting supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM, NHRP, PBR, EIGRP and BFD.
|
|
|
|
|
|
|
|
FRRouting is a fork of Quagga.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -S git
|
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -ivf
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
--sbindir=%{frr_libdir} \
|
|
|
|
--sysconfdir=%{_sysconfdir}/frr \
|
|
|
|
--libdir=%{_libdir}/frr \
|
|
|
|
--libexecdir=%{_libexecdir}/frr \
|
|
|
|
--localstatedir=%{_localstatedir}/run/frr \
|
|
|
|
--enable-multipath=64 \
|
|
|
|
--enable-vtysh=yes \
|
|
|
|
--disable-ospfclient \
|
|
|
|
--disable-ospfapi \
|
|
|
|
--enable-snmp=agentx \
|
|
|
|
--enable-user=frr \
|
|
|
|
--enable-group=frr \
|
|
|
|
--enable-vty-group=frrvty \
|
|
|
|
--enable-rtadv \
|
|
|
|
--disable-exampledir \
|
|
|
|
--enable-systemd=yes \
|
|
|
|
--enable-static=no \
|
|
|
|
--disable-ldpd \
|
|
|
|
--disable-babeld \
|
|
|
|
--with-moduledir=%{_libdir}/frr/modules \
|
2019-09-13 14:38:56 +00:00
|
|
|
--with-crypto=openssl \
|
2019-07-21 13:10:06 +00:00
|
|
|
--enable-fpm
|
|
|
|
|
|
|
|
%make_build MAKEINFO="makeinfo --no-split" PYTHON=%{__python3}
|
|
|
|
|
|
|
|
pushd doc
|
|
|
|
make info
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/etc/{frr,rc.d/init.d,sysconfig,logrotate.d,pam.d,default} \
|
|
|
|
%{buildroot}/var/log/frr %{buildroot}%{_infodir} \
|
|
|
|
%{buildroot}%{_unitdir}
|
|
|
|
|
|
|
|
mkdir -p -m 0755 %{buildroot}%{_libdir}/frr
|
2020-06-18 09:05:15 +00:00
|
|
|
mkdir -p %{buildroot}%{_tmpfilesdir}
|
2019-07-21 13:10:06 +00:00
|
|
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
# Remove this file, as it is uninstalled and causes errors when building on RH9
|
|
|
|
rm -rf %{buildroot}/usr/share/info/dir
|
|
|
|
|
2020-06-18 09:05:15 +00:00
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
2019-07-21 13:10:06 +00:00
|
|
|
install -p -m 644 %{_builddir}/%{name}-%{frrversion}/tools/etc/frr/daemons %{buildroot}/etc/frr/daemons
|
|
|
|
install -p -m 644 %{_builddir}/%{name}-%{frrversion}/tools/frr.service %{buildroot}%{_unitdir}/frr.service
|
|
|
|
install -p -m 755 %{_builddir}/%{name}-%{frrversion}/tools/frrinit.sh %{buildroot}%{frr_libdir}/frr
|
|
|
|
install -p -m 755 %{_builddir}/%{name}-%{frrversion}/tools/frrcommon.sh %{buildroot}%{frr_libdir}/frrcommon.sh
|
|
|
|
install -p -m 755 %{_builddir}/%{name}-%{frrversion}/tools/watchfrr.sh %{buildroot}%{frr_libdir}/watchfrr.sh
|
|
|
|
|
|
|
|
install -p -m 644 %{_builddir}/%{name}-%{frrversion}/redhat/frr.logrotate %{buildroot}/etc/logrotate.d/frr
|
|
|
|
install -p -m 644 %{_builddir}/%{name}-%{frrversion}/redhat/frr.pam %{buildroot}/etc/pam.d/frr
|
|
|
|
install -d -m 775 %{buildroot}/run/frr
|
|
|
|
|
|
|
|
rm %{buildroot}%{_libdir}/frr/*.la
|
|
|
|
rm %{buildroot}%{_libdir}/frr/modules/*.la
|
|
|
|
|
|
|
|
#Upstream does not maintain a stable API, these headers from -devel subpackage are no longer needed
|
|
|
|
rm %{buildroot}%{_libdir}/frr/*.so
|
|
|
|
rm -r %{buildroot}%{_includedir}/frr/
|
|
|
|
|
|
|
|
%pre
|
|
|
|
getent group frrvty >/dev/null 2>&1 || groupadd -r frrvty >/dev/null 2>&1 || :
|
|
|
|
getent group frr >/dev/null 2>&1 || groupadd -r frr >/dev/null 2>&1 || :
|
|
|
|
getent passwd frr >/dev/null 2>&1 || useradd -M -r -g frr -s /sbin/nologin \
|
|
|
|
-c "FRRouting routing suite" -d %{_localstatedir}/run/frr frr || :
|
|
|
|
usermod -aG frrvty frr
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post frr.service
|
|
|
|
|
|
|
|
if [ -f %{_infodir}/%{name}.inf* ]; then
|
|
|
|
install-info %{_infodir}/frr.info %{_infodir}/dir || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Create dummy files if they don't exist so basic functions can be used.
|
|
|
|
if [ ! -e %{_sysconfdir}/frr/frr.conf ]; then
|
|
|
|
echo "hostname `hostname`" > %{_sysconfdir}/frr/frr.conf
|
|
|
|
chown frr:frr %{_sysconfdir}/frr/frr.conf
|
|
|
|
chmod 640 %{_sysconfdir}/frr/frr.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart frr.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun frr.service
|
|
|
|
|
|
|
|
#only when removing frr
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
if [ -f %{_infodir}/%{name}.inf* ]; then
|
|
|
|
install-info --delete %{_infodir}/frr.info %{_infodir}/dir || :
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check PYTHON=%{__python3}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%license COPYING
|
|
|
|
%doc zebra/zebra.conf.sample
|
|
|
|
%doc isisd/isisd.conf.sample
|
|
|
|
%doc ripd/ripd.conf.sample
|
|
|
|
%doc bgpd/bgpd.conf.sample*
|
|
|
|
%doc ospfd/ospfd.conf.sample
|
|
|
|
%doc ospf6d/ospf6d.conf.sample
|
|
|
|
%doc ripngd/ripngd.conf.sample
|
|
|
|
%doc pimd/pimd.conf.sample
|
|
|
|
%doc doc/mpls
|
2020-06-18 09:05:15 +00:00
|
|
|
%dir %attr(640,frr,frr) %{_sysconfdir}/frr
|
2019-07-21 13:10:06 +00:00
|
|
|
%dir %attr(755,frr,frr) /var/log/frr
|
|
|
|
%dir %attr(755,frr,frr) /run/frr
|
|
|
|
%{_infodir}/*info*
|
|
|
|
%{_mandir}/man*/*
|
2020-06-18 09:05:15 +00:00
|
|
|
%dir %{frr_libdir}/
|
2019-07-21 13:10:06 +00:00
|
|
|
%{frr_libdir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%dir %{_libdir}/frr
|
|
|
|
%{_libdir}/frr/*.so.*
|
2020-06-18 09:05:15 +00:00
|
|
|
%dir %{_libdir}/frr/modules
|
2019-07-21 13:10:06 +00:00
|
|
|
%{_libdir}/frr/modules/*
|
|
|
|
%config(noreplace) %attr(644,root,root) /etc/logrotate.d/frr
|
2020-06-18 09:05:15 +00:00
|
|
|
%config(noreplace) %attr(644,frr,frr) /etc/frr/daemons
|
2019-07-21 13:10:06 +00:00
|
|
|
%config(noreplace) /etc/pam.d/frr
|
|
|
|
%{_unitdir}/*.service
|
2020-06-18 09:05:15 +00:00
|
|
|
%dir /usr/share/yang
|
2019-07-21 13:10:06 +00:00
|
|
|
/usr/share/yang/*.yang
|
2020-06-18 09:05:15 +00:00
|
|
|
%{_tmpfilesdir}/%{name}.conf
|
2019-07-21 13:10:06 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-03-02 15:13:45 +00:00
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 7.5-4
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
2021-02-16 16:14:30 +00:00
|
|
|
* Tue Feb 16 2021 Michal Ruprich <mruprich@redhat.com> - 7.5-3
|
|
|
|
- Fixing FTBS - icc options are confusing the new gcc
|
|
|
|
|
2021-01-26 05:58:59 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-01 13:47:47 +00:00
|
|
|
* Fri Jan 01 2021 Michal Ruprich <mruprich@redhat.com> - 7.5-1
|
|
|
|
- New version 7.5
|
|
|
|
|
2020-09-21 12:26:29 +00:00
|
|
|
* Mon Sep 21 2020 Michal Ruprich <mruprich@redhat.com> - 7.4-1
|
|
|
|
- New version 7.4
|
|
|
|
|
2020-08-27 12:13:47 +00:00
|
|
|
* Thu Aug 27 2020 Josef Řídký <jridky@redhat.com> - 7.3.1-4
|
|
|
|
- Rebuilt for new net-snmp release
|
|
|
|
|
2020-07-27 17:53:36 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.3.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-18 09:05:15 +00:00
|
|
|
* Thu Jun 18 2020 Michal Ruprich <michalruprich@gmail.com> - 7.3.1-1
|
|
|
|
- New version 7.3.1
|
|
|
|
- Fixes a couple of bugs(#1832259, #1835039, #1830815, #1830808, #1830806, #1830800, #1830798, #1814773)
|
|
|
|
|
2020-05-19 11:23:43 +00:00
|
|
|
* Tue May 19 2020 Michal Ruprich <michalruprich@gmail.com> - 7.3-6
|
|
|
|
- Removing texi2html, it is not available in Rawhide anymore
|
|
|
|
|
2020-05-18 13:31:20 +00:00
|
|
|
* Mon May 18 2020 Michal Ruprich <michalruprich@gmail.com> - 7.3-5
|
|
|
|
- Rebuild for new version of libyang
|
|
|
|
|
2020-04-21 22:05:53 +00:00
|
|
|
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 7.3-4
|
|
|
|
- Rebuild (json-c)
|
|
|
|
|
2020-04-13 14:45:27 +00:00
|
|
|
* Mon Apr 13 2020 Björn Esser <besser82@fedoraproject.org> - 7.3-3
|
|
|
|
- Update json-c-0.14 patch with a solution from upstream
|
|
|
|
|
2020-04-13 11:33:44 +00:00
|
|
|
* Mon Apr 13 2020 Björn Esser <besser82@fedoraproject.org> - 7.3-2
|
|
|
|
- Add support for upcoming json-c 0.14.0
|
|
|
|
|
2020-02-19 09:42:42 +00:00
|
|
|
* Wed Feb 19 2020 Michal Ruprich <mruprich@redhat.com> - 7.3-1
|
|
|
|
- New version 7.3
|
|
|
|
|
2020-01-28 19:04:38 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-08 11:24:01 +00:00
|
|
|
* Mon Dec 16 2019 Michal Ruprich <mruprich@redhat.com> - 7.2-1
|
|
|
|
- New version 7.2
|
|
|
|
|
2019-11-12 11:02:23 +00:00
|
|
|
* Tue Nov 12 2019 Michal Ruprich <mruprich@redhat.com> - 7.1-5
|
|
|
|
- Rebuilding for new version of libyang
|
|
|
|
|
2019-10-07 06:43:15 +00:00
|
|
|
* Mon Oct 07 2019 Michal Ruprich <mruprich@redhat.com> - 7.1-4
|
|
|
|
- Adding noreplace to the /etc/frr/daemons file
|
|
|
|
|
2019-09-13 14:38:56 +00:00
|
|
|
* Fri Sep 13 2019 Michal Ruprich <mruprich@redhat.com> - 7.1-3
|
|
|
|
- New way of finding python version during build
|
|
|
|
- Replacing crypto of all routing daemons with openssl
|
|
|
|
- Disabling EIGRP crypto because it is broken
|
|
|
|
- Disabling crypto in FIPS mode
|
|
|
|
|
2019-07-25 01:06:24 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-21 13:10:06 +00:00
|
|
|
* Tue Jun 25 2019 Michal Ruprich <mruprich@redhat.com> - 7.1-1
|
|
|
|
- New version 7.1
|
|
|
|
|
|
|
|
* Wed Jun 19 2019 Michal Ruprich <mruprich@redhat.com> - 7.0-2
|
|
|
|
- Initial build
|
|
|
|
|