Репозиторий Sisyphus
Последнее обновление: 9 июля 2020 | Пакетов: 17697 | Посещений: 18855392
en ru br
Репозитории ALT
S:15.12.1-alt1
5.1: 4.4.5-alt0.M51.1
4.1: 4.1.3-alt0.M41.1
www.altlinux.org/Changes

Группа :: Графические оболочки/KDE
Пакет: kde4-i18n-uk

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

%define _kde4_alternate_placement 1

%define lng uk
%define lngg Ukrainian

Name: kde4-i18n-%lng
Version: 15.08.3
Release: alt1

Group: Graphical desktop/KDE
Summary: %lngg language support for KDE
License: GPL
Url: http://www.kde.org/

#Provides: kde-i18n-%lng = %version-%release

Requires: kde-common >= 4.1
BuildArch: noarch

Source: kde-l10n-%lng-%version.tar
Source1: kde-l10n-%lng-old.tar

BuildRequires: gcc-c++ kde4libs-devel

%description
%lngg language support for KDE.


%prep
%setup -q -n kde-l10n-%lng-%version -a1
cp -anr kde-l10n-%lng-old/* 4/%lng/
rm -rf kde-l10n-%lng-old 5 CMakeLists.txt
mv 4/%lng/* ./
rm -rf 4

find -type f -name CMakeLists.txt | \
while read cm; do
   dirs=`grep add_subdirectory "$cm" | sed 's|.*[(]\(.*\)[)].*|\1|'`
   if [ -n "$dirs" ]; then
pushd `dirname "$cm"`
for d in $dirs; do
   mkdir -p $d
done
popd
   fi
done

for d in messages docs
do
   [ -d $d ] || continue
   pushd $d
   for subd in `ls -1d *` ; do
[ -d $subd ] || continue
grep -qe "^add_subdirectory([[:space:]]*$subd[[:space:]]*)" CMakeLists.txt \
|| echo "add_subdirectory($subd)" >> CMakeLists.txt
   done
   popd
done

# readd data

pushd data
   > CMakeLists.txt
   find ./ -maxdepth 1 -mindepth 1 -type d | \
   while read d ; do
echo "add_subdirectory(`basename $d`)" >> CMakeLists.txt
pushd $d
   > CMakeLists.txt
   find ./ -maxdepth 1 -mindepth 1 -type d | \
   while read d2 ; do
echo "add_subdirectory(`basename $d2`)" >> CMakeLists.txt
   done
popd
   done
popd


%build
%K4cmake
%K4make


%install
%K4install

# clean

rm -f %buildroot/%_K4i18n/*/LC_MESSAGES/*.ktp-*.mo
rm -f %buildroot/%_K4i18n/*/LC_MESSAGES/*libkgeomap*.mo

if ! [ -e %buildroot/%_K4doc/%lng/common ]; then
   mkdir -p %buildroot/%_K4doc/%lng/common/
   pushd %_K4doc/en/common/
   for f in *; do
ln -s %_K4doc/en/common/$f %buildroot/%_K4doc/%lng/common/$f
   done
   popd
fi


%files
%dir %_K4doc/%lng/*
%lang(%lng) %_K4doc/%lng/*
#
%dir %_K4i18n/%lng/
%_K4i18n/%lng/entry.desktop
#
%dir %_K4i18n/%lng/
%dir %_K4i18n/%lng/LC_MESSAGES/
%lang(%lng) %_K4i18n/%lng/LC_MESSAGES/*.mo
%dir %_K4i18n/%lng/LC_SCRIPTS/
%lang(%lng) %_K4i18n/%lng/LC_SCRIPTS/*
#
%lang(%lng) %_K4apps/kvtml/%lng/
#
%lang(%lng) %_K4apps/ktuberling/sounds/%lng/
%lang(%lng) %_K4apps/ktuberling/sounds/%lng.soundtheme
#%lang(%lng) %_K4apps/khangman/%lng.txt
%lang(%lng) %_K4apps/klettres/%lng/
%lang(%lng) %_K4apps/step/objinfo/l10n/uk
%lang(%lng) %_K4apps/autocorrect/%{lng}*.xml

%changelog

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

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