]>
Commit | Line | Data |
---|---|---|
bb7286e8 | 1 | Summary: Linux-native asynchronous I/O access library |
97a58730 | 2 | Summary(pl.UTF-8): Biblioteka natywnego dla Linuksa asynchronicznego dostępu do wejścia/wyjścia |
bb7286e8 | 3 | Name: libaio |
c862da45 JB |
4 | Version: 0.3.107 |
5 | Release: 1 | |
bb7286e8 JB |
6 | License: LGPL v2+ |
7 | Group: Libraries | |
c862da45 JB |
8 | # http://download.fedoraproject.org/pub/fedora/linux/development/source/SRPMS/libaio-0.3.107-2.src.rpm |
9 | Source0: %{name}-%{version}.tar.gz | |
10 | Patch0: %{name}-arches.patch | |
f3df8777 | 11 | # Source0-md5: 9480e31cce6506091080d59211089bd4 |
bb7286e8 JB |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
13 | ||
14 | %description | |
15 | The Linux-native asynchronous I/O facility ("async I/O", or "aio") has | |
16 | a richer API and capability set than the simple POSIX async I/O | |
17 | facility. This library, libaio, provides the Linux-native API for | |
18 | async I/O. The POSIX async I/O facility requires this library in order | |
19 | to provide kernel-accelerated async I/O capabilities, as do | |
20 | applications which require the Linux-native async I/O API. | |
21 | ||
df913f84 JR |
22 | %description -l pl.UTF-8 |
23 | Natywna dla Linuksa obsługa asynchronicznego wejścia/wyjścia ("async | |
24 | I/O" lub "aio") ma bogatsze API i zestaw możliwości niż proste | |
25 | asynchroniczne wejście/wyjście zgodne z POSIX. Ta biblioteka - libaio | |
26 | - udostępnia natywne Linuksowe API dla asynchronicznego we/wy. Zgodne | |
27 | z POSIX asynchroniczne we/wy wymaga tej biblioteki do udostępnienia | |
28 | przyspieszanych przez jądro możliwości asynchronicznego we/wy, | |
29 | podobnie jak aplikacje wymagające natywnego dla Linuksa API | |
bb7286e8 JB |
30 | asynchronicznego we/wy. |
31 | ||
32 | %package devel | |
33 | Summary: Header files for libaio library | |
97a58730 | 34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libaio |
bb7286e8 JB |
35 | Group: Development/Libraries |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for libaio library. | |
40 | ||
df913f84 JR |
41 | %description devel -l pl.UTF-8 |
42 | Pliki nagłówkowe biblioteki libaio. | |
bb7286e8 JB |
43 | |
44 | %package static | |
45 | Summary: Static libaio library | |
97a58730 | 46 | Summary(pl.UTF-8): Statyczna biblioteka libaio |
bb7286e8 JB |
47 | Group: Development/Libraries |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static libaio library. | |
52 | ||
df913f84 | 53 | %description static -l pl.UTF-8 |
bb7286e8 JB |
54 | Statyczna biblioteka libaio. |
55 | ||
56 | %prep | |
57 | %setup -q | |
c862da45 | 58 | %patch0 -p1 |
bb7286e8 JB |
59 | |
60 | %build | |
61 | %{__make} \ | |
62 | CC="%{__cc}" \ | |
63 | CFLAGS="%{rpmcflags} -fomit-frame-pointer -fPIC -Wall -I. -nostdlib -nostartfiles" | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
3ebe367c | 67 | install -d $RPM_BUILD_ROOT/%{_lib} |
bb7286e8 JB |
68 | |
69 | %{__make} install \ | |
70 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
71 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
72 | ||
48e39479 JB |
73 | # omit some manuals: |
74 | # man2/io_* already included in man-pages | |
75 | # some man3/aio_* already included in glibc-devel-doc (from man-pages) | |
76 | install -d $RPM_BUILD_ROOT%{_mandir}/man3 | |
77 | install man/aio{,_cancel64,_error64,_fsync64,_init,_read64,_return64,_suspend64,_write64}.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
78 | install man/io*.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
79 | install man/lio*.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
bb7286e8 | 80 | |
3ebe367c | 81 | # move to /%{_lib}, for multipath-tools |
c862da45 JB |
82 | mv -f $RPM_BUILD_ROOT%{_libdir}/libaio.so.* $RPM_BUILD_ROOT/%{_lib} |
83 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libaio.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libaio.so | |
3ebe367c | 84 | |
bb7286e8 JB |
85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %doc ChangeLog TODO | |
3ebe367c | 94 | %attr(755,root,root) /%{_lib}/libaio.so.*.*.* |
c862da45 | 95 | %attr(755,root,root) %ghost /%{_lib}/libaio.so.1 |
bb7286e8 JB |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %attr(755,root,root) %{_libdir}/libaio.so | |
100 | %{_includedir}/libaio.h | |
f3df8777 JB |
101 | %{_mandir}/man3/aio*.3* |
102 | %{_mandir}/man3/io*.3* | |
103 | %{_mandir}/man3/lio_*.3* | |
bb7286e8 JB |
104 | |
105 | %files static | |
106 | %defattr(644,root,root,755) | |
107 | %{_libdir}/libaio.a |