2008-04-17 04:34:47 +02:00
#
2011-01-14 16:43:56 +01:00
# spec file for package gnome-control-center
2008-04-17 04:34:47 +02:00
#
2011-01-14 16:43:56 +01:00
# Copyright (c) 2011 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
2011-04-25 11:58:59 +02:00
BuildRequires : cups-devel
2009-02-07 00:00:48 +01:00
BuildRequires : desktop-file-utils
BuildRequires : fdupes
BuildRequires : gnome-common
BuildRequires : gnome-doc-utils-devel
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
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(cheese-gtk)
2011-07-05 10:29:43 +02:00
BuildRequires : pkgconfig(colord)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(dbus-1)
BuildRequires : pkgconfig(dbus-glib-1)
2011-07-05 10:29:43 +02:00
BuildRequires : pkgconfig(goa-1.0)
BuildRequires : pkgconfig(goa-backend-1.0)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(gconf-2.0)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(gdk-pixbuf-2.0)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(glib-2.0)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(gnome-desktop-3.0)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(gnome-settings-daemon)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(gsettings-desktop-schemas)
BuildRequires : pkgconfig(gstreamer-0.10)
BuildRequires : pkgconfig(gtk+-3.0)
BuildRequires : pkgconfig(iso-codes)
BuildRequires : pkgconfig(libcanberra-gtk3)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(libgnomekbd)
BuildRequires : pkgconfig(libgnomekbdui)
BuildRequires : pkgconfig(libgnome-menu)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(libgtop-2.0)
2011-04-25 12:14:06 +02:00
BuildRequires : pkgconfig(libnm-glib) >= 0.8.992
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(libpulse)
BuildRequires : pkgconfig(libpulse-mainloop-glib)
BuildRequires : pkgconfig(libsocialweb-client)
2010-09-13 12:29:50 +02:00
BuildRequires : pkgconfig(libxklavier)
BuildRequires : pkgconfig(libxml-2.0)
2011-04-25 11:58:59 +02:00
BuildRequires : pkgconfig(polkit-gobject-1)
BuildRequires : pkgconfig(upower-glib)
2010-09-13 12:29:50 +02:00
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
2011-07-29 08:56:00 +02:00
Version : 3.1.4
2011-08-12 10:22:10 +02:00
Release : 2
2008-04-17 04:34:47 +02:00
Summary : The GNOME Control Center
2011-07-05 10:29:43 +02:00
Source : http://download.gnome.org/sources/gnome-control-center/3.1/%{name} -%{version} .tar.bz2
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
Url : http://www.gnome.org
2011-04-25 12:14:06 +02:00
# needed for printers panel
Requires : cups-pk-helper
# needed for /usr/bin/glxinfo, used by System info panel
Requires : freeglut
2011-04-25 11:58:59 +02:00
Requires : gnome-menus
Requires : gnome-settings-daemon
2011-07-20 10:22:24 +02:00
# needed for universal access panel
Requires : gnome-themes-accessibility
2011-04-26 11:57:14 +02:00
Requires : gnome-version
2011-04-25 11:58:59 +02:00
Requires : iso-codes
Requires : nautilus
2011-02-13 22:07:12 +01:00
Recommends: %{name} -lang
2011-08-11 21:43:23 +02:00
Recommends: %{name} -user-faces
2011-04-25 11:58:59 +02:00
Recommends: apg
2008-04-17 04:34:47 +02:00
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
2011-04-25 11:58:59 +02:00
%glib2_gsettings_schema_requires
2008-04-17 04:34:47 +02:00
%description
2011-02-13 22:07:12 +01:00
The control center is GNOME's main interface for configuration of
various aspects of your desktop.
2008-04-17 04:34:47 +02:00
2011-08-11 21:43:23 +02:00
%package user-faces
License : GPLv2+
Summary : Login Managers user avatars
Group : System/GUI/GNOME
%description user-faces
This package provides user avatars to be used by display managers
2011-04-25 11:58:59 +02:00
%package -n libgnome-control-center1
License : GPLv2+
Summary : Shared library used by GNOME control center
Group : System/GUI/GNOME
%description -n libgnome-control-center1
Shared library used by GNOME control center
2008-04-17 04:34:47 +02:00
%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
2011-07-05 10:29:43 +02:00
Group : Development/Libraries/GNOME
2009-08-17 14:49:25 +02:00
Requires : %{name} = %{version}
2011-04-25 11:58:59 +02:00
Requires : libgnome-control-center1 = %{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
2011-02-13 22:07:12 +01:00
The control center is GNOME's main interface for configuration of
various aspects of your desktop.
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-07-31 19:23:33 +02:00
#NEEDS-REBASE
#%patch14 -p1
2011-04-25 11:58:59 +02:00
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%endif
2008-04-17 04:34:47 +02:00
%build
2009-01-27 01:59:11 +01:00
%configure --with-pic\
2011-04-25 11:58:59 +02:00
--with-libsocialweb\
--disable-static\
--disable-scrollkeeper\
--disable-maintainer-mode\
--disable-update-mimedb
make %{?jobs:-j%jobs} V=1
2008-04-17 04:34:47 +02:00
%install
%makeinstall
2009-12-30 00:20:01 +01:00
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
%endif
2011-04-25 11:58:59 +02:00
# Drop no: we use either nb or nn
%{__rm} %{buildroot} %{_datadir} /locale/no/LC_MESSAGES/gnome-control-center-2.0-timezones.mo
2009-08-17 14:49:25 +02:00
rm -f %{buildroot} %{_datadir} /applications/mimeinfo.cache
find %{buildroot} -type f -name " * . l a " -delete -print
2011-02-13 22:07:12 +01:00
%find_lang %{name} -2.0 %{?no_lang_C}
2011-04-25 11:58:59 +02:00
%find_lang %{name} -2.0-timezones %{name} -2.0.lang
2009-08-17 14:49:25 +02:00
# help files
2011-02-13 22:07:12 +01:00
%find_lang control-center %{?no_lang_C} %{name} -2.0.lang
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-control-center
2011-07-05 10:29:43 +02:00
%suse_update_desktop_file gnome-sound-applet
2008-04-17 04:34:47 +02:00
# capplets
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-background-panel X-SuSE-ControlCenter-LookAndFeel
2011-07-05 10:29:43 +02:00
%suse_update_desktop_file gnome-color-panel X-SuSE-ControlCenter-Hardware
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-datetime-panel X-SuSE-ControlCenter-Hardware
2011-04-25 12:14:06 +02:00
%suse_update_desktop_file gnome-display-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-info-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file gnome-keyboard-panel X-SuSE-ControlCenter-Hardware
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-media-panel X-SuSE-ControlCenter-Hardware
2011-04-25 12:14:06 +02:00
%suse_update_desktop_file gnome-mouse-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-network-panel X-SuSE-ControlCenter-Hardware
2011-07-05 10:29:43 +02:00
%suse_update_desktop_file gnome-online-accounts-panel X-SuSE-ControlCenter-Personal
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-power-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-printers-panel X-SuSE-ControlCenter-Hardware
2011-04-25 12:14:06 +02:00
%suse_update_desktop_file gnome-region-panel X-SuSE-ControlCenter-Personal
2011-04-25 11:58:59 +02:00
%suse_update_desktop_file gnome-screen-panel X-SuSE-ControlCenter-LookAndFeel
2011-04-25 12:14:06 +02:00
%suse_update_desktop_file gnome-sound-panel X-SuSE-ControlCenter-Hardware
%suse_update_desktop_file gnome-universal-access-panel X-SuSE-ControlCenter-Personal
%suse_update_desktop_file gnome-user-accounts-panel X-SuSE-ControlCenter-Personal
2008-04-17 04:34:47 +02:00
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
2011-04-25 11:58:59 +02:00
%glib2_gsettings_schema_post
2011-02-13 22:07:12 +01:00
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
2009-07-31 19:23:33 +02:00
2008-04-17 04:34:47 +02:00
%postun
2011-04-25 11:58:59 +02:00
%glib2_gsettings_schema_postun
2011-02-13 22:07:12 +01:00
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
2008-04-17 04:34:47 +02:00
2011-04-25 11:58:59 +02:00
%post -n libgnome-control-center1 -p /sbin/ldconfig
2009-08-17 14:49:25 +02:00
2011-04-25 11:58:59 +02:00
%postun -n libgnome-control-center1 -p /sbin/ldconfig
2009-08-17 14:49:25 +02:00
2011-04-28 23:12:08 +02:00
%files
2008-04-17 04:34:47 +02:00
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
2011-02-13 22:07:12 +01:00
%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
2008-04-17 04:34:47 +02:00
%{_bindir} /*
%{_sysconfdir} /xdg/autostart/*.desktop
2011-04-25 11:58:59 +02:00
%{_libdir} /control-center-1/
2008-04-17 04:34:47 +02:00
%{_datadir} /applications/*.desktop
%{_datadir} /desktop-directories/*.directory
2011-04-25 11:58:59 +02:00
%{_datadir} /gnome-control-center/
2008-04-17 04:34:47 +02:00
%{_datadir} /icons/hicolor/*/*/*.png
2011-04-25 11:58:59 +02:00
%{_datadir} /icons/hicolor/*/*/*.svg
%dir %{_datadir} /sounds/gnome
%dir %{_datadir} /sounds/gnome/default
%dir %{_datadir} /sounds/gnome/default/alerts
%{_datadir} /sounds/gnome/default/alerts/*.ogg
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
2011-08-11 21:43:23 +02:00
%files user-faces
%defattr (-, root, root)
%{_datadir} /pixmaps/faces/
2011-04-25 11:58:59 +02:00
%files -n libgnome-control-center1
2009-08-17 14:49:25 +02:00
%defattr (-, root, root)
2011-04-25 11:58:59 +02:00
%{_libdir} /libgnome-control-center.so.1*
2009-08-17 14:49:25 +02:00
2011-04-25 11:58:59 +02:00
%files devel
2009-08-17 14:49:25 +02:00
%defattr (-, root, root)
2011-04-25 11:58:59 +02:00
%{_datadir} /pkgconfig/gnome-keybindings.pc
%{_libdir} /*.so
2008-04-17 04:34:47 +02:00
%changelog