%{!?with_watchfrr: %global with_watchfrr 1 }
%{!?with_pathd: %global with_pathd 1 }
%{!?with_grpc: %global with_grpc 0 }
+%{!?with_rpki: %global with_rpki 1 }
+%{!?with_docs: %global with_docs 1 }
# user and group
%{!?frr_user: %global frr_user frr }
%if 0%{?rhel} && 0%{?rhel} < 7
#python27-devel is available from ius community repo for RedHat/CentOS 6
BuildRequires: python27-devel
+%if %{with_docs}
BuildRequires: python27-sphinx
+%endif
%else
%if %{use_python2}
BuildRequires: python-devel >= 2.7
+%if %{with_docs}
BuildRequires: python-sphinx
+%endif
%else
BuildRequires: python3-devel
+%if %{with_docs}
BuildRequires: python3-sphinx
%endif
%endif
+%endif
%if %{with_grpc}
BuildRequires: grpc-devel >= 1.16.1
BuildRequires: protobuf-devel >= 3.6.1
developing OSPF-API and frr applications.
+%if %{with_rpki}
%package rpki-rtrlib
Summary: BGP RPKI support (rtrlib)
Group: System Environment/Daemons
used to prevent hijacking of networks on the wider internet. It is only
relevant to internet service providers using their own autonomous system
number.
-
+%endif
%package snmp
Summary: SNMP support
--disable-babeld \
%endif
%if %{with_vrrpd}
- --enable-vrrpd \
+ --enable-vrrpd \
%else
- --disable-vrrpd \
+ --disable-vrrpd \
%endif
%if %{with_pam}
--with-libpam \
--disable-bgp-vnc \
%endif
--enable-isisd \
+%if %{with_docs}
+ --enable-doc \
+%else
+ --disable-doc \
+%endif
+%if %{with_rpki}
--enable-rpki \
+%else
+ --disable-rpki \
+%endif
%if %{with_bfdd}
--enable-bfdd \
%else
sed -e '1c #!/usr/bin/python3' -i %{zeb_src}/tools/generate_support_bundle.py
%endif
+%if %{with_docs}
pushd doc
make info
popd
+%endif
%install
%__sed -i 's|watchfrr_enable=no|watchfrr_enable=yes|g' %{configdir}/daemons 2> /dev/null || true
%endif
+%if %{with_docs}
/sbin/install-info %{_infodir}/frr.info.gz %{_infodir}/dir
+%endif
# Create dummy config file if they don't exist so basic functions can be used.
if [ ! -e %{configdir}/frr.conf ] && [ ! -e %{configdir}/zebra.conf ]; then
/sbin/chkconfig --del frr
fi
%endif
+%if %{with_docs}
/sbin/install-info --delete %{_infodir}/frr.info.gz %{_infodir}/dir
+%endif
%files
%dir %attr(755,root,root) %{_localstatedir}/log/frr
%dir %attr(750,root,root) %{_runstatedir}/frr
%endif
-%{_infodir}/frr.info.gz
-%{_mandir}/man*/*
+%if %{with_docs}
+ %{_infodir}/frr.info.gz
+ %{_mandir}/man*/*
+%endif
%{_sbindir}/zebra
%{_sbindir}/staticd
%{_sbindir}/ospfd
%endif
+%if %{with_rpki}
%post rpki-rtrlib
# add rpki module to daemons
sed -i -e 's/^\(bgpd_options=\)\(.*\)\(".*\)/\1\2 -M rpki\3/' %{_sysconfdir}/frr/daemons
+%endif
+%if %{with_rpki}
%postun rpki-rtrlib
# remove rpki module from daemons
sed -i 's/ -M rpki//' %{_sysconfdir}/frr/daemons
+%endif
+%if %{with_rpki}
%files rpki-rtrlib
%{_libdir}/frr/modules/bgpd_rpki.so
+%endif
%files snmp
%{_libdir}/frr/modules/grpc.so
%endif
+
%files devel
%{_libdir}/lib*.so
%dir %{_includedir}/%{name}
%changelog
-* Mon Mar 10 2025 Jafar Al-Gharaibeh <jafar@atcorp.com> - %{version}
+* Thu Mar 20 2025 Jafar Al-Gharaibeh <jafar@atcorp.com> - %{version}
+
+* Tue Mar 18 2025 Martin Winter <mwinter@opensourcerouting.org> 10.3.0-1
+- Change docs and rpki to conditional package builds
* Mon Mar 10 2025 Jafar Al-Gharaibeh <jafar@atcorp.com> - 10.3
- Major highlights: