2009-02-04 12:43:31 +03:00
%define theme desktop
2009-01-23 15:57:22 +03:00
%define Theme Desktop
%define codename Inula Helenium
2009-01-23 14:44:50 +03:00
%define brand altlinux
2009-02-05 16:15:40 +03:00
%define Brand ALT Linux
2009-02-19 15:11:09 +03:00
%define status beta
2009-03-24 16:49:39 +03:00
%define variants altlinux-office-desktop altlinux-office-server altlinux-lite
2008-12-17 11:49:16 +03:00
Name : branding-%brand-%theme
Version : 5.0
2009-03-25 11:02:41 +03:00
Release : alt24
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
2009-01-23 15:57:22 +03:00
Provides : design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
2008-12-17 11:49:16 +03:00
2009-01-23 15:57:22 +03:00
Obsoletes : design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader
2009-03-18 13:06:58 +03:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - b o o t l o a d e r " ;done )
2008-12-17 11:49:16 +03:00
%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
2009-01-23 15:57:22 +03:00
Provides : design-bootsplash design-bootsplash-%theme branding-alt-%theme-bootsplash
2008-12-18 15:49:13 +03:00
Requires : bootsplash >= 3.3
2009-01-23 15:57:22 +03:00
Obsoletes : branding-alt-%theme-bootsplash
2008-12-18 15:49:13 +03:00
2009-03-18 13:06:58 +03:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - b o o t s p l a s h " ;done )
2008-12-18 15:49:13 +03:00
%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>
2009-01-23 15:57:22 +03:00
Provides : design-alterator-browser-%theme branding-alt-%theme-browser-qt
2009-03-05 13:34:10 +03:00
Provides : alterator-icons design-alterator-%theme
2009-01-23 15:57:22 +03:00
Obsoletes : branding-alt-%theme-browser-qt
2008-12-24 16:54:58 +03:00
2009-03-18 13:06:58 +03:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - b r o w s e r - q t " ;done )
2008-12-24 16:54:58 +03:00
Requires : alterator-browser-qt
PreReq(post,preun): alternatives >= 0.2
%description browser-qt
Design for QT alterator for Desktop version
2008-12-26 17:33:32 +03:00
%package graphics
Summary : design for ALT
License : Different licenses
Group : Graphics
2009-01-23 15:57:22 +03:00
Provides : design-graphics-%theme branding-alt-%theme-graphics
2009-02-10 22:40:03 +03:00
Obsoletes : branding-alt-%theme-graphics design-graphics-%theme
2008-12-26 17:33:32 +03:00
PreReq(post,preun): alternatives >= 0.2
2009-03-18 13:06:58 +03:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - g r a p h i c s " ;done )
2008-12-26 17:33:32 +03:00
%description graphics
This package contains some graphics for ALT design.
2009-01-15 14:24:55 +03:00
%define provide_list altlinux fedora redhat system altlinux
2009-01-14 14:57:09 +03:00
%define obsolete_list altlinux-release fedora-release redhat-release
%define conflicts_list altlinux-release-sisyphus altlinux-release-4.0 altlinux-release-junior altlinux-release-master altlinux-release-server altlinux-release-terminal altlinux-release-small_business
%package release
Summary : %distribution %Theme release file
Copyright: GPL
Group : System/Configuration/Other
Packager : Anton V. Boyarshinov <boyarsh@altlinux.org>
2009-01-23 15:57:22 +03:00
Provides : %(for n in %provide_list; do echo -n " $ n - r e l e a s e = % v e r s i o n - % r e l e a s e " ; done) altlinux-release-%theme branding-alt-%theme-release
Obsoletes : %obsolete_list branding-alt-%theme-release
2009-01-14 14:57:09 +03:00
Conflicts : %conflicts_list
2009-03-18 13:06:58 +03:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - r e l e a s e " ;done )
2009-01-14 14:57:09 +03:00
%description release
%distribution %version %Theme release file.
2009-01-23 15:57:22 +03:00
%package notes
2009-02-10 22:40:03 +03:00
Provides : alt-license-theme = %version alt-notes-%theme
Obsoletes : alt-license-%theme alt-notes-%theme
2009-01-23 15:57:22 +03:00
Summary : Distribution license and release notes
License : Distributable
Group : Documentation
2009-02-11 09:33:19 +03:00
Conflicts : alt-notes-children alt-notes-hpc alt-notes-junior alt-notes-junior-sj alt-notes-junior-sm alt-notes-school-server alt-notes-server-lite alt-notes-skif alt-notes-terminal
2009-03-18 13:06:58 +03:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - n o t e s " ;done )
2009-01-23 15:57:22 +03:00
%description notes
Distribution license and release notes
2009-02-05 16:15:40 +03:00
%package kde4-settings
Summary : KDE4 settings for %Brand %version %Theme
License : Distributable
Group : Graphical desktop/KDE
2009-03-18 13:06:58 +03:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - k d e 4 - s e t t i n g s " ;done )
2009-02-05 16:15:40 +03:00
%description kde4-settings
KDE4 settings for %Brand %version %Theme
2009-02-27 15:58:37 +03:00
%package slideshow
Summary : Slideshow for %Brand %version %Theme installer
License : Distributable
Group : System/Configuration/Other
2009-03-18 13:06:58 +03:00
Conflicts : %(for n in %variants ; do [ " $ n " = %brand-%theme ] || echo -n " b r a n d i n g - $ n - s l i d e s h o w " ;done )
2009-02-27 15:58:37 +03:00
%description slideshow
Slideshow for %Brand %version %Theme installer
2009-03-24 18:01:28 +03:00
%package indexhtml
Summary : %name -- ALT Linux html welcome page
License : distributable
Group : System/Base
2009-03-25 11:02:41 +03:00
Provides : indexhtml indexhtml-%theme = %version indexhtml-Desktop = 1:5.0
2009-03-24 18:01:28 +03:00
Obsoletes : indexhtml-desktop indexhtml-Desktop
Conflicts : indexhtml-sisyphus
Conflicts : indexhtml-school_junior
Conflicts : indexhtml-school_lite
Conflicts : indexhtml-school_master
Conflicts : indexhtml-school_terminal
Conflicts : indexhtml-small_business
Conflicts : indexhtml-school-server
2009-03-24 19:10:52 +03:00
Requires : xdg-utils
Requires(post) : indexhtml-common
2009-03-24 18:01:28 +03:00
%description indexhtml
ALT Linux index.html welcome page.
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
2009-01-14 14:57:09 +03:00
THEME=%theme NAME='%Theme' BRAND_FNAME='ALT Linux' STATUS=%status VERSION=%version ./configure
2008-12-24 16:54:58 +03:00
make
2008-12-17 11:49:16 +03:00
#bootloader
pushd design-bootloader-source/
2009-02-18 13:22:15 +03:00
DEFAULT_LANG='--lang-to-subst--' PATH=$PATH:/usr/sbin %make
2008-12-17 11:49:16 +03:00
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
2009-03-05 13:34:10 +03:00
2009-03-18 13:06:58 +03:00
mkdir -p %buildroot/usr/share/alterator/design/
cp -a images %buildroot/usr/share/alterator/design/
popd
2009-03-05 13:34:10 +03:00
2008-12-24 16:54:58 +03:00
mkdir -p %buildroot/%_altdir
2009-01-15 14:24:55 +03:00
cat >%buildroot/%_altdir /%name-browser-qt <<__EOF__
2009-01-23 14:44:50 +03:00
/etc/alterator/design-browser-qt /usr/share/alterator-browser-qt/design/%theme.rcc 50
2008-12-24 16:54:58 +03:00
__EOF__
2009-01-14 14:57:09 +03:00
#graphics
2008-12-26 17:33:32 +03:00
mkdir -p %buildroot/%_datadir /design/{%theme,backgrounds}
cp -ar graphics/* %buildroot/%_datadir /design/%theme
pushd %buildroot/%_datadir /design/%theme
pushd backgrounds
ln -sf ../../../wallpapers more
popd
popd
install -d %buildroot//etc/alternatives/packages.d
2009-01-15 14:24:55 +03:00
cat >%buildroot/etc/alternatives/packages.d/%name-graphics <<__EOF__
2008-12-26 17:33:32 +03:00
%_datadir /artworks %_datadir /design/%theme 10
%_datadir /design-current %_datadir /design/%theme 10
2009-02-10 22:40:03 +03:00
%_datadir /design/current %_datadir /design/%theme 10
2008-12-26 17:33:32 +03:00
__EOF__
2009-01-14 14:57:09 +03:00
#release
install -pD -m644 /dev/null %buildroot%_sysconfdir /buildreqs/packages/ignore.d/%name-release
echo " % d i s t r i b u t i o n % v e r s i o n % T h e m e ( % c o d e n a m e ) " >%buildroot%_sysconfdir /altlinux-release
for n in fedora redhat system; do
ln -s altlinux-release %buildroot%_sysconfdir /$n-release
done
2009-02-05 16:15:40 +03:00
#notes
2009-01-23 15:57:22 +03:00
pushd notes
%makeinstall
popd
2008-12-26 17:33:32 +03:00
2009-02-05 16:15:40 +03:00
#kde4-settings
pushd kde4-settings
mkdir -p %buildroot%_sysconfdir /skel/Desktop
cp -a Desktop/* %buildroot%_sysconfdir /skel/Desktop/
mkdir -p %buildroot%_sysconfdir /skel/.kde4
cp -a kde4/* %buildroot%_sysconfdir /skel/.kde4/
popd
2008-12-24 16:54:58 +03:00
2009-02-27 15:58:37 +03:00
#slideshow
mkdir -p %buildroot/usr/share/install2/slideshow
install slideshow/* %buildroot/usr/share/install2/slideshow/
2009-03-24 18:01:28 +03:00
#indexhtml
%define _altdocsdir %_defaultdocdir/alt-docs
%define _indexhtmldir %_altdocsdir/indexhtml
pushd indexhtml
mkdir -p %buildroot{%_indexhtmldir /,%_desktopdir /}
cp -r * %buildroot%_indexhtmldir /
2009-03-24 18:18:42 +03:00
rm -f %buildroot%_indexhtmldir /*.in
2009-03-24 18:01:28 +03:00
touch %buildroot%_indexhtmldir /index.html
popd
install -m644 indexhtml.desktop %buildroot%_desktopdir /
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
2009-02-18 13:22:15 +03:00
. /etc/sysconfig/i18n
lang=$(echo $LANG | cut -d. -f 1)
cd boot/splash/%theme/
echo $lang > lang
2009-02-19 15:11:09 +03:00
[ " $ l a n g " = " C " ] || echo lang | cpio -o --append -F message
2009-02-18 13:22:15 +03:00
2008-12-17 11:49:16 +03:00
%preun bootloader
[ $1 = 0 ] || exit 0
[ " ` r e a d l i n k / b o o t / s p l a s h / m e s s a g e ` " != " % t h e m e / m e s s a g e " ] ||
%__rm -f /boot/splash/message
2009-03-24 18:01:28 +03:00
%post indexhtml
%_sbindir /indexhtml-update
2008-12-17 11:49:16 +03:00
%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
[ " ` r e a d l i n k %_sysconfdir / b o o t s p l a s h / t h e m e s / c u r r e n t ` " != %theme ] ||
%__rm -f %_sysconfdir /bootsplash/themes/current
2008-12-24 16:54:58 +03:00
%files browser-qt
2009-01-15 14:24:55 +03:00
%config %_altdir /%name-browser-qt
2009-01-23 14:44:50 +03:00
/usr/share/alterator-browser-qt/design/%theme.rcc
2009-03-18 13:06:58 +03:00
/usr/share/alterator/design/images
2008-12-24 16:54:58 +03:00
2008-12-26 17:33:32 +03:00
%files graphics
2009-01-15 14:24:55 +03:00
%config /etc/alternatives/packages.d/%name-graphics
2008-12-26 17:33:32 +03:00
%_datadir /design
2008-12-24 16:54:58 +03:00
2008-12-18 15:49:13 +03:00
%files bootsplash
%_sysconfdir /bootsplash/themes/%theme/
2008-12-17 11:49:16 +03:00
2009-01-14 14:57:09 +03:00
%files release
%_sysconfdir /*-*
%_sysconfdir /buildreqs/packages/ignore.d/*
2009-01-23 15:57:22 +03:00
%files notes
%_datadir /alt-notes/*
2009-02-05 16:15:40 +03:00
%files kde4-settings
%_sysconfdir /skel/Desktop
%_sysconfdir /skel/.kde4
2009-02-27 15:58:37 +03:00
%files slideshow
/usr/share/install2/slideshow
2009-02-05 16:15:40 +03:00
2009-03-24 18:01:28 +03:00
%files indexhtml
%ghost %_indexhtmldir /index.html
%_indexhtmldir /*
%_desktopdir /*
2008-12-17 11:49:16 +03:00
%changelog
2009-03-25 11:02:41 +03:00
* Wed Mar 25 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt24
- added versioned provides for indexhtml
2009-03-24 18:01:28 +03:00
* Tue Mar 24 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt23
- indexhtml subpackage added
2009-03-23 16:12:22 +03:00
* Mon Mar 23 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt22
- nepomukserverrc added into kde4
2009-03-18 13:06:58 +03:00
* Wed Mar 18 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt21
- other images for browser-qt added
- gtkrcs added into kde4-settings
- plasma-applet-networkmanagenemt removed from kde4 by default
- conflicts bitween different brandings added
2009-03-05 13:34:10 +03:00
* Thu Mar 05 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt20
- steps icons added
2009-02-27 15:58:37 +03:00
* Fri Feb 27 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt19
- sample slideshow added
2009-02-25 17:16:03 +03:00
* Wed Feb 25 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt18
- 1024x768 removed :D
- more transparent menu selection bar
2009-02-24 17:09:59 +03:00
* Tue Feb 24 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt17
- 1024x768 added
2009-02-24 18:56:22 +03:00
- fonts changed
2009-02-24 17:09:59 +03:00
2009-02-19 15:11:09 +03:00
* Thu Feb 19 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt16
- not setup language in bootloader during install (when it is 'C' )
2009-02-18 15:26:13 +03:00
* Wed Feb 18 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt15
- rebuild with new bootloader-source with support of real language change
2009-02-17 20:53:22 +03:00
* Tue Feb 17 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt14
2009-02-18 13:22:15 +03:00
- auto set default language for bootloader from /etc/sysconfig/i18n
2009-02-17 20:53:22 +03:00
2009-02-16 14:48:09 +03:00
* Mon Feb 16 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt13
- rebuild for fix oversized /boot/splash/message
2009-02-13 14:25:48 +03:00
* Fri Feb 13 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt12
- default language set to ru_RU for system boot
2009-02-11 09:33:19 +03:00
* Wed Feb 11 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt11
- fixed conflict of notes subpackage with itself
2009-02-10 22:40:03 +03:00
* Tue Feb 10 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt10
- more kde4 settings from zerg@
- alternative and obsoletes for graphics added
2009-02-05 16:54:36 +03:00
* Thu Feb 05 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt9
- rebuild with new translations
2009-02-05 16:15:40 +03:00
* Thu Feb 05 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt8
- added kde4-settings subpackage
2009-02-04 12:42:55 +03:00
* Wed Feb 04 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt7
- added conflicts for notes
2009-01-26 18:44:09 +03:00
* Mon Jan 26 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt6
- xdm background fixed
2009-01-23 15:57:22 +03:00
* Fri Jan 23 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt5
- added 'notes' subpackage
2009-01-15 14:24:55 +03:00
* Thu Jan 15 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt4
- fixed problem with owerwritten alternative
2009-01-14 14:57:09 +03:00
* Wed Jan 14 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt3
- release subpackage added
2008-12-26 16:43:03 +03:00
* Fri Dec 26 2008 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt2
2008-12-26 17:33:32 +03:00
- colors integration
- graphics package added
2008-12-26 16:43:03 +03:00
2008-12-17 11:49:16 +03:00
* Thu Dec 18 2008 Anton V. Boyarshinov <boyarsh@altlinux.ru> 5.0-alt1
- initial sceleton