Skip to contentSkip to conversation

spec: liburing-2.0 updates

PATCH Applied Stefan Hajnoczi 2 participants 4 messages Mar 9, 2021 Block layer

lore
Share & tools
lore
#0 lore raw

cover spec: liburing-2.0 updates

Update the liburing.spec file so the liburing.pc pkg-config file and rpms report version 2.0 instead of 0.7.

Stefan Hajnoczi (2):
spec: bump version to 2.0
spec: add explicit build dependency on make

 liburing.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/2 spec: bump version to 2.0

The shared library is now liburing.so.2 but the pkgconfig and rpm files still say 0.7. Existing binaries link against liburing.so.1 and will not automatically pick up the new liburing.so.2 shared library.

Update the version number in liburing.spec so

---
 liburing.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
liburing.spec +1 -1
index fa4d970..8607074 100644
@@ -1,5 +1,5 @@
 Name: liburing
-Version: 0.7
+Version: 2.0
 Release: 1%{?dist}
 Summary: Linux-native io_uring I/O access library
 License: (GPLv2 with exceptions and LGPLv2+) or MIT
Signature · 1 line
2.29.2
#2 lore raw

PATCH 2/2 spec: add explicit build dependency on make

In reply to Stefan Hajnoczi

Fedora 34 is removing make from the buildroot. An explicit dependency is now required:
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot

Adding an explicit build dependency on make seems reasonable across all rpm-based distros. It won't hurt on distros where make is always available in the buildroot.

---
 liburing.spec | 1 +
 1 file changed, 1 insertion(+)
liburing.spec +1 -0
index 8607074..0268d23 100644
@@ -7,6 +7,7 @@ Source0: https://brick.kernel.dk/snaps/%{name}-%{version}.tar.gz
 Source1: https://brick.kernel.dk/snaps/%{name}-%{version}.tar.gz.asc
 URL: https://git.kernel.dk/cgit/liburing/
 BuildRequires: gcc
+BuildRequires: make
 
 %description
 Provides native async IO for the Linux kernel, in a fast and efficient
Signature · 1 line
2.29.2
maintainer Applied
#3 lore raw
In reply to Stefan Hajnoczi
Quoted 9 lines · Stefan Hajnoczi

Update the liburing.spec file so the liburing.pc pkg-config file and rpms report version 2.0 instead of 0.7.

Stefan Hajnoczi (2):
spec: bump version to 2.0
spec: add explicit build dependency on make

 liburing.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks.

Signature · 1 line
Jens Axboe