From 5a4eb238d78133ba06493f28e1aeff18ed183fe9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 3 Nov 2020 07:12:48 -0500 Subject: [PATCH] import liburing-1.0.7-3.el8 --- .gitignore | 1 + .liburing.metadata | 1 + SOURCES/liburing-always-build-with-fPIC.patch | 16 +++++ SPECS/liburing.spec | 70 +++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 .gitignore create mode 100644 .liburing.metadata create mode 100644 SOURCES/liburing-always-build-with-fPIC.patch create mode 100644 SPECS/liburing.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9b826f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/liburing-1.0.7.tar.bz2 diff --git a/.liburing.metadata b/.liburing.metadata new file mode 100644 index 0000000..5baf939 --- /dev/null +++ b/.liburing.metadata @@ -0,0 +1 @@ +cbd78fcc4fc43ec4c160a1b0d28c90d4b5779465 SOURCES/liburing-1.0.7.tar.bz2 diff --git a/SOURCES/liburing-always-build-with-fPIC.patch b/SOURCES/liburing-always-build-with-fPIC.patch new file mode 100644 index 0000000..6daa3d0 --- /dev/null +++ b/SOURCES/liburing-always-build-with-fPIC.patch @@ -0,0 +1,16 @@ +diff --git a/src/Makefile b/src/Makefile +index 44a95ad..6fd050d 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -4,9 +4,9 @@ libdir ?= $(prefix)/lib + libdevdir ?= $(prefix)/lib + + CFLAGS ?= -g -fomit-frame-pointer -O2 +-override CFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare\ ++override CFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -fPIC\ + -Iinclude/ -include ../config-host.h +-SO_CFLAGS=-fPIC $(CFLAGS) ++SO_CFLAGS=$(CFLAGS) + L_CFLAGS=$(CFLAGS) + LINK_FLAGS= + LINK_FLAGS+=$(LDFLAGS) diff --git a/SPECS/liburing.spec b/SPECS/liburing.spec new file mode 100644 index 0000000..6a8f79c --- /dev/null +++ b/SPECS/liburing.spec @@ -0,0 +1,70 @@ +Name: liburing +Version: 1.0.7 +Release: 3%{?dist} +Summary: Linux-native io_uring I/O access library +License: LGPLv2+ +Source: %{name}-%{version}.tar.bz2 +URL: http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2 +BuildRequires: gcc +Patch0: liburing-always-build-with-fPIC.patch + +%description +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} = %{version}-%{release} +Requires: pkgconfig + +%description devel +This package provides header files to include and libraries to link with +for the Linux-native io_uring. + +%prep +%autosetup -p1 + +%build +./configure --prefix=%{_prefix} --libdir=/%{_libdir} --libdevdir=/%{_libdir} --mandir=%{_mandir} --includedir=%{_includedir} + +%make_build V=1 + +%install +%make_install + +%files +%attr(0755,root,root) %{_libdir}/liburing.so.* +%doc COPYING + +%files devel +%{_includedir}/liburing/ +%{_includedir}/liburing.h +%{_libdir}/liburing.so +%{_libdir}/liburing.a +%{_libdir}/pkgconfig/* +%{_mandir}/man2/* + +%changelog +* Thu Aug 20 2020 Jeff Moyer - 1.0.7-3.el8 +- Build with V=1 so that the build logs are useful. +- Related: rhbz#1862551 + +* Thu Aug 20 2020 Jeff Moyer - 1.0.7-2.el8 +- Fix versioning. The installed library is 1.0.7, make the rpm match. +- bump release number for build, which includes -fPIC fix +- Related: rhbz#1862551 + +* Fri Jul 31 2020 Jeff Moyer - 0.7-1.el8 +- Update to upstream version 0.7. +- Resolves: 1862551 + +* Wed Nov 6 2019 Jeff Moyer - 0.2-2.el8 +- bump release to trigger gating tests +- Related: bz#1724804 + +* Thu Oct 31 2019 Jeff Moyer - 0.2-1 +- Initial rhel8 package. +- Resolves: bz#1724804 + +* Tue Jan 8 2019 Jens Axboe - 0.1 +- Initial version