diff --git a/PackageKit.spec b/PackageKit.spec index 5b3895e..c56632a 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -9,7 +9,7 @@ Summary: Package management service Name: PackageKit Version: 0.4.6 -Release: 0.1.%{?alphatag}git%{?dist} +Release: 0.2.%{?alphatag}git%{?dist} #Release: 1%{?dist} License: GPLv2+ Group: System Environment/Libraries @@ -22,6 +22,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Set Vendor.conf up for Fedora. Patch0: PackageKit-0.3.8-Fedora-Vendor.conf.patch Patch1: PackageKit-0.4.4-Fedora-turn-off-time.conf.patch +Patch2: module-resident.patch Requires: dbus >= %{dbus_version} Requires: dbus-glib >= %{dbus_glib_version} @@ -223,6 +224,7 @@ using PackageKit. #%setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 -b .resident %build %configure --enable-yum --enable-smart --with-default-backend=yum --disable-local --disable-ruck @@ -417,6 +419,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %{_includedir}/PackageKit/backend/*.h %changelog +* Mon Mar 23 2009 Matthias Clasen - 0.4.6-0.2.2009319git +- Make the GTK+ module resident + * Thu Mar 19 2009 Richard Hughes - 0.4.6-0.1.20090319git - Update to todays git snapshot so we can test the update ChangeLog feature. diff --git a/module-resident.patch b/module-resident.patch new file mode 100644 index 0000000..70bfc3c --- /dev/null +++ b/module-resident.patch @@ -0,0 +1,17 @@ +diff -up PackageKit-0.4.6-20090319/contrib/gtk-module/pk-gtk-module.c.resident PackageKit-0.4.6-20090319/contrib/gtk-module/pk-gtk-module.c +--- PackageKit-0.4.6-20090319/contrib/gtk-module/pk-gtk-module.c.resident 2009-02-24 06:29:08.000000000 -0500 ++++ PackageKit-0.4.6-20090319/contrib/gtk-module/pk-gtk-module.c 2009-03-23 21:24:52.572926916 -0400 +@@ -328,3 +328,13 @@ gtk_module_init (gint *argc G_GNUC_UNUSE + { + install_pango_font_map (); + } ++ ++const char *g_module_check_init (GModule *module); ++ ++const char * ++g_module_check_init (GModule *module) ++{ ++ g_module_make_resident (module); ++ ++ return NULL; ++}