rpms/moblin-app-installer/F-12 0001-Fix-build-when-not-using-PackageKit-glib-such-as-wit.patch, NONE, 1.1 mai-fixPK.patch, NONE, 1.1 moblin-app-installer.spec, 1.1, 1.2

Peter Robinson pbrobinson at fedoraproject.org
Tue Jan 26 15:53:50 UTC 2010


Author: pbrobinson

Update of /cvs/pkgs/rpms/moblin-app-installer/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5250

Modified Files:
	moblin-app-installer.spec 
Added Files:
	0001-Fix-build-when-not-using-PackageKit-glib-such-as-wit.patch 
	mai-fixPK.patch 
Log Message:
- new build

0001-Fix-build-when-not-using-PackageKit-glib-such-as-wit.patch:
 Makefile.am         |    7 ++++++-
 test-object-store.c |   10 +++++++++-
 test-repo-changed.c |   10 ++++++++--
 3 files changed, 23 insertions(+), 4 deletions(-)

--- NEW FILE 0001-Fix-build-when-not-using-PackageKit-glib-such-as-wit.patch ---
>From 959048458574b2730884432fc998790fe3e7f301 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard at hughsie.com>
Date: Tue, 26 Jan 2010 15:04:40 +0000
Subject: [PATCH] Fix build when not using PackageKit-glib, such as with Fedora 13

---
 tests/Makefile.am         |    7 ++++++-
 tests/test-object-store.c |   10 +++++++++-
 tests/test-repo-changed.c |    9 ++++++++-
 3 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 55885eb..74946fe 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -9,12 +9,16 @@ AM_CFLAGS = \
 	$(NULL)
 
 bin_PROGRAMS = \
-	test-concurrent-install \
 	test-expander \
 	test-object-store \
 	test-repo-changed \
 	$(NULL)
 
+if !HAVE_PACKAGEKIT_GLIB2
+bin_PROGRAMS += \
+	test-concurrent-install \
+	$(NULL)
+
 test_concurrent_install_SOURCES = \
 	test-concurrent-install.c \
 	$(NULL)
@@ -22,6 +26,7 @@ test_concurrent_install_SOURCES = \
 test_concurrent_install_LDADD = \
 	$(MAI_LIBS) \
 	$(NULL)
+endif
 
 test_expander_SOURCES = \
 	test-expander.c \
diff --git a/tests/test-object-store.c b/tests/test-object-store.c
index 6d121a5..c4c5941 100644
--- a/tests/test-object-store.c
+++ b/tests/test-object-store.c
@@ -1,8 +1,16 @@
 
+#include <config.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 
-#include <packagekit-glib/packagekit.h>
+#ifdef HAVE_PACKAGEKIT_GLIB2
+ #define I_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE
+ #include <packagekit-glib2/packagekit.h>
+#else
+ #include <packagekit-glib/packagekit.h>
+#endif
+
 #include <clutter/clutter.h>
 #include <gtk/gtk.h>
 #include "mai-object-store.h"
diff --git a/tests/test-repo-changed.c b/tests/test-repo-changed.c
index b2ad48c..090d72f 100644
--- a/tests/test-repo-changed.c
+++ b/tests/test-repo-changed.c
@@ -1,5 +1,12 @@
 
-#include <packagekit-glib/packagekit.h>
+#include <config.h>
+
+#ifdef HAVE_PACKAGEKIT_GLIB2
+ #define I_KNOW_THE_PACKAGEKIT_GLIB2_API_IS_SUBJECT_TO_CHANGE
+ #include <packagekit-glib2/packagekit.h>
+#else
+ #include <packagekit-glib/packagekit.h>
+#endif
 #include <gtk/gtk.h>
 
 static void
-- 
1.6.6


mai-fixPK.patch:
 configure.ac |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- NEW FILE mai-fixPK.patch ---
--- moblin-app-installer-0.4.0/configure.ac.orig	2010-01-26 09:35:37.000000000 +0000
+++ moblin-app-installer-0.4.0/configure.ac	2010-01-26 09:36:09.000000000 +0000
@@ -49,8 +49,8 @@
 ])
 
 AC_MSG_CHECKING([for backend])
-pk_req='packagekit-glib >= 0.4'
-pk_api='glib'
+pk_req='packagekit-glib2 >= 0.4'
+pk_api='glib2'
 AC_ARG_WITH(packagekit-glib2,
             [AS_HELP_STRING([--with-packagekit-glib2],
                             [Use PK's unstable glib2 API])],
@@ -64,7 +64,7 @@
 deps="$deps $pk_req"
 if test "$pk_api" = "glib"; then
   AC_DEFINE([HAVE_PACKAGEKIT_GLIB], [1], [Building against $pk_req])
-  PKG_CHECK_EXISTS([packagekit-glib >= 0.5.5],
+  PKG_CHECK_EXISTS([packagekit-glib2 >= 0.5.5],
   [
     AC_DEFINE([HAVE_PACKAGEKIT_GLIB_0_5], [1], [Building against development version])
   ])


Index: moblin-app-installer.spec
===================================================================
RCS file: /cvs/pkgs/rpms/moblin-app-installer/F-12/moblin-app-installer.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- moblin-app-installer.spec	26 Jan 2010 14:40:19 -0000	1.1
+++ moblin-app-installer.spec	26 Jan 2010 15:53:50 -0000	1.2
@@ -11,7 +11,7 @@
 
 Name:          moblin-app-installer
 Version:       0.4.0
-Release:       0.4%{?dist}
+Release:       0.7%{?dist}
 Summary:       Moblin Application Installer
 
 Group:         Applications/System
@@ -20,6 +20,8 @@ URL:           http://www.moblin.org/
 # Source0:       http://git.moblin.org/cgit.cgi/%{name}/snapshot/%{name}-%{version}.tar.bz2
 Source0:       %{tarfile}
 Patch0:        mai-applist.patch
+Patch1:        0001-Fix-build-when-not-using-PackageKit-glib-such-as-wit.patch
+Patch2:        mai-fixPK.patch
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: clutter-gtk-devel
@@ -44,6 +46,8 @@ a logically categorized list of applicat
 %prep
 %setup -q
 %patch0 -p1 -b .applist
+%patch1 -p1 -b .newPK
+%patch2 -p1 -b .fixPK
 
 # run autogen.sh until we have a proper release, but don't run configure twice.
 NOCONFIGURE=true ./autogen.sh
@@ -77,6 +81,15 @@ rm -rf %{buildroot}
 %{_datadir}/moblin-app-installer
 
 %changelog
+* Tue Jan 26 2010 Peter Robinson <pbrobinson at gmail.com> 0.4.0-0.7
+- Fix build with PK 0.6, patch courtesy of Richard Hughes
+
+* Tue Jan 26 2010 Peter Robinson <pbrobinson at gmail.com> 0.4.0-0.6
+- Bump release
+
+* Tue Jan 26 2010 Peter Robinson <pbrobinson at gmail.com> 0.4.0-0.5
+- First attempt at PK-0.6 support
+
 * Mon Jan 25 2010 Peter Robinson <pbrobinson at gmail.com> 0.4.0-0.4
 - Changes for the current applist
 - remove appicons so we don't ship patented proprietary icons



More information about the scm-commits mailing list