Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1572064
 поиск   регистрация   авторизация 
 
Группа :: Система/Основа
Пакет: kde-settings

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define ARTS_ON 0
%if_with master
%define distr master
%endif
%if_with junior
%define distr junior
%endif
%ifndef distr
%define distr sisyphus
%endif

%define unpack tar xvfjk

Name: kde-settings
Version: 3.3.2
Release: alt0.0.M24

Summary: The default configuration files for KDE
License: GPL
Group: System/Base
BuildArch: noarch

Requires: design-graphics >= 3.1.0
Provides: kde-desktoplnk = %version-%release, kde-design = %version-%release, kde-config =  %version-%release
Obsoletes: kde-desktoplnk, kde-design, kde-config
Conflicts: kdelibs < %version, kdebase-libs < %version

BuildRequires: XFree86-utils

Source0: ksysguarddrc
Source1: kde-set-libs.tar.bz2
Source2: kde-set-base.tar.bz2
Source3: kde-set-arts-on.tar.bz2
Source4: kde-set-arts-off.tar.bz2
Source5: kde-set-kdm.tar.bz2
Source6: kde-set-network.tar.bz2
Source7: kde-set-multimedia.tar.bz2
Source8: kde-set-pim.tar.bz2
Source9: kde-set-utils.tar.bz2
Source10: kde-set-games.tar.bz2
Source11: kde-set-accessibility.tar.bz2
Source12: kde-set-graphics.tar.bz2
Source13: kde-set-artwork.tar.bz2
Source14: kde-set-addons.tar.bz2
Source15: kde-set-edu.tar.bz2
#
Source51: kde-kcfg-multimedia.tar.bz2
Source52: kde-kcfg-pim.tar.bz2
Source53: kde-kcfg-utils.tar.bz2
Source54: kde-kcfg-games.tar.bz2
Source55: kde-kcfg-addons.tar.bz2
Source56: kde-kcfg-edu.tar.bz2
Source57: kde-kcfg-base.tar.bz2
Source58: kde-kcfg-network.tar.bz2
Source59: kde-kcfg-sdk.tar.bz2
Source60: kde-kcfg-webdev.tar.bz2
#
Source111: kde-desktoplnk.tar.bz2
Source112: kde-bookmarks.tar.bz2
Source113: %name-Default-alt.kcsrc
#
Source121: %name-user.tar.bz2

%description
%name package contains the default configuration
files for the K Desktop Environment.


%install
install -d -m 0755 %buildroot/%_sysconfdir/X11/kdm
install -d -m 0755 %buildroot/%_datadir/config/kdm
install -d -m 0755 %buildroot/%_datadir/config.kcfg
install -d -m 0755 %buildroot/%_datadir/alt/kde

# sysconfig

mkdir -p %buildroot/%_sysconfdir
install -m 0644 %SOURCE0 %buildroot/%_sysconfdir/ksysguarddrc

# config

pushd %buildroot/%_datadir/config
   %unpack %SOURCE1
   %unpack %SOURCE2
%if %ARTS_ON
   %unpack %SOURCE3
%else
   %unpack %SOURCE4
%endif
   %unpack %SOURCE6
   %unpack %SOURCE7
   %unpack %SOURCE8
   %unpack %SOURCE9
   %unpack %SOURCE10
   %unpack %SOURCE11
   %unpack %SOURCE12
   %unpack %SOURCE13
   %unpack %SOURCE14
   %unpack %SOURCE15
popd
# config.kcfg
pushd %buildroot/%_datadir/config.kcfg
   %unpack %SOURCE51
   %unpack %SOURCE52
   %unpack %SOURCE53
   %unpack %SOURCE54
   %unpack %SOURCE55
   %unpack %SOURCE56
   %unpack %SOURCE57
   %unpack %SOURCE58
   %unpack %SOURCE59
   %unpack %SOURCE60
popd

# kdm

pushd %buildroot/%_sysconfdir/X11/kdm
   %unpack %SOURCE5
popd
ln -s ../../../../%_sysconfdir/X11/kdm/kdmrc %buildroot/%_datadir/config/kdm/kdmrc

install -d -m 0755 %buildroot/%_datadir/apps/kdisplay/color-schemes
install -m 0644 %SOURCE113 %buildroot/%_datadir/apps/kdisplay/color-schemes/ALT_Default.kcsrc

mkdir -p %buildroot/%_datadir/alt/kde/desktoplnk
pushd %buildroot/%_datadir/alt/kde/desktoplnk
   %unpack %SOURCE111
popd

pushd %buildroot/%_datadir/alt/kde
   %unpack %SOURCE112
popd

install -d -m 0755 %buildroot/%_datadir/alt/kde/userconfig
pushd %buildroot/%_datadir/alt/kde/userconfig
   %unpack %SOURCE121
popd


%files
%config(noreplace) %_sysconfdir/ksysguarddrc
%dir %_sysconfdir/X11/kdm
%config(noreplace) %attr(0644,root,root) %_sysconfdir/X11/kdm/kdmrc
%config(noreplace) %attr(0644,root,root) %_sysconfdir/X11/kdm/backgroundrc
%config(noreplace) %attr(0755,root,root) %_sysconfdir/X11/kdm/X*
#
%dir %_datadir/config/
%config(noreplace) %_datadir/config/*
%dir %_datadir/config.kcfg/
%config(noreplace) %_datadir/config.kcfg/*
#
%_datadir/apps/kdisplay/color-schemes/*
#
%_datadir/alt/kde/desktoplnk
%_datadir/alt/kde/userconfig
%_datadir/alt/kde/*bookmarks*

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005