]> git.pld-linux.org Git - packages/libaio.git/blame - libaio.spec
- drop Werror from test suite
[packages/libaio.git] / libaio.spec
CommitLineData
382975ad
JB
1#
2# Conditional build:
3%bcond_without tests # don't perform make partcheck
4#
bb7286e8 5Summary: Linux-native asynchronous I/O access library
97a58730 6Summary(pl.UTF-8): Biblioteka natywnego dla Linuksa asynchronicznego dostępu do wejścia/wyjścia
bb7286e8 7Name: libaio
9d128561
AM
8Version: 0.3.109
9Release: 1
bb7286e8
JB
10License: LGPL v2+
11Group: Libraries
8b5c9a1e
AM
12Source0: ftp://ftp.kernel.org/pub/linux/libs/aio/%{name}-%{version}.tar.gz
13# Source0-md5: 435a5b16ca6198eaf01155263d855756
9d128561 14Patch0: %{name}-DESTDIR.patch
c7725059 15Patch1: %{name}-Werror.patch
bb7286e8
JB
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
20a richer API and capability set than the simple POSIX async I/O
c44802ec
ER
21facility.
22
23This library, libaio, provides the Linux-native API for async I/O. The
24POSIX async I/O facility requires this library in order to provide
25kernel-accelerated async I/O capabilities, as do applications which
26require the Linux-native async I/O API.
bb7286e8 27
df913f84
JR
28%description -l pl.UTF-8
29Natywna dla Linuksa obsługa asynchronicznego wejścia/wyjścia ("async
30I/O" lub "aio") ma bogatsze API i zestaw możliwości niż proste
c44802ec
ER
31asynchroniczne wejście/wyjście zgodne z POSIX.
32
33Ta biblioteka - libaio - udostępnia natywne Linuksowe API dla
34asynchronicznego we/wy. Zgodne z POSIX asynchroniczne we/wy wymaga tej
35biblioteki do udostępnienia przyspieszanych przez jądro możliwości
36asynchronicznego we/wy, podobnie jak aplikacje wymagające natywnego
37dla Linuksa API asynchronicznego we/wy.
bb7286e8
JB
38
39%package devel
40Summary: Header files for libaio library
97a58730 41Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libaio
bb7286e8
JB
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
44
45%description devel
46Header files for libaio library.
47
df913f84
JR
48%description devel -l pl.UTF-8
49Pliki nagłówkowe biblioteki libaio.
bb7286e8
JB
50
51%package static
52Summary: Static libaio library
97a58730 53Summary(pl.UTF-8): Statyczna biblioteka libaio
bb7286e8
JB
54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
56
57%description static
58Static libaio library.
59
df913f84 60%description static -l pl.UTF-8
bb7286e8
JB
61Statyczna biblioteka libaio.
62
63%prep
8b5c9a1e 64%setup -q
c862da45 65%patch0 -p1
c7725059 66%patch1 -p1
bb7286e8
JB
67
68%build
69%{__make} \
70 CC="%{__cc}" \
9d128561 71 CFLAGS="%{rpmcppflags} %{rpmcflags} -fomit-frame-pointer -fPIC -Wall -I. -nostdlib -nostartfiles"
bb7286e8 72
450ab932
AM
73%{?with_tests:%{__make} CC="%{__cc}" partcheck}
74
bb7286e8
JB
75%install
76rm -rf $RPM_BUILD_ROOT
3ebe367c 77install -d $RPM_BUILD_ROOT/%{_lib}
bb7286e8
JB
78
79%{__make} install \
3f1eec63
ER
80 libdir=/%{_lib} \
81 usrlibdir=%{_libdir} \
c44802ec 82 DESTDIR=$RPM_BUILD_ROOT
bb7286e8 83
48e39479
JB
84# omit some manuals:
85# man2/io_* already included in man-pages
86# some man3/aio_* already included in glibc-devel-doc (from man-pages)
87install -d $RPM_BUILD_ROOT%{_mandir}/man3
c44802ec
ER
88cp -a man/aio{,_cancel64,_error64,_fsync64,_init,_read64,_return64,_suspend64,_write64}.3 $RPM_BUILD_ROOT%{_mandir}/man3
89cp -a man/io*.3 $RPM_BUILD_ROOT%{_mandir}/man3
90cp -a man/lio*.3 $RPM_BUILD_ROOT%{_mandir}/man3
bb7286e8
JB
91
92%clean
93rm -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
JB
108%{_mandir}/man3/aio*.3*
109%{_mandir}/man3/io*.3*
110%{_mandir}/man3/lio_*.3*
bb7286e8
JB
111
112%files static
113%defattr(644,root,root,755)
114%{_libdir}/libaio.a
This page took 0.103163 seconds and 4 git commands to generate.