File xfce4-branding-openSUSE.spec of Package xfce4-branding-openSUSE
#
# spec file for package xfce4-branding-openSUSE
#
# Copyright (c) 2012 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/
#
%define libxfce4ui_libname libxfce4ui-1-0
%define xfce4_panel_version %(rpm -q --queryformat '%%{VERSION}' xfce4-panel)
%define xfce4_session_version %(rpm -q --queryformat '%%{VERSION}' xfce4-session)
%define xfce4_settings_version %(rpm -q --queryformat '%%{VERSION}' xfce4-settings)
%define xfdesktop_version %(rpm -q --queryformat '%%{VERSION}' xfdesktop)
%define libgarcon_version %(rpm -q --queryformat '%%{VERSION}' libgarcon-data)
%define libxfce4ui_version %(rpm -q --queryformat '%%{VERSION}' %{libxfce4ui_libname})
%define xfce4_notifyd_version %(rpm -q --queryformat '%%{VERSION}' xfce4-notifyd)
%define exo_version %(rpm -q --queryformat '%%{VERSION}' exo-data)
%define xfwm4_version %(rpm -q --queryformat '%%{VERSION}' xfwm4)
%define thunar_volman_version %(rpm -q --queryformat '%%{VERSION}' thunar-volman)
%if 0%{?suse_version} > 1140
%define midori_version %(rpm -q --queryformat '%%{VERSION}' midori)
%endif
Name: xfce4-branding-openSUSE
Version: 4.10.0
Release: 0
Summary: openSUSE Branding of the Xfce Desktop Environment
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Url: http://www.opensuse.org/
%if 0%{?suse_version} < 1210
Source0: %{name}_11.4-%{version}.tar.bz2
%else
Source0: %{name}-%{version}.tar.bz2
%endif
Source1: openSUSE-xfce-icon-theme.tar.bz2
BuildRequires: %{libxfce4ui_libname}
BuildRequires: exo-data
BuildRequires: fdupes
BuildRequires: libgarcon-data
%if 0%{?suse_version} < 1210
BuildRequires: desktop-data
%else
BuildRequires: midori
# needed for %%{_sysconfdir}/xdg/midori/search
BuildRequires: midori-branding-upstream
BuildRequires: wallpaper-branding
%endif
BuildRequires: thunar-volman
BuildRequires: xfce4-notifyd
BuildRequires: xfce4-panel
BuildRequires: xfce4-session
BuildRequires: xfce4-settings
BuildRequires: xfdesktop
BuildRequires: xfwm4
BuildRequires: xfwm4-branding-upstream
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
This package provides the openSUSE look and feel for the Xfce desktop environment.
%package -n openSUSE-xfce-icon-theme
Summary: openSUSE Xfce Default Icon Theme
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Requires: gnome-icon-theme
%description -n openSUSE-xfce-icon-theme
This is the openSUSE Xfce Default Icon Theme.
%package -n xfce4-panel-branding-openSUSE
Summary: openSUSE Branding of xfce4-panel
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
# uses xfce4-panel-plugin-mixer
Recommends: xfce4-mixer
Recommends: xfce4-panel-plugin-mixer
Conflicts: otherproviders(xfce4-panel-branding)
Provides: xfce4-panel-branding = %{xfce4_panel_version}
Supplements: packageand(xfce4-panel:branding-openSUSE)
%description -n xfce4-panel-branding-openSUSE
This package provides the openSUSE look and feel for the Xfce Panel.
%package -n xfce4-session-branding-openSUSE
Summary: openSUSE Branding of xfce4-session
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Conflicts: otherproviders(xfce4-session-branding)
Provides: xfce4-session-branding = %{xfce4_session_version}
Supplements: packageand(xfce4-session:branding-openSUSE)
%description -n xfce4-session-branding-openSUSE
This package provides the openSUSE look and feel for the Xfce Session Manager.
%package -n xfce4-settings-branding-openSUSE
Summary: openSUSE Branding of xfce4-settings
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
# should bring in either desktop-data-openSUSE or desktop-data-SLED
Requires: desktop-data
%if 0%{?suse_version} < 1210
Requires: gtk2-metatheme-sonar
%else
Requires: gtk2-metatheme-adwaita
Requires: gtk3-metatheme-adwaita
Requires: openSUSE-xfce-icon-theme
# built from branding-openSUSE
Requires: xfce4-splash-branding-openSUSE
%endif
Conflicts: otherproviders(xfce4-settings-branding)
Provides: xfce4-settings-branding = %{xfce4_settings_version}
Supplements: packageand(xfce4-settings:branding-openSUSE)
%description -n xfce4-settings-branding-openSUSE
This package provides the openSUSE look and feel for Xfce.
%package -n xfdesktop-branding-openSUSE
Summary: openSUSE Branding of xfdesktop
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
%if 0%{?suse_version} >= 1210
Requires: wallpaper-branding
%else
# should bring in either desktop-data-openSUSE or desktop-data-SLED
Requires: desktop-data
%endif
Conflicts: otherproviders(xfdesktop-branding)
Provides: xfce4-desktop-branding-openSUSE = %{xfdesktop_version}
Provides: xfdesktop-branding = %{xfdesktop_version}
Obsoletes: xfce4-desktop-branding-openSUSE < %{xfdesktop_version}
Supplements: packageand(xfdesktop:branding-openSUSE)
%description -n xfdesktop-branding-openSUSE
This package provides the openSUSE look and feel for the Xfce Desktop Manager.
%package -n libgarcon-branding-openSUSE
Summary: openSUSE Branding of libgarcon
License: CC-BY-SA-3.0 and GPL-2.0
Group: System/GUI/XFCE
# should bring in either desktop-data-openSUSE or desktop-data-SLED
Requires: desktop-data
# xfce-applications.menu requires xfce-settings-manager.menu
Requires: xfce4-settings-branding-openSUSE = %{version}
# the menu references xfce4-about.desktop
Requires: libxfce4ui-tools
Conflicts: otherproviders(libgarcon-branding)
Provides: libgarcon-branding = %{libgarcon_version}
Supplements: packageand(libgarcon-data:branding-openSUSE)
%description -n libgarcon-branding-openSUSE
This package provides the openSUSE look and feel for Garcon.
%package -n libxfce4ui-branding-openSUSE
Summary: openSUSE Branding of libxfce4ui
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Conflicts: otherproviders(libxfce4ui-branding)
Provides: libxfce4ui-branding = %{libxfce4ui_version}
Supplements: packageand(%{libxfce4ui_libname}:branding-openSUSE)
%description -n libxfce4ui-branding-openSUSE
This package provides the openSUSE look and feel for the libxfce4ui library.
%package -n xfce4-notifyd-branding-openSUSE
Summary: openSUSE Branding of xfce4-notifyd
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Conflicts: otherproviders(xfce4-notifyd-branding)
Provides: xfce4-notifyd-branding = %{xfce4_notifyd_version}
Supplements: packageand(xfce4-notifyd:branding-openSUSE)
%description -n xfce4-notifyd-branding-openSUSE
This package provides the openSUSE look and feel for the Xfce Notification Daemon.
%package -n exo-branding-openSUSE
Summary: openSUSE Branding of exo
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Conflicts: otherproviders(exo-branding)
Provides: exo-branding = %{exo_version}
Supplements: packageand(exo-data:branding-openSUSE)
%description -n exo-branding-openSUSE
This package provides the openSUSE look and feel for the exo library.
%package -n xfwm4-branding-openSUSE
Summary: openSUSE Branding of xfwm4
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Requires: fifth-leg-font
Conflicts: otherproviders(xfwm4-branding)
Provides: xfwm4-branding = %{xfwm4_version}
Supplements: packageand(xfwm4:branding-openSUSE)
%description -n xfwm4-branding-openSUSE
This package provides the openSUSE look and feel for the xfwm4 window manager.
%package -n thunar-volman-branding-openSUSE
Summary: openSUSE Branding of thunar-volman
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Conflicts: otherproviders(thunar-volman-branding)
Provides: thunar-volman-branding = %{thunar_volman_version}
Supplements: packageand(thunar-volman:branding-openSUSE)
%description -n thunar-volman-branding-openSUSE
This package provides the openSUSE look and feel for the Thunar Volume Manager.
%if 0%{?suse_version} > 1140
%package -n midori-branding-openSUSE
Summary: openSUSE Branding of midori
License: CC-BY-SA-3.0 and GPL-2.0+
Group: System/GUI/XFCE
Conflicts: otherproviders(midori-branding)
Provides: midori-branding = %{midori_version}
Supplements: packageand(midori:branding-openSUSE)
%description -n midori-branding-openSUSE
This package provides the openSUSE look and feel for the Midori web browser.
%endif
%prep
%setup -q -a1
%build
%if 0%{?suse_version} > 1140
cp %{_sysconfdir}/xdg/midori/search etc/xdg/midori/search
cat >>etc/xdg/midori/search <<'EOF'
[openSUSE Software]
name=openSUSE Software
text=Search for openSUSE packages
uri=http://software.opensuse.org/search?p=1&baseproject=ALL&q=%%s
token=os
EOF
%endif
%install
find etc usr -depth -print | cpio -pvd %{buildroot}
(
cd openSUSE-xfce-icon-theme
find openSUSE-Xfce -depth -print | cpio -pvd %{buildroot}%{_datadir}/icons
)
# xfce_defaults.conf needs support from glib2 only available in >= 12.2
%if 0%{?suse_version} >= 1220
install -d -m 755 %{buildroot}%{_datadir}/xfce/applications/
ln -s %{_localstatedir}/cache/gio-2.0/xfce-defaults.list \
%{buildroot}%{_datadir}/xfce/applications/defaults.list
%else
rm -f %{buildroot}%{_sysconfdir}/xfce_defaults.conf
%endif
%fdupes %{buildroot}%{_datadir}/icons/openSUSE-Xfce
%icon_theme_cache_create_ghost openSUSE-Xfce
%clean
rm -rf %{buildroot}
%post -n openSUSE-xfce-icon-theme
%icon_theme_cache_post openSUSE-Xfce
%files -n openSUSE-xfce-icon-theme
%defattr(-,root,root)
%doc openSUSE-xfce-icon-theme/{COPYING,LICENSES}
%{_datadir}/icons/openSUSE-Xfce
%ghost %{_datadir}/icons/openSUSE-Xfce/icon-theme.cache
%files -n xfce4-panel-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml
%{_datadir}/pixmaps/xfce4-suse.png
%{_datadir}/pixmaps/xfce4-opensuse-light.png
%{_datadir}/pixmaps/xfce4-opensuse-dark.png
%files -n xfce4-session-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
# xfce_defaults.conf needs support from glib2 only available in >= 12.2
%if 0%{?suse_version} >= 1220
%{_sysconfdir}/xfce_defaults.conf
%dir %{_datadir}/xfce
%dir %{_datadir}/xfce/applications
%{_datadir}/xfce/applications/defaults.list
%endif
%files -n xfce4-settings-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
%dir %{_sysconfdir}/xdg/menus
%config %{_sysconfdir}/xdg/menus/xfce-settings-manager.menu
# provided by xfce4-splash-branding-openSUSE for >= 12.1
%if 0%{?suse_version} < 1210
%doc COPYING.xfce4-splash-openSUSE
%{_datadir}/pixmaps/xfce4-splash-openSUSE.png
%endif
%files -n xfdesktop-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_datadir}/wallpapers/xfce
%{_datadir}/wallpapers/xfce/default.wallpaper
%files -n libgarcon-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/menus
%config %{_sysconfdir}/xdg/menus/xfce-applications.menu
%files -n libxfce4ui-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
%files -n xfce4-notifyd-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-notifyd.xml
%files -n exo-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/xfce4
%config %{_sysconfdir}/xdg/xfce4/helpers.rc
%files -n xfwm4-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
%files -n thunar-volman-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/thunar-volman.xml
%if 0%{?suse_version} > 1140
%files -n midori-branding-openSUSE
%defattr(-,root,root)
%doc COPYING
%dir %{_sysconfdir}/xdg/midori
%config(noreplace) %{_sysconfdir}/xdg/midori/search
%config(noreplace) %{_sysconfdir}/xdg/midori/config
%endif
%changelog