From 8126c65369fbe8e5f5d48dd8c6f7e1e0a5640d1e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Dec 15 2015 13:11:59 +0000 Subject: import libevent2-2.0.21-1.1.el6 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e77141 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libevent-2.0.21-stable.tar.gz diff --git a/.libevent2.metadata b/.libevent2.metadata new file mode 100644 index 0000000..0327dc6 --- /dev/null +++ b/.libevent2.metadata @@ -0,0 +1 @@ +3e6674772eb77de24908c6267c698146420ab699 SOURCES/libevent-2.0.21-stable.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libevent-2.0.10-stable-configure.patch b/SOURCES/libevent-2.0.10-stable-configure.patch new file mode 100644 index 0000000..a53dd40 --- /dev/null +++ b/SOURCES/libevent-2.0.10-stable-configure.patch @@ -0,0 +1,25 @@ +diff -up libevent-2.0.12-stable/configure.in.orig libevent-2.0.12-stable/configure.in +--- libevent-2.0.12-stable/configure.in.orig 2011-06-03 15:43:34.000000000 -0400 ++++ libevent-2.0.12-stable/configure.in 2011-08-02 10:23:25.713704595 -0400 +@@ -341,8 +341,6 @@ AC_CHECK_FUNC(gethostbyname_r, [ + + fi + +-AC_CHECK_SIZEOF(long) +- + AC_MSG_CHECKING(for F_SETFD in fcntl.h) + AC_EGREP_CPP(yes, + [ +@@ -519,12 +517,7 @@ AC_CHECK_TYPES([fd_mask], , , + #include + #endif]) + +-AC_CHECK_SIZEOF(long long) +-AC_CHECK_SIZEOF(long) +-AC_CHECK_SIZEOF(int) +-AC_CHECK_SIZEOF(short) + AC_CHECK_SIZEOF(size_t) +-AC_CHECK_SIZEOF(void *) + + AC_CHECK_TYPES([struct in6_addr, struct sockaddr_in6, sa_family_t, struct addrinfo, struct sockaddr_storage], , , + [#define _GNU_SOURCE diff --git a/SOURCES/libevent-nonettests.patch b/SOURCES/libevent-nonettests.patch new file mode 100644 index 0000000..f62df5b --- /dev/null +++ b/SOURCES/libevent-nonettests.patch @@ -0,0 +1,11 @@ +diff -up libevent-2.0.21-stable/test/regress_main.c.orig libevent-2.0.21-stable/test/regress_main.c +--- libevent-2.0.21-stable/test/regress_main.c.orig 2012-11-02 11:57:00.000000000 -0400 ++++ libevent-2.0.21-stable/test/regress_main.c 2013-08-21 10:16:26.714288000 -0400 +@@ -370,7 +370,6 @@ struct testgroup_t testgroups[] = { + { "util/", util_testcases }, + { "bufferevent/", bufferevent_testcases }, + { "http/", http_testcases }, +- { "dns/", dns_testcases }, + { "evtag/", evtag_testcases }, + { "rpc/", rpc_testcases }, + { "thread/", thread_testcases }, diff --git a/SPECS/libevent2.spec b/SPECS/libevent2.spec new file mode 100644 index 0000000..a782710 --- /dev/null +++ b/SPECS/libevent2.spec @@ -0,0 +1,125 @@ +%global libname libevent + +Name: libevent2 +Version: 2.0.21 +Release: 1.1%{?dist} +Summary: Abstract asynchronous event notification library + +Group: System Environment/Libraries +License: BSD +URL: http://sourceforge.net/projects/levent/ +Source0: http://downloads.sourceforge.net/levent/%{libname}-%{version}-stable.tar.gz + +BuildRequires: doxygen openssl-devel + +Patch00: libevent-2.0.10-stable-configure.patch +# Disable network tests +Patch01: libevent-nonettests.patch + +%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. libevent is meant to replace the asynchronous event +loop found in event driven network servers. An application just needs +to call event_dispatch() and can then add or remove events dynamically +without having to change the event loop. + + +%package devel +Summary: Header files, libraries and development documentation for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +# same headers provided by both versions. +Conflicts: %{libname}-devel + +%description devel +This package contains the header files, static libraries and development +documentation for %{name}. If you like to develop programs using %{name}, +you will need to install %{name}-devel. + +%package doc +Summary: Development documentation for %{name} +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} +BuildArch: noarch + +%description doc +This package contains the development documentation for %{name}. +If you like to develop programs using %{name}-devel, you will +need to install %{name}-doc. + +%prep +%setup -q -n %{libname}-%{version}-stable + +# 477685 - libevent-devel multilib conflict +%patch00 -p1 +%patch01 -p1 -b .nonettests + +%build +%configure \ + --disable-dependency-tracking --disable-static +make %{?_smp_mflags} all + +# Create the docs +make doxygen + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel-%{version}/html +(cd doxygen/html; \ + install -p -m 644 *.* $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel-%{version}/html) + +mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel-%{version}/sample +(cd sample; \ + install -p -m 644 *.c Makefile* $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel-%{version}/sample) + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make check + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc ChangeLog LICENSE README +%{_libdir}/libevent-*.so.* +%{_libdir}/libevent_core-*.so.* +%{_libdir}/libevent_extra-*.so.* +%{_libdir}/libevent_openssl-*.so.* +%{_libdir}/libevent_pthreads-*.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/event.h +%{_includedir}/evdns.h +%{_includedir}/evhttp.h +%{_includedir}/evrpc.h +%{_includedir}/evutil.h +%{_includedir}/event2/*.h +%{_libdir}/libevent.so +%{_libdir}/libevent_core.so +%{_libdir}/libevent_extra.so +%{_libdir}/libevent_openssl.so +%{_libdir}/libevent_pthreads.so +%{_libdir}/pkgconfig/libevent.pc +%{_libdir}/pkgconfig/libevent_openssl.pc +%{_libdir}/pkgconfig/libevent_pthreads.pc +%{_bindir}/event_rpcgen.* + +%files doc +%defattr(-,root,root,-) +%{_docdir}/%{name}-devel-%{version}/html/* +%{_docdir}/%{name}-devel-%{version}/sample/* + +%changelog +* Wed Sep 09 2015 Paul Wouters - 2.0.21-1.1 +- Bump version to build for extras-rhel-6 +* Fri Aug 21 2015 Paul Wouters - 2.0.21-1 +- Resolves: rhbz#1242637 add libevent2 to RHEL6