From 4fa0e89788eb1f3c8c06c13829a4b5dff33268a5 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 29 May 2012 18:41:05 +0100 Subject: [PATCH] Do not build the PackageKit-zif package on RHEL. --- PackageKit.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/PackageKit.spec b/PackageKit.spec index 8c39e74..33a848c 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -3,7 +3,7 @@ Summary: Package management service Name: PackageKit Version: 0.7.4 -Release: 5%{?dist} +Release: 6%{?dist} License: GPLv2+ and LGPLv2+ URL: http://www.packagekit.org Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.xz @@ -62,7 +62,9 @@ BuildRequires: pango-devel BuildRequires: pm-utils-devel BuildRequires: fontconfig-devel BuildRequires: gobject-introspection-devel +%if 0%{?rhel} == 0 BuildRequires: zif-devel >= 0.2.5 +%endif # functionality moved to udev itself Obsoletes: PackageKit-udev-helper < %{version}-%{release} @@ -88,6 +90,7 @@ Provides: PackageKit-backend %description yum A backend for PackageKit to enable yum functionality. +%if 0%{?rhel} == 0 %package zif Summary: PackageKit Zif backend Group: System Environment/Libraries @@ -98,7 +101,6 @@ Provides: PackageKit-backend %description zif A backend for PackageKit to enable Zif functionality. -%if 0%{?rhel} == 0 %package smart Summary: PackageKit SMART backend Group: System Environment/Libraries @@ -266,8 +268,8 @@ NOCONFIGURE=1 ./autogen.sh %configure \ --disable-static \ --enable-yum \ - --enable-zif \ %if 0%{?rhel} == 0 + --enable-zif \ --enable-smart \ --enable-introspection \ %endif @@ -382,11 +384,13 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %dir %{_datadir}/PackageKit/helpers/yum %{_datadir}/PackageKit/helpers/yum/* +%if 0%{?rhel} == 0 %files zif %defattr(-,root,root,-) %{_libdir}/packagekit-backend/libpk_backend_zif.so %dir %{_datadir}/PackageKit/helpers/zif %{_datadir}/PackageKit/helpers/zif/* +%endif %files yum-plugin %defattr(-, root, root) @@ -464,6 +468,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %{_libdir}/pkgconfig/packagekit-plugin.pc %changelog +* Tue May 29 2012 Richard Hughes - 0.7.4-6 +- Do not build the PackageKit-zif package on RHEL. + * Fri May 25 2012 Rex Dieter 0.7.4-5 - re-enable -browser-plugin content - make V=1