packages: PackageKit/PackageKit.spec - subpackages for backends, build yum ...
glen
glen at pld-linux.org
Mon Feb 7 18:36:17 CET 2011
Author: glen Date: Mon Feb 7 17:36:17 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- subpackages for backends, build yum backend; rel 3
---- Files affected:
packages/PackageKit:
PackageKit.spec (1.65 -> 1.66)
---- Diffs:
================================================================
Index: packages/PackageKit/PackageKit.spec
diff -u packages/PackageKit/PackageKit.spec:1.65 packages/PackageKit/PackageKit.spec:1.66
--- packages/PackageKit/PackageKit.spec:1.65 Thu Jan 27 10:10:36 2011
+++ packages/PackageKit/PackageKit.spec Mon Feb 7 18:36:11 2011
@@ -13,24 +13,17 @@
%bcond_without qt # don't build packagekit-qt library
%bcond_without doc # build without docs
%bcond_with gir # gobject introspection, time to time broken
-%bcond_without poldek # build default backend as poldek
-%bcond_with yum # build default backend as yum
+%bcond_without poldek # build poldek backend
+%bcond_without yum # build yum backend
-%if %{with yum}
-%define backend yum
-%undefine with_poldek
-%endif
-
-%if %{with poldek}
+# default backend, configurable at runtime
%define backend poldek
-%undefine with_yum
-%endif
Summary: System daemon that is a D-Bus abstraction layer for package management
Summary(pl.UTF-8): Demon systemowy będący warstwą abstrakcji D-Bus do zarządzania pakietami
Name: PackageKit
Version: 0.6.8
-Release: 2
+Release: 3
License: GPL v2+
Group: Applications/System
Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.bz2
@@ -75,16 +68,10 @@
BuildRequires: xorg-lib-libXt-devel
BuildRequires: xulrunner-devel
Requires(post,postun): shared-mime-info
+Requires: %{name}-backend
Requires: %{name}-libs = %{version}-%{release}
Requires: ConsoleKit
Requires: crondaemon
-%if %{with poldek}
-Requires: poldek >= 0.30-0.20080820.23.20}
-%endif
-%if %{with yum}
-Requires: python-packagekit = %{version}-%{release}
-Requires: yum
-%endif
Requires: polkit >= 0.92
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -137,6 +124,28 @@
%description static -l pl.UTF-8
Statyczna biblioteka packagekit-glib.
+%package backend-yum
+Summary: PackageKit YUM backend
+Group: Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: python-packagekit = %{version}-%{release}
+Requires: yum >= 3.2.19
+Provides: %{name}-backend
+
+%description backend-yum
+A backend for PackageKit to enable yum functionality.
+
+%package backend-poldek
+Summary: PackageKit Poldek backend
+Group: Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: poldek >= 0.30-0.20080820.23.20}
+Provides: %{name}-backend
+Conflicts: %{name} < 0.6.8-3
+
+%description backend-poldek
+A backend for PackageKit to enable Poldek functionality.
+
%package qt
Summary: packagekit-qt library
Summary(pl.UTF-8): Biblioteka packagekit-qt
@@ -381,25 +390,6 @@
%dir /var/lib/PackageKit
%ghost /var/lib/PackageKit/transactions.db
-# backend: poldek
-%if %{with poldek}
-%attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so
-%endif
-
-# backend: yum
-%if %{with yum}
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Yum.conf
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/refresh-packagekit.conf
-%attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_yum.so
-%{_prefix}/lib/yum-plugins/refresh-packagekit.py
-%dir %{_datadir}/PackageKit/helpers/yum
-%{_datadir}/PackageKit/helpers/yum/licenses.txt
-%{_datadir}/PackageKit/helpers/yum/yum-comps-groups.conf
-%attr(755,root,root) %{_datadir}/PackageKit/helpers/yum/yumBackend.py
-%{_datadir}/PackageKit/helpers/yum/yumComps.py[co]
-%{_datadir}/PackageKit/helpers/yum/yumFilter.py[co]
-%endif
-
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libpackagekit-glib2.so.*.*.*
@@ -418,6 +408,29 @@
%defattr(644,root,root,755)
%{_libdir}/libpackagekit-glib2.a
+%if %{with poldek}
+%files backend-poldek
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_poldek.so
+%endif
+
+%if %{with yum}
+%files backend-yum
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/PackageKit/Yum.conf
+%attr(755,root,root) %{_libdir}/packagekit-backend/libpk_backend_yum.so
+%dir %{_datadir}/PackageKit/helpers/yum
+%{_datadir}/PackageKit/helpers/yum/licenses.txt
+%{_datadir}/PackageKit/helpers/yum/yum-comps-groups.conf
+%attr(755,root,root) %{_datadir}/PackageKit/helpers/yum/yumBackend.py
+%{_datadir}/PackageKit/helpers/yum/yumComps.py[co]
+%{_datadir}/PackageKit/helpers/yum/yumFilter.py[co]
+
+# yum plugin
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/yum/pluginconf.d/refresh-packagekit.conf
+%{_prefix}/lib/yum-plugins/refresh-packagekit.py
+%endif
+
%if %{with qt}
%files qt
%defattr(644,root,root,755)
@@ -475,6 +488,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.66 2011/02/07 17:36:11 glen
+- subpackages for backends, build yum backend; rel 3
+
Revision 1.65 2011/01/27 09:10:36 glen
- yum paths are noarch
- compile yum backend files
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/PackageKit/PackageKit.spec?r1=1.65&r2=1.66&f=u
More information about the pld-cvs-commit
mailing list