From adcbf2609a38b3cff60b51cf1fbefb08e5dec54f Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 31 Oct 2012 09:08:48 -0700 Subject: [PATCH] Rebase for libevent 2.1.8 Change-Id: I17ab7b3c530efceffbbd8936f5e0ed20c8f1b846 Signed-off-by: DongHun Kwak --- packaging/baselibs.conf | 1 + packaging/libevent.manifest | 5 ++++ packaging/libevent.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 packaging/baselibs.conf create mode 100644 packaging/libevent.manifest create mode 100644 packaging/libevent.spec diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf new file mode 100644 index 0000000..89be0ed --- /dev/null +++ b/packaging/baselibs.conf @@ -0,0 +1 @@ +libevent-2_0-22 diff --git a/packaging/libevent.manifest b/packaging/libevent.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/libevent.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/libevent.spec b/packaging/libevent.spec new file mode 100644 index 0000000..3c8935c --- /dev/null +++ b/packaging/libevent.spec @@ -0,0 +1,69 @@ +Name: libevent +Version: 2.0.22 +Release: 0 +Summary: Library Providing an Event Handling API +License: BSD-2.0 +Group: Development/Libraries/C and C++ +Url: http://monkey.org/~provos/libevent/ +Source0: http://monkey.org/~provos/libevent-%{version}-stable.tar.gz +Source1: baselibs.conf +Source1001: libevent.manifest +BuildRequires: pkgconfig + +%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. + + +%package devel +Summary: Development files for libevent2 +Group: Development/Libraries/C and C++ +Requires: %name = %{version} +Requires: glibc-devel +Provides: %{name}:/usr/include/event.h + +%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 +cp %{SOURCE1001} . + +%build +%configure --disable-static +%{__make} %{?_smp_mflags} + +%install +%make_install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%{_libdir}/%{name}-2.0.so.5* +%{_libdir}/%{name}_core-2.0.so.5* +%{_libdir}/%{name}_extra-2.0.so.5* +%{_libdir}/%{name}_pthreads-2.0.so.5* + +%files devel +%manifest %{name}.manifest +%defattr(-,root,root) +%{_bindir}/event_rpcgen.py +%{_includedir}/*.h +%{_includedir}/event2 +%{_libdir}/%{name}.so +%{_libdir}/%{name}_core.so +%{_libdir}/%{name}_extra.so +%{_libdir}/%{name}_pthreads.so +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/pkgconfig/%{name}_pthreads.pc + +%changelog -- 2.7.4