diff --git a/libverto-0.2.4-fix-libev.patch b/libverto-0.2.4-fix-libev.patch new file mode 100644 index 0000000..4e36166 --- /dev/null +++ b/libverto-0.2.4-fix-libev.patch @@ -0,0 +1,14 @@ +diff --git a/src/verto-libev.c b/src/verto-libev.c +index 2eb08fc..9c7c324 100644 +--- a/src/verto-libev.c ++++ b/src/verto-libev.c +@@ -106,7 +106,9 @@ libev_ctx_set_flags(verto_mod_ctx *ctx, const verto_ev *ev, + if (verto_get_flags(ev) & VERTO_EV_FLAG_IO_WRITE) + events |= EV_WRITE; + ++ ev_io_stop(ctx, (ev_io*) evpriv); + ev_io_set(((ev_io*) evpriv), verto_get_fd(ev), events); ++ ev_io_start(ctx, (ev_io*) evpriv); + } + } + diff --git a/libverto.spec b/libverto.spec index 1780c8f..1000bbb 100644 --- a/libverto.spec +++ b/libverto.spec @@ -1,11 +1,13 @@ Name: libverto Version: 0.2.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Main loop abstraction library License: MIT URL: https://fedorahosted.org/libverto/ Source0: http://fedorahosted.org/releases/l/i/%{name}/%{name}-%{version}.tar.gz +# From upstream, will be in next release +Patch1: libverto-0.2.4-fix-libev.patch BuildRequires: glib2-devel BuildRequires: libev-devel @@ -114,6 +116,7 @@ developing applications that use %{name}-tevent. %prep %setup -q +%patch1 -p1 %build %configure --disable-static @@ -183,7 +186,10 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %{_libdir}/pkgconfig/%{name}-tevent.pc %changelog -* Thu Feb 09 2012 Nathaniel McCallum - 0.2.4-1 +* Mon Feb 13 2012 Nathaniel McCallum - 0.2.4-2 +- Added libverto-0.2.4-fix-libev.patch + +* Thu Feb 09 2012 Nathaniel McCallum - 0.2.4-1 - Update to 0.2.4 release * Wed Feb 08 2012 Nathaniel McCallum - 0.2.3-1