[virt-tools-list] [Patch] fix some errors when building rpm package

Wen Congyang wency at cn.fujitsu.com
Tue Nov 30 02:35:35 UTC 2010


# HG changeset patch
# User Wen Congyang <wency at cn.fujitsu.com>
# Date 1291014041 -28800
# Node ID 798bc17bf986100a86d47058d8ddd8c9ebe6e59c
# Parent  f2d5683fb5edd8e24855637b92ea5ff580f734cc
fix some errors when building rpm package

When I build rpm package from souce, I receive the following
error message:
RPM build errors:
    File not found by glob: /home/wency/rpmbuild/BUILDROOT/virt-manager-0.8.5-1.el6.x86_64/usr/share/virt-manager/pixmaps/hicolor/*/*/*.png

STEP to build rpm package:
1. ./autobuild.sh

The environment variable AUTOBUILD_INSTALL_ROOT is not defined.

In this patch, I also add virt-manager-tui into %files.

diff -r f2d5683fb5ed -r 798bc17bf986 pixmaps/hicolor/16x16/actions/Makefile.am
--- a/pixmaps/hicolor/16x16/actions/Makefile.am	Mon Nov 29 19:14:43 2010 -0500
+++ b/pixmaps/hicolor/16x16/actions/Makefile.am	Mon Nov 29 15:00:41 2010 +0800
@@ -1,5 +1,5 @@
 
 pixmapdir = $(pkgdatadir)/pixmaps/hicolor/16x16/actions
-pixmap_DATA = $(wildcard *.png)
+pixmap_DATA = $(wildcard $(srcdir)/*.png)
 
 EXTRA_DIST = $(pixmap_DATA)
diff -r f2d5683fb5ed -r 798bc17bf986 pixmaps/hicolor/22x22/actions/Makefile.am
--- a/pixmaps/hicolor/22x22/actions/Makefile.am	Mon Nov 29 19:14:43 2010 -0500
+++ b/pixmaps/hicolor/22x22/actions/Makefile.am	Mon Nov 29 15:00:41 2010 +0800
@@ -1,5 +1,5 @@
 
 pixmapdir = $(pkgdatadir)/pixmaps/hicolor/22x22/actions
-pixmap_DATA = $(wildcard *.png)
+pixmap_DATA = $(wildcard $(srcdir)/*.png)
 
 EXTRA_DIST = $(pixmap_DATA)
diff -r f2d5683fb5ed -r 798bc17bf986 pixmaps/hicolor/24x24/actions/Makefile.am
--- a/pixmaps/hicolor/24x24/actions/Makefile.am	Mon Nov 29 19:14:43 2010 -0500
+++ b/pixmaps/hicolor/24x24/actions/Makefile.am	Mon Nov 29 15:00:41 2010 +0800
@@ -1,4 +1,4 @@
 pixmapdir = $(pkgdatadir)/pixmaps/hicolor/24x24/actions
-pixmap_DATA = $(wildcard *.png)
+pixmap_DATA = $(wildcard $(srcdir)/*.png)
 
 EXTRA_DIST = $(pixmap_DATA)
diff -r f2d5683fb5ed -r 798bc17bf986 pixmaps/hicolor/32x32/actions/Makefile.am
--- a/pixmaps/hicolor/32x32/actions/Makefile.am	Mon Nov 29 19:14:43 2010 -0500
+++ b/pixmaps/hicolor/32x32/actions/Makefile.am	Mon Nov 29 15:00:41 2010 +0800
@@ -1,4 +1,4 @@
 pixmapdir = $(pkgdatadir)/pixmaps/hicolor/32x32/actions
-pixmap_DATA = $(wildcard *.png)
+pixmap_DATA = $(wildcard $(srcdir)/*.png)
 
 EXTRA_DIST = $(pixmap_DATA)
diff -r f2d5683fb5ed -r 798bc17bf986 virt-manager.spec.in
--- a/virt-manager.spec.in	Mon Nov 29 19:14:43 2010 -0500
+++ b/virt-manager.spec.in	Mon Nov 29 15:00:41 2010 +0800
@@ -125,6 +125,7 @@
 %doc README COPYING COPYING-DOCS AUTHORS ChangeLog NEWS
 %{_sysconfdir}/gconf/schemas/%{name}.schemas
 %{_bindir}/%{name}
+%{_bindir}/%{name}-tui
 %{_libexecdir}/%{name}-launch
 
 %{_mandir}/man1/%{name}.1*
@@ -145,6 +146,9 @@
 %dir %{_datadir}/%{name}/virtManager/
 %{_datadir}/%{name}/virtManager/*.py*
 
+%dir %{_datadir}/%{name}/virtManagerTui/
+%{_datadir}/%{name}/virtManagerTui/*.py*
+
 # Revive when we update help docs
 #%{_datadir}/omf/%{name}/
 #%{_datadir}/gnome/help/%{name}




More information about the virt-tools-list mailing list