2007-01-16 00:21:21 +01:00
|
|
|
#
|
2011-03-24 09:43:42 +01:00
|
|
|
# spec file for package libaio
|
2007-01-16 00:21:21 +01:00
|
|
|
#
|
2024-02-29 16:57:37 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-16 00:21:21 +01:00
|
|
|
#
|
2008-12-05 15:37:12 +01: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.
|
|
|
|
|
2019-03-05 17:31:16 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:21:21 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-11-28 14:48:09 +01:00
|
|
|
%define lname libaio1
|
2019-08-01 12:56:38 +02:00
|
|
|
Name: libaio
|
2022-04-29 00:17:28 +02:00
|
|
|
Version: 0.3.113
|
2012-02-13 14:11:05 +01:00
|
|
|
Release: 0
|
2007-08-02 22:54:08 +02:00
|
|
|
Summary: Linux-Native Asynchronous I/O Access Library
|
2018-05-24 17:14:31 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2012-02-13 14:11:05 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-08-01 12:56:38 +02:00
|
|
|
URL: https://pagure.io/libaio
|
2022-04-29 00:17:28 +02:00
|
|
|
Source: https://pagure.io/libaio/archive/libaio-%{version}/libaio-libaio-%{version}.tar.gz
|
2010-02-18 17:06:37 +01:00
|
|
|
Source2: baselibs.conf
|
2022-07-12 17:31:36 +02:00
|
|
|
Patch1: fix-splice-signature.patch
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
|
|
|
|
a richer API and capability set than the simple POSIX async I/O
|
|
|
|
facility. This library provides the Linux-native API for async I/O. The
|
|
|
|
POSIX async I/O facility requires this library to provide
|
2007-08-02 22:54:08 +02:00
|
|
|
kernel-accelerated async I/O capabilities, as do applications that
|
2007-01-16 00:21:21 +01:00
|
|
|
require the Linux-native async I/O API.
|
|
|
|
|
2019-08-01 12:56:38 +02:00
|
|
|
%package -n %{lname}
|
2011-11-28 14:48:09 +01:00
|
|
|
Summary: Linux-Native Asynchronous I/O Access Library
|
2019-04-25 11:03:32 +02:00
|
|
|
Group: System/Libraries
|
2019-08-01 12:56:38 +02:00
|
|
|
Obsoletes: libaio < %{version}-%{release}
|
|
|
|
Provides: libaio = %{version}-%{release}
|
2007-01-16 00:21:21 +01:00
|
|
|
|
2019-08-01 12:56:38 +02:00
|
|
|
%description -n %{lname}
|
2011-11-28 14:48:09 +01:00
|
|
|
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
|
|
|
|
a richer API and capability set than the simple POSIX async I/O
|
|
|
|
facility. This library provides the Linux-native API for async I/O. The
|
|
|
|
POSIX async I/O facility requires this library to provide
|
|
|
|
kernel-accelerated async I/O capabilities, as do applications that
|
|
|
|
require the Linux-native async I/O API.
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%package devel
|
2007-08-02 22:54:08 +02:00
|
|
|
Summary: Development Files for Linux-native Asynchronous I/O Access
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-08-01 12:56:38 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2013-03-01 09:27:36 +01:00
|
|
|
Requires: glibc-devel
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides header files to include, and libraries to link
|
|
|
|
with, for the Linux-native asynchronous I/O facility ("async I/O", or
|
|
|
|
"aio").
|
|
|
|
|
|
|
|
%prep
|
2024-02-29 16:57:37 +01:00
|
|
|
%autosetup -p1 -n %{name}-%{name}-%{version}
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%build
|
2023-03-23 20:27:13 +01:00
|
|
|
%define _lto_cflags %nil
|
|
|
|
CFLAGS="%{optflags}" %make_build
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%install
|
2019-08-01 12:56:38 +02:00
|
|
|
%make_install libdir=%{_libdir}
|
|
|
|
rm %{buildroot}%{_libdir}/*.a
|
|
|
|
|
|
|
|
%check
|
2022-09-24 08:39:14 +02:00
|
|
|
# qemu-linux-user does not emulate io_setup syscall, so none of the testsuite makes sense
|
|
|
|
%if ! 0%{?qemu_user_space_build}
|
2023-03-23 20:27:13 +01:00
|
|
|
CFLAGS="%{optflags}" %make_build partcheck
|
2022-09-24 08:39:14 +02:00
|
|
|
%endif
|
2019-08-01 12:56:38 +02:00
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{lname}
|
2018-05-24 17:14:31 +02:00
|
|
|
%license COPYING
|
2019-08-01 12:56:38 +02:00
|
|
|
%{_libdir}/libaio.so.*
|
2007-01-16 00:21:21 +01:00
|
|
|
|
|
|
|
%files devel
|
2019-08-01 12:56:38 +02:00
|
|
|
%{_includedir}/libaio.h
|
|
|
|
%{_libdir}/libaio.so
|
2008-04-10 14:22:11 +02:00
|
|
|
|
2007-08-02 22:54:08 +02:00
|
|
|
%changelog
|