From e0404312cf62aa42c0c1a3019f5d1a157186f92a Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 29 Sep 2009 13:33:08 +0000 Subject: [PATCH] - Do not build smart support on RHEL. --- PackageKit.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/PackageKit.spec b/PackageKit.spec index 8c025e6..b47e9fe 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -10,7 +10,7 @@ Summary: Package management service Name: PackageKit Version: 0.5.3 -Release: 0.1.%{?alphatag}git%{?dist} +Release: 0.2.%{?alphatag}git%{?dist} #Release: 1%{?dist} License: GPLv2+ Group: System Environment/Libraries @@ -33,7 +33,7 @@ Requires: PackageKit-yum-plugin = %{version}-%{release} Requires: PackageKit-yum = %{version}-%{release} Requires: shared-mime-info Requires: comps-extras -%if 0%{?rhel} != 0 +%if 0%{?rhel} == 0 Requires: preupgrade %endif BuildRequires: polkit >= %{polkit_version} @@ -85,6 +85,7 @@ Requires: %{name} = %{version}-%{release} %description yum A backend for PackageKit to enable yum functionality. +%if 0%{?rhel} == 0 %package smart Summary: PackageKit SMART backend Group: System Environment/Libraries @@ -93,6 +94,7 @@ Requires: %{name} = %{version}-%{release} %description smart A backend for PackageKit to enable SMART functionality. +%endif %package docs Summary: Documentation for PackageKit @@ -247,7 +249,9 @@ user to restart the computer or remove and re-insert the device. %configure \ --disable-static \ --enable-yum \ +%if 0%{?rhel} == 0 --enable-smart \ +%endif --with-default-backend=yum \ --disable-local \ --disable-ruck \ @@ -349,12 +353,14 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %dir %{_datadir}/PackageKit/website/img/thumbnails %{_datadir}/PackageKit/website/img/thumbnails/*.png +%if 0%{?rhel} == 0 %files smart %defattr(-,root,root,-) %doc README AUTHORS NEWS COPYING %{_libdir}/packagekit-backend/libpk_backend_smart.so %dir %{_datadir}/PackageKit/helpers/smart %{_datadir}/PackageKit/helpers/smart/* +%endif %files yum %defattr(-,root,root,-) @@ -448,7 +454,10 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %{_includedir}/PackageKit/backend/*.h %changelog -* Mon Sep 21 2009 Richard Hughes - 0.5.3-0.1.20090928git +* Tue Sep 29 2009 Richard Hughes - 0.5.3-0.2.20090928git +- Do not build smart support on RHEL. + +* Mon Sep 28 2009 Richard Hughes - 0.5.3-0.1.20090928git - Update to a newer git snapshot from the 0.5.x series. - Fixes command-not-found functionality - Lots of updated translations