packages: PackageKit/PackageKit.spec - yum/poldek backend bconds, not teste...

glen glen at pld-linux.org
Thu Jan 27 08:20:43 CET 2011


Author: glen                         Date: Thu Jan 27 07:20:43 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- yum/poldek backend bconds, not tested as current gir changes break build

---- Files affected:
packages/PackageKit:
   PackageKit.spec (1.61 -> 1.62) 

---- Diffs:

================================================================
Index: packages/PackageKit/PackageKit.spec
diff -u packages/PackageKit/PackageKit.spec:1.61 packages/PackageKit/PackageKit.spec:1.62
--- packages/PackageKit/PackageKit.spec:1.61	Sun Nov 28 16:52:14 2010
+++ packages/PackageKit/PackageKit.spec	Thu Jan 27 08:20:38 2011
@@ -10,6 +10,18 @@
 # Conditional build:
 %bcond_without	qt	# don't build packagekit-qt library
 %bcond_without	doc	# build without docs
+%bcond_without	poldek	# build default backend as poldek
+%bcond_with	yum	# build default backend as yum
+
+%if %{with yum}
+%define		backend	yum
+%undefine	with_poldek
+%endif
+
+%if %{with poldek}
+%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
@@ -48,7 +60,7 @@
 BuildRequires:	libtool
 BuildRequires:	pkgconfig
 BuildRequires:	pm-utils
-BuildRequires:	poldek-devel >= 0.30-0.20080820.23.20
+%{?with_poldek:BuildRequires:	poldek-devel >= 0.30-0.20080820.23.20}
 BuildRequires:	polkit-devel >= 0.92
 BuildRequires:	python-devel
 %{?with_qt:BuildRequires:	qt4-build >= 4.4.0}
@@ -63,7 +75,7 @@
 Requires:	%{name}-libs = %{version}-%{release}
 Requires:	ConsoleKit
 Requires:	crondaemon
-Requires:	poldek >= 0.30-0.20080820.23.20
+%{?with_poldek:Requires:	poldek >= 0.30-0.20080820.23.20}
 Requires:	polkit >= 0.92
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -266,11 +278,11 @@
 	--disable-ruck \
 	--disable-command-not-found \
 	--disable-browser-plugin \
-	--enable-poldek \
+	%{?with_poldek:--enable-poldek} \
 	--%{!?with_doc:dis}%{?with_doc:en}able-gtk-doc \
 	--%{?with_qt:en}%{!?with_qt:dis}able-qt \
 	--with-html-dir=%{_gtkdocdir} \
-	--with-default-backend=poldek
+	--with-default-backend=%{backend}
 %{__make}
 
 %install
@@ -425,6 +437,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.62  2011/01/27 07:20:38  glen
+- yum/poldek backend bconds, not tested as current gir changes break build
+
 Revision 1.61  2010/11/28 15:52:14  hawk
 - release 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/PackageKit/PackageKit.spec?r1=1.61&r2=1.62&f=u



More information about the pld-cvs-commit mailing list