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}-stable.tar.gz
15 # Source0-md5: f247d0671ea4fc95b191daf79cb762a0
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.
59 %setup -q -n %{name}-%{version}-stable
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-1.4.so.*.*.*
86 %attr(755,root,root) %ghost %{_libdir}/libevent-1.4.so.2
87 %attr(755,root,root) %{_libdir}/libevent_core-1.4.so.*.*.*
88 %attr(755,root,root) %ghost %{_libdir}/libevent_core-1.4.so.2
89 %attr(755,root,root) %{_libdir}/libevent_extra-1.4.so.*.*.*
90 %attr(755,root,root) %ghost %{_libdir}/libevent_extra-1.4.so.2
93 %defattr(644,root,root,755)
95 #%attr(755,root,root) %{_bindir}/event_rpcgen.py
96 %attr(755,root,root) %{_libdir}/libevent.so
97 %attr(755,root,root) %{_libdir}/libevent_core.so
98 %attr(755,root,root) %{_libdir}/libevent_extra.so
99 %{_libdir}/libevent.la
100 %{_libdir}/libevent_core.la
101 %{_libdir}/libevent_extra.la
102 %{_includedir}/evdns.h
103 %{_includedir}/event*.h
104 %{_includedir}/evhttp.h
105 %{_includedir}/evrpc.h
106 %{_includedir}/evutil.h
107 %{_mandir}/man3/evdns.3*
108 %{_mandir}/man3/event.3*
110 %if %{with static_libs}
112 %defattr(644,root,root,755)
113 %{_libdir}/libevent.a
114 %{_libdir}/libevent_core.a
115 %{_libdir}/libevent_extra.a