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

Группа :: Документация/Howtos
Пакет: howto-html-en

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

%define lang en
%define language English
%define format2 HTML/%lang

Name: howto-html-%lang
Version: 10
Release: alt1

Summary: HOWTO documents (html format, in %language) from the Linux Documentation Project
Group: Books/Howtos
License: GPL

Url: http://www.tldp.org/docs.html#howto
Source0: howto-html-%lang.tar
Source1: howto-html-%lang

BuildArch: noarch

Obsoletes: ldp, howto-html

BuildPreReq: howto-utils >= 0.2.13
Requires: howto-utils

AutoReq: no

%set_verify_elf_method none
%set_strip_method none

%description
Linux HOWTOs are detailed documents which describe a specific aspect of
configuring or using Linux.  Linux HOWTOs are a great source of
practical information about your system.  The latest versions of these
documents are located at http://www.linuxdoc.org/docs.html#howto

In this package, you can find HOWTOs written in %language. This is probably
the most full collection of them (as compared to other languages).

%prep
%setup -q -n %name

%install
dest=%buildroot%_docdir/HOWTO/%format2
%__mkdir_p $dest

for i in *.tar.gz; do
name="${i%%-html.tar.gz}"
# cautious untarring
%__mkdir_p "$dest/$name"
%__tar -C "$dest/$name" -zxf "$i" || {
rmdir $dest/$name
continue
}
# handle proper packages (tarred dir)
[ -d "$dest/$name/$name" ] && {
%__mv "$dest/$name/$name"/* "$dest/$name"
rmdir "$dest/$name/$name"
}
done

pushd $dest
 rm -f index.html
 makehowtoindex %lang %language \
 | sed 's,>"\./\(.*\)/index"<,>\1<,' \
 > index.html
popd
unset dest

%__install -m755 -d %buildroot%_menudir
%__install -m644 %SOURCE1 %buildroot%_menudir/howto-html-%lang

%files
%_docdir/HOWTO/%format2
%_menudir/*

%post
%update_menus

%postun
%clean_menus

%changelog

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

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