summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-11-12 07:21:24 +0100
committerRemi Collet <fedora@famillecollet.com>2013-11-12 07:21:24 +0100
commit84b77a41f6c1113d7d127f7f9e0dc440448b7281 (patch)
tree836ecc7a313edca9527cd5801692f8ddcf373027
parent7ec7d2635ef63d73e34b603b1920278af38e21f4 (diff)
libevent-last: 2.0.21 (test)
-rw-r--r--libevent-last.spec32
-rw-r--r--libevent-nonettests.patch11
2 files changed, 38 insertions, 5 deletions
diff --git a/libevent-last.spec b/libevent-last.spec
index 95dc29e..c27b7ac 100644
--- a/libevent-last.spec
+++ b/libevent-last.spec
@@ -1,7 +1,10 @@
%global libname libevent
+# Regression tests take a long time, you can skip 'em with this
+%{!?runselftest: %{expand: %%global runselftest 1}}
+
Name: libevent-last
-Version: 2.0.18
+Version: 2.0.21
Release: 1%{?dist}
Summary: Abstract asynchronous event notification library
@@ -14,6 +17,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel
Patch00: libevent-2.0.10-stable-configure.patch
+# Disable network tests
+Patch01: libevent-nonettests.patch
%description
@@ -43,6 +48,7 @@ you will need to install %{name}-devel.
# 477685 - libevent-devel multilib conflict
%patch00 -p1
+%patch01 -p1 -b .nonettests
%build
@@ -57,14 +63,24 @@ make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%check
+%if %runselftest
+make check
+%endif
+
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
-%defattr(-,root,root,0755)
-%doc README
+%defattr(-,root,root,-)
+%doc ChangeLog LICENSE README
%{_libdir}/libevent-*.so.*
%{_libdir}/libevent_core-*.so.*
%{_libdir}/libevent_extra-*.so.*
@@ -72,7 +88,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_libdir}/libevent_pthreads-*.so.*
%files devel
-%defattr(-,root,root,0755)
+%defattr(-,root,root,-)
%{_includedir}/event.h
%{_includedir}/evdns.h
%{_includedir}/evhttp.h
@@ -87,15 +103,21 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_libdir}/pkgconfig/libevent.pc
%{_libdir}/pkgconfig/libevent_openssl.pc
%{_libdir}/pkgconfig/libevent_pthreads.pc
-
%{_bindir}/event_rpcgen.*
%changelog
+* Tue Nov 12 2013 Remi Collet <remi@fedoraproject.org> - 2.0.21-1
+- backport 2.0.21 for remi repo
+
* Thu Jul 25 2013 Remi Collet <remi@fedoraproject.org> - 2.0.18-3
- rename to libevent-last
- drop -doc sub-package
+* Thu May 2 2013 Orion Poplawski <orion@cora.nwra.com> - 2.0.21-1
+- Update to 2.0.21
+- Add %%check
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.18-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
diff --git a/libevent-nonettests.patch b/libevent-nonettests.patch
new file mode 100644
index 0000000..f62df5b
--- /dev/null
+++ b/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 },