]>
Commit | Line | Data |
---|---|---|
382975ad JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # don't perform make partcheck | |
4 | # | |
bb7286e8 | 5 | Summary: Linux-native asynchronous I/O access library |
97a58730 | 6 | Summary(pl.UTF-8): Biblioteka natywnego dla Linuksa asynchronicznego dostępu do wejścia/wyjścia |
bb7286e8 | 7 | Name: libaio |
495ca9dc | 8 | Version: 0.3.113 |
2c476602 | 9 | Release: 1 |
bb7286e8 JB |
10 | License: LGPL v2+ |
11 | Group: Libraries | |
171550b8 | 12 | Source0: https://releases.pagure.org/libaio/%{name}-%{version}.tar.gz |
495ca9dc | 13 | # Source0-md5: 7d5be185f20eeaae15e267419950aaf7 |
9d128561 | 14 | Patch0: %{name}-DESTDIR.patch |
c7725059 | 15 | Patch1: %{name}-Werror.patch |
3bbf7e38 | 16 | Patch2: x32.patch |
4e305c82 | 17 | URL: https://pagure.io/libaio |
bb7286e8 JB |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
171550b8 JB |
20 | %define specflags -fomit-frame-pointer |
21 | ||
bb7286e8 JB |
22 | %description |
23 | The Linux-native asynchronous I/O facility ("async I/O", or "aio") has | |
24 | a richer API and capability set than the simple POSIX async I/O | |
c44802ec ER |
25 | facility. |
26 | ||
27 | This library, libaio, provides the Linux-native API for async I/O. The | |
28 | POSIX async I/O facility requires this library in order to provide | |
29 | kernel-accelerated async I/O capabilities, as do applications which | |
30 | require the Linux-native async I/O API. | |
bb7286e8 | 31 | |
df913f84 JR |
32 | %description -l pl.UTF-8 |
33 | Natywna dla Linuksa obsługa asynchronicznego wejścia/wyjścia ("async | |
34 | I/O" lub "aio") ma bogatsze API i zestaw możliwości niż proste | |
c44802ec ER |
35 | asynchroniczne wejście/wyjście zgodne z POSIX. |
36 | ||
37 | Ta biblioteka - libaio - udostępnia natywne Linuksowe API dla | |
38 | asynchronicznego we/wy. Zgodne z POSIX asynchroniczne we/wy wymaga tej | |
39 | biblioteki do udostępnienia przyspieszanych przez jądro możliwości | |
40 | asynchronicznego we/wy, podobnie jak aplikacje wymagające natywnego | |
41 | dla Linuksa API asynchronicznego we/wy. | |
bb7286e8 JB |
42 | |
43 | %package devel | |
44 | Summary: Header files for libaio library | |
97a58730 | 45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libaio |
bb7286e8 JB |
46 | Group: Development/Libraries |
47 | Requires: %{name} = %{version}-%{release} | |
48 | ||
49 | %description devel | |
50 | Header files for libaio library. | |
51 | ||
df913f84 JR |
52 | %description devel -l pl.UTF-8 |
53 | Pliki nagłówkowe biblioteki libaio. | |
bb7286e8 JB |
54 | |
55 | %package static | |
56 | Summary: Static libaio library | |
97a58730 | 57 | Summary(pl.UTF-8): Statyczna biblioteka libaio |
bb7286e8 JB |
58 | Group: Development/Libraries |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static libaio library. | |
63 | ||
df913f84 | 64 | %description static -l pl.UTF-8 |
bb7286e8 JB |
65 | Statyczna biblioteka libaio. |
66 | ||
67 | %prep | |
8b5c9a1e | 68 | %setup -q |
c862da45 | 69 | %patch0 -p1 |
c7725059 | 70 | %patch1 -p1 |
3bbf7e38 | 71 | %patch2 -p1 |
bb7286e8 JB |
72 | |
73 | %build | |
171550b8 | 74 | CFLAGS="%{rpmcppflags} %{rpmcflags}" \ |
bb7286e8 | 75 | %{__make} \ |
171550b8 | 76 | CC="%{__cc}" |
bb7286e8 | 77 | |
450ab932 AM |
78 | %{?with_tests:%{__make} CC="%{__cc}" partcheck} |
79 | ||
bb7286e8 JB |
80 | %install |
81 | rm -rf $RPM_BUILD_ROOT | |
3ebe367c | 82 | install -d $RPM_BUILD_ROOT/%{_lib} |
bb7286e8 JB |
83 | |
84 | %{__make} install \ | |
3f1eec63 ER |
85 | libdir=/%{_lib} \ |
86 | usrlibdir=%{_libdir} \ | |
c44802ec | 87 | DESTDIR=$RPM_BUILD_ROOT |
bb7286e8 | 88 | |
48e39479 | 89 | install -d $RPM_BUILD_ROOT%{_mandir}/man3 |
c44802ec | 90 | cp -a man/io*.3 $RPM_BUILD_ROOT%{_mandir}/man3 |
bb7286e8 JB |
91 | |
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post -p /sbin/ldconfig | |
96 | %postun -p /sbin/ldconfig | |
97 | ||
98 | %files | |
99 | %defattr(644,root,root,755) | |
100 | %doc ChangeLog TODO | |
3ebe367c | 101 | %attr(755,root,root) /%{_lib}/libaio.so.*.*.* |
c862da45 | 102 | %attr(755,root,root) %ghost /%{_lib}/libaio.so.1 |
bb7286e8 JB |
103 | |
104 | %files devel | |
105 | %defattr(644,root,root,755) | |
106 | %attr(755,root,root) %{_libdir}/libaio.so | |
107 | %{_includedir}/libaio.h | |
f3df8777 | 108 | %{_mandir}/man3/io*.3* |
bb7286e8 JB |
109 | |
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libaio.a |