Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37756328
en ru br
Репозитории ALT
5.1: 3.5.9-alt1
4.1: 3.5.9-alt1
4.0: 3.5.9-alt1
www.altlinux.org/Changes

Группа :: Графические оболочки/KDE
Пакет: kde-settings-junior

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

%define theme junior
%define Theme Junior
%define major 3
%define minor 5
%define bugfix 9

Name: kde-settings-%theme
Version: %major.%minor.%bugfix
Release: alt1

Group: Graphical desktop/KDE
Summary: %Theme - specific KDE settings
License: GPL
Url: http://www.altlinux.ru/

PreReq(post,preun): alternatives >= 0.2
Requires: kde-common >= %major.%minor

BuildArch: noarch
Source: %name-%version.tar.gz
BuildRequires: kde-common-devel >= 0.3.1 qmergeinifiles

%description
%Theme - specific KDE settings

%package light
Group: Graphical desktop/KDE
Summary: %Theme-light - specific KDE settings
%description light
%Theme-light - specific KDE settings


%prep
%setup -q

%build

%install
mkdir -p %buildroot/%_altdir
cat >%buildroot/%_altdir/%name <<__EOF__
%_kdeconfdir/distribution %_kdeconfdir/settings-%theme 50
__EOF__

mkdir -p %buildroot/%_altdir
cat >%buildroot/%_altdir/%name-light <<__EOF__
%_kdeconfdir/distribution %_kdeconfdir/settings-%theme-light 50
__EOF__

#

mkdir -p %buildroot/%_kdeconfdir/settings-%theme/share/config/
install -m 0644 config/* %buildroot/%_kdeconfdir/settings-%theme/share/config

mkdir -p %buildroot/%_kdeconfdir/settings-%theme-light/share/config/
cp -ar %buildroot/%_kdeconfdir/settings-%theme/share/config/* %buildroot/%_kdeconfdir/settings-%theme-light/share/config/

#

mkdir -p %buildroot/%_kdeconfdir/settings-%theme/share/apps/kdisplay/color-schemes/
install -m 0644 *.kcsrc %buildroot/%_kdeconfdir/settings-%theme/share/apps/kdisplay/color-schemes/

mkdir -p %buildroot/%_kdeconfdir/settings-%theme-light/share/apps/kdisplay/color-schemes/
cp -ar %buildroot/%_kdeconfdir/settings-%theme/share/apps/kdisplay/color-schemes/* %buildroot/%_kdeconfdir/settings-%theme-light/share/apps/kdisplay/color-schemes/

#

mkdir -p %buildroot/%_kdeconfdir/xdg/menus/applications-merged/
install -m 0644 %theme.menu %buildroot/%_kdeconfdir/xdg/menus/applications-merged/

mkdir -p %buildroot/%_kdeconfdir/xdg/menus/applications-merged/
install -m 0644 %theme.menu %buildroot/%_kdeconfdir/xdg/menus/applications-merged/%theme-light.menu

#

mkdir -p %buildroot/%_kdeconfdir/settings-%theme/share/apps/kicker
install -m 0644 default-apps %buildroot/%_kdeconfdir/settings-%theme/share/apps/kicker/default-apps

mkdir -p %buildroot/%_kdeconfdir/settings-%theme-light/share/apps/kicker
install -m 0644 default-apps %buildroot/%_kdeconfdir/settings-%theme-light/share/apps/kicker/default-apps

# light configs

pushd config-lite
ls -1 | \
while read f; do
   qmergeinifiles %buildroot/%_kdeconfdir/settings-%theme-light/share/config/$f $f
done
popd

%post
%post_register_alternatives %name -- %name
%update_alternatives
%preun
%preun_unregister_alternatives %name

%post light
%post_register_alternatives %name-light -- %name-light
%update_alternatives
%preun light
%preun_unregister_alternatives %name-light


%files
%config %_altdir/%name
%_kdeconfdir/settings-%theme/
%_kdeconfdir/xdg/menus/applications-merged/%theme.menu

%files light
%config %_altdir/%name-light
%_kdeconfdir/settings-%theme-light/
%_kdeconfdir/xdg/menus/applications-merged/%theme-light.menu

%changelog

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

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin