From bf4a084035ece2d3fa80a54ce8890436fc503ec8e47614d3b3e78e76bfafdcfa Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 27 Nov 2019 10:24:16 +0000 Subject: [PATCH] Accepting request 751256 from home:morbidrsa liburing provides native async IO for the Linux kernel, in a fast and efficient manner, for both buffered and O_DIRECT. OBS-URL: https://build.opensuse.org/request/show/751256 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + liburing-0.2.tar.gz | 3 ++ liburing.changes | 4 +++ liburing.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 liburing-0.2.tar.gz create mode 100644 liburing.changes create mode 100644 liburing.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/liburing-0.2.tar.gz b/liburing-0.2.tar.gz new file mode 100644 index 0000000..7b0b053 --- /dev/null +++ b/liburing-0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b3858dd6605ee8222472166f88213f2d48388146f2a7b10c130f3b39a706bb9 +size 56951 diff --git a/liburing.changes b/liburing.changes new file mode 100644 index 0000000..fbd6dc1 --- /dev/null +++ b/liburing.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Nov 27 08:18:20 UTC 2019 - Johannes Thumshirn + +- Initial packaging for openSUSE diff --git a/liburing.spec b/liburing.spec new file mode 100644 index 0000000..66b1627 --- /dev/null +++ b/liburing.spec @@ -0,0 +1,74 @@ +# +# spec file for package liburing +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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} +Version: 0.2 +Release: 0 +Summary: Linux-native io_uring I/O access library +License: LGPL-2.1-or-later +URL: https://git.kernel.dk/cgit/liburing +Source: https://git.kernel.dk/cgit/liburing/snapshot/%{name}-%{version}.tar.gz +Requires: kernel-default >= 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 +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 +%autosetup + +%build +./configure --prefix=%{_prefix} --libdir=/%{_libdir} --mandir=%{_mandir} --includedir=%{_includedir} +make %{?_smp_mflags} + +%install +%make_install +rm %{buildroot}%{_libdir}/%{name}.a + +%files -n %{lname} +%{_libdir}/liburing.so.* +%license COPYING + +%files devel +%{_includedir}/liburing/ +%{_includedir}/liburing.h +%{_libdir}/liburing.so +%{_libdir}/pkgconfig/* +%{_mandir}/man2/* +%doc README + +%changelog