2008-04-17 04:34:47 +02:00
#
2010-10-15 16:43:43 +02:00
# spec file for package gnome-control-center (Version 2.32.0)
2008-04-17 04:34:47 +02:00
#
2010-02-11 20:20:19 +01:00
# Copyright (c) 2010 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 : fdupes
BuildRequires : gnome-common
BuildRequires : gnome-doc-utils-devel
2009-12-30 00:20:01 +01:00
BuildRequires : gnome-patch-translation
2009-02-07 00:00:48 +01:00
BuildRequires : intltool
2010-02-11 20:20:19 +01:00
BuildRequires : translation-update-upstream
2009-02-07 00:00:48 +01:00
BuildRequires : update-desktop-files
2010-09-13 12:29:50 +02:00
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)
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-10-15 16:43:43 +02:00
Version : 2.32.0
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
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
2010-08-09 23:21:04 +02:00
Requires : nautilus gnome-settings-daemon gnome-menus
2008-04-17 04:34:47 +02:00
Requires : %{name} -lang = %{version}
Provides : control-center2 = 2.22.1
2010-02-11 20:20:19 +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:19 +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
2010-02-11 20:20:19 +01:00
translation-update-upstream
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
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
2010-09-13 12:29:50 +02:00
%suse_update_desktop_file default-applications X-SuSE-ControlCenter-Personal
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
2010-09-13 12:29:50 +02:00
%suse_update_desktop_file gnome-network-properties X-SuSE-ControlCenter-Hardware
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
2010-08-09 23:21:04 +02:00
%{_sbindir} /gnome-display-properties-install-systemwide
2008-04-17 04:34:47 +02:00
%{_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
2010-08-09 23:21:04 +02:00
%{_datadir} /polkit-1/actions/org.gnome.randr.policy
2008-04-17 04:34:47 +02:00
%{_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