name = hyperscan
version = 5.1.0
-release = 1
+release = 2
+
+# This won't build on any architectures but those
+sup_arches = x86_64 i686
groups = System/Libraries
url = https://github.com/intel/hyperscan
name = suricata
version = 4.0.6
-release = 2
+release = 3
groups = Networking/IDS
url = http://www.openinfosecfoundation.org/
build
requires
file-devel
- hyperscan-devel
libcap-ng-devel
libnfnetlink-devel
libnetfilter_queue-devel
--enable-nfqueue \
--disable-gccmarch-native \
--disable-static \
- --enable-hyperscan \
--enable-non-bundled-htp \
--with-libhtp-includes=%{includedir}/htp \
--with-libhtp-libraries=%{libdir}
+ # Enable hyperscan only on x86
+ if "%{DISTRO_PLATFORM}" == "x86"
+ requires += hyperscan-devel
+ configure_options += --enable-hyperscan
+ end
+
install_cmds
mkdir -pv %{BUILDROOT}%{sysconfdir}
mkdir -pv %{BUILDROOT}%{sysconfdir}/suricata