Name: libevent Version: 1.1a Release: 0.fdr.0 Epoch: 0 Summary: libevent is meant to replace the event loop found in event driven network servers. Group: Applications/Libraries License: GPL URL: http://www.monkey.org/~provos/libevent/ Source0: http://www.monkey.org/~provos/libevent-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also support callbacks due to signals or regular timeouts. # ----------------------------------------------------------------------------- %prep %setup -q # ----------------------------------------------------------------------------- %build %configure make %{?_smp_mflags} # ----------------------------------------------------------------------------- %install rm -rf $RPM_BUILD_ROOT %makeinstall rm -f $RPM_BUILD_ROOT%{_infodir}/dir find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' # ----------------------------------------------------------------------------- %clean rm -rf $RPM_BUILD_ROOT # ----------------------------------------------------------------------------- # ldconfig's for packages that install %{_libdir}/*.so.* # -> Don't forget Requires(post,postun): /sbin/ldconfig # ...and install-info's for ones that install %{_infodir}/*.info* # -> Don't forget Requires(post,preun): /sbin/install-info %post /sbin/ldconfig /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || : %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info \ %{_infodir}/dir 2>/dev/null || : fi %postun /sbin/ldconfig # ----------------------------------------------------------------------------- %files %defattr(-,root,root,-) %{_libdir}/*.so %{_libdir}/*.so.* %{_libdir}/*.a %{_includedir}/* %{_mandir}/* # ----------------------------------------------------------------------------- %changelog * Fri Jun 16 2005 Harry Hoffman - epoch:version-release - Initial RPM release.