diff --git a/FED02-fix-pytevent-build.patch b/FED02-fix-pytevent-build.patch new file mode 100644 index 0000000..8b3010b --- /dev/null +++ b/FED02-fix-pytevent-build.patch @@ -0,0 +1,50 @@ +diff -ruN tevent-0.9.14.old/tevent.py tevent-0.9.14/tevent.py +--- tevent-0.9.14.old/tevent.py 1969-12-31 19:00:00.000000000 -0500 ++++ tevent-0.9.14/tevent.py 2011-12-06 20:07:08.386154680 -0500 +@@ -0,0 +1,29 @@ ++#!/usr/bin/python ++# ++# Python integration for tevent ++# ++# Copyright (C) Jelmer Vernooij 2011 ++# ++# ** NOTE! The following LGPL license applies to the tevent ++# ** library. This does NOT imply that all of Samba is released ++# ** under the LGPL ++# ++# This library is free software; you can redistribute it and/or ++# modify it under the terms of the GNU Lesser General Public ++# License as published by the Free Software Foundation; either ++# version 3 of the License, or (at your option) any later version. ++# ++# This library is distributed in the hope that it will be useful, ++# but WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++# Lesser General Public License for more details. ++# ++# You should have received a copy of the GNU Lesser General Public ++# License along with this library; if not, see . ++ ++from _tevent import ( ++ backend_list, ++ Context, ++ Signal, ++ ) ++ +diff -ruN tevent-0.9.14.old/wscript tevent-0.9.14/wscript +--- tevent-0.9.14.old/wscript 2011-08-10 02:37:18.000000000 -0400 ++++ tevent-0.9.14/wscript 2011-12-06 20:11:42.354645305 -0500 +@@ -94,6 +94,13 @@ + enabled=True, + realname='_tevent.so') + ++ # install out various python scripts for use by make test ++ bld.SAMBA_SCRIPT('tevent_python', ++ pattern='tevent.py', ++ installdir='python') ++ ++ bld.INSTALL_WILDCARD('${PYTHONDIR}', 'tevent.py', flat=False) ++ + + def test(ctx): + '''test tevent''' diff --git a/libtevent.spec b/libtevent.spec index 2aaa505..9952b29 100644 --- a/libtevent.spec +++ b/libtevent.spec @@ -6,7 +6,7 @@ Name: libtevent Version: 0.9.14 -Release: 4%{?dist} +Release: 5%{?dist} Group: System Environment/Daemons Summary: The tevent library License: LGPLv3+ @@ -124,6 +124,9 @@ rm -rf $RPM_BUILD_ROOT %postun -p /sbin/ldconfig %changelog +* Tue Dec 06 2011 Stephen Gallagher - 0.9.14-4 +- Include missing patch file + * Tue Dec 06 2011 Stephen Gallagher - 0.9.14-4 - Build pytevent properly