BuildRequires: libatomic
%endif
-BuildRequires: openssl-devel
-BuildRequires: net-snmp-devel
+%if 0%{?rhel} >= 7
BuildRequires: protobuf-compiler
BuildRequires: protobuf-devel
+%endif
+
+BuildRequires: openssl-devel
+BuildRequires: net-snmp-devel
BuildRequires: libsodium-devel
Requires(pre): shadow-utils
%configure \
--sysconfdir=%{_sysconfdir}/%{name} \
--enable-libsodium \
- --with-protobuf \
--with-netsnmp \
--disable-silent-rules \
--disable-static \
--enable-unit-tests \
%if 0%{?rhel} == 6
+ --without-protobuf \
--with-boost=/usr/include/boost148 LIBRARY_PATH=/usr/lib64/boost148
make %{?_smp_mflags} LIBRARY_PATH=/usr/lib64/boost148
%else
+ --with-protobuf \
--with-lua=%{lua_implementation} \
--enable-systemd --with-systemd=%{_unitdir}