%define glib2_version 2.16.1 %define dbus_version 0.90 %define dbus_glib_version 0.70 %define policykit_version 0.8 %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Summary: System daemon that is a DBUS abstraction layer for package management Name: PackageKit Version: 0.3.0 Release: 2%{?dist} License: GPLv2+ Group: System Environment/Libraries URL: http://packagekit.freedesktop.org Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #upstream, 771d297a4e6e551a7c559c7eb6b77e54f7d62c37 Patch0: pk-fix-build-plugin.patch Requires: dbus >= %{dbus_version} Requires: dbus-glib >= %{dbus_glib_version} Requires: PackageKit-libs = %{version}-%{release} Requires: yum-packagekit = %{version}-%{release} Requires: yum >= 3.2.6 Requires: libtar-devel Requires: shared-mime-info BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: dbus-devel >= %{dbus_version} BuildRequires: dbus-glib-devel >= %{dbus_glib_version} BuildRequires: pam-devel BuildRequires: libX11-devel BuildRequires: libsexy-devel BuildRequires: xmlto BuildRequires: sqlite-devel BuildRequires: NetworkManager-glib-devel BuildRequires: PolicyKit-devel >= %{policykit_version} BuildRequires: libtool BuildRequires: docbook-utils BuildRequires: gnome-doc-utils BuildRequires: python-devel BuildRequires: perl(XML::Parser) BuildRequires: intltool BuildRequires: gettext BuildRequires: xulrunner-devel BuildRequires: libtar-devel %description PackageKit is a D-Bus abstraction layer that allows the session user to manage packages in a secure way using a cross-distro, cross-architecture API. %package -n udev-packagekit Summary: Tell PackageKit to install firmware that udev requires Group: System Environment/Base Requires: udev Requires: PackageKit %description -n udev-packagekit udev-packagekit tells PackageKit that firmware was not available and was needed. This allows PackageKit to do the right thing and prompt for the firmware to be installed. %package -n yum-packagekit Summary: Tell PackageKit to check for updates when yum exits Group: System Environment/Base Requires: yum >= 3.0 Requires: PackageKit %description -n yum-packagekit yum-packagekit tells PackageKit to check for updates when yum exits. This way, if you run 'yum update' and install all available updates, puplet will almost instantly update itself to reflect this. %package libs Summary: Libraries for accessing PackageKit Group: Development/Libraries Requires: dbus >= %{dbus_version} Requires: %{name} = %{version}-%{release} %description libs Libraries for accessing PackageKit. %package cron Summary: Cron job and related utilities for PackageKit Group: System Environment/Base Requires: cronie Requires: %{name} = %{version}-%{release} %description cron Crontab and utilities for running PackageKit as a cron job. %package devel Summary: Libraries and headers for PackageKit Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: dbus-devel >= %{dbus_version} Requires: pkgconfig Requires: sqlite-devel %description devel Headers and libraries for PackageKit. %package browser-plugin Summary: Browser Plugin for PackageKit Group: Development/Libraries Requires: gtk2 Requires: PackageKit-libs = %{version}-%{release} %description browser-plugin The PackageKit browser plugin allows web sites to offer the ability to users to install and update packages from configured repositories using PackageKit. %prep %setup -q %patch0 -p1 %build %configure --enable-yum --enable-yum2 --with-default-backend=yum --disable-local make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/libpackagekit*.a rm -f $RPM_BUILD_ROOT%{_libdir}/libpackagekit*.la rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.la rm -f $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/*.a rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/packagekit-plugin.a rm -f $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/packagekit-plugin.la chmod 755 $RPM_BUILD_ROOT%{_libexecdir}/yumDBUSBackend.py chmod 755 $RPM_BUILD_ROOT%{_libexecdir}/PackageKitDbusTest.py %find_lang %name %clean rm -rf $RPM_BUILD_ROOT %post update-mime-database %{_datadir}/mime &> /dev/null || : %postun update-mime-database %{_datadir}/mime &> /dev/null || : %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root,-) %doc README AUTHORS NEWS COPYING %dir %{_datadir}/PackageKit %dir %{_datadir}/PackageKit/helpers %dir %{_sysconfdir}/PackageKit %dir %{_localstatedir}/lib/PackageKit %dir %{python_sitelib}/packagekit %dir %{_localstatedir}/run/PackageKit %{python_sitelib}/packagekit/*py* %dir %{_sysconfdir}/bash_completion.d %config %{_sysconfdir}/bash_completion.d/pk-completion.bash %config(noreplace) %{_sysconfdir}/PackageKit/PackageKit.conf %config %{_sysconfdir}/dbus-1/system.d/* %{_datadir}/PackageKit/helpers/* %{_datadir}/man/man1/*.1.gz %{_datadir}/gtk-doc/html/PackageKit %{_datadir}/PolicyKit/policy/*.policy %{_datadir}/mime/packages/packagekit-*.xml %{_sbindir}/packagekitd %{_bindir}/pkmon %{_bindir}/pkcon %{_bindir}/pkgenpack %{_bindir}/packagekit-bugreport.sh %{_libexecdir}/pk-import-* %{_libexecdir}/pk-generate-* %exclude %{_libdir}/libpackagekit*.so.* %exclude %{_libdir}/packagekit-backend/*.so %ghost %verify(not md5 size mtime) %{_localstatedir}/lib/PackageKit/transactions.db %ghost %verify(not md5 size mtime) %{_localstatedir}/run/PackageKit/job_count.dat %{_datadir}/dbus-1/system-services/*.service %{_libdir}/pm-utils/sleep.d/95packagekit %{_libexecdir}/*py* %files -n yum-packagekit %defattr(-, root, root) %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/refresh-packagekit.conf /usr/lib/yum-plugins/refresh-packagekit.* %files -n udev-packagekit %defattr(-, root, root) %{_sysconfdir}/udev/rules.d/*.rules /lib/udev/*.sh %files libs %defattr(-,root,root,-) %doc README AUTHORS NEWS COPYING %dir %{_libdir}/packagekit-backend %{_libdir}/*packagekit*.so.* %{_libdir}/packagekit-backend/*.so %files cron %defattr(-,root,root,-) %config %{_sysconfdir}/cron.daily/packagekit-background.cron %config %{_sysconfdir}/sysconfig/packagekit-background %files devel %defattr(-,root,root,-) %files browser-plugin %dir %{_libdir}/mozilla %dir %{_libdir}/mozilla/plugins %{_libdir}/mozilla/plugins/packagekit-plugin.so %{_libdir}/lib*.so %{_libdir}/pkgconfig/* %{_includedir}/* %changelog * Mon Aug 22 2008 Richard Hughes - 0.3.0-2 - Bump as the make tag step failed in an obscure way. * Mon Aug 22 2008 Richard Hughes - 0.3.0-1 - Update to newest upstream version. This includes the fixed browser plugin. * Mon Aug 04 2008 Robin Norwood - 0.2.4-2 - Fix Source0 URL. * Tue Jul 30 2008 Richard Hughes - 0.2.4-1 - New upstream version, only bugfixes. * Tue Jul 15 2008 Richard Hughes - 0.2.3-6 - Silence the output of update-mime-database to fix rh#454782 * Mon Jun 23 2008 Richard Hughes - 0.2.3-5.20080618 - Own the /etc/bash_completion.d directory as we don't depend on the bash-completion package. Fixes rh#450964. * Wed Jun 18 2008 Richard Hughes - 0.2.3-4.20080618 - Pull in a new snapshot from the unstable branch. - Add the font installing provide hooks * Mon Jun 11 2008 Richard Hughes - 0.2.3-3.20080611 - Pull in a new snapshot from the unstable branch. - Fixes RH#450594 where there are insane length error messages - Get the group for the package when we do ::Detail() * Mon Jun 09 2008 Richard Hughes - 0.2.3-2.20080609 - Add intltool to the BR. * Mon Jun 09 2008 Richard Hughes - 0.2.3-1.20080609 - Pull in a new snapshot from the unstable branch. * Thu May 29 2008 Richard Hughes - 0.2.2-2.20080529 - Pull in a new snapshot from the unstable branch. * Mon May 19 2008 Richard Hughes - 0.2.2-1.20080519 - Pull in a new snapshot from the unstable branch. * Thu May 08 2008 Richard Hughes - 0.2.1-2.20080508 - Pull in a new snapshot from the unstable branch. * Tue May 06 2008 Richard Hughes - 0.2.1-1.20080506 - Pull in a new snapshot from the unstable branch. * Tue May 06 2008 Richard Hughes - 0.2.0-1 - Update to the latest _UNSTABLE_ upstream source * Mon May 5 2008 Robin Norwood - 0.1.12-5.20080416git - Apply patch to fix update detail unbound error. - Fix rhbz#445086 * Wed Apr 16 2008 Richard Hughes - 0.1.12-4.20080416git - Urgh, actually upload the correct tarball. * Wed Apr 16 2008 Richard Hughes - 0.1.12-3.20080416git - Pull in the new snapshot from the stable PACKAGEKIT_0_1_X branch. - Fixes rh#439735. * Tue Apr 15 2008 Richard Hughes - 0.1.12-2.20080415git - Pull in the new snapshot from the stable PACKAGEKIT_0_1_X branch. - Fixes rh#442286, rh#442286 and quite a few upstream bugs. * Sat Apr 12 2008 Richard Hughes - 0.1.12-1.20080412git - Pull in the new snapshot from the stable PACKAGEKIT_0_1_X branch. - Fixes that were cherry picked into this branch since 0.1.11 was released can be viewed at: http://gitweb.freedesktop.org/?p=packagekit.git;a=log;h=PACKAGEKIT_0_1_X * Sat Apr 5 2008 Matthias Clasen - 0.1.11-1 - Update to 0.1.11 * Fri Mar 28 2008 Bill Nottingham - 0.1.10-1 - update to 0.1.10 - fix glib buildreq * Fri Mar 28 2008 Matthias Clasen - 0.1.9-3 - Fix a directory ownership oversight * Mon Mar 17 2008 Robin Norwood - 0.1.9-2 - Make PackageKit require yum-packagekit - Resolves: rhbz#437539 * Wed Mar 5 2008 Robin Norwood - 0.1.9-1 - Update to latest upstream version: 0.1.9 - Enable yum2 backend, but leave old yum backend the default for now * Thu Feb 21 2008 Robin Norwood - 0.1.8-1 - Update to latest upstream version: 0.1.8 * Mon Feb 18 2008 Robin Norwood - 0.1.7-2 - Fix the yum backend. * Thu Feb 14 2008 Robin Norwood - 0.1.7-1 - Update to latest upstream version: 0.1.7 * Sat Jan 19 2008 Robin Norwood - 0.1.6-1 - Update to latest upstream version: 0.1.6 * Fri Dec 21 2007 Robin Norwood - 0.1.5-1 - Update to latest upstream version: 0.1.5 - Remove polkit.patch for PolicyKit 0.7, no longer needed * Mon Dec 17 2007 Robin Norwood - 0.1.4-3 - fix rpm -V issues by ghosting data files - Resolves: rhbz#408401 * Sun Dec 9 2007 Matthias Clasen - 0.1.4-2 - Make it build against PolicyKit 0.7 * Tue Nov 27 2007 Robin Norwood - 0.1.4-1 - Update to latest upstream version: 0.1.4 - Include spec file changes from hughsie to add yum-packagekit subpackage * Sat Nov 10 2007 Robin Norwood - 0.1.3-1 - Update to latest upstream version: 0.1.3 * Thu Nov 01 2007 Robin Norwood - 0.1.2-1 - Update to latest upstream version: 0.1.2 * Fri Oct 26 2007 Robin Norwood - 0.1.1-5 - More issues from package review: - Need to own all created directories - PackageKit-devel doesn't really require sqlite-devel - Include docs in PackageKit-libs * Fri Oct 26 2007 Robin Norwood - 0.1.1-4 - use with-default-backend instead of with-backend * Thu Oct 25 2007 Robin Norwood - 0.1.1-3 - Add BR: python-devel * Wed Oct 24 2007 Robin Norwood - 0.1.1-2 - doc cleanups from package review * Tue Oct 23 2007 Robin Norwood - 0.1.1-1 - Update to latest upstream version * Wed Oct 17 2007 Robin Norwood - 0.1.0-3 - Add BR for docbook-utils * Tue Oct 16 2007 Robin Norwood - 0.1.0-2 - Apply recommended fixes from package review * Mon Oct 15 2007 Robin Norwood - 0.1.0-1 - Initial build (based upon spec file from Richard Hughes)