aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2023-08-29 14:52:47 +0200
committerOliver Smith <osmith@sysmocom.de>2023-08-29 15:48:39 +0200
commit8c0a2c72b0867dc72d6a8edb87a77be351f0361d (patch)
treee7153f8b812ab61e913a612eb8f2d24afc70fc35
parentb437f80e89f701fbc09d8dd449f20b33d65bf5e7 (diff)
contrib/libosmocore.spec: centos7: disable uring
liburing is not available in CentOS 7, so disable it there. I've verified that this works as expected in our OBS with CentOS 7, 8 and openSUSE Tumbleweed. Related: OS#5751 Change-Id: Ie2399754952d460499c9355706be37f792988bac
-rw-r--r--contrib/libosmocore.spec.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/contrib/libosmocore.spec.in b/contrib/libosmocore.spec.in
index 3fde143e..ebd1938c 100644
--- a/contrib/libosmocore.spec.in
+++ b/contrib/libosmocore.spec.in
@@ -32,7 +32,9 @@ BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(talloc) >= 2.1.0
BuildRequires: pkgconfig(libmnl)
BuildRequires: pkgconfig(libsystemd)
+%if 0%{?centos_ver} != 7
BuildRequires: pkgconfig(liburing)
+%endif
%description
libosmocore is a package with various utility functions that were
@@ -339,8 +341,18 @@ applications that want to make use of libosmousb.
%build
echo "%version" >.tarball-version
autoreconf -fiv
-%configure --enable-shared --disable-static --enable-systemd-logging \
+
+CONFIGURE_FLAGS="
+ --enable-shared \
+ --disable-static \
+ --enable-systemd-logging \
--includedir="%_includedir/%name"
+"
+%if 0%{?centos_ver} == 7
+ CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-uring"
+%endif
+
+%configure $CONFIGURE_FLAGS
make %{?_smp_mflags} V=1
%install