# # spec file for package libevent # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: libevent Version: 2.0.10 Release: 1 License: BSD3c(or similar) Summary: Library Providing an Event Handling API Url: http://monkey.org/~provos/libevent/ Group: Development/Libraries/C and C++ Source: http://monkey.org/~provos/libevent-%{version}-stable.tar.bz2 BuildRequires: pkg-config PreReq: %fillup_prereq PreReq: %insserv_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The libevent library provides a mechanism to execute a function when a specific event on a file descriptor occurs or after a given time has passed. %define library_name libevent-2_0-5 %define debug_package_requires %{library_name} = %{version}-%{release} %package -n libevent-2_0-5 License: BSD3c(or similar) Summary: Shared libraries from libevent Group: Development/Libraries/C and C++ Provides: %{name} = %{version} Obsoletes: %{name} <= %{version} %description -n libevent-2_0-5 The libevent library provides a mechanism to execute a function when a specific event on a file descriptor occurs or after a given time has passed. This package holds the shared libraries for libevent. %package devel License: BSD3c(or similar) Summary: Development files for libevent2 Group: Development/Libraries/C and C++ Requires: %{library_name} = %{version} Requires: glibc-devel Provides: %{name}:/usr/include/event.h # Both have /usr/include/event.h Conflicts: libev-devel %description devel The libevent library provides a mechanism to execute a function when a specific event on a file descriptor occurs or after a given time has passed. This package holds the development files for libevent2. %prep %setup -q -n %{name}-%{version}-stable %build %configure --disable-static %{__make} %{?_smp_mflags} %install %makeinstall find %{buildroot}%{_libdir} -name "*.la" -delete -print %clean rm -rf %{buildroot} %post -n %{library_name} -p /sbin/ldconfig %postun -n %{library_name} -p /sbin/ldconfig %files -n %{library_name} %defattr(-,root,root,-) %{_libdir}/libevent-2.0.so.5* %{_libdir}/libevent_core-2.0.so.5* %{_libdir}/libevent_extra-2.0.so.5* %{_libdir}/libevent_pthreads-2.0.so.5* %files devel %defattr(-,root,root) %{_bindir}/event_rpcgen.py %{_includedir}/*.h %{_includedir}/event2 %{_libdir}/libevent.so %{_libdir}/libevent_core.so %{_libdir}/libevent_extra.so %{_libdir}/libevent_pthreads.so %{_libdir}/pkgconfig/libevent.pc %{_libdir}/pkgconfig/libevent_pthreads.pc %changelog