From 28f7f1145094fc969368f3594293b1344a895bd8 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 24 Sep 2008 13:34:20 +0000 Subject: [PATCH] - apply the python makefile patch for #463733 daniel --- libvirt.spec | 7 ++++++- python_make.patch | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 python_make.patch diff --git a/libvirt.spec b/libvirt.spec index c55d5ee..2900b81 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -34,10 +34,11 @@ Summary: Library providing a simple API virtualization Name: libvirt Version: 0.4.6 -Release: 2%{?dist}%{?extra_release} +Release: 3%{?dist}%{?extra_release} License: LGPLv2+ Group: Development/Libraries Source: libvirt-%{version}.tar.gz +Patch0: python_make.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root URL: http://libvirt.org/ BuildRequires: python python-devel @@ -159,6 +160,7 @@ of recent versions of Linux (and other OSes). %prep %setup -q +%patch0 -p0 %build %if ! %{with_xen} @@ -394,6 +396,9 @@ fi %endif %changelog +* Wed Sep 24 2008 Daniel Veillard - 0.4.6-3.fc10 +- apply the python makefile patch for #463733 + * Wed Sep 24 2008 Daniel Veillard - 0.4.6-2.fc10 - upstream release 0.4.6 - fixes some problems with 0.4.5 diff --git a/python_make.patch b/python_make.patch new file mode 100644 index 0000000..d451524 --- /dev/null +++ b/python_make.patch @@ -0,0 +1,35 @@ +Index: python/Makefile.am +=================================================================== +RCS file: /data/cvs/libxen/python/Makefile.am,v +retrieving revision 1.13 +diff -u -p -r1.13 Makefile.am +--- python/Makefile.am 5 Feb 2008 19:27:37 -0000 1.13 ++++ python/Makefile.am 24 Sep 2008 13:21:06 -0000 +@@ -50,7 +50,7 @@ GENERATED= libvirt-export.c \ + $(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC) + $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir) + +-libvirt.py: $(srcdir)/libvir.py libvirtclass.py ++libvirt.py: $(srcdir)/libvir.py $(GENERATED) + cat $(srcdir)/libvir.py libvirtclass.py > $@-t + mv $@-t $@ + +*** python/Makefile.in.orig 2008-09-24 15:19:20.000000000 +0200 +--- python/Makefile.in 2008-09-24 15:20:07.000000000 +0200 +*************** uninstall-am: uninstall-local uninstall- +*** 1027,1033 **** + @WITH_PYTHON_TRUE@$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC) + @WITH_PYTHON_TRUE@ $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir) + +! @WITH_PYTHON_TRUE@libvirt.py: $(srcdir)/libvir.py libvirtclass.py + @WITH_PYTHON_TRUE@ cat $(srcdir)/libvir.py libvirtclass.py > $@-t + @WITH_PYTHON_TRUE@ mv $@-t $@ + +--- 1027,1033 ---- + @WITH_PYTHON_TRUE@$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC) + @WITH_PYTHON_TRUE@ $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir) + +! @WITH_PYTHON_TRUE@libvirt.py: $(srcdir)/libvir.py $(GENERATED) + @WITH_PYTHON_TRUE@ cat $(srcdir)/libvir.py libvirtclass.py > $@-t + @WITH_PYTHON_TRUE@ mv $@-t $@ +