]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
support libquiche on amazon2023; stop generating dep for it on el8+amzn2023 13382/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Oct 2023 18:21:28 +0000 (20:21 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 19 Oct 2023 18:21:28 +0000 (20:21 +0200)
builder-support/specs/dnsdist.spec

index f03301fcc7b72debd3b5211437691cb536810dfa..1893a10fcc4080dc09bb28ece28dbe6a102d6cb2 100644 (file)
@@ -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/*