File gfxboot.spec of Package gfxboot.24979

# spec file for package gfxboot
# Copyright (c) 2020 SUSE LLC
# 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

Name:           gfxboot
Version:        4.5.85
Release:        0
Summary:        Graphical Boot Logo for GRUB, LILO and SYSLINUX
License:        GPL-2.0-or-later
Group:          System/Boot
Source:         %{name}-%{version}.tar.xz
Source1:        KDE.tar.xz
Source2:        SLED.tar.xz
Source3:        SLES.tar.xz
Source4:        examples.tar.xz
Source5:        openSUSE.tar.xz
Source6:        upstream.tar.xz
BuildRequires:  fdupes
BuildRequires:  freetype2-devel
BuildRequires:  fribidi
BuildRequires:  libxslt
BuildRequires:  nasm
BuildRequires:  perl-HTML-Parser
BuildRequires:  sgml-skel
BuildRequires:  w3m
BuildRequires:  xmlto
Requires:       coreutils
Requires:       cpio
Requires:       dosfstools
Requires:       mktemp
Requires:       mtools
Requires:       perl-HTML-Parser
Requires:       syslinux
Recommends:     %{name}-theme >= 4
ExclusiveArch:  %ix86 x86_64

Tools to configure the graphics for your GRUB, LILO or SYSLINUX bootloader.

%package        devel
Summary:        Tools for creating a graphical boot logo
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
Here you find the necessary programs to create your own graphical boot
logo. The logo can be used with GRUB, LILO or SYSLINUX.

%package        branding-upstream
Summary:        Graphical bootloader upstream theme
Group:          System/Boot
PreReq:         %{name} >= 4
Supplements:    packageand(%{name}:branding-upstream)
Provides:       %{name}-branding = %{version}
Provides:       %{name}-theme = %{version}
Conflicts:      otherproviders(%{name}-branding)

%description branding-upstream
upstream theme for gfxboot (bootloader graphics).

%package        branding-SLES
Summary:        Graphical bootloader SLES theme
Group:          System/Boot
PreReq:         %{name} >= 4
Supplements:    packageand(%{name}:branding-SLES)
Provides:       %{name}-branding = %{version}
Provides:       %{name}-theme = %{version}
Obsoletes:      bootloader-theme-SLES < %{version}
Provides:       bootloader-theme-SLES = %{version}
Conflicts:      otherproviders(%{name}-branding)

%description branding-SLES
SLES theme for gfxboot (bootloader graphics).

%package        branding-SLED
Summary:        Graphical bootloader SLED theme
Group:          System/Boot
PreReq:         %{name} >= 4
Supplements:    packageand(%{name}:branding-SLED)
Provides:       %{name}-branding = %{version}
Provides:       %{name}-theme = %{version}
Obsoletes:      bootloader-theme-NLD < %{version}
Provides:       bootloader-theme-NLD = %{version}
Conflicts:      otherproviders(%{name}-branding)

%description branding-SLED
SLED theme for gfxboot (bootloader graphics).

%package        branding-KDE
Summary:        Graphical bootloader KDE theme
Group:          System/Boot
PreReq:         %{name} >= 4
Supplements:    packageand(%{name}:branding-KDE)
Provides:       %{name}-branding = %{version}
Provides:       %{name}-theme = %{version}
Conflicts:      otherproviders(%{name}-branding)

%description branding-KDE
KDE theme for gfxboot (bootloader graphics).

%setup -q -a1 -a2 -a3 -a4 -a5 -a6

# fix build
make X11LIBS=%{_prefix}/X11R6/%{_lib}
make doc
make themes

make DESTDIR=%{buildroot} installsrc
rm -rf %{buildroot}/etc/bootsplash/themes/openSUSE/
gzip -9c doc/%{name}.8 >%{name}.8.gz
install -d -m 755 %{buildroot}%{_mandir}/man8
install -m 644 %{name}.8.gz %{buildroot}%{_mandir}/man8
mkdir %{buildroot}/boot
touch %{buildroot}/boot/message

%post branding-upstream
%{name} --update-theme upstream

%post branding-SLES
%{name} --update-theme SLES

%post branding-SLED
%{name} --update-theme SLED

%post branding-KDE
%{name} --update-theme KDE

%dir %{_sysconfdir}/bootsplash
%dir %{_sysconfdir}/bootsplash/themes
%license COPYING

%files devel
%doc doc/%{name}.html
%doc doc/%{name}.txt

%files branding-upstream
%ghost /boot/message

%files branding-SLES
%ghost /boot/message

%files branding-SLED
%ghost /boot/message

%files branding-KDE
%ghost /boot/message

openSUSE Build Service is sponsored by