summaryrefslogtreecommitdiffstats
path: root/redhat
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-12-24 08:04:57 +0100
committerChristian Hopps <chopps@labn.net>2022-06-02 22:37:16 +0200
commit9191ac86fdb70e057ba46827a99c975507365bad (patch)
tree0be78dd76f744791e3dec0274ac2183b10991309 /redhat
parentospfd: api: always ready to receive opaque from client (diff)
downloadfrr-9191ac86fdb70e057ba46827a99c975507365bad.tar.xz
frr-9191ac86fdb70e057ba46827a99c975507365bad.zip
ospfclient: add ospfclient api python class
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'redhat')
-rw-r--r--redhat/frr.spec.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in
index c479a7d4c..91829122e 100644
--- a/redhat/frr.spec.in
+++ b/redhat/frr.spec.in
@@ -466,6 +466,9 @@ install -d -m750 %{buildroot}%{rundir}
# avoid `ERROR: ambiguous python shebang in` errors
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}/usr/lib/frr/*.py
%py_byte_compile %{__python3} %{buildroot}/usr/lib/frr/*.py
+%else
+# remove ospfclient.py (if present) as it requires > python36
+rm -f %{buildroot}%{_sbindir}/ospfclient.py
%endif
%pre
@@ -719,11 +722,13 @@ fi
%files contrib
%doc tools
-
%files pythontools
%{_sbindir}/generate_support_bundle.py
%{_sbindir}/frr-reload.py
%{_sbindir}/frr_babeltrace.py
+%if %{with_ospfclient} && (0%{?rhel} > 7 || 0%{?fedora} > 29)
+%{_sbindir}/ospfclient.py
+%endif
%if 0%{?rhel} > 7 || 0%{?fedora} > 29
%{_sbindir}/__pycache__/*
%else
@@ -774,6 +779,10 @@ sed -i 's/ -M rpki//' %{_sysconfdir}/frr/daemons
%changelog
+* Sun May 29 2022 Christian Hopps <chopps@labn.net> - %{version}
+- ospfclient:
+- Add OSPF API python client ospfclient.py
+
* Tue Mar 1 2022 Martin Winter <mwinter@opensourcerouting.org> - %{version}
* Tue Mar 1 2022 Jafar Al-Gharaibeh <jafar@atcorp.com> - 8.2