liburing/liburing.spec

92 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package liburing
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
%define lname liburing2
Name: liburing
Version: 2.1
Release: 0
Summary: Linux-native io_uring I/O access library
License: (GPL-2.0-only AND LGPL-2.1-or-later) OR MIT
Group: Development/Libraries/C and C++
URL: https://git.kernel.dk/cgit/liburing
Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.bz2
BuildRequires: gcc
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
BuildRequires: pkgconfig
# Kernel part has landed in 5.1
Conflicts: kernel < 5.1
%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
Group: Development/Libraries/C and C++
# SLE/Leap 15.4+ retain liburing-devel for the inherited 0.6 API. The v2 API is:
Provides: %{lname}-devel = %{version}
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
Requires: %{lname} = %{version}
Requires: pkgconfig
%description devel
This package provides header files to include and libraries to link with
for the Linux-native io_uring.
%prep
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
%setup -q
%build
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
# not autotools, so configure macro doesn't work
sh ./configure --prefix=%{_prefix} \
--includedir=%{_includedir} \
--libdir=/%{_libdir} \
--libdevdir=/%{_libdir} \
--mandir=%{_mandir} \
--datadir=%{_datadir}
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
%make_build -C src
%install
%make_install
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
rm -v %{buildroot}%{_libdir}/%{name}.a
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%{_libdir}/liburing.so.*
%license COPYING COPYING.GPL LICENSE
%files devel
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
%doc README
%{_includedir}/liburing/
%{_includedir}/liburing.h
%{_libdir}/liburing.so
%{_libdir}/pkgconfig/*
%{_mandir}/man2/*
Accepting request 878891 from home:dirkmueller:Factory - skip building the tests that are neither installed nor run as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) - update to 2.0: * Sync io_uring.h API file with Linux 5.12 * helpers: prefix any helper with t_ instead of io_uring_ * helpers: add io_uring_create_buffers() helper * helpers: add io_uring_create_file() helper * helpers: add io_uring_calloc helper * helpers: add io_uring_posix_memalign helper * setup: cleanup probe code * setup: check whether malloc succ before using it * io_uring_prep_sync_file_range: cleanups * .gitignore: add sendmsg_fs_cve * Added prep function for sync_file_range op * Install man7 pages * src/queue: never clear data->wait_nr * src/queue: control kernel enter with a var * src/queue: don't re-wait for CQEs * src/queue: don't loop when don't enter * src/queue: clean _io_uring_get_cqe() err handling * src/queue: don't wait for less than expected * Add inline doc in the comments for io_uring_prep_splice * Fix sigset_t not found in liburing.h * src/queue: update comment on io_uring_wait_cqes() with timeouts * io_uring.h: 5.12 pending kernel sync * man/io_uring_register.2: fix spelling error * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP * Add two ring deadlock case * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page OBS-URL: https://build.opensuse.org/request/show/878891 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 08:35:31 +01:00
%{_mandir}/man3/*
%{_mandir}/man7/*
%changelog