qubes-installer-qubes-os/qubes-logos/qubes-logos.spec
Marek Marczykowski-Górecki 7c885b444d qubes-logos 1.2-1
2014-03-18 00:08:02 +01:00

113 lines
3.4 KiB
RPMSpec

%if 0%{?qubes_builder}
%define _builddir %(pwd)/qubes-logos
%endif
Name: qubes-logos
Summary: Icons and pictures
Version: 1.2
Release: 1
Group: System Environment/Base
Source0: qubes-logos-%{version}.tar.bz2
License: GPLv2 and LGPL
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Obsoletes: fedora-logos
Obsoletes: redhat-logos
Provides: fedora-logos = 13-%{release}
Provides: redhat-logos = 13-%{release}
Provides: system-logos = %{version}-%{release}
# Suppress real Fedora desktop-backgrounds-gnome
Provides: system-backgrounds-gnome
Conflicts: kdebase <= 3.1.5
Conflicts: anaconda-images <= 10
Conflicts: redhat-artwork <= 5.0.5
# For _kde4_appsdir macro:
BuildRequires: kde-filesystem
Requires: plymouth-plugin-script
Requires: plymouth-plugin-label
# For plymouth-set-default-theme
Requires(post): plymouth-scripts
%description
The qubes-logos package contains various image files which can be
used by the bootloader, anaconda, and other related tools.
%prep
%if ! 0%{?qubes_builder}
%setup -q
%endif
%build
%install
rm -rf $RPM_BUILD_ROOT
# should be ifarch i386
mkdir -p $RPM_BUILD_ROOT/boot/grub
mkdir -p $RPM_BUILD_ROOT/boot/grub2/themes/system
install -p -m 644 bootloader/splash.xpm.gz $RPM_BUILD_ROOT/boot/grub/splash.xpm.gz
install -p -m 644 bootloader/fireworks.png $RPM_BUILD_ROOT/boot/grub2/themes/system/fireworks.png
# end i386 bits
mkdir -p $RPM_BUILD_ROOT%{_datadir}/firstboot/themes/qubes
for i in firstboot/* ; do
install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/firstboot/themes/qubes
done
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/splash
for i in gnome-splash/* ; do
install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/pixmaps/splash
done
mkdir -p $RPM_BUILD_ROOT%{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536
install -p -m 644 ksplash/SolarComet-kde.png $RPM_BUILD_ROOT%{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536/logo.png
for k in charge qubes; do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/$k/
for i in plymouth/$k/* ; do
install -p -m 644 $i $RPM_BUILD_ROOT%{_datadir}/plymouth/themes/$k/
done
done
install -p -m 644 plymouth/plymouthd.defaults.qubes $RPM_BUILD_ROOT%{_datadir}/plymouth
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dracut.conf.d
install -p -m 644 plymouth/plymouth-missing-fonts.conf $RPM_BUILD_ROOT%{_sysconfdir}/dracut.conf.d
install -D icons/96-logo.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/96x96/apps/qubes-logo-icon.png
(cd anaconda; make DESTDIR=$RPM_BUILD_ROOT install)
%clean
rm -rf $RPM_BUILD_ROOT
%triggerin -- plymouth
cp -f %{_datadir}/plymouth/plymouthd.defaults.qubes %{_datadir}/plymouth/plymouthd.defaults
/usr/sbin/plymouth-set-default-theme qubes || :
%post
/usr/sbin/plymouth-set-default-theme qubes || :
%files
%defattr(-, root, root)
%doc COPYING COPYING-kde-logo
%{_datadir}/firstboot/themes/*
%{_datadir}/anaconda/boot/*
%{_datadir}/anaconda/pixmaps/*
%{_datadir}/plymouth/plymouthd.defaults.qubes
%{_datadir}/plymouth/themes/charge/*
%{_datadir}/plymouth/themes/qubes/*
%{_datadir}/pixmaps/splash/*
%{_datadir}/icons/hicolor/96x96/apps/qubes-logo-icon.png
/usr/lib/anaconda-runtime/*.jpg
%{_sysconfdir}/dracut.conf.d/plymouth-missing-fonts.conf
%{_kde4_appsdir}/ksplash/Themes/Leonidas/2048x1536/logo.png
# should be ifarch i386
/boot/grub/splash.xpm.gz
/boot/grub2/themes/system/fireworks.png
# end i386 bits
%changelog
* Wed Jan 13 2010 Tomasz Sterna <smoku@xiaoka.com> - 1
- Initial Qubes 1 Release package