3 %bcond_without static_libs # don't build static library
5 Summary: libevent - an event notification library
6 Summary(pl.UTF-8): libevent - biblioteka powiadamiająca o zdarzeniach
13 #Source0Download: http://www.monkey.org/~provos/libevent/
14 Source0: http://www.monkey.org/~provos/%{name}-%{version}.tar.gz
15 # Source0-md5: 664a429247e7737162bd667e166b2761
16 URL: http://www.monkey.org/~provos/libevent/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: libtool
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The libevent API provides a mechanism to execute a callback function
24 when a specific event occurs on a file descriptor or after a timeout
25 has been reached. It is meant to replace the asynchronous event loop
26 found in event-driven network servers.
28 %description -l pl.UTF-8
29 API libevent dostarcza mechanizm do wykonywania funkcji callback,
30 kiedy nastąpiło określone zdarzenie w deskryptorze pliku lub po
31 określonym czasie. Ma to na celu zastąpienie asynchronicznych pętli w
32 sterowanych zdarzeniami usługach sieciowych.
35 Summary: Header files for libevent library
36 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libevent
37 Group: Development/Libraries
38 Requires: %{name} = %{epoch}:%{version}-%{release}
41 Header files for libevent library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki libevent.
47 Summary: Static libevent library
48 Summary(pl.UTF-8): Statyczna biblioteka libevent
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
53 Static libevent library.
55 %description static -l pl.UTF-8
56 Statyczna biblioteka libevent.
68 %{!?with_static_libs:--disable-static}
72 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
78 rm -rf $RPM_BUILD_ROOT
80 %post -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
84 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/libevent-*.so.*.*.*
88 %defattr(644,root,root,755)
90 #%attr(755,root,root) %{_bindir}/event_rpcgen.py
91 %attr(755,root,root) %{_libdir}/libevent.so
92 %{_libdir}/libevent.la
94 %{_mandir}/man3/ev*.3*
96 %if %{with static_libs}
98 %defattr(644,root,root,755)