diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d826762 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/liburing-1.0.7.tar.bz2 diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/liburing-always-build-with-fPIC.patch b/liburing-always-build-with-fPIC.patch new file mode 100644 index 0000000..6daa3d0 --- /dev/null +++ b/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/liburing.spec b/liburing.spec new file mode 100644 index 0000000..6a8f79c --- /dev/null +++ b/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 diff --git a/sources b/sources new file mode 100644 index 0000000..e807af9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (liburing-1.0.7.tar.bz2) = 9b105684d83de1b34e25340a2280cf69e2450fdda8cb04f4f57702114f95a0eec92bc83cd70636565610cb47d3950c5b101725364611d774cf69ed6b213a7bc7