gfxboot/gfxboot.spec
OBS User autobuild bd7b6b97ed Accepting request 20477 from system:install:head
Copy from system:install:head/gfxboot based on submit request 20477 from user snwint

OBS-URL: https://build.opensuse.org/request/show/20477
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gfxboot?expand=0&rev=56
2009-09-16 23:05:15 +00:00

195 lines
4.7 KiB
RPMSpec

#
# spec file for package gfxboot (Version 4.1.24)
#
# 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
Name: gfxboot
BuildRequires: freetype2-devel fribidi libxslt nasm perl-HTML-Parser sgml-skel w3m xmlto
ExclusiveArch: %ix86 x86_64
License: GPL v2 or later
Group: System/Boot
Recommends: gfxboot-theme >= 4
Requires: coreutils cpio mktemp perl master-boot-code dosfstools mtools perl-HTML-Parser
AutoReqProv: on
Summary: Graphical Boot Logo for GRUB, LILO and SYSLINUX
Version: 4.1.24
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: gfxboot-4.1.24.tar.bz2
Source1: openSUSE.tar.bz2
Source2: SLED.tar.bz2
Source3: SLES.tar.bz2
Source4: upstream.tar.bz2
%description
Tools to configure your bootloader graphics.
%package devel
License: GPL v2 or later
Summary: Tools for creating a graphical boot logo
Group: Development/Libraries/C and C++
Requires: %name = %version perl-HTML-Parser
%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
License: GPL v2 or later
Supplements: branding-upstream
Provides: gfxboot-theme
Summary: gfxboot upstream theme
AutoReqProv: on
Group: System/Boot
PreReq: gfxboot >= 4
%description branding-upstream
upstream theme for gfxboot (bootloader graphics).
%package branding-openSUSE
License: GPL v2 or later
Supplements: branding-openSUSE
Provides: gfxboot-theme
Obsoletes: bootloader-theme-SUSELinux-Prof
Summary: gfxboot openSUSE theme
AutoReqProv: on
Group: System/Boot
PreReq: gfxboot >= 4
%description branding-openSUSE
openSUSE theme for gfxboot (bootloader graphics).
%package branding-SLES
License: GPL v2 or later
Supplements: branding-SLES
Provides: gfxboot-theme
Obsoletes: bootloader-theme-SLES
Summary: gfxboot SLES theme
AutoReqProv: on
Group: System/Boot
PreReq: gfxboot >= 4
%description branding-SLES
SLES theme for gfxboot (bootloader graphics).
%package branding-SLED
License: GPL v2 or later
Supplements: branding-SLED
Provides: gfxboot-theme
Obsoletes: bootloader-theme-NLD
Summary: gfxboot SLED theme
AutoReqProv: on
Group: System/Boot
PreReq: gfxboot >= 4
%description branding-SLED
SLED theme for gfxboot (bootloader graphics).
%prep
%setup
%setup -T -D -a 1
%setup -T -D -a 2
%setup -T -D -a 3
%setup -T -D -a 4
%build
# fix build
export SUSE_ASNEEDED=0
make DESTDIR=%{buildroot} installsrc
make X11LIBS=/usr/X11R6/%_lib
make doc
make themes
%install
make DESTDIR=%{buildroot} install
gzip -9c doc/gfxboot.8 >gfxboot.8.gz
install -d -m 755 %{buildroot}%{_mandir}/man8
install -m 644 gfxboot.8.gz %{buildroot}%{_mandir}/man8
mkdir %{buildroot}/boot
touch %{buildroot}/boot/message
%post branding-upstream
gfxboot --update-theme upstream
%post branding-openSUSE
gfxboot --update-theme openSUSE
%post branding-SLES
gfxboot --update-theme SLES
%post branding-SLED
gfxboot --update-theme SLED
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
/usr/sbin/gfxboot
%doc %{_mandir}/man8/gfxboot.8.gz
%files devel
%defattr(-,root,root)
/usr/sbin/gfxboot-compile
/usr/sbin/gfxboot-font
%doc doc/gfxboot.html
%doc doc/gfxboot.txt
/usr/share/gfxboot
%files branding-upstream
%defattr(-,root,root)
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
/etc/bootsplash/themes/upstream
%ghost /boot/message
%files branding-openSUSE
%defattr(-,root,root)
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
/etc/bootsplash/themes/openSUSE
%ghost /boot/message
%files branding-SLES
%defattr(-,root,root)
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
/etc/bootsplash/themes/SLES
%ghost /boot/message
%files branding-SLED
%defattr(-,root,root)
%dir /etc/bootsplash
%dir /etc/bootsplash/themes
/etc/bootsplash/themes/SLED
%ghost /boot/message
%changelog