File gnome-control-center-netbook.spec of Package gnome-control-center-netbook
#
# spec file for package gnome-control-center (Version 2.31.91)
#
# Copyright (c) 2010 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-netbook
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)
BuildRequires: pkgconfig(libmutter-private)
BuildRequires: pkgconfig(mx-gtk-1.0)
License: GPLv2+
Group: System/GUI/GNOME
Obsoletes: fontilus themus acme
Provides: fontilus themus acme gnome-control-center
Version: 2.32.1
Release: 1
Summary: The GNOME Control Center for netbooks
Source0: gnome-control-center-%{version}.tar.bz2
Source1: gnome-appearance-properties.desktop
Source2: gnome-network-properties.desktop
Source3: gnome-settings-mouse.desktop
Source4: keyboard.desktop
# 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-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-bnc436206-add-to-default.patch bnc436206 sreeves@novell.com -- Add groupwise to defaults list
Patch31: gnome-control-center-bnc436206-add-to-default.patch
# PATCH-FIX-UPSTREAM g-c-c-n-unstable-API.patch awafaa@opensuse.org -Enable unstable API
Patch32: g-c-c-n-unstable-API.patch
# PATCH-FIX-UPSTREAM - awafaa@opensuse.org imported from upstream MeeGo
Patch40: MeeGo-patch-out-help-button-for-network.patch
Patch41: 0001-Add-new-shell-and-libgnome-control-center-extension.patch
Patch42: 0002-Add-Appearance-settings-panel.patch
Patch43: 0003-Add-date-panel.patch
Patch44: 0004-Add-Language-settings-panel.patch
Patch45: 0005-Add-minimal-display-capplet.patch
Patch46: 0006-Add-Keyboard-and-Shortcuts-settings-panel.patch
Patch47: 0007-Add-pointer-settings-panel.patch
Patch48: 0008-Add-network-settings-panel.patch
Patch49: 0009-Add-Security-settings-panel.patch
Patch50: 0011-Add-Power-settings-panel.patch
Patch51: 0012-shell-Don-t-include-both-Personal-and-Look-Feel.patch
Patch52: 0013-Don-t-build-capplets-not-used-by-MeeGo.patch
Patch53: Gtk-2_22-compliance.patch
# End of patches imported from upstream MeeGo
Url: http://www.gnome.org
Requires: nautilus gnome-settings-daemon gnome-menus
Requires: %{name}-lang = %{version}
Provides: control-center2 = 2.22.1
Obsoletes: control-center2 < 2.22.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
This package contains the control center for the GNOME 2.x Desktop for netbooks.
%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
This package contains the control center for the GNOME 2.x Desktop.
%package -n libgnome-window-settings1
License: GPLv2+
Summary: Utility library for getting window manager settings
Group: Development/Libraries/GNOME
Group: Development/Libraries/GNOME
%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 -n gnome-control-center-%{version}
translation-update-upstream
gnome-patch-translation-prepare
%patch0 -p1
%patch1 -p1
#NEEDS-REBASE
#%patch14 -p1
%patch28
%patch31 -p1
%patch32 -p1
%patch40 -p1
%patch41 -p1
%patch42 -p1
%patch43 -p1
%patch44 -p1
#%patch45 -p1
#%patch46 -p1
%patch47 -p1
#%patch48 -p1
#%patch49 -p1
#%patch50 -p1
#%patch51 -p1
#%patch52 -p1
%patch53 -p1
gnome-patch-translation-update
%build
autoreconf -f -i
%configure --with-pic\
--disable-static\
--disable-scrollkeeper\
--disable-update-mimedb\
--enable-moblin \
--with-window-manager=mutter \
--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
#Install desktop files
install -m 0644 %{SOURCE1} %{buildroot}/%{_datadir}/applications
install -m 0644 %{SOURCE2} %{buildroot}/%{_datadir}/applications
install -m 0644 %{SOURCE3} %{buildroot}/%{_datadir}/applications
install -m 0644 %{SOURCE4} %{buildroot}/%{_datadir}/applications
%find_lang gnome-control-center-2.0
# help files
%find_lang control-center gnome-control-center-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
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%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
%post -n libgnome-window-settings1 -p /sbin/ldconfig
%postun -n libgnome-window-settings1 -p /sbin/ldconfig
%post devel -p /sbin/ldconfig
%postun devel -p /sbin/ldconfig
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_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
#%defattr (-, root, root)
%dir %{_libdir}/control-center-1
%dir %{_libdir}/control-center-1/extensions
%{_libdir}/control-center-1/extensions/*.so
%{_libexecdir}/cc-theme-thumbnailer-helper
%files lang -f gnome-control-center-2.0.lang
%files devel
%defattr (-, root, root)
%{_datadir}/pkgconfig/gnome-default-applications.pc
%{_datadir}/pkgconfig/gnome-keybindings.pc
%{_includedir}/gnome-control-center-1
%{_libdir}/pkgconfig/libgnome-control-center-extension.pc
%{_libdir}/libgnome-control-center-extension.so
%{_libdir}/libgnome-control-center-extension.so.*
%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