2008-04-17 04:34:47 +02:00
#
2010-02-11 20:20:18 +01:00
# spec file for package gnome-control-center (Version 2.29.4)
2008-04-17 04:34:47 +02:00
#
2009-01-12 01:52:05 +01:00
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
2008-04-17 04:34:47 +02:00
#
2008-08-14 00:49:55 +02:00
# 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.
2008-04-17 04:34:47 +02:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name : gnome-control-center
2009-02-07 00:00:48 +01:00
BuildRequires : desktop-file-utils
BuildRequires : evolution-data-server-devel
BuildRequires : fdupes
BuildRequires : gnome-common
BuildRequires : gnome-desktop-devel
BuildRequires : gnome-doc-utils-devel
BuildRequires : gnome-menus-devel
2009-12-30 00:20:01 +01:00
BuildRequires : gnome-patch-translation
2009-02-07 00:00:48 +01:00
BuildRequires : gnome-settings-daemon-devel
BuildRequires : intltool
BuildRequires : libgnomekbd-devel
BuildRequires : librsvg-devel
2009-12-30 00:20:01 +01:00
BuildRequires : libslab-devel
2009-08-17 14:49:25 +02:00
BuildRequires : libunique-devel
2009-02-07 00:00:48 +01:00
BuildRequires : libxklavier-devel
BuildRequires : metacity-devel
BuildRequires : update-desktop-files
BuildRequires : xorg-x11
2009-12-30 00:20:01 +01:00
License : GPLv2+
2008-04-17 04:34:47 +02:00
Group : System/GUI/GNOME
Obsoletes : fontilus themus acme
Provides : fontilus themus acme
2010-02-11 20:20:18 +01:00
Version : 2.29.4
2009-12-30 00:20:01 +01:00
Release : 1
2008-04-17 04:34:47 +02:00
Summary : The GNOME Control Center
2009-02-07 00:00:48 +01:00
Source : %{name} -%{version} .tar.bz2
2009-12-30 00:20:01 +01:00
# 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
2008-09-26 15:24:18 +02:00
# 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
2009-07-31 19:23:33 +02:00
# 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)
2008-04-17 04:34:47 +02:00
Patch14 : gnome-control-center-system-proxy-configuration.patch
2008-11-07 15:08:42 +01:00
# PATCH-FEATURE-OPENSUSE gnome-control-center-use-settings-menu.patch
Patch28 : gnome-control-center-use-settings-menu.patch
2008-05-13 12:42:29 +02:00
# PATCH-FIX-OPENSUSE gnome-control-center-bnc373197-layout-switch-keybinding.patch bnc373197 vuntz@novell.com -- this is a temporary hack to change the default layout switching keybinding
Patch30 : gnome-control-center-bnc373197-layout-switch-keybinding.patch
2009-06-12 18:07:24 +02:00
# PATCH-FIX-UPSTREAM gnome-control-center-bnc436206-add-to-default.patch bnc436206 sreeves@novell.com -- Add groupwise to defaults list
Patch31 : gnome-control-center-bnc436206-add-to-default.patch
2008-04-17 04:34:47 +02:00
Url : http://www.gnome.org
2008-11-17 16:54:20 +01:00
Requires : nautilus gnome-settings-daemon gnome-menus libcanberra-gtk
2008-04-17 04:34:47 +02:00
Requires : %{name} -lang = %{version}
Provides : control-center2 = 2.22.1
2010-02-11 20:20:18 +01:00
Obsoletes : control-center2 <= 2.22.1
2008-04-17 04:34:47 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%gconf_schemas_prereq
%description
This package contains the control center for the GNOME 2.x Desktop.
%package devel
2009-12-30 00:20:01 +01:00
License : GPLv2+
2008-04-17 04:34:47 +02:00
Summary : Header files for the GNOME Control Center
Group : System/GUI/GNOME
2009-08-17 14:49:25 +02:00
Requires : %{name} = %{version}
2008-04-17 04:34:47 +02:00
Provides : control-center2-devel = 2.22.1
2010-02-11 20:20:18 +01:00
Obsoletes : control-center2-devel <= 2.22.1
2008-04-17 04:34:47 +02:00
%description devel
This package contains the control center for the GNOME 2.x Desktop.
2009-08-17 14:49:25 +02:00
%package -n libgnome-window-settings1
2009-12-30 00:20:01 +01:00
License : GPLv2+
2009-08-17 14:49:25 +02:00
Summary : Utility library for getting window manager settings
Group : Development/Libraries/GNOME
Group : Development/Libraries/GNOME
Requires : %{name} -lang = %{version}
%description -n libgnome-window-settings1
This library is used by the GNOME control center to change preferences
of window managers.
2008-04-17 04:34:47 +02:00
2009-08-17 14:49:25 +02:00
%package -n libgnome-window-settings-devel
2009-12-30 00:20:01 +01:00
License : GPLv2+
2009-08-17 14:49:25 +02:00
Summary : Utility library for getting window manager settings - Development Files
Group : Development/Libraries/GNOME
Requires : libgnome-window-settings1 = %{version}
Requires : gtk2-devel
2008-04-17 04:34:47 +02:00
2009-08-17 14:49:25 +02:00
%description -n libgnome-window-settings-devel
This library is used by the GNOME control center to change preferences
of window managers.
2008-04-17 04:34:47 +02:00
%lang_package
%prep
2009-08-17 14:49:25 +02:00
%setup -q
2009-12-30 00:20:01 +01:00
gnome-patch-translation-prepare
%patch0 -p1
2009-02-07 00:00:48 +01:00
%patch1 -p1
2009-07-31 19:23:33 +02:00
#NEEDS-REBASE
#%patch14 -p1
2008-04-17 04:34:47 +02:00
%patch28
2008-05-13 12:42:29 +02:00
%patch30 -p1
2009-06-12 18:07:24 +02:00
%patch31 -p1
2009-12-30 00:20:01 +01:00
gnome-patch-translation-update
2008-04-17 04:34:47 +02:00
%build
autoreconf -f -i
2009-01-27 01:59:11 +01:00
%configure --with-pic\
2008-04-17 04:34:47 +02:00
--disable-static\
--disable-scrollkeeper\
2009-05-28 04:48:32 +02:00
--disable-update-mimedb\
--enable-aboutme
2008-04-17 04:34:47 +02:00
make %{?jobs:-j%jobs}
%install
%makeinstall
2009-12-30 00:20:01 +01:00
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
%endif
2009-08-17 14:49:25 +02:00
rm -f %{buildroot} %{_datadir} /applications/mimeinfo.cache
find %{buildroot} -type f -name " * . l a " -delete -print
%find_lang %{name} -2.0
# help files
%find_lang control-center %{name} -2.0.lang
%find_gconf_schemas
2008-04-17 04:34:47 +02:00
%suse_update_desktop_file -N " C o n t r o l C e n t e r " -G " P e r s o n a l S e t t i n g s " -C " C o n f i g u r e t h e d e s k t o p " gnomecc DesktopSettings
# capplets
%suse_update_desktop_file at-properties X-SuSE-ControlCenter-Personal
2009-11-04 12:32:47 +01:00
%suse_update_desktop_file default-applications X-SuSE-ControlCenter-System AdvancedSettings
2008-04-17 04:34:47 +02:00
%suse_update_desktop_file display-properties X-SuSE-ControlCenter-Hardware
2009-05-28 04:48:32 +02:00
%suse_update_desktop_file gnome-about-me X-SuSE-ControlCenter-Personal
2009-02-12 22:45:29 +01:00
%suse_update_desktop_file gnome-network-properties X-SuSE-ControlCenter-System AdvancedSettings
2008-04-17 04:34:47 +02:00
%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
2009-02-07 00:00:48 +01:00
%suse_update_desktop_file gnome-at-session
%suse_update_desktop_file gnome-font-viewer
%suse_update_desktop_file gnome-theme-installer
2008-04-17 04:34:47 +02:00
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
2009-07-31 19:23:33 +02:00
2008-04-17 04:34:47 +02:00
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
2009-08-17 14:49:25 +02:00
%post -n libgnome-window-settings1 -p /sbin/ldconfig
%postun -n libgnome-window-settings1 -p /sbin/ldconfig
%files -f %{name}.schemas_list
2008-04-17 04:34:47 +02:00
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir} /*
%{_sysconfdir} /xdg/autostart/*.desktop
%{_datadir} /applications/*.desktop
%{_datadir} /desktop-directories/*.directory
%{_datadir} /gnome/cursor-fonts
2009-02-07 00:00:48 +01:00
%{_datadir} /gnome-control-center
2008-04-17 04:34:47 +02:00
%{_datadir} /icons/hicolor/*/*/*.png
%{_datadir} /icons/hicolor/scalable/apps/*.svg
%{_datadir} /mime/packages/*.xml
%{_sysconfdir} /xdg/menus/gnomecc.menu
2009-02-07 00:00:48 +01:00
%files lang -f %{name}-2.0.lang
2008-04-17 04:34:47 +02:00
%files devel
%defattr (-, root, root)
2009-08-17 14:49:25 +02:00
%{_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)
2008-04-17 04:34:47 +02:00
%{_includedir} /gnome-window-settings-2.0
2009-08-17 14:49:25 +02:00
%{_libdir} /libgnome-window-settings.so
%{_libdir} /pkgconfig/gnome-window-settings-2.0.pc
2008-04-17 04:34:47 +02:00
%changelog