diff --git a/0000-libaio-install-to-destdir-slash-usr.patch b/0000-libaio-install-to-destdir-slash-usr.patch index aebc17578c25f07eeae07777c00a543af5c23777..202ca2778d465b1a73bee8ea8254a8feb4e4411b 100644 --- a/0000-libaio-install-to-destdir-slash-usr.patch +++ b/0000-libaio-install-to-destdir-slash-usr.patch @@ -1,20 +1,22 @@ -diff -up libaio-0.3.111/src/Makefile.orig libaio-0.3.111/src/Makefile ---- libaio-0.3.111/src/Makefile.orig 2018-03-06 17:24:47.000000000 -0500 -+++ libaio-0.3.111/src/Makefile 2018-03-07 10:44:49.148004447 -0500 -@@ -53,11 +53,11 @@ $(libname): $(libaio_sobjs) libaio.map +diff --git a/src/Makefile b/src/Makefile +index 3325ec3..f0ee30d 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -58,12 +58,12 @@ $(libname): $(libaio_sobjs) libaio.map $(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS) install: $(all_targets) - install -D -m 644 libaio.h $(includedir)/libaio.h - install -D -m 644 libaio.a $(libdir)/libaio.a ++ install -D -m 644 libaio.h $(destdir)$(includedir)/libaio.h ++ install -D -m 644 libaio.a $(destdir)$(usrlibdir)/libaio.a + ifeq ($(ENABLE_SHARED),1) - install -D -m 755 $(libname) $(libdir)/$(libname) - ln -sf $(libname) $(libdir)/$(soname) - ln -sf $(libname) $(libdir)/libaio.so -+ install -D -m 644 libaio.h $(destdir)$(includedir)/libaio.h -+ install -D -m 644 libaio.a $(destdir)$(usrlibdir)/libaio.a + install -D -m 755 $(libname) $(destdir)$(usrlibdir)/$(libname) + ln -sf $(libname) $(destdir)$(usrlibdir)/$(soname) + ln -sf $(libname) $(destdir)$(usrlibdir)/libaio.so + endif $(libaio_objs): libaio.h - diff --git a/9000-libaio-arm64-ilp32.patch b/0001-libaio-arm64-ilp32.patch similarity index 82% rename from 9000-libaio-arm64-ilp32.patch rename to 0001-libaio-arm64-ilp32.patch index 401d05366609ed18fa2ef2007ba701bf7d6da73c..81bf9aafafba46d3ddb4566aca250be062590297 100644 --- a/9000-libaio-arm64-ilp32.patch +++ b/0001-libaio-arm64-ilp32.patch @@ -1,6 +1,8 @@ ---- libaio-0.3.111_old/src/libaio.h 2019-01-26 10:54:53.202000000 +0800 -+++ libaio-0.3.111/src/libaio.h 2019-01-26 12:51:37.150000000 +0800 -@@ -53,6 +53,7 @@ +diff --git a/src/libaio.h b/src/libaio.h +index 2bc24e0..f44034d 100644 +--- a/src/libaio.h ++++ b/src/libaio.h +@@ -54,6 +54,7 @@ typedef enum io_iocb_cmd { #if defined(__i386__) || (defined(__arm__) && !defined(__ARMEB__)) || \ defined(__sh__) || defined(__bfin__) || defined(__MIPSEL__) || \ defined(__cris__) || (defined(__riscv) && __riscv_xlen == 32) || \ @@ -8,7 +10,7 @@ (defined(__GNUC__) && defined(__BYTE_ORDER__) && \ __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ && __SIZEOF_LONG__ == 4) #define PADDED(x, y) x; unsigned y -@@ -84,6 +85,7 @@ +@@ -85,6 +86,7 @@ typedef enum io_iocb_cmd { (defined(__arm__) && defined(__ARMEB__)) || \ defined(__sparc__) || defined(__MIPSEB__) || defined(__m68k__) || \ defined(__hppa__) || defined(__frv__) || defined(__avr32__) || \ diff --git a/9001-libaio-makefile-cflags.patch b/0002-libaio-makefile-cflags.patch similarity index 31% rename from 9001-libaio-makefile-cflags.patch rename to 0002-libaio-makefile-cflags.patch index a0b0aa9bbd182e1d5fecf09f737ce31f22e6c3d1..1a4d4a66a7bbc04190aa00cc6081181207a1e4f6 100644 --- a/9001-libaio-makefile-cflags.patch +++ b/0002-libaio-makefile-cflags.patch @@ -1,11 +1,13 @@ ---- libaio-0.3.111_old/src/Makefile 2019-01-26 10:54:53.200000000 +0800 -+++ libaio-0.3.111/src/Makefile 2019-01-26 11:20:44.106000000 +0800 -@@ -3,7 +3,7 @@ +diff --git a/src/Makefile b/src/Makefile +index 37ae219..3325ec3 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -3,7 +3,7 @@ includedir=$(prefix)/include libdir=$(prefix)/lib CFLAGS ?= -g -fomit-frame-pointer -O2 --CFLAGS += -nostdlib -nostartfiles -Wall -I. -fPIC -+CFLAGS += $(RPM_OPT_FLAGS) -nostdlib -nostartfiles -Wall -I. -fPIC +-CFLAGS += -Wall -I. -fPIC ++CFLAGS += $(RPM_OPT_FLAGS) -Wall -I. -fPIC SO_CFLAGS=-shared $(CFLAGS) L_CFLAGS=$(CFLAGS) LINK_FLAGS= diff --git a/9003-libaio-fix-for-x32.patch b/0003-libaio-fix-for-x32.patch similarity index 62% rename from 9003-libaio-fix-for-x32.patch rename to 0003-libaio-fix-for-x32.patch index 152fabdeed70fdaebfd70d8262032b9ee9ff8308..0d878f3446b651118d058439ab2219ef052cbb7d 100644 --- a/9003-libaio-fix-for-x32.patch +++ b/0003-libaio-fix-for-x32.patch @@ -1,6 +1,8 @@ ---- libaio-0.3.111_old/src/syscall-x86_64.h 2019-02-14 04:09:48.632926019 -0500 -+++ libaio-0.3.111/src/syscall-x86_64.h 2019-02-14 04:14:05.585928959 -0500 -@@ -1,5 +1,15 @@ +diff --git a/src/syscall-x86_64.h b/src/syscall-x86_64.h +index 0eccef3..fd71da9 100644 +--- a/src/syscall-x86_64.h ++++ b/src/syscall-x86_64.h +@@ -1,6 +1,16 @@ +#ifndef __NR_io_setup #define __NR_io_setup 206 +#endif @@ -16,3 +18,4 @@ +#ifndef __NR_io_cancel #define __NR_io_cancel 210 +#endif + #define __NR_io_pgetevents 333 diff --git a/9002-destdir.patch b/9002-destdir.patch deleted file mode 100644 index 1f89e2999615070dd8baae6c395bf7e4559dd11e..0000000000000000000000000000000000000000 --- a/9002-destdir.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- libaio-0.3.111_old/Makefile 2019-02-14 04:09:48.697926020 -0500 -+++ libaio-0.3.111/Makefile 2019-02-14 04:10:10.715926272 -0500 -@@ -14,7 +14,7 @@ - @$(MAKE) -C src - - install: -- @$(MAKE) -C src install prefix=$(prefix) includedir=$(includedir) libdir=$(libdir) -+ @$(MAKE) -C src install prefix=$(DESTDIR)$(prefix) includedir=$(includedir) libdir=$(libdir) - - check: - @$(MAKE) -C harness check diff --git a/libaio-0.3.111.tar.gz b/libaio-0.3.111.tar.gz deleted file mode 100644 index 88c18e539d355da24edbe072d2ff9dea7b0cadb0..0000000000000000000000000000000000000000 Binary files a/libaio-0.3.111.tar.gz and /dev/null differ diff --git a/libaio-0.3.112.tar.gz b/libaio-0.3.112.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c3fa7c7bf3847b54c2fe4be897128c8648de6d00 Binary files /dev/null and b/libaio-0.3.112.tar.gz differ diff --git a/libaio.spec b/libaio.spec index 2da447ffee6b7faf1240c338e00fb7f326dbd339..c1508c6e4ae2520dbbd36b8bab039bb93a7af1f7 100644 --- a/libaio.spec +++ b/libaio.spec @@ -1,20 +1,17 @@ Name: libaio -Version: 0.3.111 -Release: 5 +Version: 0.3.112 +Release: 1 Summary: Linux-native asynchronous I/O access library License: LGPLv2+ URL: https://pagure.io/libaio -Source: http://releases.pagure.org/libaio/libaio-0.3.111.tar.gz +Source: https://releases.pagure.org/libaio/libaio-%{version}.tar.gz -Patch0000: 0000-libaio-install-to-destdir-slash-usr.patch - -Patch9000: 9000-libaio-arm64-ilp32.patch +Patch0: 0000-libaio-install-to-destdir-slash-usr.patch +Patch1: 0001-libaio-arm64-ilp32.patch %ifarch aarch64 aarch64_ilp32 x86_64 -Patch9001: 9001-libaio-makefile-cflags.patch +Patch2: 0002-libaio-makefile-cflags.patch %endif - -Patch9002: 9002-destdir.patch -Patch9003: 9003-libaio-fix-for-x32.patch +Patch3: 0003-libaio-fix-for-x32.patch BuildRequires: gcc @@ -35,19 +32,12 @@ Files for libaio development %prep %setup -q -a 0 -%patch0000 -p0 -b .install-to-destdir-slash-usr -%patch0000 -p1 -b .install-to-destdir-slash-usr - -%patch9000 -p0 -b .arm64-ilp32 -%patch9000 -p1 -b .arm64-ilp32 +%patch0 -p1 -b .install-to-destdir-slash-usr +%patch1 -p1 -b .arm64-ilp32 %ifarch aarch64 aarch64_ilp32 x86_64 -%patch9001 -p0 -b .makefile-cflags -%patch9001 -p1 -b .makefile-cflags +%patch2 -p1 -b .makefile-cflags %endif -%patch9002 -p0 -b .makefile-destdir -%patch9002 -p1 -b .makefile-destdir -%patch9003 -p0 -b .fix-x32 -%patch9003 -p1 -b .fix-x32 +%patch3 -p1 -b .fix-x32 mv %{name}-%{version} setup-%{name}-%{version} @@ -76,6 +66,9 @@ rm -rf %{buildroot}%{_usr}/%{_lib}/libaio.a %attr(0755,root,root) %{_libdir}/libaio.so %changelog +* Sat Jul 29 2020 Zhiqiang Liu - 0.3.112-1 +- update from 0.3.111 to 0.3.112 + * Tue Mar 17 2020 hy-euler - 0.3.111-5 - Type:enhancemnet - ID:NA