%define theme slinux %define Name Simply Linux %define codename Billy %define status %nil %define variants altlinux-office-desktop altlinux-office-server altlinux-desktop %define brand simply Name: branding-simply-linux Version: 6.0.0 Release: alt15 BuildArch: noarch BuildRequires: cpio gfxboot >= 4 fonts-ttf-dejavu fonts-ttf-droid BuildRequires: design-bootloader-source >= 5.0-alt2 BuildRequires(pre): libqt4-core BuildRequires: libalternatives-devel BuildRequires: libqt4-devel BuildRequires: ImageMagick fontconfig bc libGConf-devel Source: %name-%version.tar Group: Graphics Summary: System/Base License: GPL %description Distro-specific packages with design and texts for Simply Linux distribution. %description -l ru_RU.UTF-8 Пакеты, для дистрибутива "Просто Линукс" (Simply Linux) %package bootloader Group: System/Configuration/Boot and Init Summary: Graphical boot logo for grub2, lilo and syslinux Summary(ru_RU.UTF-8): Тема для экрана выбора вариантов загрузки (lilo и syslinux) License: GPL PreReq: coreutils Provides: design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader Obsoletes: design-bootloader-system-%theme design-bootloader-livecd-%theme design-bootloader-livecd-%theme design-bootloader-%theme branding-alt-%theme-bootloader Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-bootloader ";done ) %define grub_normal white/black %define grub_high black/white %description bootloader Here you find the graphical boot logo for Simply Linux distribution. Suitable for both lilo and syslinux. %description bootloader -l ru_RU.UTF-8 В данном пакете находится тема для экрана выбора вариантов загрузки (lilo и syslinux) для дистрибутива "Просто Линукс" (Simply Linux). %package bootsplash Summary: Theme for splash animations during bootup Summary(ru_RU.UTF-8): Тема для экрана загрузки для дистрибутива "Просто Линукс" License: Distributable Group: System/Configuration/Boot and Init Provides: plymouth-theme-%theme Requires: plymouth-plugin-script PreReq: plymouth Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-bootsplash ";done ) %description bootsplash This package contains graphics for boot process for Simply Linux (needs console splash screen enabled). %description bootsplash -l ru_RU.UTF-8 В данном пакете находится тема для экрана загрузки для дистрибутива "Просто Линукс" (Simply Linux). %package alterator Summary: Design for alterator for Simply Linux Summary(ru_RU.UTF-8): Тема для "Центра управления системой" и QT для дистрибутива "Просто Линукс" License: GPL Group: System/Configuration/Other Provides: design-alterator-browser-%theme branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt Provides: alterator-icons design-alterator design-alterator-%theme Obsoletes: branding-alt-%theme-browser-qt branding-altlinux-%theme-browser-qt Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-browser-qt ";done ) Obsoletes: design-alterator-server design-alterator-desktop design-altertor-browser-desktop design-altertor-browser-server branding-altlinux-backup-server-alterator PreReq(post,preun): alternatives >= 0.2 alterator %description alterator Design for QT and web alterator for Simply Linux. %description alterator -l ru_RU.UTF-8 В данном пакете находится тема для "Центра управления системой" (Alterator) и модулей библиотеки QT для дистрибутива "Просто Линукс" (Simply Linux). %package graphics Summary: Design for Simply Linux Summary(ru_RU.UTF-8): Тема для дистрибутива "Просто Линукс" License: Different licenses Group: Graphics Provides: design-graphics-%theme branding-alt-%theme-graphics Obsoletes: branding-alt-%theme-graphics design-graphics-%theme Provides: design-graphics = 12.0.0 PreReq(post,preun): alternatives >= 0.2 Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-graphics ";done ) %description graphics This package contains some graphics for Simply Linux design. %description graphics -l ru_RU.UTF-8 В данном пакете находится необходимые графические элементы для дистрибутива "Просто Линукс" (Simply Linux). %define provide_list altlinux fedora redhat system altlinux %define obsolete_list altlinux-release fedora-release redhat-release %define conflicts_list altlinux-release-sisyphus altlinux-release-4.0 altlinux-release-5.0 altlinux-release-5.1 altlinux-release-junior altlinux-release-master altlinux-release-server altlinux-release-terminal altlinux-release-small_business %package release Summary: Simply Linux release file Summary(ru_RU.UTF-8): Описание дистрибутива "Просто Линукс" License: GPL Group: System/Configuration/Other Provides: %(for n in %provide_list; do echo -n "$n-release = %version-%release "; done) altlinux-release-%theme branding-alt-%theme-release Obsoletes: %obsolete_list branding-alt-%theme-release Conflicts: %conflicts_list Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-release ";done ) %description release Simply Linux %version release file. %description release -l ru_RU.UTF-8 В данном пакете находится описание версии %version дистрибутива "Просто Линукс" (Simply Linux). %package notes Provides: alt-license-theme = %version alt-notes-%theme Obsoletes: alt-license-%theme alt-notes-%theme Summary: Distribution license and release notes Summary(ru_RU.UTF-8): Лицензия и дополнительные сведения для дистрибутива "Просто Линукс" License: Distributable Group: Documentation 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 alt-notes-desktop Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-notes ";done ) %description notes Distribution license and release notes %description notes -l ru_RU.UTF-8 В данном пакете находится лицензия и дополнительные сведения для версии %version дистрибутива "Просто Линукс" (Simply Linux). %package xfce-settings Summary: default settings for Xfce 4.6 for Simply linux distribution License: Distributable Group: Graphical desktop/XFce Requires: PolicyKit-gnome Requires: etcskel gtk2-theme-simplicity Requires: gnome-icon-theme icon-theme-simple Requires: branding-simply-linux-graphics Obsoletes: xfce-settings-lite xfce-settings-school-lite Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-xfce-settings ";done ) Conflicts: xfce-settings-simply-linux %description xfce-settings This package contains default settings for Xfce 4.6 for Simply linux distribution. %package slideshow Summary: Slideshow for Simply Linux %version installer. Summary(ru_RU.UTF-8): Изображения для организации "слайдшоу" в установщике дистрибутива "Просто Линукс" License: Distributable Group: System/Configuration/Other Conflicts: %(for n in %variants ; do [ "$n" = %theme ] || echo -n "branding-$n-slideshow ";done ) %description slideshow Slideshow for Simply Linux %version installer. %description slideshow -l ru_RU.UTF-8 В данном пакете находятся изображения для организации "слайдшоу" в установщике дистрибутива "Просто Линукс" (Simply Linux). %package indexhtml Summary: Simply Linux html welcome page Summary(ru_RU.UTF-8): Стартовая страница для дистрибутива "Просто Линукс" License: distributable Group: System/Base Provides: indexhtml indexhtml-%theme = %version indexhtml-Desktop = 1:5.0 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 Conflicts: branding-altlinux-backup-server-indexhtml Requires: xdg-utils Requires(post): indexhtml-common %description indexhtml Simply Linux index.html welcome page. %description indexhtml -l ru_RU.UTF-8 В данном пакете содержится стартовая страница для дистрибутива "Просто Линукс" (Simply Linux). %package menu Summary: menu for Simply Linux License: Distributable Group: Graphical desktop/Other Requires(pre): altlinux-freedesktop-menu-common Requires: altlinux-freedesktop-menu-common %description menu Menu for Simply Linux %prep %setup -q %build autoconf THEME=%theme NAME='%Name' STATUS=%status VERSION=%version ./configure make %install %makeinstall make x86 DESTDIR=%buildroot datadir=%buildroot%_datadir sysconfdir=%buildroot%_sysconfdir #graphics mkdir -p %buildroot/%_datadir/design/{%theme,backgrounds} mkdir -p %buildroot/%_niconsdir install graphics/icons/slinux.png %buildroot/%_niconsdir/slinux.png install graphics/icons/slinux-thunar.png %buildroot/%_niconsdir/slinux-thunar.png install graphics/icons/mini/slinux.png %buildroot/%_iconsdir/altlinux.png 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 cat >%buildroot/etc/alternatives/packages.d/%name-graphics <<__EOF__ %_datadir/artworks %_datadir/design/%theme 10 %_datadir/design-current %_datadir/design/%theme 10 %_datadir/design/current %_datadir/design/%theme 10 __EOF__ #release install -pD -m644 /dev/null %buildroot%_sysconfdir/buildreqs/packages/ignore.d/%name-release echo "%Name %version %status (%codename)" >%buildroot%_sysconfdir/altlinux-release for n in fedora redhat system; do ln -s altlinux-release %buildroot%_sysconfdir/$n-release done #notes pushd notes %makeinstall popd mkdir -p %buildroot/etc/skel/Документы/Музыка/mpd mkdir -p %buildroot/etc/skel/Документы/Музыка/mpd/playlists cp -r xfce-settings/etcskel/* %buildroot/etc/skel/ cp -r xfce-settings/etcskel/.config %buildroot/etc/skel/ cp -r xfce-settings/etcskel/.gconf %buildroot/etc/skel/ install -m 644 xfce-settings/etcskel/.wm-select %buildroot/etc/skel/ install -m 644 xfce-settings/etcskel/.fonts.conf %buildroot/etc/skel/ install -m 644 xfce-settings/etcskel/.mpdconf %buildroot/etc/skel/ mkdir -p %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1600x1200 mkdir -p %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1680x1050 cp -P xfce-settings/backgrounds/*.jpg %buildroot/usr/share/xfce4/backdrops/ install -m 644 xfce-settings/backgrounds/vladstudio.com/LICENSE.txt %buildroot/usr/share/xfce4/backdrops/vladstudio.com/ install -m 644 xfce-settings/backgrounds/vladstudio.com/1600x1200/* %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1600x1200/ install -m 644 xfce-settings/backgrounds/vladstudio.com/1680x1050/* %buildroot/usr/share/xfce4/backdrops/vladstudio.com/1680x1050/ install -m 644 xfce-settings/backgrounds/slinux*.jpg %buildroot/usr/share/xfce4/backdrops/ #popd #slideshow mkdir -p %buildroot/usr/share/install2/slideshow install slideshow/* %buildroot/usr/share/install2/slideshow/ #indexhtml %define _altdocsdir %_defaultdocdir/alt-docs %define _indexhtmldir %_defaultdocdir/indexhtml install components/indexhtml/*.html %buildroot%_defaultdocdir/indexhtml/ mkdir -p %buildroot%_defaultdocdir/indexhtml/img install components/indexhtml/img/* %buildroot%_defaultdocdir/indexhtml/img/ #install -m644 components/indexhtml.desktop %buildroot%_desktopdir/ #menu mkdir -p %buildroot/usr/share/slinux-style/applications install menu/applications/* %buildroot/usr/share/slinux-style/applications/ mkdir -p %buildroot/etc/xdg/menus/applications-merged cp menu/50-slinux-menu-style.menu %buildroot/etc/xdg/menus/applications-merged/ mkdir -p %buildroot/etc/xdg/menus/xfce-applications-merged cp menu/50-xfce-applications.menu %buildroot/etc/xdg/menus/xfce-applications-merged/ #bootloader %pre bootloader [ -s /usr/share/gfxboot/%theme ] && rm -fr /usr/share/gfxboot/%theme ||: [ -s /boot/splash/%theme ] && rm -fr /boot/splash/%theme ||: %post bootloader %__ln_s -nf %theme/message /boot/splash/message . /etc/sysconfig/i18n lang=$(echo $LANG | cut -d. -f 1) cd boot/splash/%theme/ echo $lang > lang [ "$lang" = "C" ] || echo lang | cpio -o --append -F message . shell-config shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme/theme.txt #shell_config_set /etc/sysconfig/grub2 GRUB_THEME /boot/grub/themes/%theme shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_NORMAL %grub_normal shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high %preun bootloader [ $1 = 0 ] || exit 0 [ "`readlink /boot/splash/message`" != "%theme/message" ] || %__rm -f /boot/splash/message %post indexhtml %_sbindir/indexhtml-update %files bootloader %_datadir/gfxboot/%theme /boot/splash/%theme /boot/grub/themes/%theme #bootsplash %post bootsplash subst "s/Theme=.*/Theme=%theme/" /etc/plymouth/plymouthd.conf [ -f /etc/sysconfig/grub2 ] && \ subst "s|GRUB_WALLPAPER=.*|GRUB_WALLPAPER=/usr/share/plymouth/themes/%theme/grub.jpg|" \ /etc/sysconfig/grub2 ||: %files alterator %config %_altdir/*.rcc /usr/share/alterator-browser-qt/design/*.rcc /usr/share/alterator/design/* %files graphics %config /etc/alternatives/packages.d/%name-graphics %_datadir/design %_niconsdir/slinux.png %_niconsdir/slinux-thunar.png %_iconsdir/altlinux.png %files bootsplash %_datadir/plymouth/themes/%theme/* %files release %_sysconfdir/*-* %_sysconfdir/buildreqs/packages/ignore.d/* %files notes %_datadir/alt-notes/* %files xfce-settings /etc/skel/Документы /etc/skel/.wm-select /etc/skel/.fonts.conf /etc/skel/.mpdconf /etc/skel/.config /etc/skel/.gconf /usr/share/xfce4/backdrops %files slideshow /usr/share/install2/slideshow %define indexhtmldir %_defaultdocdir/indexhtml %files indexhtml #%ghost %_indexhtmldir/index.html #%_indexhtmldir/* #%_desktopdir/* %ghost %indexhtmldir/index.html %indexhtmldir/index-*.html %indexhtmldir/index.css %indexhtmldir/img %_desktopdir/indexhtml.desktop %files menu /usr/share/slinux-style /etc/xdg/menus/applications-merged/50-slinux-menu-style.menu /etc/xdg/menus/xfce-applications-merged/50-xfce-applications.menu %changelog * Wed Jun 30 2011 Alexandra Panyukova 6.0.0-alt15 - wallpapers path fixed - more sizes of thunar icons - greeting, installer, lilo and finish step icons added * Tue Jun 28 2011 Alexandra Panyukova 6.0.0-alt14 - new wallpapers - new thunar icon - adding symlink for final step in installer * Fri Jun 17 2011 Alexandra Panyukova 6.0.0-alt13 - translation of desktop-files for libreoffice, xkill and eiskaltdcpp-gt - web-browser icon on xfce panel changed on firefox icon - new icons on livecd installer steps * Thu Jun 16 2011 Mikhail Efremov 6.0.0-alt12 - indexhtml: change link to user manual (by Artem Zolochevskiy). - menu: Drop unneeded desktop files. - etcscel: Changed display type of xkb plugin. * Tue Jun 14 2011 Mikhail Efremov 6.0.0-alt11 - new desktop files for libreoffice and xkill (by Alexandra Panyukova). - new images for installer steps (by Alexandra Panyukova). - menu subpackage added (by Alexandra Panyukova). - trying to replace some elements in bootloader (by Alexandra Panyukova). - style changes in grub theme (by Alexandra Panyukova). - trying to read images less times in bootloader (by Alexandra Panyukova). - new menu items (by Alexandra Panyukova). - new grub theme (by Alexandra Panyukova). - etcskel: Drop xfce4-terminal.desktop. - etcskel: Drop ristretto.desktop. - Show gnome-screensever preferences in xfce4 settings. - etcskel: Drop nm-applet.desktop. - making grey points in menu from the beginning (by Alexandra Panyukova). - testing default version of menu.inc (by Alexandra Panyukova). * Fri May 27 2011 Mikhail Efremov 6.0.0-alt10 - Tune desktop: show trash, don't show removable disks. - etcskel: Move Russian Music to Documents. - etcskel: Move Russian Templates to Documents. - etcskel: Drop sonata config. * Thu May 26 2011 Anton V. Boyarshinov 6.0.0-alt9 - gfxboot design * Mon May 23 2011 Mikhail Efremov 6.0.0-alt8 - Font: Droid Sans. - Cursor theme: jimmac. * Fri May 20 2011 Mikhail Efremov 6.0.0-alt7 - helpers.rc: Add more defaults. * Fri May 20 2011 Anton V. Boyarshinov 6.0.0-alt6 - gfxboot colors changed * Tue May 17 2011 Anton V. Boyarshinov 6.0.0-alt5 - bootsplash changed from centaurus to simply * Mon May 16 2011 Anton V. Boyarshinov 6.0.0-alt4 - fix automatic boot from usb disk * Sat May 14 2011 Mikhail Efremov 6.0.0-alt3 - Minor spec cleanup. - Add compiz configs to /etc/skel. - Fix fusion-icon config: newline at the end. * Fri May 13 2011 Anton V. Boyarshinov 6.0.0-alt2 - gear repo structure changed to comply other brandings - gfxboot colors changed * Wed Apr 13 2011 Alexandra Panyukova 6.0.0-alt1 - new version * Fri Dec 17 2010 Alexandra Panyukova 5.0.2-alt1 - version for 5.0.2: -- new wallpapers -- some new xfce default settings * Fri Apr 30 2010 Alexandra Panyukova 5.0.1-alt3 - test user bindings removed (Closes: 23327) - returning icon for alterator (Closes: 23316) - removing local *.desktop files for often deleted packages * Mon Apr 05 2010 Alexandra Panyukova 5.0.1-alt2 - xfce-settings for simply linux 5.0.1 * Thu Mar 04 2010 Alexandra Panyukova 5.0.1-alt1 - merged with xfce-settings-simply-linux * Tue Nov 24 2009 Denis Koryavov 5.0.0-alt12 - Some repocop warnings is taken into account. * Tue Nov 17 2009 Denis Koryavov 5.0.0-alt11 - Some repocop warnings is taken into account. * Tue Nov 03 2009 Denis Koryavov 5.0.0-alt9.M51.1 - Backport to 5.1. * Tue Nov 03 2009 Denis Koryavov 5.0.0-alt10 - Version update for easy backport to 5.1. * Mon Nov 02 2009 Denis Koryavov 5.0.0-alt9 - Indexhtml page changed. * Sun Oct 25 2009 Denis Koryavov 5.0.0-alt8 - Changed colors for bootsplash. - Changed license page fonts. - Changed logo for slideshow. * Sat Oct 17 2009 Denis Koryavov 5.0.0-alt7 - Simply Linux 5.0 RC3 release. * Wed Oct 14 2009 Denis Koryavov 5.0.0-alt6 - Added new bootloader theme. * Sun Oct 04 2009 Denis Koryavov 5.0.0-alt5 - Simply Linux RC2. * Tue Sep 08 2009 Denis Koryavov 5.0.0-alt4 - Removed misspellings in bootsplash text for 640x480 and 800x600 modes * Wed Aug 19 2009 Denis Koryavov 5.0.0-alt3 - Added brand icon an Russian description for package. * Thu Aug 13 2009 Denis Koryavov 5.0.0-alt2 - Update for bootsplash. * Sat Jun 13 2009 Denis Koryavov 5.0.0-alt1 - Fork from branding-altlinux-lite * Wed Apr 01 2009 Anton V. Boyarshinov 5.0.0-alt5 - logo in www design fixed * Tue Mar 31 2009 Anton V. Boyarshinov 5.0.0-alt4 - www design fixed * Tue Mar 31 2009 Anton V. Boyarshinov 5.0.0-alt3 - conflicts for -alterator subpackages added - design for web alterator changed * Mon Mar 30 2009 Anton V. Boyarshinov 5.0.0-alt2 - -browser-qt subpackage remaned to -alterator as it really is * Fri Mar 27 2009 Anton V. Boyarshinov 5.0.0-alt1 - addes \%status to altlinux-release - images for verbose bootsplash mode from one source * Wed Mar 25 2009 Anton V. Boyarshinov 5.0-alt24 - added versioned provides for indexhtml * Tue Mar 24 2009 Anton V. Boyarshinov 5.0-alt23 - indexhtml subpackage added * Mon Mar 23 2009 Anton V. Boyarshinov 5.0-alt22 - Lite version * Wed Mar 18 2009 Anton V. Boyarshinov 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 * Thu Mar 05 2009 Anton V. Boyarshinov 5.0-alt20 - steps icons added * Fri Feb 27 2009 Anton V. Boyarshinov 5.0-alt19 - sample slideshow added * Wed Feb 25 2009 Anton V. Boyarshinov 5.0-alt18 - 1024x768 removed :D - more transparent menu selection bar * Tue Feb 24 2009 Anton V. Boyarshinov 5.0-alt17 - 1024x768 added - fonts changed * Thu Feb 19 2009 Anton V. Boyarshinov 5.0-alt16 - not setup language in bootloader during install (when it is 'C') * Wed Feb 18 2009 Anton V. Boyarshinov 5.0-alt15 - rebuild with new bootloader-source with support of real language change * Tue Feb 17 2009 Anton V. Boyarshinov 5.0-alt14 - auto set default language for bootloader from /etc/sysconfig/i18n * Mon Feb 16 2009 Anton V. Boyarshinov 5.0-alt13 - rebuild for fix oversized /boot/splash/message * Fri Feb 13 2009 Anton V. Boyarshinov 5.0-alt12 - default language set to ru_RU for system boot * Wed Feb 11 2009 Anton V. Boyarshinov 5.0-alt11 - fixed conflict of notes subpackage with itself * Tue Feb 10 2009 Anton V. Boyarshinov 5.0-alt10 - more kde4 settings from zerg@ - alternative and obsoletes for graphics added * Thu Feb 05 2009 Anton V. Boyarshinov 5.0-alt9 - rebuild with new translations * Thu Feb 05 2009 Anton V. Boyarshinov 5.0-alt8 - added kde4-settings subpackage * Wed Feb 04 2009 Anton V. Boyarshinov 5.0-alt7 - added conflicts for notes * Mon Jan 26 2009 Anton V. Boyarshinov 5.0-alt6 - xdm background fixed * Fri Jan 23 2009 Anton V. Boyarshinov 5.0-alt5 - added 'notes' subpackage * Thu Jan 15 2009 Anton V. Boyarshinov 5.0-alt4 - fixed problem with owerwritten alternative * Wed Jan 14 2009 Anton V. Boyarshinov 5.0-alt3 - release subpackage added * Fri Dec 26 2008 Anton V. Boyarshinov 5.0-alt2 - colors integration - graphics package added * Thu Dec 18 2008 Anton V. Boyarshinov 5.0-alt1 - initial sceleton