File gnome-packagekit.spec of Package gnome-packagekit

#
# spec file for package gnome-packagekit
#
# Copyright (c) 2011 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
Version:        2.32.0
Release:        3
License:        GPLv2+
Summary:        Applications for the PackageKit API
Url:            http://packagekit.org/
Group:          System/GUI/GNOME
Source:         %{name}-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch1:         gnome-packagekit-OnlyShowIn.patch
#PATCH-FEATURE-OPENSUSE gnome-packagekit-fate302445.patch fate 302445
Patch3:         gnome-packagekit-fate302445.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch5:         gnome-packagekit-BNC383261.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch6:         gnome-packagekit-BNC538353.patch
# PATCH-FIX-UPSTREAM gnome-packagekit-opensuse-libexec.patch bgo#628962 vuntz@opensuse.org -- Use right libexecdir; fix from git
Patch7:         gnome-packagekit-opensuse-libexec.patch
# PATCH-FIX-OPENSUSE gnome-packagekit-gpk-prefs-desktop.patch bnc380665 vuntz@opensuse.org -- Change the name of the gpk-prefs desktop file to not create confusion with gpk-update-viewer. We patch to automatically get the new translation from the po file
Patch9:         gnome-packagekit-gpk-prefs-desktop.patch
BuildRequires:  PackageKit-devel
BuildRequires:  dbus-1-devel
BuildRequires:  desktop-file-utils
BuildRequires:  gconf2-devel
BuildRequires:  gettext-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-menus-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libcanberra-devel
BuildRequires:  libgudev-1_0-devel
BuildRequires:  libnotify-devel
BuildRequires:  libunique-devel
BuildRequires:  libupower-glib-devel
BuildRequires:  sqlite-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Requires:       gnome-icon-theme
Recommends:     %{name}-lang
Provides:       opensuse-updater-gnome = 0.4.7
Obsoletes:      opensuse-updater-gnome < 0.4.7
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%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.

%package extras
License:        GPLv2+
Summary:        Applications for the PackageKit API - Extra applications
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}

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

This package contains tools that provide functionality also provided by
YaST Software Management.

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

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

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%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 %{buildroot}%{_prefix}/sbin

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%post
%desktop_database_post
%icon_theme_cache_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun
%icon_theme_cache_postun

%post extras
%desktop_database_post

%postun extras
%desktop_database_postun

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/gpk-backend-status
%{_bindir}/gpk-dbus-service
%{_bindir}/gpk-install-catalog
%{_bindir}/gpk-install-local-file
%{_bindir}/gpk-install-mime-type
%{_bindir}/gpk-install-package-name
%{_bindir}/gpk-install-provide-file
%{_bindir}/gpk-prefs
%{_bindir}/gpk-update-icon
%{_bindir}/gpk-update-viewer
%{_datadir}/applications/gpk-install-catalog.desktop
%{_datadir}/applications/gpk-install-file.desktop
%{_datadir}/applications/gpk-prefs.desktop
%{_datadir}/applications/gpk-update-viewer.desktop
%dir %{_datadir}/gnome-packagekit
%{_datadir}/gnome-packagekit/gpk-backend-status.ui
%{_datadir}/gnome-packagekit/gpk-client.ui
%{_datadir}/gnome-packagekit/gpk-error.ui
%{_datadir}/gnome-packagekit/gpk-eula.ui
# gpk-log.ui is actually used by other apps
%{_datadir}/gnome-packagekit/gpk-log.ui
%{_datadir}/gnome-packagekit/gpk-prefs.ui
%{_datadir}/gnome-packagekit/gpk-signature.ui
%{_datadir}/gnome-packagekit/gpk-update-viewer.ui
%{_datadir}/gnome-packagekit/icons/
%{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service
%{_datadir}/icons/hicolor/*/apps/gpk-*.*
%{_datadir}/icons/hicolor/*/mimetypes/application-*.*
%{_sysconfdir}/xdg/autostart/gpk-update-icon.desktop
%{python_sitelib}/packagekit

%files lang -f %{name}.lang

%files extras
%defattr(-, root, root)
%{_bindir}/gpk-application
%{_bindir}/gpk-log
%{_bindir}/gpk-repo
%{_bindir}/gpk-service-pack
%{_datadir}/applications/gpk-application.desktop
%{_datadir}/applications/gpk-log.desktop
%{_datadir}/applications/gpk-repo.desktop
%{_datadir}/applications/gpk-service-pack.desktop
%{_datadir}/gnome-packagekit/gpk-application.ui
%{_datadir}/gnome-packagekit/gpk-repo.ui
%{_datadir}/gnome-packagekit/gpk-service-pack.ui

%changelog
openSUSE Build Service is sponsored by