Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
gconf2-branding-openSUSE
gconf2-branding-SLES.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gconf2-branding-SLES.spec of Package gconf2-branding-openSUSE
# # spec file for package gconf2-branding-SLES (Version 2.28) # # Copyright (c) 2009 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 %define build_openSUSE 0 %define build_SLED 0 %define build_SLES 1 %if %build_openSUSE %define branding_name openSUSE %define desktop_data openSUSE %define desktop_data_ver 11.2 %if %suse_version == 1110 %define desktop_data_ver 11.1 %endif %endif %if %build_SLED %define branding_name SLED %define desktop_data SLED %define desktop_data_ver 11 %endif %if %build_SLES %define branding_name SLES %define desktop_data SLED %define desktop_data_ver 11 %endif # Do not edit this auto generated file! Edit gconf2-branding.spec.in. Name: gconf2-branding-SLES License: BSD 3-clause (or similar) Group: System/GUI/GNOME Summary: SLES defaults for the GNOME configuration system Version: 2.28 Release: 3 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: gconf2 Source: gconf2-branding_spec-prepare.sh # panel-default-setup.entries from gnome-panel (patched SuSE version): Source2: panel-default-setup.entries Source3: gconf2-branding-COPYING Source4: gnome-wallpaper-11.0.2.tar.bz2 Source5: GnomeOnlineHelp.desktop Source7: suse-icon.tar.bz2 Source8: suse-help.svg Source9: gnome-wallpaper-11.1.tar.bz2 Source10: novell-sound-index.theme Source11: novell-sound-desktop-login.ogg Source12: gnome-wallpaper-11.2.tar.bz2 Source99: HACKING # PATCH-FEATURE-OPENSUSE gnome-panel-layout.patch -- panel-default-setup.entries patch for gnome-panel: Patch0: gnome-panel-layout.patch # PATCH-FEATURE-OPENSUSE gnome-panel-layout-SLES.patch -- panel-default-setup.entries patch for gnome-panel: Patch1: gnome-panel-layout-SLES.patch Provides: gconf2-branding = 2.20 Conflicts: otherproviders(gconf2-branding) Supplements: packageand(gnome-session:branding-SLES) BuildRequires: desktop-data-%{desktop_data} gconf2 # needed for epiphany version BuildRequires: epiphany %define epiphany_version %(rpm -q --qf '%%{version}-%%{release}' epiphany) # For directory ownership of %{_datadir}/backgrounds: # BuildRequires: gnome-themes #BRAND: gconf2-branding-openSUSE provides branding Look and Feel using #BRAND: gconf schemas. All referenced files must be present in this #BRAND: package or in required packages. Requires: desktop-data-%{desktop_data} = %{desktop_data_ver} # Icon theme Requires: gtk2-metatheme-gilouche # Metacity and gtk+ theme Requires: gtk2-metatheme-sonar # Window title font Requires: fifth-leg-font %if %build_SLED || %build_SLES # the sound theme inherits from the freedesktop one Requires: sound-theme-freedesktop %endif %if ! %build_SLES # tomboy is in the default panel configuration # FIXME: this should be a Requires, but see bnc#531836 Recommends: tomboy %endif Suggests: desktop-data-SLES-extra-gnome %description This package provides SLES defaults for configurations based on GConf database system. %package -n desktop-data-SLES-extra-gnome License: BSD 3-clause (or similar) Enhances: gconf2-branding-SLES Supplements: desktop-data-%{desktop_data}-extra Summary: Dynamic Wallpaper with SLES Look Group: System/GUI/GNOME Version: %{desktop_data_ver} Release: 8 %description -n desktop-data-SLES-extra-gnome This optional package contains nice dynamic wallpaper with SLES look. It changes its color depending on day time - bright in daylight, dark overnight. %prep %setup -q -T -a4 -a7 -a9 -a12 -c %{name}-%{version} cp -a %{S:2} . cp -a %{S:3} COPYING %patch0 %if %build_SLES %patch1 %endif %build %install install -d $RPM_BUILD_ROOT%{_datadir}/backgrounds $RPM_BUILD_ROOT%{_datadir}/gnome-background-properties # current dynamic background cp -a daft $RPM_BUILD_ROOT%{_datadir}/backgrounds/ install -m0644 desktop-backgrounds-daft.xml $RPM_BUILD_ROOT%{_datadir}/gnome-background-properties/desktop-data-SLES-extra-gnome.xml %if %build_openSUSE # old 11.0 dynamic background cp -a grass $RPM_BUILD_ROOT%{_datadir}/backgrounds/ install -m0644 desktop-backgrounds-grass.xml $RPM_BUILD_ROOT%{_datadir}/gnome-background-properties/desktop-data-SLES-11.0-extra-gnome.xml cp -a glass $RPM_BUILD_ROOT%{_datadir}/backgrounds/ install -m0644 desktop-backgrounds-glass.xml $RPM_BUILD_ROOT%{_datadir}/gnome-background-properties/desktop-data-SLES-11.1-extra-gnome.xml %endif # sound theme %if %build_SLED || %build_SLES install -d $RPM_BUILD_ROOT%{_datadir}/sounds/novell/stereo install -m0644 %{S:10} $RPM_BUILD_ROOT%{_datadir}/sounds/novell/index.theme install -m0644 %{S:11} $RPM_BUILD_ROOT%{_datadir}/sounds/novell/stereo/desktop-login.ogg %endif # http://en.opensuse.org/GNOME/Projects/SchemasChanges # Only vendor preferences are allowed here. # Stuff to "Make OpenSUSE working must remain in particular packages! %define gconf_call gconftool-2 --direct --config-source=xml::$RPM_BUILD_ROOT%{_sysconfdir}/gconf/gconf.xml.vendor %define gconf_set %gconf_call --set %define gconf_load %gconf_call --load mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gconf/gconf.xml.vendor # Set actions list differently from upstream: # FIXME: NEEDS-REBASE #%gconf_set /apps/control-center/cc_actions_list --type=list --list-type=string "[Add Printer;system-config-printer.desktop,Configure Network;nm-connection-editor.desktop,Change Password;gnome-passwd.desktop,Add User;YaST2/users.desktop,Open Administrator Settings;YaST.desktop]" # Change epiphany homepage: %if %build_openSUSE %gconf_set /apps/epiphany/general/homepage --type=string "http://www.opensuse.org/" %endif %if %build_SLED || %build_SLES %gconf_set /apps/epiphany/general/homepage --type=string "http://www.novell.com/linux/11/" %endif %gconf_set /apps/epiphany/web/user_agent_vendor --type=string "SUSE/%{epiphany_version}" # Display all workspaces in the gnome-panel window list applet: # FIXME: This key has no applyto and it cannot work. But it is now the default. #%gconf_set /schemas/apps/window_list_applet/prefs/display_all_workspaces --type=bool "true" # Icon used on gdm greeter %gconf_set /apps/gdm/simple-greeter/logo_icon_name --type=string "gdm-suse" # No user list in GDM for SLED/SLES %if %build_SLED || %build_SLES %gconf_set /apps/gdm/simple-greeter/disable_user_list --type=bool "true" %endif # Depends on the gnome-power-manager-notify-idle-sleep.patch in g-p-m %gconf_set /apps/gnome-power-manager/notify/idle_sleep --type=bool "true" # Enable Energy Star compliant default configuration %gconf_set /apps/gnome-power-manager/actions/sleep_type_battery --type=string "suspend" %gconf_set /apps/gnome-power-manager/timeout/sleep_display_ac --type=int 300 # To complete Energy Star compliant default configuration, you should enable this too: # (disabled by default because suspending is not working fine in all cases) #%gconf_set /apps/gnome-power-manager/timeout/sleep_computer_battery --type=int 1200 #%gconf_set /apps/gnome-power-manager/timeout/sleep_computer_ac --type=int 1200 # Use gnome-wm as default window manager: %gconf_set /desktop/gnome/session/required_components/windowmanager --type=string "gnome-wm" # The PackageKit gtk+ module is too spammy, fdo#23917 %gconf_set /apps/gnome_settings_daemon/gtk-modules/pk-gtk-module --type=bool "false" # Define default keybinding of gnome-settings-daemon: # FIX-OPENSUSE bnc#462640 vuntz@novell.com -- mute button always mute, instead of toggling %gconf_set /apps/gnome_settings_daemon/toggle_mute --type=bool "FALSE" # FIX-OPENSUSE gnome-settings-daemon-default-config.patch %gconf_set /apps/gnome_settings_daemon/keybindings/help --type=string "XF86Help" # Set keyboard layout global per session instead of per window # FIX-OPENSUSE bnc#540014 dimstar@opensuse.org -- Global keyboard layout instead of per window. %gconf_set /desktop/gnome/peripherals/keyboard/general/groupPerWindow --type=bool "false" # Enable xrandr notification by default bnc#440868 rodrigo@novell.com %gconf_set /apps/gnome_settings_daemon/xrandr/show_notification_icon --type=bool "TRUE" # Do not show process 'estimated memory usage' column on startup: # FIX-UPSTREAM gnome-system-monitor-resident-schema.patch bnc157022 bgo336376 joeshaw@novell.com -- Probably need to really show Resident by default %gconf_set /apps/procman/proctree/col_15_visible --type=bool "FALSE" %gconf_set /apps/gnome-terminal/global/use_mnemonics --type=bool "false" %gconf_set /apps/gnome-terminal/global/use_menu_accelerators --type=bool "false" # Do not retain PK authorizations by default (bnc#431569) lnussel@suse.de %gconf_set /desktop/gnome/policykit/auth_dialog_retain_authorization --type=bool "false" # Use firefox, not epiphany for all apps handled by gnome-vfs2 and libgnome (keep inactive for ftp): %gconf_set /desktop/gnome/url-handlers/http/command --type=string "firefox %s" %gconf_set /desktop/gnome/url-handlers/https/command --type=string "firefox %s" %gconf_set /desktop/gnome/url-handlers/ftp/command --type=string "firefox %s" %gconf_set /desktop/gnome/applications/browser/exec --type=string "firefox" # Use xchat for irc %gconf_set /desktop/gnome/url-handlers/irc/command --type=string "xchat --existing --url=%s" %gconf_set /desktop/gnome/url-handlers/irc/enabled --type=bool "true" # Change default look of GNOME in libgnome: # Change default background (scriptlets may alter this value): %if %build_openSUSE test -f %{_datadir}/wallpapers/%{desktop_data}112-1600x1200.png # WARNING: Don't forget to change value in scriptlets below: %gconf_set /desktop/gnome/background/picture_filename --type=string "%{_datadir}/wallpapers/%{desktop_data}112-1600x1200.png" %endif %if %build_SLED || %build_SLES test -f %{_datadir}/wallpapers/%{desktop_data}110-1600x1200.png # WARNING: Don't forget to change value in scriptlets below: %gconf_set /desktop/gnome/background/picture_filename --type=string "%{_datadir}/wallpapers/%{desktop_data}110-1600x1200.png" %endif %gconf_set /desktop/gnome/background/picture_options --type=string "stretched" %gconf_set /desktop/gnome/background/primary_color --type=string "#258c06" %gconf_set /desktop/gnome/background/secondary_color --type=string "#258c06" %gconf_set /desktop/gnome/file_views/icon_theme --type=string "Gilouche" %gconf_set /desktop/gnome/interface/accessibility --type=bool "false" %gconf_set /desktop/gnome/interface/icon_theme --type=string "Gilouche" # WARNING: gtk2-branding-SLES must contain the same, otherwise it # will change when gnome-settings-daemon starts: %gconf_set /desktop/gnome/interface/gtk_theme --type=string "Sonar" # Enable sound events by default in libgnome: %gconf_set /desktop/gnome/sound/enable_esd --type=bool "false" %gconf_set /desktop/gnome/sound/event_sounds --type=bool "true" %if %build_SLED || %build_SLES %gconf_set /desktop/gnome/sound/theme_name --type=string "novell" %endif # Disable audible bell in metacity: %gconf_set /apps/metacity/general/audible_bell --type=bool "false" %if %build_SLED || %build_SLES # Enable Windows flag keys to show the panel's main menu in SLED: %gconf_set /apps/metacity/global_keybindings/panel_main_menu_list --type=list --list-type=string "[Super_L,Super_R]" %endif # Change default theme in Metacity: %gconf_set /apps/metacity/general/theme --type=string "Sonar" %gconf_set /apps/metacity/general/titlebar_font --type=string "FifthLeg Bold 12" # FIX-OPENSUSE nautilus-config-defaults.patch -- Default configuration # Enables the classic Nautilus behavior, where all windows are browsers: %gconf_set /apps/nautilus/preferences/always_use_browser --type=bool "true" # Never preview sounds when mousing over an icon: %gconf_set /apps/nautilus/preferences/preview_sound --type=string "never" # Computer icon invisible on desktop: %gconf_set /apps/nautilus/desktop/computer_icon_visible --type=bool "false" # Change notification-daemon theme used when displaying notifications: %gconf_set /apps/notification-daemon/theme --type=string "bubble" # # And generate default GNOME panel layout: export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source` %gconf_load panel-default-setup.entries # # Merge is optional, but one larger file is better than many small files: gconf-merge-tree $RPM_BUILD_ROOT%{_sysconfdir}/gconf/gconf.xml.vendor rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/gconf/gconf.xml.vendor/*/* rmdir $RPM_BUILD_ROOT%{_sysconfdir}/gconf/gconf.xml.vendor/* 2>/dev/null || : # This is deliberately done after the merge. We may want to modify it in scriptlets. # # Set up .desktop files to be shown in users' desktops %gconf_set /apps/nautilus/desktop/predefined_items_dir --type=string /usr/share/dist/desktop-files install -d $RPM_BUILD_ROOT%{_datadir}/dist/desktop-files install -d $RPM_BUILD_ROOT%{_datadir}/dist/icons %if %build_openSUSE install -m 0644 %{S:5} $RPM_BUILD_ROOT%{_datadir}/dist/desktop-files/ # Compatibility: We cannot move these icons to another location without # providing an homedir update process: install -m 0644 %{S:8} $RPM_BUILD_ROOT%{_datadir}/dist/icons/ %endif for size in 16 22 32 48; do install -D -m 0755 suse${size}.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${size}x${size}/apps/gdm-suse.png done install -D -m 0755 suse.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/gdm-suse.svg %clean rm -rf $RPM_BUILD_ROOT %triggerin -- desktop-data-SLES-extra-gnome # If desktop-data-SLES-extra-gnome exists, we want nice dynamic background. gconftool-2 >/dev/null --direct --config-source=xml::%{_sysconfdir}/gconf/gconf.xml.vendor --set\ /desktop/gnome/background/picture_filename --type=string "%{_datadir}/backgrounds/daft/daft.xml" || true %triggerpostun -- desktop-data-SLES-extra-gnome # If desktop-data-SLES-extra-gnome exists, we want nice dynamic background. if ! test -f %{_datadir}/backgrounds/daft/daft.xml ; then %if %build_openSUSE gconftool-2 >/dev/null --direct --config-source=xml::%{_sysconfdir}/gconf/gconf.xml.vendor --set\ /desktop/gnome/background/picture_filename --type=string "%{_datadir}/wallpapers/%{desktop_data}112-1600x1200.png" || true %endif %if %build_SLED || %build_SLES gconftool-2 >/dev/null --direct --config-source=xml::%{_sysconfdir}/gconf/gconf.xml.vendor --set\ /desktop/gnome/background/picture_filename --type=string "%{_datadir}/wallpapers/%{desktop_data}110-1600x1200.png" || true %endif fi %post # If desktop-data-SLES-extra-gnome exists, we want nice dynamic background. if test -f %{_datadir}/backgrounds/daft/daft.xml ; then gconftool-2 >/dev/null --direct --config-source=xml::%{_sysconfdir}/gconf/gconf.xml.vendor --set\ /desktop/gnome/background/picture_filename --type=string "%{_datadir}/backgrounds/daft/daft.xml" fi %files %defattr(-,root,root) %doc COPYING %verify(not md5 size mtime) %{_sysconfdir}/gconf/gconf.xml.vendor/* %{_datadir}/icons/hicolor/*/*/*.* %dir %{_datadir}/dist %dir %{_datadir}/dist/desktop-files %dir %{_datadir}/dist/icons %if %build_openSUSE %{_datadir}/dist/desktop-files/* %{_datadir}/dist/icons/* %endif %if %build_SLED || %build_SLES %{_datadir}/sounds/novell %endif %files -n desktop-data-SLES-extra-gnome %defattr(-,root,root) %doc COPYING %dir %{_datadir}/backgrounds %{_datadir}/backgrounds/daft %{_datadir}/gnome-background-properties/desktop-data-SLES-extra-gnome.xml %if %build_openSUSE %{_datadir}/backgrounds/grass %{_datadir}/gnome-background-properties/desktop-data-SLES-11.0-extra-gnome.xml %{_datadir}/backgrounds/glass %{_datadir}/gnome-background-properties/desktop-data-SLES-11.1-extra-gnome.xml %endif # FIXME: Should be owned by a different package: %dir %{_datadir}/backgrounds %dir %{_datadir}/gnome-background-properties %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor