File gnome-control-center.spec of Package gnome-control-center.import4489

#
# spec file for package gnome-control-center
#
# 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/
#

# norootforbuild


Name:           gnome-control-center
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  gnome-common
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-patch-translation
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnome-desktop-2.0)
BuildRequires:  pkgconfig(gnome-settings-daemon)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(libebook-1.2)
BuildRequires:  pkgconfig(libgnomekbd)
BuildRequires:  pkgconfig(libgnomekbdui)
BuildRequires:  pkgconfig(libgnome-menu)
BuildRequires:  pkgconfig(libmetacity-private)
BuildRequires:  pkgconfig(libslab)
BuildRequires:  pkgconfig(libxklavier)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(unique-1.0)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xi)
License:        GPLv2+
Group:          System/GUI/GNOME
Obsoletes:      fontilus themus acme
Provides:       fontilus themus acme
Version:        2.32.1
Release:        7.<RELEASE12>
Summary:        The GNOME Control Center
Source:         %{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE gnome-control-center-shell-common-tasks-i18n.patch vuntz@opensuse.org -- Translate favorite capplets in the code. This is needed for our gconf2-branding to really work for this setting, so keep in sync with gconf2-branding.
Patch0:         gnome-control-center-shell-common-tasks-i18n.patch
# PATCH-FIX-UPSTREAM gnome-control-center-bnc427745-force-dpi.patch bnc427745 bgo553652 vuntz@novell.com -- Force the DPI to 96 right now to avoid big fonts.
Patch1:         gnome-control-center-bnc427745-force-dpi.patch
# PATCH-FIX-UPSTREAM gnome-control-center-mime-scheme-handler.patch vuntz@opensuse.org -- Use x-scheme-handler/* mime types to set default web browser and mailer. Cherry-picked to gonme-2-32 branch from master/3.0 branch
Patch2:         gnome-control-center-mime-scheme-handler.patch
# PATCH-FIX-OPENSUSE gnome-control-center-symlinked-background.patch vuntz@opensuse.org -- Do not show twice the configured background, if it is a symlink to a known background. This only applies to 2.32.x, and is not needed on 3.0, so there's no need to send it upstream
Patch3:         gnome-control-center-symlinked-background.patch
# PATCH-NEEDS-REBASE gnome-control-center-system-proxy-configuration.patch -- this needs to be reimplemented to be more distro-generic before submitting upstream - docs at http://en.opensuse.org/GNOME/Proxy_configuration (was PATCH-FEATURE-OPENSUSE)
Patch14:        gnome-control-center-system-proxy-configuration.patch
# PATCH-FEATURE-OPENSUSE gnome-control-center-use-settings-menu.patch
Patch28:        gnome-control-center-use-settings-menu.patch
# PATCH-FIX-UPSTREAM gnome-control-center-slideshow-arrows.patch glin@novell.com -- Correct the slideshow arrows in the background items
Patch29:        gnome-control-center-slideshow-arrows.patch
Url:            http://www.gnome.org
Requires:       nautilus gnome-settings-daemon gnome-menus
Recommends:     %{name}-lang
Provides:       control-center2 = 2.22.1
Obsoletes:      control-center2 < 2.22.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
The control center is GNOME's main interface for configuration of
various aspects of your desktop.

%package devel
License:        GPLv2+
Summary:        Header files for the GNOME Control Center
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}
Provides:       control-center2-devel = 2.22.1
Obsoletes:      control-center2-devel < 2.22.1

%description devel
The control center is GNOME's main interface for configuration of
various aspects of your desktop.

%package -n libgnome-window-settings1
License:        GPLv2+
Summary:        Utility library for getting window manager settings
Group:          Development/Libraries/GNOME
Group:          Development/Libraries/GNOME
Recommends:     %{name}-lang

%description -n libgnome-window-settings1
This library is used by the GNOME control center to change preferences
of window managers.

%package -n libgnome-window-settings-devel
License:        GPLv2+
Summary:        Utility library for getting window manager settings - Development Files
Group:          Development/Libraries/GNOME
Requires:       libgnome-window-settings1 = %{version}
Requires:       gtk2-devel

%description -n libgnome-window-settings-devel
This library is used by the GNOME control center to change preferences
of window managers.

%lang_package
%prep
%setup -q
translation-update-upstream
gnome-patch-translation-prepare
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
#NEEDS-REBASE
#%patch14 -p1
%patch28
%patch29 -p1
gnome-patch-translation-update

%build
autoreconf -f -i
%configure --with-pic\
	--disable-static\
	--disable-scrollkeeper\
	--disable-update-mimedb\
	--enable-aboutme
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}-2.0 %{?no_lang_C}
# help files
%find_lang control-center %{?no_lang_C} %{name}-2.0.lang
%find_gconf_schemas
%suse_update_desktop_file -N "Control Center" -G "Personal Settings" -C "Configure the desktop" gnomecc DesktopSettings
# capplets
%suse_update_desktop_file at-properties X-SuSE-ControlCenter-Personal
%suse_update_desktop_file default-applications X-SuSE-ControlCenter-Personal
%suse_update_desktop_file display-properties X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-about-me X-SuSE-ControlCenter-Personal
%suse_update_desktop_file gnome-network-properties X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-settings-mouse X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-appearance-properties X-SuSE-ControlCenter-LookAndFeel
%suse_update_desktop_file keybinding X-SuSE-ControlCenter-Personal
%suse_update_desktop_file keyboard X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file window-properties X-SuSE-ControlCenter-LookAndFeel
%suse_update_desktop_file gnome-at-session
%suse_update_desktop_file gnome-font-viewer
%suse_update_desktop_file gnome-theme-installer
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun

%post -n libgnome-window-settings1 -p /sbin/ldconfig

%postun -n libgnome-window-settings1 -p /sbin/ldconfig

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/control-center/
%doc %{_datadir}/gnome/help/control-center/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/control-center/
%doc %{_datadir}/omf/control-center/control-center-C.omf
%{_sbindir}/gnome-display-properties-install-systemwide
%{_bindir}/*
%{_sysconfdir}/xdg/autostart/*.desktop
%{_datadir}/applications/*.desktop
%{_datadir}/desktop-directories/*.directory
%{_datadir}/gnome/cursor-fonts
%{_datadir}/gnome-control-center
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/mime/packages/*.xml
%{_datadir}/polkit-1/actions/org.gnome.randr.policy
%{_sysconfdir}/xdg/menus/gnomecc.menu

%files lang -f %{name}-2.0.lang

%files devel
%defattr (-, root, root)
%{_datadir}/pkgconfig/gnome-default-applications.pc
%{_datadir}/pkgconfig/gnome-keybindings.pc

%files -n libgnome-window-settings1
%defattr (-, root, root)
%dir %{_libdir}/window-manager-settings
%{_libdir}/window-manager-settings/libmetacity.so
%{_libdir}/libgnome-window-settings.so.*

%files -n libgnome-window-settings-devel
%defattr (-, root, root)
%{_includedir}/gnome-window-settings-2.0
%{_libdir}/libgnome-window-settings.so
%{_libdir}/pkgconfig/gnome-window-settings-2.0.pc

%changelog
openSUSE Build Service is sponsored by