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
This commit is contained in:
Erico Mendonca 2020-04-08 22:39:51 +00:00 committed by Git OBS Bridge
parent 2c315c1300
commit 2a330836ae
2 changed files with 39 additions and 7 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Apr 7 21:38:12 UTC 2020 - Marcus Rueckert <mrueckert@suse.de>
- 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 <mardnh@gmx.de> Sat Feb 15 21:27:22 UTC 2020 - Martin Hauke <mardnh@gmx.de>

View File

@ -57,6 +57,7 @@ BuildRequires: protobuf-c
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
BuildRequires: pkgconfig(grpc)
BuildRequires: pkgconfig(json-c) BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libcap) BuildRequires: pkgconfig(libcap)
BuildRequires: pkgconfig(libcares) BuildRequires: pkgconfig(libcares)
@ -66,6 +67,7 @@ BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libyang) >= 1.0.101 BuildRequires: pkgconfig(libyang) >= 1.0.101
BuildRequires: pkgconfig(libzmq) >= 4.0.0 BuildRequires: pkgconfig(libzmq) >= 4.0.0
BuildRequires: pkgconfig(rtrlib) >= 0.5.0 BuildRequires: pkgconfig(rtrlib) >= 0.5.0
BuildRequires: pkgconfig(sqlite3)
Requires(post): %{install_info_prereq} Requires(post): %{install_info_prereq}
Requires(pre): %{install_info_prereq} Requires(pre): %{install_info_prereq}
Requires(pre): shadow Requires(pre): shadow
@ -74,6 +76,7 @@ Recommends: logrotate
Conflicts: quagga Conflicts: quagga
Provides: zebra = %{version} Provides: zebra = %{version}
Obsoletes: zebra < %{version} Obsoletes: zebra < %{version}
Requires: libyang-extentions
%description %description
FRR is free software which manages TCP/IP based routing protocols. FRR is free software which manages TCP/IP based routing protocols.
@ -97,6 +100,13 @@ Group: System/Libraries
%description -n libfrr_pb0 %description -n libfrr_pb0
This library contains protobuf memory management for FRRouting.. 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 %package -n libfrrospfapiclient0
Summary: API for FRRouting's OSPFv2 implementation Summary: API for FRRouting's OSPFv2 implementation
Group: System/Libraries Group: System/Libraries
@ -148,6 +158,7 @@ Requires: libfrr0 = %{version}
Requires: libfrr_pb0 = %{version} Requires: libfrr_pb0 = %{version}
Requires: libfrrcares0 = %{version} Requires: libfrrcares0 = %{version}
Requires: libfrrfpm_pb0 = %{version} Requires: libfrrfpm_pb0 = %{version}
Requires: libfrrgrpc_pb0 = %{version}
Requires: libfrrospfapiclient0 = %{version} Requires: libfrrospfapiclient0 = %{version}
Requires: libfrrsnmp0 = %{version} Requires: libfrrsnmp0 = %{version}
Requires: libfrrzmq0 = %{version} Requires: libfrrzmq0 = %{version}
@ -166,6 +177,7 @@ export CFLAGS="-ffat-lto-objects"
autoreconf -fiv autoreconf -fiv
%configure \ %configure \
--disable-silent-rules \
--enable-exampledir=%{_docdir}/%{name}/examples \ --enable-exampledir=%{_docdir}/%{name}/examples \
--sysconfdir=%{_sysconfdir}/%{name} \ --sysconfdir=%{_sysconfdir}/%{name} \
--localstatedir=%{frr_statedir} \ --localstatedir=%{frr_statedir} \
@ -216,12 +228,18 @@ autoreconf -fiv
--enable-vtysh \ --enable-vtysh \
--enable-watchfrr \ --enable-watchfrr \
--enable-zebra \ --enable-zebra \
--enable-realms \
--enable-shell-access \
--with-crypto=openssl \
--enable-config-rollbacks \
--enable-grpc \
--enable-systemd --enable-systemd
make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
%install %install
make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" 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 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 %service_del_postun %{name}.service
%install_info_delete --info-dir=%{_infodir} %{_infodir}/frr.info%{ext_info} %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 %post -n libfrr_pb0 -p /sbin/ldconfig
%postun -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 %post -n libfrrfpm_pb0 -p /sbin/ldconfig
%postun -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_fpm.so
%{_libdir}/frr/modules/zebra_irdp.so %{_libdir}/frr/modules/zebra_irdp.so
%{_libdir}/frr/modules/bgpd_rpki.so %{_libdir}/frr/modules/bgpd_rpki.so
%{_libdir}/frr/modules/grpc.so
%{_prefix}/lib/frr/vrrpd %{_prefix}/lib/frr/vrrpd
%{_prefix}/lib/frr/generate_support_bundle.py %{_prefix}/lib/frr/generate_support_bundle.py
%{_libdir}/frr/modules/bgpd_bmp.so %{_libdir}/frr/modules/bgpd_bmp.so
@ -381,6 +395,9 @@ fi
%files -n libfrrfpm_pb0 %files -n libfrrfpm_pb0
%{_libdir}/libfrrfpm_pb.so.0* %{_libdir}/libfrrfpm_pb.so.0*
%files -n libfrrgrpc_pb0
%{_libdir}/libfrrgrpc_pb.so.0*
%files -n libfrrospfapiclient0 %files -n libfrrospfapiclient0
%{_libdir}/libfrrospfapiclient.so.0* %{_libdir}/libfrrospfapiclient.so.0*