From 7d5708212a3b9e0ce78c8c9e8ae2f00c275f1eaf Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 19 Oct 2023 20:21:28 +0200 Subject: [PATCH] support libquiche on amazon2023; stop generating dep for it on el8+amzn2023 --- builder-support/specs/dnsdist.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/builder-support/specs/dnsdist.spec b/builder-support/specs/dnsdist.spec index f03301fcc7..1893a10fcc 100644 --- a/builder-support/specs/dnsdist.spec +++ b/builder-support/specs/dnsdist.spec @@ -101,7 +101,7 @@ export RANLIB=gcc-ranlib --with-libsodium \ --with-net-snmp \ %endif -%if 0%{?rhel} >= 8 +%if 0%{?rhel} >= 8 || 0%{?amzn} == 2023 --enable-dns-over-quic \ --with-quiche \ %endif @@ -116,7 +116,7 @@ make %{?_smp_mflags} check || (cat test-suite.log && false) %install %make_install install -d %{buildroot}/%{_sysconfdir}/dnsdist -%if 0%{?rhel} >= 8 +%if 0%{?rhel} >= 8 || 0%{?amzn} == 2023 install -Dm644 /usr/lib/libdnsdist-quiche.so %{buildroot}/%{_libdir}/libdnsdist-quiche.so %endif %{__mv} %{buildroot}%{_sysconfdir}/dnsdist/dnsdist.conf-dist %{buildroot}%{_sysconfdir}/dnsdist/dnsdist.conf @@ -158,7 +158,8 @@ systemctl daemon-reload ||: %{!?_licensedir:%global license %%doc} %doc README.md %{_bindir}/* -%if 0%{?rhel} >= 8 +%if 0%{?rhel} >= 8 || 0%{?amzn} == 2023 +%define __requires_exclude libdnsdist-quiche\\.so %{_libdir}/libdnsdist-quiche.so %endif %{_mandir}/man1/* -- 2.47.2