summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTizenOpenSource <tizenopensrc@samsung.com>2022-12-28 16:17:19 +0900
committerTizenOpenSource <tizenopensrc@samsung.com>2022-12-28 16:17:19 +0900
commite9f480afd3b0d5eb98876004bbe179bd12f76b76 (patch)
tree3a2f8894076a52481d1ca824ed76ea016e30e7e8
parent01c2d8458d75e745ab9f7cdee26ccc9afb4429d0 (diff)
downloadlibaio-accepted/tizen_8.0_unified.tar.gz
libaio-accepted/tizen_8.0_unified.tar.bz2
libaio-accepted/tizen_8.0_unified.zip
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
-rw-r--r--packaging/baselibs.conf4
-rw-r--r--packaging/libaio.manifest5
-rw-r--r--packaging/libaio.spec57
3 files changed, 66 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644
index 0000000..6c6e9b6
--- /dev/null
+++ b/packaging/baselibs.conf
@@ -0,0 +1,4 @@
+libaio
+libaio-devel
+ requires "libaio-<targettype> = <version>"
+
diff --git a/packaging/libaio.manifest b/packaging/libaio.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/libaio.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/libaio.spec b/packaging/libaio.spec
new file mode 100644
index 0000000..3908d58
--- /dev/null
+++ b/packaging/libaio.spec
@@ -0,0 +1,57 @@
+Name: libaio
+Version: 0.3.113
+Release: 0
+Summary: Linux-Native Asynchronous I/O Access Library
+License: LGPL-2.1+
+Group: Development/Libraries
+Url: http://kernel.org/pub/linux/libs/aio/
+Source: libaio-%{version}.tar.bz2
+Source2: baselibs.conf
+Source1001: libaio.manifest
+
+%description
+The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
+a richer API and capability set than the simple POSIX async I/O
+facility. This library provides the Linux-native API for async I/O. The
+POSIX async I/O facility requires this library to provide
+kernel-accelerated async I/O capabilities, as do applications that
+require the Linux-native async I/O API.
+
+
+%package devel
+Summary: Development Files for Linux-native Asynchronous I/O Access
+Group: Development/Libraries/C and C++
+Requires: %name = %version, glibc-devel
+
+%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").
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+#diable asan check option.
+%{?asan:/usr/bin/gcc-unforce-options}
+%__make %{?_smp_mflags} CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS"
+
+%install
+%__make install prefix=%{buildroot}/usr libdir=%{buildroot}/%{_libdir}
+
+rm -f "%buildroot/%_libdir"/*.a
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%_libdir/libaio.so.*
+
+%files devel
+%manifest %{name}.manifest
+/usr/include/libaio.h
+%_libdir/libaio.so