Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 2a4b76f7e2ddd5afd19260c99872fa9d > files > 1

spice-0.12.2-5.mga3.src.rpm

diff -up spice-0.12.2/configure.ac.automake-1_13 spice-0.12.2/configure.ac
--- spice-0.12.2/configure.ac.automake-1_13	2012-12-19 15:07:09.000000000 +0100
+++ spice-0.12.2/configure.ac	2012-12-30 08:00:36.338459455 +0100
@@ -26,7 +26,7 @@ AC_INIT(spice, [m4_esyscmd(build-aux/git
         [spice-devel@lists.freedesktop.org], spice)
 
 AC_CONFIG_MACRO_DIR([m4])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_AUX_DIR(.)
 
 # For automake >= 1.12
@@ -164,8 +164,11 @@ AM_CONDITIONAL(SUPPORT_AUTOMATED_TESTS,
 dnl =========================================================================
 dnl Check deps
 
+PKG_CHECK_MODULES(PROTOCOL, spice-protocol >= 0.12.2)
+AC_SUBST(PROTOCOL_CFLAGS)
+
 AC_CONFIG_SUBDIRS([spice-common])
-COMMON_CFLAGS='-I ${top_srcdir}/spice-common/ -I ${top_srcdir}/spice-common/spice-protocol/'
+COMMON_CFLAGS='-I ${top_srcdir}/spice-common/ ${PROTOCOL_CFLAGS}'
 AC_SUBST(COMMON_CFLAGS)
 
 AC_CHECK_LIBM
diff -up spice-0.12.2/spice-common/common/Makefile.am.automake-1_13 spice-0.12.2/spice-common/common/Makefile.am
--- spice-0.12.2/spice-common/common/Makefile.am.automake-1_13	2012-12-05 08:35:17.000000000 +0100
+++ spice-0.12.2/spice-common/common/Makefile.am	2012-12-30 08:05:51.364331625 +0100
@@ -14,7 +14,7 @@ SERVER_MARSHALLERS =					\
 	$(srcdir)/generated_server_marshallers.h	\
 	$(NULL)
 
-BUILT_SOURCES = $(CLIENT_MARSHALLERS) $(SERVER_MARSHALLERS) $(top_srcdir)/spice-protocol/spice/enums.h
+BUILT_SOURCES = $(CLIENT_MARSHALLERS) $(SERVER_MARSHALLERS)
 
 noinst_LTLIBRARIES = libspice-common.la libspice-common-server.la libspice-common-client.la
 libspice_common_la_SOURCES =		\
@@ -121,12 +121,6 @@ generated_server_marshallers.c: $(top_sr
 generated_server_marshallers.h: $(top_srcdir)/spice.proto $(MARSHALLERS_DEPS)
 	$(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-marshallers $(STRUCTS) --server --include messages.h -H $< $@ >/dev/null
 
-# this is going to upset automake distcheck, since we try to write to
-# readonly srcdir. To limit the fail chances, rebuild automatically
-# enums.h only if the spice.proto has changed.
-$(top_srcdir)/spice-protocol/spice/enums.h: $(top_srcdir)/spice.proto # $(MARSHALLERS_DEPS)
-	$(AM_V_GEN)$(PYTHON) $(top_srcdir)/spice_codegen.py --generate-enums $< $@ >/dev/null
-
 EXTRA_DIST =				\
 	$(CLIENT_MARSHALLERS)		\
 	$(SERVER_MARSHALLERS)		\
diff -up spice-0.12.2/spice-common/configure.ac.automake-1_13 spice-0.12.2/spice-common/configure.ac
--- spice-0.12.2/spice-common/configure.ac.automake-1_13	2012-12-05 08:35:17.000000000 +0100
+++ spice-0.12.2/spice-common/configure.ac	2012-12-30 08:00:36.344459395 +0100
@@ -6,7 +6,7 @@ AC_INIT([spice-common],
 
 AC_CONFIG_SRCDIR([common/bitops.h])
 AC_CONFIG_MACRO_DIR([m4])
-AM_CONFIG_HEADER([config.h])
+AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_AUX_DIR([build-aux])
 
 # For automake >= 1.12
@@ -26,8 +26,7 @@ fi
 AM_PROG_CC_C_O
 
 # Checks for libraries
-AC_CONFIG_SUBDIRS([spice-protocol])
-PROTOCOL_CFLAGS='-I ${top_srcdir}/spice-protocol'
+PKG_CHECK_MODULES(PROTOCOL, spice-protocol >= 0.12.2)
 AC_SUBST(PROTOCOL_CFLAGS)
 
 PKG_CHECK_MODULES(PIXMAN, pixman-1 >= 0.17.7)
diff -up spice-0.12.2/spice-common/Makefile.am.automake-1_13 spice-0.12.2/spice-common/Makefile.am
--- spice-0.12.2/spice-common/Makefile.am.automake-1_13	2012-12-05 08:35:17.000000000 +0100
+++ spice-0.12.2/spice-common/Makefile.am	2012-12-30 08:00:36.350459336 +0100
@@ -2,7 +2,7 @@ NULL =
 ACLOCAL_AMFLAGS = -I m4
 
 SUBDIRS = python_modules common
-DIST_SUBDIRS = spice-protocol $(SUBDIRS)
+DIST_SUBDIRS = $(SUBDIRS)
 
 EXTRA_DIST =				\
 	spice_codegen.py		\