Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bmwiedemann:reproducible:distribution:ring1
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) 2024 SUSE LLC # Copyright (c) 2019 Stasiek Michalski <hellcp@opensuse.org>. # # 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 https://bugs.opensuse.org/ # %define theme_name openSUSE %define theme_version tumbleweed %define theme_version_clean Tumbleweed %define date 20240405 %ifarch x86_64 %{ix86} %define gfxboot 1 %endif %ifarch %{arm} aarch64 %{ix86} x86_64 riscv64 ppc64le %define grub2 1 %endif Name: branding-%{theme_name} Version: 84.87.%{date} Release: 0 Summary: %{theme_name} %{theme_version_clean} Brand File License: BSD-3-Clause AND CC-BY-SA-3.0 AND GPL-2.0-or-later URL: https://github.com/openSUSE/branding Source0: branding-%{theme_version}.zip BuildRequires: GraphicsMagick BuildRequires: distribution-logos-openSUSE-Tumbleweed BuildRequires: fdupes BuildRequires: fribidi BuildRequires: optipng %if 0%{?suse_version} >= 1550 # rsvg-convert used to be packaged together with rsvg-view in one package. With the removal # of the rsvg-view program, this package was renamed to rsvg-convert (which is more fitting) BuildRequires: rsvg-convert %else BuildRequires: rsvg-view %endif BuildRequires: suse-module-tools BuildRequires: unzip BuildRequires: update-desktop-files Conflicts: branding Provides: branding BuildArch: noarch %if 0%{?suse_version} > 1320 BuildRequires: update-bootloader-rpm-macros %endif %description This package contains the file %{_sysconfdir}/SUSE-brand, and its name is used as a trigger for installation of correct vendor brand packages. %package -n wallpaper-branding-%{theme_name} Summary: %{theme_name} %{theme_version_clean} default wallpapers License: BSD-3-Clause Conflicts: wallpaper-branding Provides: wallpaper-branding = %{version} BuildArch: noarch %description -n wallpaper-branding-%{theme_name} %{theme_name} %{theme_version_clean} defaults wallpapers %package -n libreoffice-branding-%{theme_name} Summary: %{theme_name} %{theme_version_clean} branding for LibreOffice License: BSD-3-Clause Supplements: (libreoffice and branding-%{theme_name}) Conflicts: libreoffice-branding Provides: libreoffice-branding = %{version} BuildArch: noarch %description -n libreoffice-branding-%{theme_name} %{theme_name} %{theme_version_clean} branding for LibreOffice %package -n yast2-qt-branding-%{theme_name} Summary: %{theme_name} %{theme_version_clean} branding for YaST2 Qt License: BSD-3-Clause Requires: adobe-sourcesans3-fonts Requires: distribution-logos Requires: google-opensans-fonts Supplements: (libyui-qt and branding-%{theme_name}) Conflicts: yast2-qt-branding Provides: yast2-qt-branding = %{version} BuildArch: noarch %description -n yast2-qt-branding-%{theme_name} %{theme_name} %{theme_version_clean} branding for YaST2 Qt, mainly used for installation %package -n icewm-theme-yast-installation Summary: %{theme_name} %{theme_version_clean} branding for IceWM during the installation License: BSD-3-Clause AND CC-BY-SA-3.0 AND GPL-2.0-or-later Supplements: ((yast-installation and icewm) and branding-%{theme_name}) Conflicts: icewm-theme-branding BuildArch: noarch %description -n icewm-theme-yast-installation This IceWM theme is specifically tailored to the %{theme_name} installation process using YaST2 %if 0%{?grub2} > 0 %package -n grub2-branding-%{theme_name} Summary: %{theme_name} %{theme_version_clean} branding for GRUB2 License: CC-BY-SA-3.0 Requires: grub2 Supplements: (grub2 and branding-%{theme_name}) Conflicts: grub2-branding Provides: grub2-branding = %{version} BuildArch: noarch %if 0%{?update_bootloader_requires:1} %{update_bootloader_requires} %endif %description -n grub2-branding-%{theme_name} %{theme_name} %{theme_version_clean} branding for the GRUB2's graphical console %endif %if 0%{?gfxboot} > 0 %package -n gfxboot-branding-%{theme_name} Summary: %{theme_name} %{theme_version_clean} branding for gfxboot License: BSD-3-Clause BuildRequires: gfxboot-devel PreReq: gfxboot >= 4 Requires(post): gfxboot >= 4 Supplements: (gfxboot and branding-openSUSE) Conflicts: gfxboot-branding Provides: gfxboot-branding = %{version} Provides: gfxboot-theme = %{version} BuildArch: noarch %description -n gfxboot-branding-%{theme_name} %{theme_name} %{theme_version_clean} branding for gfxboot (graphical bootloader for grub). %endif %package -n plymouth-branding-%{theme_name} Summary: %{theme_name} %{theme_version_clean} branding for Plymouth bootsplash License: GPL-2.0-or-later BuildRequires: plymouth-theme-bgrt Requires: plymouth-scripts Requires: plymouth-theme-bgrt Supplements: (plymouth and branding-%{theme_name}) Conflicts: plymouth-branding Provides: plymouth-branding = %{version} BuildArch: noarch %description -n plymouth-branding-%{theme_name} %{theme_name} %{theme_version_clean} branding for the plymouth bootsplash %prep %autosetup -p1 -n branding-%{theme_version} %build %make_build %if 0%{?gfxboot} > 0 mkdir gfx cp -a %{_datadir}/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 %if 0%{?sle_version} sed -i -e "s,product=.*,product=%{theme_name} %{theme_version_clean}," config %else sed -i -e "s,product=.*,product=%{theme_name} %{theme_version_clean}," config %endif perl -pi -e 's/^(welcome=).*/${1}3/' src/gfxboot.cfg export PATH=%{_prefix}/sbin:$PATH make %{?_smp_mflags} BINDIR="/usr/sbin/" popd %endif %install %make_install %if 0%{?suse_version} >= 1550 mkdir -p %{buildroot}/%{_distconfdir} mv %{buildroot}/%{_sysconfdir}/SUSE-brand %{buildroot}/%{_distconfdir} %endif # 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}%{_sysconfdir}/bootsplash/themes/openSUSE/{bootloader,cdrom} cp gfx/openSUSE/bootlogo %{buildroot}%{_sysconfdir}/bootsplash/themes/openSUSE/cdrom %{_datadir}/gfxboot/bin/unpack_bootlogo %{buildroot}%{_sysconfdir}/bootsplash/themes/openSUSE/cdrom install -m 644 gfx/openSUSE/{message,po/*.tr,help-boot/*.hlp} %{buildroot}%{_sysconfdir}/bootsplash/themes/openSUSE/bootloader %{_datadir}/gfxboot/bin/2hl --link --quiet %{buildroot}%{_sysconfdir}/bootsplash/themes/openSUSE/* touch %{buildroot}/boot/message fi for i in %{buildroot}%{_datadir}/wallpapers/*.desktop; do %suse_update_desktop_file "$i" done # no longer uses alternative ln -s -f %{theme_name}-default-static.xml %{buildroot}%{_datadir}/wallpapers/%{theme_name}-default.xml %fdupes -s %{buildroot}%{_datadir}/wallpapers/ %fdupes -s %{buildroot}%{_datadir}/YaST2/theme/current/wizard/ # compatability for binaries utilizing SLES branding (such as cockpit) ln -s -f openSUSEdefault %{buildroot}%{_datadir}/wallpapers/SLEdefault %if 0%{?grub2} < 1 rm -rf %{buildroot}%{_datadir}/grub2 %endif %post -n wallpaper-branding-%{theme_name} # remove alternative leftover if [ $1 -gt 1 ]; then [ -r /etc/alternatives/%{theme_name}-default.xml ] && rm -f /etc/alternatives/%{theme_name}-default.xml || true fi %if 0%{?grub2} > 0 %post -n grub2-branding-%{theme_name} %{_datadir}/grub2/themes/%{theme_name}/activate-theme %if 0%{?update_bootloader_check_type_refresh_post:1} %{update_bootloader_check_type_refresh_post grub2 grub2-efi} %else if test -e /boot/grub2/grub.cfg ; then %{_sbindir}/grub2-mkconfig -o /boot/grub2/grub.cfg || true fi %endif %posttrans -n grub2-branding-%{theme_name} %{?update_bootloader_posttrans} %postun -n grub2-branding-%{theme_name} if [ $1 = 0 ] ; then rm -rf /boot/grub2/themes/%{theme_name} fi %endif %if 0%{?gfxboot} > 0 %post -n gfxboot-branding-%{theme_name} gfxboot --update-theme %{theme_name} %endif %files %license LICENSE %if 0%{?suse_version} >= 1550 %{_distconfdir}/SUSE-brand %else %config %{_sysconfdir}/SUSE-brand %endif %files -n wallpaper-branding-%{theme_name} %license LICENSE %{_datadir}/wallpapers/openSUSE-default.xml %dir %{_datadir}/gnome-background-properties/ %{_datadir}/gnome-background-properties/wallpaper-branding-openSUSE.xml %{_datadir}/wallpapers/ %{_datadir}/wallpapers/SLEdefault %files -n yast2-qt-branding-%{theme_name} %dir %{_datadir}/YaST2 %dir %{_datadir}/YaST2/theme %dir %{_datadir}/YaST2/theme/current %{_datadir}/YaST2/theme/current/wizard %files -n icewm-theme-yast-installation %dir %{_sysconfdir}/icewm/ %config %{_sysconfdir}/icewm/theme %dir %{_datadir}/icewm/ %dir %{_datadir}/icewm/themes/ %{_datadir}/icewm/themes/yast-installation/ %files -n libreoffice-branding-%{theme_name} %dir %{_datadir}/libreoffice %{_datadir}/libreoffice/program %if 0%{?grub2} > 0 %files -n grub2-branding-%{theme_name} %{_datadir}/grub2 %dir /boot/grub2 %dir /boot/grub2/themes %ghost /boot/grub2/themes/%{theme_name} %endif %if 0%{?gfxboot} > 0 %files -n gfxboot-branding-%{theme_name} %{_sysconfdir}/bootsplash # Intentionally skipping over .tr files as they are hard links %config %{_sysconfdir}/bootsplash/themes/openSUSE/bootloader/*.{hlp,jpg,mod,dat,txt,tlk,cfg,fnt} %config %{_sysconfdir}/bootsplash/themes/openSUSE/cdrom/*.{hlp,jpg,mod,dat,txt,tlk,cfg,fnt} %config %{_sysconfdir}/bootsplash/themes/openSUSE/cdrom/bootlogo %{_sysconfdir}/bootsplash/themes/openSUSE/cdrom/* %ghost /boot/message %endif %files -n plymouth-branding-%{theme_name} %dir %{_datadir}/plymouth %{_datadir}/plymouth/plymouthd.defaults %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