[PackageKit/f21] Add a new subpackage designed for the workstation spin.

Richard Hughes rhughes at fedoraproject.org
Tue Sep 16 10:23:01 UTC 2014


commit bd0b908da6c6f9ae13410f6c842dda472ce195e0
Author: Richard Hughes <richard at hughsie.com>
Date:   Tue Sep 16 10:53:37 2014 +0100

    Add a new subpackage designed for the workstation spin.

 .gitignore      |    1 +
 PackageKit.spec |   28 +++++++++++++++++++++++++++-
 sources         |    1 +
 3 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a06638d..a53c617 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,3 +41,4 @@ PackageKit-0.6.7.tar.bz2
 /PackageKit-0.9.4.tar.xz
 /PackageKit-0.9.5.tar.xz
 /PackageKit-1.0.0.tar.xz
+/cached-metadata.tar
diff --git a/PackageKit.spec b/PackageKit.spec
index 691732f..e583592 100644
--- a/PackageKit.spec
+++ b/PackageKit.spec
@@ -9,11 +9,14 @@
 Summary:   Package management service
 Name:      PackageKit
 Version:   1.0.0
-Release:   1%{?dist}
+Release:   2%{?dist}
 License:   GPLv2+ and LGPLv2+
 URL:       http://www.freedesktop.org/software/PackageKit/
 Source0:   http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{version}.tar.xz
 
+# generated using contrib/generate-md-archive.sh in the PackageKit source tree
+Source1:   cached-metadata.tar
+
 # Fedora-specific: set Vendor.conf up for Fedora.
 Patch0:    PackageKit-0.3.8-Fedora-Vendor.conf.patch
 
@@ -103,6 +106,15 @@ Provides: PackageKit-libs = %{version}-%{release}
 %description glib
 GLib libraries for accessing PackageKit.
 
+%package cached-metadata
+Summary: Cached metadata for PackageKit
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description cached-metadata
+Cached metadata allows application installers to start instantly on the
+LiveCD or installed system without downloading files from the internet or
+regenerating the SAT caches. It can safely removed if not required.
+
 %package cron
 Summary: Cron job and related utilities for PackageKit
 Requires: crontabs
@@ -212,6 +224,10 @@ pushd ${RPM_BUILD_ROOT}%{_datadir}/PackageKit > /dev/null
 ln -s ../pixmaps/comps icons
 popd > /dev/null
 
+# ship cached metadata on the LiveCD
+# http://blogs.gnome.org/hughsie/2014/08/29/putting-packagekit-metadata-on-the-fedora-livecd/
+tar -xf %{SOURCE1} --directory=$RPM_BUILD_ROOT
+
 %find_lang %name
 
 %post
@@ -274,6 +290,12 @@ popd > /dev/null
 %{_libdir}/packagekit-backend/libpk_backend_hif.so
 %endif
 
+%files cached-metadata
+%defattr(-,root,root,-)
+%{_datadir}/PackageKit/hawkey
+%{_datadir}/PackageKit/hawkey/*
+%{_datadir}/PackageKit/metadata/*
+
 %files glib
 %defattr(-,root,root,-)
 %{_libdir}/*packagekit-glib2.so.*
@@ -316,6 +338,10 @@ popd > /dev/null
 %{_datadir}/gtk-doc/html/PackageKit
 
 %changelog
+* Tue Sep 16 2014 Richard Hughes <rhughes at redhat.com> - 1.0.0-2
+- Add a new subpackage designed for the workstation spin.
+- See http://blogs.gnome.org/hughsie/2014/08/29/ for details.
+
 * Fri Sep 12 2014 Richard Hughes <rhughes at redhat.com> - 1.0.0-1
 - New upstream release
 - Add a D-Bus interface and helpers for offline support
diff --git a/sources b/sources
index 3543dcc..3c09e78 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 8ae6b71c3317efbee7eb0dc5f5516c50  PackageKit-1.0.0.tar.xz
+830ab43c78162164253a9774a4919fa4  cached-metadata.tar


More information about the scm-commits mailing list