File gnome-packagekit.spec of Package gnome-packagekit

#
# spec file for package gnome-packagekit (Version 2.28.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           gnome-packagekit
Url:            http://packagekit.org/
Version:        2.28.0
Release:        1.<RELEASE1>
License:        GPL v2 or later
Source:         %{name}-%{version}.tar.bz2
Patch1:         gnome-packagekit_release.patch
#PATCH-FEATURE-OPENSUSE gnome-packagekit-fate302445.patch fate 302445
Patch3:         gnome-packagekit-fate302445.patch
Patch5:         gnome-packagekit-BNC383261.patch
Patch6:         gnome-packagekit-BNC538353.patch
#PATCH-FEATURE-OPENSUSE gnome-packagekit-BNC542819.patch sreeves@novell.com -- SUSE updates are patch based, don't try and get dependencies.
Patch7:         gnome-packagekit-BNC542819.patch
#PATCH-FIX-UPSTREAM gnome-packagekit-BNC543595.patch sreeves@novell.com -- install local files
Patch8:         gnome-packagekit-BNC543595.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  DeviceKit-power-devel
BuildRequires:  PackageKit-devel
BuildRequires:  dbus-1-devel
BuildRequires:  desktop-file-utils
BuildRequires:  gconf2-devel
BuildRequires:  gettext-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libcanberra-devel
BuildRequires:  libnotify-devel
BuildRequires:  libunique-devel
BuildRequires:  sqlite-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  gnome-menus-devel
Requires:       gnome-icon-theme
Requires:       %{name}-lang = %{version}
Provides:       opensuse-updater-gnome = 0.4.7
Obsoletes:      opensuse-updater-gnome < 0.4.7
Group:          System/GUI/GNOME
Summary:        Applications for the PackageKit API
%gconf_schemas_prereq
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif

%description
GNOME PackageKit provides session applications for the PackageKit API.
There are several utilities designed for installing, updating and
removing packages on your system.



Authors:
--------
    Richard Hughes <richard@hughsie.com>

%lang_package
%prep
%setup -q
translation-update-upstream
%patch1 -p1
%patch3 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build
#autoreconf -f -i
%configure \
	--disable-scrollkeeper \
        --disable-schemas-install
%__make %{?jobs: -j%jobs}

%install
%makeinstall
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%suse_update_desktop_file gpk-repo
%suse_update_desktop_file gpk-log Settings
%suse_update_desktop_file gpk-update-viewer
%suse_update_desktop_file gpk-application
%suse_update_desktop_file gpk-prefs X-SuSE-ControlCenter-System
# Temporary workaround to not have to own /usr/share/gnome/autostart. Upstream
# will move the file in the right directory.
install -d %{buildroot}%{_sysconfdir}/xdg/autostart
mv %{buildroot}%{_datadir}/gnome/autostart/gpk-update-icon.desktop %{buildroot}%{_sysconfdir}/xdg/autostart
# end of workaround
%suse_update_desktop_file gpk-update-icon
%suse_update_desktop_file gpk-install-file
%suse_update_desktop_file gpk-install-catalog
%suse_update_desktop_file gpk-service-pack
mkdir $RPM_BUILD_ROOT/usr/sbin

%clean
rm -rf "$RPM_BUILD_ROOT"

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/gpk-*
%{_datadir}/gnome-packagekit
%{_sysconfdir}/xdg/autostart/gpk-update-icon.desktop
%{_datadir}/applications/gpk-*.desktop
%{_datadir}/icons/hicolor/*
%dir %{python_sitelib}/packagekit
%{python_sitelib}/packagekit/g*

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by