branding-alt-virtualization.../branding-alt-desktop.spec

169 lines
4.1 KiB
RPMSpec
Raw Normal View History

2008-12-17 11:49:16 +03:00
%define theme desktop
%define brand alt
2008-12-24 16:54:58 +03:00
%define status alpha
2008-12-17 11:49:16 +03:00
Name: branding-%brand-%theme
Version: 5.0
2008-12-26 16:43:03 +03:00
Release: alt2
2008-12-17 11:49:16 +03:00
BuildArch: noarch
2008-12-24 16:54:58 +03:00
2008-12-17 11:49:16 +03:00
BuildRequires: cpio gfxboot >= 4 fonts-ttf-dejavu
BuildRequires: design-bootloader-source >= 5.0-alt2
2008-12-24 16:54:58 +03:00
BuildRequires(pre): libqt4-core
BuildRequires: libalternatives-devel
BuildRequires: libqt4-devel
2008-12-25 12:55:26 +03:00
BuildRequires: ImageMagick fontconfig
2008-12-24 16:54:58 +03:00
2008-12-17 11:49:16 +03:00
Packager: Anton V. Boyarshinov <boyarsh at altlinux dot org>
Source: %name-%version.tar
Group: Graphics
Summary: System/Base
License: GPL
%description
Distro-specific packages with design and texts
%package bootloader
Group: System/Configuration/Boot and Init
Summary: Graphical boot logo for lilo and syslinux
License: GPL
2008-12-24 16:54:58 +03:00
PreReq: coreutils
2008-12-17 11:49:16 +03:00
Provides: design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme
Obsoletes: design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme
%description bootloader
Here you find the graphical boot logo. Suitable for both lilo and syslinux.
2008-12-18 15:49:13 +03:00
%package bootsplash
Summary: Theme for splash animations during bootup
License: Distributable
Group: System/Configuration/Boot and Init
Provides: design-bootsplash design-bootsplash-%theme
Requires: bootsplash >= 3.3
%description bootsplash
This package contains graphics for boot process
(needs console splash screen enabled)
2008-12-17 11:49:16 +03:00
2008-12-24 16:54:58 +03:00
%package browser-qt
Summary: Design for QT alterator for Desktop version
License: GPL
Group: System/Configuration/Other
Packager: Anton V. Boyarshiniv <boyarsh@altlinux.org>
Provides: design-alterator-browser-%theme
Requires: alterator-browser-qt
PreReq(post,preun): alternatives >= 0.2
%description browser-qt
Design for QT alterator for Desktop version
2008-12-17 11:49:16 +03:00
%prep
%setup -q
2008-12-18 15:49:13 +03:00
2008-12-17 11:49:16 +03:00
%build
2008-12-24 16:54:58 +03:00
autoconf
2008-12-26 16:43:03 +03:00
./configure --with-theme=%theme --with-name='Desktop' --with-brand='ALT Linux' --with-status=%status --with-verions=%version
2008-12-24 16:54:58 +03:00
make
2008-12-17 11:49:16 +03:00
#bootloader
pushd design-bootloader-source/
PATH=$PATH:/usr/sbin %make
popd
2008-12-24 16:54:58 +03:00
#browser-qt
pushd browser-qt
%make_build
popd
2008-12-17 11:49:16 +03:00
%install
#bootloader
pushd design-bootloader-source
install -d -m 755 %buildroot/boot/splash/%theme
install -d -m 755 %buildroot/%_datadir/gfxboot/%theme
install -m 644 message %buildroot/boot/splash/%theme
install -m 644 bootlogo %buildroot%_datadir/gfxboot/%theme
popd
2008-12-18 15:49:13 +03:00
#bootsplash
## create directory structure
mkdir -p $RPM_BUILD_ROOT/%_sysconfdir/bootsplash/themes/%theme
cp -a bootsplash/* $RPM_BUILD_ROOT%_sysconfdir/bootsplash/themes/%theme
pushd $RPM_BUILD_ROOT%_sysconfdir/bootsplash/themes/%theme/config
#for i in 1 2 3 4 5 11; do \
for i in 1; do \
for f in bootsplash-*.cfg; do \
res=`echo "$f"| sed 's|.*\-\(.*\)\.cfg|\1|'`
ln -s $f vt${i}-${res}.cfg
done
done
popd
2008-12-24 16:54:58 +03:00
#browser-qt
pushd browser-qt
mkdir -p %buildroot/usr/share/alterator-browser-qt/design
install theme.rcc %buildroot/usr/share/alterator-browser-qt/design/%theme.rcc
mkdir -p %buildroot/%_altdir
cat >%buildroot/%_altdir/%name <<__EOF__
/etc/alterator/design-browser-qt /usr/share/alterator-browser-qt/design/desktop.rcc 50
__EOF__
popd
2008-12-17 11:49:16 +03:00
#bootloader
2008-12-18 15:49:13 +03:00
%pre bootloader
2008-12-25 12:55:26 +03:00
[ -s /boot/splash/%theme ] && rm -fr /boot/splash/%theme ||:
2008-12-18 15:49:13 +03:00
%post bootloader
2008-12-17 11:49:16 +03:00
%__ln_s -nf %theme/message /boot/splash/message
%__ln_s -nf /boot/splash/%theme /boot/splash/%theme
%__ln_s -nf %_datadir/gfxboot/%theme %_datadir/gfxboot/%theme
%preun bootloader
[ $1 = 0 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
%__rm -f /boot/splash/message
%files bootloader
%_datadir/gfxboot/%theme
/boot/splash/%theme
2008-12-18 15:49:13 +03:00
#bootsplash
%post bootsplash
%__ln_s -nf %theme %_sysconfdir/bootsplash/themes/current
%preun bootsplash
[ $1 = 0 ] || exit 0
[ "`readlink %_sysconfdir/bootsplash/themes/current`" != %theme ] ||
%__rm -f %_sysconfdir/bootsplash/themes/current
2008-12-24 16:54:58 +03:00
%files browser-qt
%config %_altdir/%name
/usr/share/alterator-browser-qt/design/desktop.rcc
2008-12-18 15:49:13 +03:00
%files bootsplash
%_sysconfdir/bootsplash/themes/%theme/
2008-12-17 11:49:16 +03:00
%changelog
2008-12-26 16:43:03 +03:00
* Fri Dec 26 2008 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt2
- colors integration
2008-12-17 11:49:16 +03:00
* Thu Dec 18 2008 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt1
- initial sceleton