3 %bcond_without static_libs # don't build static library
5 Summary: libeio - an asynchronous I/O library
9 License: BSD or GPL v2+
11 Source0: %{name}-20100311.tar.bz2
12 # Source0-md5: a3b50842b683b3dfd17af57db767e484
13 # cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/schmorpforge co libeio
14 URL: http://software.schmorp.de/pkg/libeio
15 BuildRequires: autoconf >= 2.50
16 BuildRequires: automake
18 BuildRequires: glibc-devel >= 6:2.4
19 BuildRequires: libtool
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Libeio is a full-featured asynchronous I/O library for C, modelled in
24 similar style and spirit as libev. Features include: asynchronous
25 read, write, open, close, stat, unlink, fdatasync, mknod, readdir etc.
26 (basically the full POSIX API). sendfile (native on solaris, linux,
27 hp-ux, freebsd, emulated everywehere else), readahead (emulated where
31 Summary: Header files for libeio library
32 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libeio
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 Header files for libeio library.
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe biblioteki libeio.
43 Summary: Static libeio library
44 Summary(pl.UTF-8): Statyczna biblioteka libeio
45 Group: Development/Libraries
46 Requires: %{name}-devel = %{version}-%{release}
49 Static libeio library.
51 %description static -l pl.UTF-8
52 Statyczna biblioteka libeio.
64 %{!?with_static_libs:--disable-static}
66 # override -O3 which overrides our optflags in configure
68 CFLAGS="%{rpmcflags} -D_GNU_SOURCE"
71 rm -rf $RPM_BUILD_ROOT
74 DESTDIR=$RPM_BUILD_ROOT
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/libeio.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libeio.so.1
89 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_libdir}/libeio.so
94 %if %{with static_libs}
96 %defattr(644,root,root,755)