Provides: powerdns-recursor = %{version}-%{release}
+%if 0%{?rhel} < 8
+BuildRequires: boost169-devel
+%else
BuildRequires: boost-devel
+%endif
BuildRequires: libcap-devel
BuildRequires: systemd
BuildRequires: systemd-devel
%autosetup -p1 -n %{name}-%{getenv:BUILDER_VERSION}
%build
+%if 0%{?rhel} < 8
+export CPPFLAGS=-I/usr/include/boost169
+export LDFLAGS=-L/usr/lib64/boost169
+%endif
+
%configure \
--enable-option-checking=fatal \
--sysconfdir=%{_sysconfdir}/%{name} \