]> git.pld-linux.org Git - packages/libaio.git/blame - libaio.spec
- updated to 0.3.107 (from Fedora)
[packages/libaio.git] / libaio.spec
CommitLineData
bb7286e8 1Summary: Linux-native asynchronous I/O access library
97a58730 2Summary(pl.UTF-8): Biblioteka natywnego dla Linuksa asynchronicznego dostępu do wejścia/wyjścia
bb7286e8 3Name: libaio
c862da45
JB
4Version: 0.3.107
5Release: 1
bb7286e8
JB
6License: LGPL v2+
7Group: Libraries
c862da45
JB
8# http://download.fedoraproject.org/pub/fedora/linux/development/source/SRPMS/libaio-0.3.107-2.src.rpm
9Source0: %{name}-%{version}.tar.gz
10Patch0: %{name}-arches.patch
f3df8777 11# Source0-md5: 9480e31cce6506091080d59211089bd4
bb7286e8
JB
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
16a richer API and capability set than the simple POSIX async I/O
17facility. This library, libaio, provides the Linux-native API for
18async I/O. The POSIX async I/O facility requires this library in order
19to provide kernel-accelerated async I/O capabilities, as do
20applications which require the Linux-native async I/O API.
21
df913f84
JR
22%description -l pl.UTF-8
23Natywna dla Linuksa obsługa asynchronicznego wejścia/wyjścia ("async
24I/O" lub "aio") ma bogatsze API i zestaw możliwości niż proste
25asynchroniczne wejście/wyjście zgodne z POSIX. Ta biblioteka - libaio
26- udostępnia natywne Linuksowe API dla asynchronicznego we/wy. Zgodne
27z POSIX asynchroniczne we/wy wymaga tej biblioteki do udostępnienia
28przyspieszanych przez jądro możliwości asynchronicznego we/wy,
29podobnie jak aplikacje wymagające natywnego dla Linuksa API
bb7286e8
JB
30asynchronicznego we/wy.
31
32%package devel
33Summary: Header files for libaio library
97a58730 34Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libaio
bb7286e8
JB
35Group: Development/Libraries
36Requires: %{name} = %{version}-%{release}
37
38%description devel
39Header files for libaio library.
40
df913f84
JR
41%description devel -l pl.UTF-8
42Pliki nagłówkowe biblioteki libaio.
bb7286e8
JB
43
44%package static
45Summary: Static libaio library
97a58730 46Summary(pl.UTF-8): Statyczna biblioteka libaio
bb7286e8
JB
47Group: Development/Libraries
48Requires: %{name}-devel = %{version}-%{release}
49
50%description static
51Static libaio library.
52
df913f84 53%description static -l pl.UTF-8
bb7286e8
JB
54Statyczna 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
66rm -rf $RPM_BUILD_ROOT
3ebe367c 67install -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)
76install -d $RPM_BUILD_ROOT%{_mandir}/man3
77install man/aio{,_cancel64,_error64,_fsync64,_init,_read64,_return64,_suspend64,_write64}.3 $RPM_BUILD_ROOT%{_mandir}/man3
78install man/io*.3 $RPM_BUILD_ROOT%{_mandir}/man3
79install man/lio*.3 $RPM_BUILD_ROOT%{_mandir}/man3
bb7286e8 80
3ebe367c 81# move to /%{_lib}, for multipath-tools
c862da45
JB
82mv -f $RPM_BUILD_ROOT%{_libdir}/libaio.so.* $RPM_BUILD_ROOT/%{_lib}
83ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libaio.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libaio.so
3ebe367c 84
bb7286e8
JB
85%clean
86rm -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
This page took 0.038465 seconds and 4 git commands to generate.