]>
Commit | Line | Data |
---|---|---|
bb7286e8 | 1 | Summary: Linux-native asynchronous I/O access library |
df913f84 | 2 | Summary(pl.UTF-8): Biblioteka natywnego dla Linuksa asynchronicznego dostępu do wejścia/wyjścia |
bb7286e8 JB |
3 | Name: libaio |
4 | Version: 0.3.104 | |
5 | Release: 1 | |
6 | License: LGPL v2+ | |
7 | Group: Libraries | |
8 | # http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/ | |
9 | Source0: %{name}-%{version}.tar.gz | |
10 | # Source0-md5: 2a4a17ed8f95d08b52cc72a41a6f5c60 | |
11 | # syscall*.h implemented for: | |
12 | ExclusiveArch: %{ix86} %{x8664} alpha ia64 ppc ppc64 s390 s390x | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | The Linux-native asynchronous I/O facility ("async I/O", or "aio") has | |
17 | a richer API and capability set than the simple POSIX async I/O | |
18 | facility. This library, libaio, provides the Linux-native API for | |
19 | async I/O. The POSIX async I/O facility requires this library in order | |
20 | to provide kernel-accelerated async I/O capabilities, as do | |
21 | applications which require the Linux-native async I/O API. | |
22 | ||
df913f84 JR |
23 | %description -l pl.UTF-8 |
24 | Natywna dla Linuksa obsługa asynchronicznego wejścia/wyjścia ("async | |
25 | I/O" lub "aio") ma bogatsze API i zestaw możliwości niż proste | |
26 | asynchroniczne wejście/wyjście zgodne z POSIX. Ta biblioteka - libaio | |
27 | - udostępnia natywne Linuksowe API dla asynchronicznego we/wy. Zgodne | |
28 | z POSIX asynchroniczne we/wy wymaga tej biblioteki do udostępnienia | |
29 | przyspieszanych przez jądro możliwości asynchronicznego we/wy, | |
30 | podobnie jak aplikacje wymagające natywnego dla Linuksa API | |
bb7286e8 JB |
31 | asynchronicznego we/wy. |
32 | ||
33 | %package devel | |
34 | Summary: Header files for libaio library | |
df913f84 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libaio |
bb7286e8 JB |
36 | Group: Development/Libraries |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for libaio library. | |
41 | ||
df913f84 JR |
42 | %description devel -l pl.UTF-8 |
43 | Pliki nagłówkowe biblioteki libaio. | |
bb7286e8 JB |
44 | |
45 | %package static | |
46 | Summary: Static libaio library | |
df913f84 | 47 | Summary(pl.UTF-8): Statyczna biblioteka libaio |
bb7286e8 JB |
48 | Group: Development/Libraries |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static libaio library. | |
53 | ||
df913f84 | 54 | %description static -l pl.UTF-8 |
bb7286e8 JB |
55 | Statyczna biblioteka libaio. |
56 | ||
57 | %prep | |
58 | %setup -q | |
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 | |
67 | ||
68 | %{__make} install \ | |
69 | prefix=$RPM_BUILD_ROOT%{_prefix} \ | |
70 | libdir=$RPM_BUILD_ROOT%{_libdir} | |
71 | ||
72 | install -d $RPM_BUILD_ROOT%{_mandir}/man{2,3} | |
73 | install man/*.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
74 | for f in man/*.1 ; do | |
75 | install $f $RPM_BUILD_ROOT%{_mandir}/man2/`basename $f .1`.2 | |
76 | done | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc ChangeLog TODO | |
87 | %attr(755,root,root) %{_libdir}/libaio.so.*.*.* | |
88 | ||
89 | %files devel | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_libdir}/libaio.so | |
92 | %{_includedir}/libaio.h | |
93 | %{_mandir}/man2/io_*.2* | |
94 | %{_mandir}/man3/*io*.3* | |
95 | ||
96 | %files static | |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/libaio.a |