[weasel-commit] Source: PackageKit=0.4.9-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Tue, 15 Jun 2010 19:01:32 -0400

================================
PackageKit:source=0.4.9-1 (previous: 0.5.7-3)
cvc rdiff PackageKit -1 /weasel.rpath.org@wgl:3-devel/0.4.9-1
================================
0.4.9-1 Filip Brcic (brcha@xxxxxxxxxxxx) Tue Jun 15 19:01:19 2010
    PackageKit 0.4.9

PackageKit.recipe: changed
Index: PackageKit.recipe
====================================================================
contents(size sha1)
inode(mtime owner group)
--- PackageKit.recipe /weasel.rpath.org@wgl:3-devel/0.5.7-3
+++ PackageKit.recipe /weasel.rpath.org@wgl:3-devel/0.4.9-1
@@ -1,103 +1,104 @@
 #
-# Copyright (c) 2007-2010 Foresight Linux
-# This file is distributed under the terms of the MIT License.
-# A copy is available at http://www.rpath.com/permanent/mit-license.html
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
 #
 
 class Packagekit(AutoPackageRecipe):
     name = 'PackageKit'
-    version = '0.5.7'
+    version = '0.4.9'
 
-    buildRequires =  [
-        'atk:devel',
-        'autoconf:data',
-        'autoconf:runtime',
-        'automake:runtime',
-        'cairo:devel',
-        'cElementTree:python',
-        'ConsoleKit:runtime',
-        'dbus:devel',
-        'dbus-glib:devel',
-        'dbus-glib:runtime',
-        'dbus-python:python',
-        'fontconfig:devel',
-        'freetype:devel',
-        'gettext:runtime',
-        'glib:devel',
-        'gtk-doc:devel',
-        'gtk-doc:runtime',
-        'gtk:devel',
-        'intltool:runtime',
-        'libtool:runtime',
-        'libxslt:runtime',
-        'NetworkManager:devel',
-        'pango:devel',
-        'pkgconfig:devel',
-        'polkit:devel',
-        'pygobject:python',
-        'python:bin',
-        'python:devel',
-        'shared-mime-info:runtime',
-        'sqlite:devel',
-]
+    buildRequires = [
+        'PolicyKit:devel', 'PolicyKit:runtime', 'atk:devel',
+        'celementtree:python', 'dbus-python:python', 'dbus:devel',
+        'dbus-glib:devel', 'gettext:runtime', 'glib:devel',
+        'glib:runtime', 'gtk-doc:runtime', 'intltool:runtime',
+        'perl-XML-Parser:perl', 'libarchive:devel', 'libxslt:runtime',
+        'nspr:devel', 'pkg-config:devel', 'pygobject:python',
+        'python:devel', 'qt4-core:devellib', 'qt4:devel',
+        'shared-mime-info:runtime', 'sqlite:devel', 'xmlto:runtime',
+        'libstdc++:devel', 'gcc-c++:runtime',
+        ]
 
+    shortDesc  = 'PackageKit package manager'
+    longDesc   = """
+PackageKit is a system designed to make installing and updating
+software on your computer easier. The primary design goal is to unify
+all the software graphical tools used in different distributions, and
+use some of the latest technology like PolicyKit to make the process
+suck less.
+"""
+    url        = 'http://www.packagekit.org'
+    licenses   = [ 'GPL-2' ]
+    categories = [ 'Applications/Administration' ]
+
+    shortDescs = [
+        ('packagekit-glib', 'Glib bindings for PackageKit'),
+        ('packagekit-qt', 'Qt bindings for PackageKit'),
+        ('packagekit-browser-plugin', 'PackageKit browser plugin'),
+        ]
 
     def unpack(r):
         r.addArchive('http://www.packagekit.org/releases/')
-        # this patch make gnome-packagekit works again
-        r.addPatch('packagekit_simulate.diff')
-        r.addSource('pk.tmpwatch', 
dest='%(sysconfdir)s/cron.daily/PKConaryCache')
-        r.Replace('ScanDesktopFiles=true', 'ScanDesktopFiles=false', 
'etc/PackageKit.conf.in')
-        r.Replace('UpdatePackageList=true', 'UpdatePackageList=false', 
'etc/PackageKit.conf.in')
-        r.Replace('UpdateCheckProcesses=true', 'UpdateCheckProcesses=false', 
'etc/PackageKit.conf.in')
-        
r.Replace("CheckTestingRepos=true",'CheckTestingRepos=false',"etc/PackageKit.conf.in")
-        
r.Replace("UseUpdateCache=true","UseUpdateCache=false","etc/PackageKit.conf.in")
-        r.Replace('auth_admin_keep', 'auth_self_keep', 
'policy/org.freedesktop.packagekit.policy{,.in}')
+
+        #r.addSource('pk.tmpwatch', 
dest='%(sysconfdir)s/cron.daily/PKConaryCache')
+
+        # Customize PackageKit.conf (idea from foresight)
+        r.Replace(('ScanDesktopFiles=true', 'ScanDesktopFiles=false'),
+                  ('UpdatePackageList=true', 'UpdatePackageList=false'),
+                  ('UpdateCheckProcesses=true', 'UpdateCheckProcesses=false'),
+                  ('CheckTestingRepos=true', 'CheckTestingRepos=false'),
+                  ('UseUpdateCache=true', 'UseUpdateCache=false'),
+                  'etc/PackageKit.conf.in')
+        r.Replace('auth_admin_keep', 'auth_self_keep',
+                  'policy/org.freedesktop.packagekit.policy{,.in}')
 
     def configure(r):
-        r.Configure(' --disable-qt ' \
-                    ' --disable-local ' \
-                    ' --with-default-backend=conary ' \
-                    ' --enable-conary ' \
-                    ' --disable-dummy ' \
-                    ' --with-security-framework=polkit ' \
-                    ' --disable-gtk-doc ' \
-                    ' --enable-browser-plugin ' \
-                    ' --disable-gstreamer-plugin ' \
-                    ' --disable-ruck ' \
-                    ' --enable-command-not-found ' \
-                    ' --enable-gtk-module ' \
-                    ' --disable-strict ' \
-                    ' --disable-device-rebind ' \
-                    ' --disable-cron ' \
-                    ' --disable-pm-utils ' \
-                    ' --enable-introspection=no ' \
-                    ' --disable-service-packs ' \
-                    ' --disable-managed ' \
-                    ' --disable-gudev ')
+        r.Environment('MOC', '%(bindir)s/moc')
 
-    def policy(r):
+        r.Configure(
+            ' --localstatedir=%(localstatedir)s'
+            ' --enable-qt'
+            ' --disable-local'
+            ' --with-default-backend=conary'
+            ' --enable-conary'
+            ' --disable-dummy'
+            ' --with-security-framework=polkit'
+            ' --disable-gtk-doc'
+            ' --enable-browser-plugin'
+            ' --disable-gstreamer-plugin'
+            ' --disable-ruck'
+            ' --enable-command-not-found'
+            ' --enable-gtk-module'
+            ' --disable-strict'
+            ' --disable-cron'
+            ' --disable-pm-utils'
+            ' --disable-managed' # TODO: reenable with C# maybe
+            )
 
-        # for command-not-found
-        r.Remove('%(localstatedir)s/lib/PackageKit/*', allowNoMatch=True)
-        
#r.Remove('%(sysconfdir)s/dbus-1/system.d/org.freedesktop.PackageKitTestBackend.conf',
-         #   
"%(sysconfdir)s/etc/dbus-1/system.d/org.freedesktop.PackageKitAptBackend.conf")
-        r.Remove("%(datadir)s/%(name)s/website/",recursive=True, 
allowNoMatch=True)
-        r.Remove('%(localstatedir)s/db/PackageKit/transactions.db', 
allowNoMatch=True)
-        r.Remove("%(localstatedir)s/cache/conary/job/")
-        r.Remove("%(localstatedir)s/cache/conary/xmlrepo/")
-        r.MakeDirs('%(localstatedir)s/db/PackageKit/')
-        r.MakeDirs('%(localstatedir)s/cache/PackageKit/downloads')
-        r.MakeDirs('%(localstatedir)s/run/PackageKit/udev')
-        r.ExcludeDirectories(exceptions=['%(localstatedir)s/db/PackageKit',
-                '%(localstatedir)s/cache/PackageKit/downloads',
-                '%(localstatedir)s/lib/PackageKit',
-                '%(localstatedir)s/run/PackageKit/udev'])
-        r.Requires("elementtree:python","/usr/sbin/packagekitd")
+    def makeinstall(r):
+        r.MakeInstall(dir='lib/packagekit-glib',
+                      package='packagekit-glib')
+        r.MakeInstall(dir='lib/packagekit-qt',
+                      package='packagekit-qt')
+        r.MakeInstall(dir='contrib/browser-plugin',
+                      package='packagekit-browser-plugin')
 
-        # PackageSpec
-        r.SetModes("%(sysconfdir)s/profile.d/PackageKit.sh",0755)
-        
r.PackageSpec("PackageKit-command-not-found","%(sysconfdir)s/%(name)s/CommandNotFound.conf|%(sysconfdir)s/profile.d/*|%(libexecdir)s/pk-command-not-found")
-        
r.PackageSpec("PackageKit-browser-plugin","%(libdir)s/mozilla/plugins/packagekit-plugin.so")
-        
r.PackageSpec("PackageKit-gtk-module","%(libdir)s/gtk-2.0/modules/libpk-gtk-module.so")
+        # And now install the rest
+        r.MakeInstall()
 
+        r.SetModes('%(sysconfdir)s/profile.d/PackageKit.sh', 0755)
+
+        # This is documentation, move it to correct position
+        r.Move('%(datadir)s/%(name)s/website', '%(thisdocdir)s/')
+
+        # This shouldn't go to the package
+        r.Remove('%(localstatedir)s/lib/%(name)s/transactions.db',
+                 allowNoMatch=True)
+
+        # Create necessary directories
+        for d in [ '%(localstatedir)s/lib/%(name)s',
+                   '%(localstatedir)s/cache/%(name)s',
+                   '%(localstatedir)s/run/%(name)s/udev',
+                   ]:
+            r.MakeDirs(d)
+            r.ExcludeDirectories(exceptions=d)


PackageKit-0.4.9.tar.gz: new
PackageKit-0.5.7.tar.bz2: removed

Committed by: brcha

Other related posts:

  • » [weasel-commit] Source: PackageKit=0.4.9-1 - rbuilder