Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
branding-openSUSE
branding-openSUSE.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File branding-openSUSE.spec of Package branding-openSUSE
# # spec file for package 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/ # Name: branding-openSUSE Version: 12.2 Release: 0 Provides: branding Conflicts: otherproviders(branding) Url: http://gitorious.org/opensuse/art.git # make -C art/%%{version} Source0: openSUSE.tar.gz Source20: sysconfig.bootsplash-branding-openSUSE Source21: sysconfig.displaymanager-kdm BuildRoot: %{_tmppath}/%{name}-%{version}-build %ifarch x86_64 %ix86 %define package_gfxboot 1 BuildRequires: gfxboot-devel %endif %ifarch %{ix86} x86_64 ppc ppc64 %define package_grub2_theme 1 BuildRequires: grub2 %endif Summary: SuSE Brand File License: BSD-3-Clause Group: System/Fhs BuildRequires: fribidi BuildRequires: kde4-filesystem BuildRequires: kdelibs4-branding-upstream BuildRequires: kdm-branding-upstream BuildRequires: update-desktop-files BuildArch: noarch %description This package contains the file /etc/SuSE-brand, and its name is used as a trigger for installation of correct vendor brand packages. %define theme_name openSUSE %if 0%{?package_gfxboot} > 0 %package -n gfxboot-branding-openSUSE Summary: Graphical bootloader openSUSE theme License: BSD-3-Clause Group: System/Boot PreReq: gfxboot >= 4 Supplements: packageand(gfxboot:branding-openSUSE) Provides: gfxboot-branding = %{version} Provides: gfxboot-theme = %{version} Conflicts: otherproviders(gfxboot-branding) BuildArch: noarch %description -n gfxboot-branding-openSUSE openSUSE theme for gfxboot (graphical bootloader for grub). %endif %package -n bootsplash-branding-openSUSE Supplements: packageand(bootsplash:branding-openSUSE) Provides: bootsplash-branding = %{version} Summary: openSUSE Bootsplash Theme License: BSD-3-Clause Group: System/Boot PreReq: %fillup_prereq perl Requires: bootsplash >= 3.3-11 Requires(post): mkinitrd BuildArch: noarch Conflicts: otherproviders(bootsplash-branding) %description -n bootsplash-branding-openSUSE This package contains a theme with openSUSE artwork for bootsplash %package -n kdelibs4-branding-openSUSE Summary: openSUSE branding for KDE License: BSD-3-Clause Group: System/GUI/KDE Requires: kdelibs4 Supplements: packageand(kdelibs4:branding-openSUSE) Provides: kdelibs4-branding = %( echo `rpm -q --provides kdelibs4-branding-upstream | grep 'kdelibs4-branding =' | cut -d= -f2` ) Conflicts: otherproviders(kdelibs4-branding) BuildArch: noarch %description -n kdelibs4-branding-openSUSE openSUSE branding for KDE workspace %package -n wallpaper-branding-openSUSE Summary: openSUSE default wallpapers License: BSD-3-Clause Group: System/Fhs Requires(post): update-alternatives Requires(postun): update-alternatives Provides: wallpaper-branding = %{version} Conflicts: otherproviders(wallpaper-branding) BuildArch: noarch %description -n wallpaper-branding-openSUSE openSUSE %{version} defaults wallpapers %package -n dynamic-wallpaper-branding-openSUSE Summary: Dynamic wallpaper for GNOME, with openSUSE look License: BSD-3-Clause Group: System/GUI/GNOME Requires(post): update-alternatives Requires(postun): update-alternatives Supplements: packageand(wallpaper-branding-openSUSE:gnome-settings-daemon) Provides: dynamic-wallpaper-branding = %{version} Conflicts: otherproviders(dynamic-wallpaper-branding) # Used to live in gconf2-branding-openSUSE, with a different name, up to version 11.4 (included) Provides: openSUSE-dynamic-wallpaper = %{version} Obsoletes: openSUSE-dynamic-wallpaper <= %{version} # Old name, until openSUSE 11.3 (included) Provides: desktop-data-openSUSE-extra-gnome = %{version} Obsoletes: desktop-data-openSUSE-extra-gnome < %{version} BuildArch: noarch %description -n dynamic-wallpaper-branding-openSUSE This package contains a dynamic wallpaper with openSUSE look. A dynamic wallpaper changes depending on the time of the day: it is generally bright during the day, and dark during the night. %package -n yast2-qt-branding-openSUSE Summary: openSUSE branding for yast2-qt License: BSD-3-Clause Group: System/Fhs Provides: yast2-qt-branding = %{version} Conflicts: otherproviders(yast2-qt-branding) Supplements: packageand(yast2-qt:branding-openSUSE) BuildArch: noarch %description -n yast2-qt-branding-openSUSE openSUSE %{version} branding and themes for yast2-qt %package -n ksplashx-branding-openSUSE Summary: openSUSE branding for KDE splash License: BSD-3-Clause Group: System/Fhs Provides: ksplashx-branding = %{version} Conflicts: otherproviders(ksplashx-branding) Supplements: packageand(kdebase4-workspace:branding-openSUSE) BuildArch: noarch # links its images Requires: wallpaper-branding-openSUSE %description -n ksplashx-branding-openSUSE openSUSE branding for KDE splash (splashx engine) %package -n ksplash-qml-branding-openSUSE Summary: openSUSE branding for KDE splash QML License: BSD-3-Clause Group: System/Fhs Provides: ksplash-qml-branding = %{version} Conflicts: otherproviders(ksplash-qml-branding) Supplements: packageand(kdebase4-workspace:branding-openSUSE) BuildArch: noarch # links its images Requires: wallpaper-branding-openSUSE %description -n ksplash-qml-branding-openSUSE openSUSE branding for KDE splash (QML engine) %package -n susegreeter-branding-openSUSE Summary: openSUSE branding for the KDE greeter License: BSD-3-Clause Group: System/Fhs Provides: susegreeter-branding = %{version} Conflicts: otherproviders(susegreeter-branding) BuildArch: noarch %description -n susegreeter-branding-openSUSE openSUSE %{version} branding for the KDE greeter welcome screen %package -n kdm-branding-openSUSE Summary: openSUSE branding for KDE login and display manager License: BSD-3-Clause Group: System/GUI/KDE PreReq: %fillup_prereq Supplements: packageand(kdm:branding-openSUSE) Provides: kde4-kdm-branding-openSUSE = %{version} Provides: kdm-branding = %( echo `rpm -q --provides kdm-branding-upstream | grep 'kdm-branding =' | cut -d= -f2` ) Obsoletes: kde4-kdm-branding-openSUSE < %{version} Conflicts: otherproviders(kdm-branding) BuildArch: noarch Requires: wallpaper-branding-openSUSE %description -n kdm-branding-openSUSE This package contains openSUSE %{version} branding for kdm, the login and session manager for KDE. %package -n xfce4-splash-branding-openSUSE Summary: openSUSE branding for XFCE splash License: CC-BY-SA-3.0 Group: System/Fhs BuildArch: noarch %description -n xfce4-splash-branding-openSUSE openSUSE %{version} branding for the XFCE splash %package -n gimp-branding-openSUSE Summary: The GNU Image Manipulation Program - openSUSE Splash Screen License: BSD-3-Clause Group: Productivity/Graphics/Bitmap Editors BuildRequires: gimp %if 0 # Disabled since we want to avoid rebuilding this package when gimp changes. If # we really need the strict versioned dependency, then re-enable this. %define gimp_version %(rpm -q --qf '%%{version}-%%{release}' gimp) Requires: gimp = %{gimp_version} Provides: gimp-branding = %{gimp_version} %else Requires: gimp Provides: gimp-branding %endif Conflicts: otherproviders(gimp-branding) Supplements: packageand(gimp:branding-openSUSE) BuildArch: noarch %description -n gimp-branding-openSUSE This package contains the openSUSE splash screen for the The GNU Image Manipulation Program (GIMP) package %if 0%{?package_grub2_theme} > 0 %package -n grub2-branding-openSUSE Summary: openSUSE branding for GRUB2's graphical console License: CC-BY-SA-3.0 Group: System/Fhs Requires: grub2 Provides: grub2-branding = %{version} Supplements: packageand(grub2:branding-openSUSE) Conflicts: otherproviders(grub2-branding) BuildArch: noarch %description -n grub2-branding-openSUSE openSUSE %{version} branding for the GRUB2's graphical console %endif %package -n plymouth-branding-openSUSE Summary: openSUSE branding for Plymouth bootsplash License: GPL-2.0+ Group: System/Fhs Requires: plymouth-plugin-label Requires: plymouth-plugin-script Requires(post): plymouth-scripts Supplements: packageand(plymouth:branding-openSUSE) Provides: plymouth-branding = %{version} Conflicts: otherproviders(plymouth-branding) BuildArch: noarch %description -n plymouth-branding-openSUSE openSUSE %{version} branding for the plymouth bootsplash %prep %setup -q -c cp -a openSUSE/LICENSE COPYING %build cat >SuSE-brand <<EOF openSUSE VERSION = %{version} EOF %if 0%{?package_gfxboot} > 0 mkdir gfx cp -a /usr/share/gfxboot/themes/openSUSE/ gfx list=`cd openSUSE/gfxboot && find -type f` for i in $list; do cp openSUSE/gfxboot/$i gfx/openSUSE/$i done pushd gfx/openSUSE export PATH=/usr/sbin:$PATH make popd %endif cp -r /usr/share/kde4/apps/kdeui/about/ about pushd about # need to have latest kdelibs4 in factory #patch -p0 < ../openSUSE/kdelibs/css.diff popd %install mkdir -p %{buildroot}/var/adm/fillup-templates cp %{SOURCE20} %{SOURCE21} %{buildroot}/var/adm/fillup-templates/ mkdir -p %{buildroot}%{_sysconfdir} cp SuSE-brand %{buildroot}%{_sysconfdir}/ mkdir -p %{buildroot}%{_kde4_appsdir}/kdeui/about cp -a about/* %{buildroot}%{_kde4_appsdir}/kdeui/about # gfxboot themes will soon get a make install - promised by snwint # gfxboot should use a link /etc/bootsplash/theme -> /usr/share/bootsplash # like splashy if test -f gfx/openSUSE/bootlogo; then install -d -m 755 %{buildroot}/etc/bootsplash/themes/openSUSE/{bootloader,cdrom} cp gfx/openSUSE/bootlogo %{buildroot}/etc/bootsplash/themes/openSUSE/cdrom /usr/share/gfxboot/bin/unpack_bootlogo %{buildroot}/etc/bootsplash/themes/openSUSE/cdrom install -m 644 gfx/openSUSE/{message,po/*.tr,help-boot/*.hlp} %{buildroot}/etc/bootsplash/themes/openSUSE/bootloader /usr/share/gfxboot/bin/2hl --link --quiet %{buildroot}/etc/bootsplash/themes/openSUSE/* mkdir %{buildroot}/boot touch %{buildroot}/boot/message fi make -C openSUSE install DESTDIR=%{buildroot} for i in %{buildroot}/usr/share/wallpapers/*.desktop; do %suse_update_desktop_file "$i" done %suse_update_desktop_file %{buildroot}/usr/share/kde4/apps/ksplash/Themes/ksplashx-suse/Theme.rc %suse_update_desktop_file %{buildroot}/usr/share/kde4/apps/ksplash/Themes/ksplash-qml-openSUSE/Theme.rc %suse_update_desktop_file %{buildroot}/usr/share/wallpapers/openSUSEdefault/metadata.desktop # Touch the file handled with update-alternatives touch %{buildroot}/usr/share/wallpapers/openSUSE-default.xml # try how far we get without them rm -v %{buildroot}/usr/share/wallpapers/openSUSE*desktop %{buildroot}/usr/share/wallpapers/openSUSE*jpg %{buildroot}/usr/share/wallpapers/default* # remove %if 0%{?package_grub2_theme} < 1 rm -rf %{buildroot}/%{_datadir}/grub2 %endif %check make -C openSUSE check DESTDIR=%{buildroot} %post -n bootsplash-branding-openSUSE %{fillup_only -ns bootsplash branding-openSUSE } perl -pi -e 's/^(THEME=).*/$1"openSUSE"/' /etc/sysconfig/bootsplash if test -s /etc/sysconfig/bootloader ; then /sbin/mkinitrd fi %if 0%{?package_gfxboot} > 0 %post -n gfxboot-branding-openSUSE gfxboot --update-theme openSUSE %endif %post -n wallpaper-branding-openSUSE update-alternatives --install /usr/share/wallpapers/openSUSE-default.xml openSUSE-default.xml /usr/share/wallpapers/openSUSE-default-static.xml 5 %postun -n wallpaper-branding-openSUSE # Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed if [ ! -f /usr/share/wallpapers/openSUSE-default-static.xml ]; then update-alternatives --remove openSUSE-default.xml /usr/share/wallpapers/openSUSE-default-static.xml fi %post -n dynamic-wallpaper-branding-openSUSE update-alternatives --install /usr/share/wallpapers/openSUSE-default.xml openSUSE-default.xml /usr/share/wallpapers/openSUSE-default-dynamic.xml 10 %postun -n dynamic-wallpaper-branding-openSUSE # Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed if [ ! -f /usr/share/wallpapers/openSUSE-default-dynamic.xml ]; then update-alternatives --remove openSUSE-default.xml /usr/share/wallpapers/openSUSE-default-dynamic.xml fi %post -n kdm-branding-openSUSE %{fillup_only -n displaymanager -s kdm} %if 0%{?package_grub2_theme} > 0 %post -n grub2-branding-openSUSE %{_datadir}/grub2/themes/%theme_name/activate-theme if test -e /boot/grub2/grub.cfg ; then /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg || true elif test -e /boot/grub2-efi/grub.cfg ; then /usr/sbin/grub2-efi-mkconfig -o /boot/grub2-efi/grub.cfg || true fi %postun -n grub2-branding-openSUSE if [ $1 = 0 ] ; then rm -rf /boot/grub2/themes/%theme_name fi %endif %post -n plymouth-branding-openSUSE if [ ! -e /.buildenv ]; then export LIB=%{_libdir} if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" -o "$(%{_sbindir}/plymouth-set-default-theme)" == "openSUSE" -o "$(%{_sbindir}/plymouth-set-default-theme)" == "basedonopensuse" ]; then %{_sbindir}/plymouth-set-default-theme -R openSUSE fi fi %postun -n plymouth-branding-openSUSE if [ $1 -eq 0 ]; then export LIB=%{_libdir} if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "openSUSE" ]; then %{_sbindir}/plymouth-set-default-theme -R --reset fi fi %files %defattr(-,root,root) %doc COPYING %{_sysconfdir}/SuSE-brand %files -n bootsplash-branding-openSUSE %defattr(-,root,root) %dir /etc/bootsplash %dir /etc/bootsplash/themes /etc/bootsplash/themes/openSUSE %if 0%{?package_gfxboot} > 0 %exclude %{_sysconfdir}/bootsplash/themes/openSUSE/bootloader %exclude %{_sysconfdir}/bootsplash/themes/openSUSE/cdrom %endif %config /var/adm/fillup-templates/sysconfig.bootsplash-branding-openSUSE %if 0%{?package_gfxboot} > 0 %files -n gfxboot-branding-openSUSE %defattr(-,root,root) %{_sysconfdir}/bootsplash/themes/openSUSE/bootloader %{_sysconfdir}/bootsplash/themes/openSUSE/cdrom %ghost /boot/message %endif %files -n kdelibs4-branding-openSUSE %defattr(-,root,root) %doc COPYING %{_kde4_appsdir}/kdeui %dir %{_kde4_appsdir}/ksplash %dir %{_kde4_appsdir}/ksplash/Themes %files -n wallpaper-branding-openSUSE %defattr(-,root,root) %doc COPYING %ghost /usr/share/wallpapers/openSUSE-default.xml /usr/share/gnome-background-properties/wallpaper-branding-openSUSE.xml /usr/share/wallpapers/ # File from dynamic-wallpaper-branding-openSUSE: %exclude /usr/share/wallpapers/openSUSE-default-dynamic.xml # FIXME: It should be owned by a different package: %dir /usr/share/gnome-background-properties/ %files -n dynamic-wallpaper-branding-openSUSE %defattr(-,root,root) %doc COPYING ## WARNING WARNING WARNING # If we ever remove the dynamic background, then the # openSUSE-default-dynamic.xml file should still be shipped, as a symlink to # openSUSE-default-static.xml. Else, we break the wallpaper configuration for # some users. ## WARNING WARNING WARNING # Ugly wildcard, but this way we don't have to update anything on name change %{_datadir}/backgrounds/*/ %{_datadir}/gnome-background-properties/dynamic-wallpaper-branding-openSUSE.xml %dir %{_datadir}/wallpapers %ghost %{_datadir}/wallpapers/openSUSE-default.xml %{_datadir}/wallpapers/openSUSE-default-dynamic.xml # FIXME: Should be owned by a different package: %dir %{_datadir}/backgrounds %dir %{_datadir}/gnome-background-properties %files -n yast2-qt-branding-openSUSE %defattr(-,root,root) %dir /usr/share/YaST2 %dir /usr/share/YaST2/theme %dir /usr/share/YaST2/theme/openSUSE /usr/share/YaST2/theme/openSUSE/wizard %files -n ksplashx-branding-openSUSE %defattr(-,root,root) %dir %{_kde4_appsdir}/ksplash/Themes/ksplashx-suse %{_kde4_appsdir}/ksplash/Themes/ksplashx-suse %files -n ksplash-qml-branding-openSUSE %defattr(-,root,root) %dir %{_kde4_appsdir}/ksplash/Themes/ksplash-qml-openSUSE %{_kde4_appsdir}/ksplash/Themes/ksplash-qml-openSUSE %files -n kdm-branding-openSUSE %defattr(-,root,root) %doc COPYING %{_kde4_appsdir}/kdm %{_localstatedir}/adm/fillup-templates/sysconfig.displaymanager-kdm %files -n susegreeter-branding-openSUSE %defattr(-,root,root) /usr/share/kde4/apps/SUSEgreeter %files -n xfce4-splash-branding-openSUSE %defattr(-,root,root) %doc openSUSE/xfce/COPYING /usr/share/pixmaps/xfce4-splash-openSUSE.png %files -n gimp-branding-openSUSE %defattr (-, root, root) %doc COPYING %{_datadir}/gimp/2.0/images %if 0%{?package_grub2_theme} > 0 %files -n grub2-branding-openSUSE %defattr(-,root,root) %{_datadir}/grub2 %ghost /boot/grub2 %endif %files -n plymouth-branding-openSUSE %defattr(-, root, root) %{_datadir}/plymouth/themes/openSUSE/ %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