Sisyphus repository
Last update: 16 october 2021 | SRPMs: 17363 | Visits: 22092429
en ru br
ALT Linux repos

Group :: System/Libraries
RPM: liburing

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# SPDX-License-Identifier: GPL-2.0-only
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

Name: liburing
Version: 2.0
Release: alt1

Summary: Linux-native io_uring I/O access library
License: (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
Group: System/Libraries

Source: %name-%version.tar
BuildRequires: gcc-c++
%{?!_without_check:%{?!_disable_check:BuildRequires: /proc}}

Provides native async IO for the Linux 5.1+ kernel, in a fast
and efficient manner, for both buffered and O_DIRECT.

liburing provides helpers to setup and teardown io_uring instances,
and also a simplified interface for applications that don't need
(or want) to deal with the full kernel side implementation.

%package devel
Summary: Development files for Linux-native io_uring I/O access library
Group: Development/C

%description devel
This package provides header files to include and libraries to link with
for the Linux-native io_uring.

%package devel-static
Summary: Static library for developing apps using Linux-native io_uring
Group: Development/C
Requires: %name-devel

%description devel-static
This package contains the static library needed to develop statically
linked programs that use Linux-native io_uring.


%add_optflags %(getconf LFS_CFLAGS)
./configure \
--prefix=%_prefix \
--includedir=%_includedir \
--libdir=%_libdir \
--libdevdir=%_libdir \
--mandir=%_mandir \
%make_build --no-print-directory CFLAGS="%optflags" V=1

%makeinstall_std V=1

%ifnarch ppc64le %e2k
# Almost all tests fail on ppc64le, so there is not point to even try.
# These tests always fail on the most arches/older kernels.
TEST_EXCLUDE="35fa71a030ca-test eeed8b54e0df-test connect io_uring_register sq-poll-dup
sq-poll-share double-poll-crash timeout-new sendmsg_fs_cve link-timeout
500f9fbadef8-test cq-overflow defer file-update io-cancel io_uring_enter iopoll
lfs-openat lfs-openat-write link_drain open-close openat2 pipe-eof poll-cancel
poll-cancel-ton poll-link read-write self sigfd-deadlock sq-space_left thread-exit
statx accept-link socket-rw across-fork" \
make runtests


%files devel

%files devel-static


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin