2019-11-27 10:24:16 +00:00
|
|
|
#
|
|
|
|
# spec file for package liburing
|
|
|
|
#
|
2022-02-17 22:50:56 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-11-27 10:24:16 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-03-15 07:35:31 +00:00
|
|
|
%define lname liburing2
|
2019-11-27 10:24:16 +00:00
|
|
|
Name: liburing
|
Accepting request 985597 from home:dirkmueller:Factory
- update to 2.2:
* Support non-libc builds.
* Optimized syscall handling for x86-64/x86/aarch64.
* Enable non-lib function calls for fast path functions.
* Add support for multishot accept.
* io_uring_register_files() will set RLIMIT_NOFILE if necessary.
* Add support for registered ring fds, io_uring_register_ring_fd(),
reducingthe overhead of an io_uring_enter() system call.
* Add support for the message ring opcode.
* Add support for newer request cancelation features.
* Add support for IORING_SETUP_COOP_TASKRUN, which can help reduce the
overhead of io_uring in general. Most applications should set this flag,
see the io_uring_setup.2 man page for details.
* Add support for registering a sparse buffer and file set.
* Add support for a new buffer provide scheme, see
io_uring_register_buf_ring.3 for details.
* Add io_uring_submit_and_wait_timeout() for submitting IO and waiting
for completions with a timeout.
* Add io_uring_prep_{read,write}v2 prep helpers.
* Add io_uring_prep_close_direct() helper.
* Add support for SQE128 and CQE32, which are doubly sized SQE and CQE
rings. This is needed for some cases of the new IORING_OP_URING_CMD,
notably for NVMe passthrough.
* ~5500 lines of man page additions, including adding ~90 new man pages.
* Synced with the 5.19 kernel release, supporting all the features of
5.19 and earlier.
* 24 new regression test cases, and ~7000 lines of new tests in general.
* General optimizations and fixes.
- avoid requiring kernel-default (bsc#1193522)
OBS-URL: https://build.opensuse.org/request/show/985597
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=16
2022-06-28 13:58:05 +00:00
|
|
|
Version: 2.2
|
2019-11-27 10:24:16 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Linux-native io_uring I/O access library
|
2020-11-10 16:36:31 +00:00
|
|
|
License: (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
|
2019-12-12 09:42:57 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-11-27 10:24:16 +00:00
|
|
|
URL: https://git.kernel.dk/cgit/liburing
|
2021-10-15 12:23:42 +00:00
|
|
|
Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.bz2
|
2022-07-06 11:22:40 +00:00
|
|
|
BuildRequires: gcc-c++
|
2021-03-15 07:35:31 +00:00
|
|
|
BuildRequires: pkgconfig
|
2022-07-06 11:22:40 +00:00
|
|
|
BuildRequires: procps
|
2022-04-29 07:47:16 +00:00
|
|
|
# Kernel part has landed in 5.1
|
|
|
|
Conflicts: kernel < 5.1
|
2019-11-27 10:24:16 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Provides native async IO for the Linux kernel, in a fast and efficient
|
|
|
|
manner, for both buffered and O_DIRECT.
|
|
|
|
|
|
|
|
%package -n %{lname}
|
|
|
|
Summary: Linux-native io_uring I/O access library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
Provides native async IO for the Linux kernel, in a fast and efficient
|
|
|
|
manner, for both buffered and O_DIRECT.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for Linux-native io_uring I/O access library
|
2019-12-12 09:42:57 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-02-17 22:50:56 +00:00
|
|
|
# SLE/Leap 15.4+ retain liburing-devel for the inherited 0.6 API. The v2 API is:
|
|
|
|
Provides: %{lname}-devel = %{version}
|
2021-03-15 07:35:31 +00:00
|
|
|
Requires: %{lname} = %{version}
|
2019-11-27 10:24:16 +00:00
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides header files to include and libraries to link with
|
|
|
|
for the Linux-native io_uring.
|
|
|
|
|
|
|
|
%prep
|
2021-03-15 07:35:31 +00:00
|
|
|
%setup -q
|
2019-11-27 10:24:16 +00:00
|
|
|
|
|
|
|
%build
|
2021-03-15 07:35:31 +00:00
|
|
|
# not autotools, so configure macro doesn't work
|
|
|
|
sh ./configure --prefix=%{_prefix} \
|
2020-11-10 16:36:31 +00:00
|
|
|
--includedir=%{_includedir} \
|
|
|
|
--libdir=/%{_libdir} \
|
|
|
|
--libdevdir=/%{_libdir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--datadir=%{_datadir}
|
2021-03-15 07:35:31 +00:00
|
|
|
%make_build -C src
|
2019-11-27 10:24:16 +00:00
|
|
|
|
2022-07-06 11:22:40 +00:00
|
|
|
%check
|
|
|
|
# tests are broken on ppc64 due to bsc#1200564
|
|
|
|
%ifnarch ppc64le
|
|
|
|
/usr/bin/make runtests
|
|
|
|
%endif
|
|
|
|
|
2019-11-27 10:24:16 +00:00
|
|
|
%install
|
|
|
|
%make_install
|
2021-03-15 07:35:31 +00:00
|
|
|
rm -v %{buildroot}%{_libdir}/%{name}.a
|
2019-11-27 10:24:16 +00:00
|
|
|
|
2020-11-10 16:36:31 +00:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
2019-11-27 10:24:16 +00:00
|
|
|
%files -n %{lname}
|
|
|
|
%{_libdir}/liburing.so.*
|
2020-11-10 16:36:31 +00:00
|
|
|
%license COPYING COPYING.GPL LICENSE
|
2019-11-27 10:24:16 +00:00
|
|
|
|
|
|
|
%files devel
|
2021-03-15 07:35:31 +00:00
|
|
|
%doc README
|
2019-11-27 10:24:16 +00:00
|
|
|
%{_includedir}/liburing/
|
|
|
|
%{_includedir}/liburing.h
|
|
|
|
%{_libdir}/liburing.so
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
%{_mandir}/man2/*
|
2021-03-15 07:35:31 +00:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man7/*
|
2019-11-27 10:24:16 +00:00
|
|
|
|
|
|
|
%changelog
|