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

Группа :: Система/Интернационализация
Пакет: man-pages-uk

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

%define LANG uk
%define locale uk_UA
%define ENC1 KOI8-U
%define ENC2 CP1251

%define origname man-pages-uk_UA.alfa
%define oldversion 0.1.1

Name: man-pages-%LANG
Version: 20030816
Release: alt1

Summary: Ukrainian man (manual) pages
License: distributable
Group: System/Internationalization

Url: http://www.linux.org.ua/cgi-bin/twiki/view/Projects/ManUk
Icon: books-%LANG.xpm

# NB: man-pages-uk comes in CP1251, other two in KOI8-U

# NB: man-pakes-uk_UA.alfa (20030507) seems to supercede
# both other sources generally, so it "just" steps over
Source0: %name-%oldversion.tar.bz2
Source1: %url/mount-2.11-n4.tar.gz
Source2: %url/%origname.tar.gz

Packager: Michael Shigorin <mike at altlinux.ru>

BuildArch: noarch
PreReq: man >= 1.5k
Obsoletes: man-pages-%LANG-%ENC1, man-pages-%LANG-%ENC2

Summary(ru_RU.KOI8-R): Руководства пользователя на украинском языке
Summary(uk_UA.KOI8-U): Документац╕я користувача укра╖нською мовою

%description
A small collection of man pages (reference material) from the Linux
Documentation Project (LDP), translated to Ukrainian.

%description -l ru_RU.KOI8-R
Небольшая коллекция руководств пользователя (справочный материал) из
Linux Documentation Project (LDP), переведённых на украинский язык.

%description -l uk_UA.KOI8-U
Невелика колекц╕я документац╕╖ користувача (man-стор╕нки) з Linux
Documentation Project (LDP), що перекладен╕ укра╖нською.

%prep
%setup -q -a1 -a2 -n %name-%oldversion

%install
%__mkdir_p %buildroot%_mandir/%LANG/man{1,2,3,4,5,6,7,8,9,n}
%__mkdir_p %buildroot%_cachedir/man/%LANG/cat{1,2,3,4,5,6,7,8,9,n}

# compression is better handled at brp-compress

find -name '*.gz' | xargs gunzip 2>/dev/null

# man-pages-uk-0.1.1 tarball contents

SECTIONS="1 5 8"
for i in $SECTIONS; do
 for f in man$i/*.[0-9n]; do
   iconv -f %ENC2 -t %ENC1 < "$f" > %buildroot%_mandir/%LANG/$f \
   || {
     echo "** $f: conversion failed"
     exit 1
   }
 done
done

# mount tarball

%__cp -av usr/share/man/uk_UA/man[0-9] %buildroot%_mandir/%LANG/

# man-pages-uk_UA.alfa tarball content (finally)

%__rm %origname/man9/ShouldBeDeleted.9
%__cp -av %origname/man[0-9n] %buildroot%_mandir/%LANG/

# fix subjectivisms more along the common taste

%__subst 's/Л╕накс/Л╕нукс/g' %buildroot%_mandir/%LANG/*/*

echo %ENC1 >%buildroot%_mandir/%LANG/.charset
echo >%buildroot%_cachedir/man/%LANG/whatis

%post -p /etc/cron.daily/makewhatis

%postun
if [ "$1" = 0 -a ! -d %_mandir/%LANG ]; then
%__rm -rf %_cachedir/man/%LANG
fi
     
%files
%doc %origname/README %origname/TRANSLATORS
%_mandir/*

%attr(3775,root,man) %dir %_cachedir/man/%LANG
%attr(644,cacheman,man) %ghost %_cachedir/man/%LANG/whatis

%defattr(644,root,man,2775)
%_cachedir/man/%LANG/cat*

%changelog

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

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