2019-11-27 10:24:16 +00:00
|
|
|
#
|
|
|
|
# spec file for package liburing
|
|
|
|
#
|
2020-11-10 16:36:31 +00:00
|
|
|
# Copyright (c) 2020 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: liburing
|
|
|
|
%define so_ver 1
|
|
|
|
%define lname %{name}%{so_ver}
|
2020-11-10 16:36:31 +00:00
|
|
|
Version: 0.6
|
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
|
|
|
|
Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.gz
|
|
|
|
Requires: kernel-default >= 5.1
|
2020-11-10 16:36:31 +00:00
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: pkg-config
|
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++
|
2019-11-27 10:24:16 +00:00
|
|
|
Requires: %{name}%{so_ver} = %{version}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides header files to include and libraries to link with
|
|
|
|
for the Linux-native io_uring.
|
|
|
|
|
|
|
|
%prep
|
2019-12-12 09:42:57 +00:00
|
|
|
%setup -n %name-%version
|
2019-11-27 10:24:16 +00:00
|
|
|
|
|
|
|
%build
|
2020-11-10 16:36:31 +00:00
|
|
|
./configure --prefix=%{_prefix} \
|
|
|
|
--includedir=%{_includedir} \
|
|
|
|
--libdir=/%{_libdir} \
|
|
|
|
--libdevdir=/%{_libdir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--datadir=%{_datadir}
|
2019-11-27 10:24:16 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm %{buildroot}%{_libdir}/%{name}.a
|
|
|
|
|
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
|
|
|
|
%{_includedir}/liburing/
|
|
|
|
%{_includedir}/liburing.h
|
|
|
|
%{_libdir}/liburing.so
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
%{_mandir}/man2/*
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
%changelog
|