From 2a330836ae72443844ac91f45ffe6ac142d58ae6b1bf4eb83962f73ef5113ab5 Mon Sep 17 00:00:00 2001 From: Erico Mendonca Date: Wed, 8 Apr 2020 22:39:51 +0000 Subject: [PATCH] Accepting request 792552 from home:darix:routing - enable verbose make rules - enable grpc support. new subpackage libfrrgrpc_pb0, new BR: pkgconfig(grpc) - enable config rollbacks. new BR: pkgconfig(sqlite3) - enable realms support - enable shell access - make sure we use system openssl - fix shebang line of the frr-reload.py and generate_support_bundle.py script so we dont pull python2 - do not delete users and groups. - add Requires for libyang-extentions OBS-URL: https://build.opensuse.org/request/show/792552 OBS-URL: https://build.opensuse.org/package/show/network/frr?expand=0&rev=12 --- frr.changes | 15 +++++++++++++++ frr.spec | 31 ++++++++++++++++++++++++------- 2 files changed, 39 insertions(+), 7 deletions(-) diff --git a/frr.changes b/frr.changes index dfbdbd3..fb57c11 100644 --- a/frr.changes +++ b/frr.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Apr 7 21:38:12 UTC 2020 - Marcus Rueckert + +- enable verbose make rules +- enable grpc support. new subpackage libfrrgrpc_pb0, new BR: + pkgconfig(grpc) +- enable config rollbacks. new BR: pkgconfig(sqlite3) +- enable realms support +- enable shell access +- make sure we use system openssl +- fix shebang line of the frr-reload.py and + generate_support_bundle.py script so we dont pull python2 +- do not delete users and groups. +- add Requires for libyang-extentions + ------------------------------------------------------------------- Sat Feb 15 21:27:22 UTC 2020 - Martin Hauke diff --git a/frr.spec b/frr.spec index a44e202..fb5452d 100644 --- a/frr.spec +++ b/frr.spec @@ -57,6 +57,7 @@ BuildRequires: protobuf-c BuildRequires: python-rpm-macros BuildRequires: readline-devel BuildRequires: systemd-rpm-macros +BuildRequires: pkgconfig(grpc) BuildRequires: pkgconfig(json-c) BuildRequires: pkgconfig(libcap) BuildRequires: pkgconfig(libcares) @@ -66,6 +67,7 @@ BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libyang) >= 1.0.101 BuildRequires: pkgconfig(libzmq) >= 4.0.0 BuildRequires: pkgconfig(rtrlib) >= 0.5.0 +BuildRequires: pkgconfig(sqlite3) Requires(post): %{install_info_prereq} Requires(pre): %{install_info_prereq} Requires(pre): shadow @@ -74,6 +76,7 @@ Recommends: logrotate Conflicts: quagga Provides: zebra = %{version} Obsoletes: zebra < %{version} +Requires: libyang-extentions %description FRR is free software which manages TCP/IP based routing protocols. @@ -97,6 +100,13 @@ Group: System/Libraries %description -n libfrr_pb0 This library contains protobuf memory management for FRRouting.. +%package -n libfrrgrpc_pb0 +Summary: FRRouting grpc protobuf library +Group: System/Libraries + +%description -n libfrrgrpc_pb0 +This library contains grpc protobuf definitions for FRRouting. + %package -n libfrrospfapiclient0 Summary: API for FRRouting's OSPFv2 implementation Group: System/Libraries @@ -148,6 +158,7 @@ Requires: libfrr0 = %{version} Requires: libfrr_pb0 = %{version} Requires: libfrrcares0 = %{version} Requires: libfrrfpm_pb0 = %{version} +Requires: libfrrgrpc_pb0 = %{version} Requires: libfrrospfapiclient0 = %{version} Requires: libfrrsnmp0 = %{version} Requires: libfrrzmq0 = %{version} @@ -166,6 +177,7 @@ export CFLAGS="-ffat-lto-objects" autoreconf -fiv %configure \ + --disable-silent-rules \ --enable-exampledir=%{_docdir}/%{name}/examples \ --sysconfdir=%{_sysconfdir}/%{name} \ --localstatedir=%{frr_statedir} \ @@ -216,12 +228,18 @@ autoreconf -fiv --enable-vtysh \ --enable-watchfrr \ --enable-zebra \ + --enable-realms \ + --enable-shell-access \ + --with-crypto=openssl \ + --enable-config-rollbacks \ + --enable-grpc \ --enable-systemd make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" %install make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install +perl -p -i -e 's|#!/usr/bin/python|#!/usr/bin/python3|g' %{buildroot}/usr/lib/frr/{frr-reload.py,generate_support_bundle.py} find %{buildroot} -type f -name "*.la" -delete -print @@ -286,15 +304,10 @@ getent passwd %{frr_user} >/dev/null || useradd -r -g %{frr_group} -G %{frrvty_g %service_del_postun %{name}.service %install_info_delete --info-dir=%{_infodir} %{_infodir}/frr.info%{ext_info} -# delete the user and groups created if it's an uninstall -if [ "$1" = "0" ]; then - userdel -r frr - groupdel frr - groupdel frrvty -fi - %post -n libfrr_pb0 -p /sbin/ldconfig %postun -n libfrr_pb0 -p /sbin/ldconfig +%post -n libfrrgrpc_pb0 -p /sbin/ldconfig +%postun -n libfrrgrpc_pb0 -p /sbin/ldconfig %post -n libfrrfpm_pb0 -p /sbin/ldconfig %postun -n libfrrfpm_pb0 -p /sbin/ldconfig @@ -371,6 +384,7 @@ fi %{_libdir}/frr/modules/zebra_fpm.so %{_libdir}/frr/modules/zebra_irdp.so %{_libdir}/frr/modules/bgpd_rpki.so +%{_libdir}/frr/modules/grpc.so %{_prefix}/lib/frr/vrrpd %{_prefix}/lib/frr/generate_support_bundle.py %{_libdir}/frr/modules/bgpd_bmp.so @@ -381,6 +395,9 @@ fi %files -n libfrrfpm_pb0 %{_libdir}/libfrrfpm_pb.so.0* +%files -n libfrrgrpc_pb0 +%{_libdir}/libfrrgrpc_pb.so.0* + %files -n libfrrospfapiclient0 %{_libdir}/libfrrospfapiclient.so.0*