|
@@ -1,15 +1,14 @@
|
|
|
Summary: Linux-native asynchronous I/O access library
|
|
|
Name: libaio
|
|
|
Version: 0.3.112
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Release: 2%{?_dist_release}
|
|
|
+Group: system
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
License: LGPLv2+
|
|
|
-Group: System Environment/Libraries
|
|
|
-
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-
|
|
|
-Source: https://releases.pagure.org/libaio/%{name}-%{version}.tar.gz
|
|
|
+URL: https://pagure.io/libaio
|
|
|
+Source: https://pagure.io/libaio/archive/libaio-%{version}/libaio-libaio-%{version}.tar.gz
|
|
|
|
|
|
# patches from fedora
|
|
|
Patch2: libaio-remove-nostartfiles-nostdlib-from-build-flags.patch
|
|
@@ -21,7 +20,11 @@ Patch102: 0017-harness-Use-destination-strncpy-expression-for-sizeo.patch
|
|
|
Patch103: 0020-harness-Make-the-test-exit-with-a-code-matching-the-.patch
|
|
|
Patch104: 0021-harness-add-support-for-skipping-tests.patch
|
|
|
Patch105: 0022-harness-Add-fallback-code-for-filesystems-not-suppor.patch
|
|
|
-Patch106: 0024-harness-skip-22.p-if-async_poll-isn-t-supported.patch
|
|
|
+Patch106: 0023-harness-Handle-ENOTSUP-from-io_submit-with-RWF_NOWAI.patch
|
|
|
+Patch107: 0024-harness-skip-22.p-if-async_poll-isn-t-supported.patch
|
|
|
+
|
|
|
+
|
|
|
+Patch1000: libaio-fix-test.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x ppc ppc64 ppc64pseries ppc64iseries alpha alphaev6
|
|
@@ -34,60 +37,77 @@ The POSIX async I/O facility requires this library in order to provide
|
|
|
kernel-accelerated async I/O capabilities, as do applications which
|
|
|
require the Linux-native async I/O API.
|
|
|
|
|
|
+
|
|
|
%package devel
|
|
|
Summary: Development files for Linux-native asynchronous I/O access
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: libaio = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
|
This package provides header files to include and libraries to link with
|
|
|
for the Linux-native asynchronous I/O facility ("async I/O", or "aio").
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
-%setup -q -a 0
|
|
|
-mv %{name}-%{version} compat-%{name}-%{version}
|
|
|
+%setup -q -n %{name}-%{name}-%{version} -a 0
|
|
|
+mv %{name}-%{name}-%{version} compat-%{name}-%{version}
|
|
|
|
|
|
%patch100 -p1
|
|
|
-%patch101 -p1
|
|
|
+#patch101 -p1
|
|
|
%patch102 -p1
|
|
|
%patch103 -p1
|
|
|
%patch104 -p1
|
|
|
%patch105 -p1
|
|
|
%patch106 -p1
|
|
|
+%patch107 -p1
|
|
|
+%patch1000 -p1
|
|
|
|
|
|
pushd compat-%{name}-%{version}
|
|
|
%patch100 -p1
|
|
|
-%patch101 -p1
|
|
|
+#patch101 -p1
|
|
|
%patch102 -p1
|
|
|
%patch103 -p1
|
|
|
%patch104 -p1
|
|
|
%patch105 -p1
|
|
|
%patch106 -p1
|
|
|
+%patch107 -p1
|
|
|
+%patch1000 -p1
|
|
|
popd
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
+# This package uses ASMs to implement symbol versioning and is thus
|
|
|
+# incompatible with LTO
|
|
|
+%define _lto_cflags %{nil}
|
|
|
+
|
|
|
# A library with a soname of 1.0.0 was inadvertantly released. This
|
|
|
# build process builds a version of the library with the broken soname in
|
|
|
# the compat-libaio-0.3.103 directory, and then builds the library again
|
|
|
# with the correct soname.
|
|
|
+%set_build_flags
|
|
|
cd compat-%{name}-%{version}
|
|
|
make soname='libaio.so.1.0.0' libname='libaio.so.1.0.0'
|
|
|
cd ..
|
|
|
make
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
cd compat-%{name}-%{version}
|
|
|
install -D -m 755 src/libaio.so.1.0.0 \
|
|
|
- $RPM_BUILD_ROOT/%{_lib}/libaio.so.1.0.0
|
|
|
+ %{buildroot}/%{_lib}/libaio.so.1.0.0
|
|
|
cd ..
|
|
|
-make DESTDIR=$RPM_BUILD_ROOT prefix=/ libdir=/%{_lib} libdevdir=%{_libdir} \
|
|
|
- includedir=%{_includedir} install
|
|
|
+make DESTDIR=%{buildroot} prefix=/ libdir=/%{_lib} includedir=%{_includedir} install
|
|
|
|
|
|
-rm -f %{buildroot}%{_libdir}/libaio.so
|
|
|
+mkdir -p %{buildroot}/%{_libdir}
|
|
|
+rm -f %{buildroot}/%{_lib}/libaio.so
|
|
|
ln -sf ../../%{_lib}/libaio.so.1 %{buildroot}%{_libdir}/libaio.so
|
|
|
|
|
|
-find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
|
|
+find %{buildroot} -name '*.a' -delete
|
|
|
+
|
|
|
|
|
|
%check
|
|
|
make partcheck
|
|
@@ -95,23 +115,26 @@ pushd compat-%{name}-%{version}
|
|
|
make partcheck
|
|
|
popd
|
|
|
|
|
|
+
|
|
|
%clean
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
|
-%attr(0755,root,root) /%{_lib}/libaio.so.*
|
|
|
%license COPYING
|
|
|
%doc TODO
|
|
|
+%attr(0755,root,root) /%{_lib}/libaio.so.*
|
|
|
|
|
|
%files devel
|
|
|
%attr(0644,root,root) %{_includedir}/*
|
|
|
%{_libdir}/libaio.so
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Tue Aug 31 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.3.112-2
|
|
|
+- dropped ldconfig scriptlets.
|
|
|
+- fixed tests.
|
|
|
+
|
|
|
* Thu Sep 12 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.3.112-1
|
|
|
- new upstream release.
|
|
|
- dropped Patch1-2.
|