Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37041760
en ru br
Репозитории ALT
5.1: 1.6f-alt11
4.1: 1.6f-alt1
4.0: 1.5m2-alt4
+backports:1.6f-alt5.M40.1
3.0: 1.5m2-alt3
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: man

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

# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1

Name: man
Version: 1.6f
Release: alt1

Summary: A set of documentation tools: man, apropos and whatis
License: GPL
Group: System/Base
Url: http://primates.ximian.com/~flucifredi/man/
Packager: Slava Semushin <php-coder at altlinux.ru>

Source0: http://primates.ximian.com/~flucifredi/%name/%name-%version.tar.gz
Source1: makewhatis.cron.daily
Source2: makewhatis.cron.weekly

Patch0: man-1.5m2-cvs-fixes.patch
Patch1: man-alt-configure.patch
Patch2: man-1.5m2-alt-makefile.patch
Patch3: man-alt-bzip2.patch
Patch4: man-alt-usage_fix.patch
Patch5: man-1.5k-alt-conf.patch

Patch7: man-alt-apropos.patch
Patch8: man-alt-makewhatis.patch
Patch9: man-1.5k-alt-msgs.patch
Patch10: man-1.5m2-alt-manpath.patch
Patch11: man-1.5m2-alt-recode.patch
Patch12: man-1.5m2-alt-recode2.patch
Patch13: man-1.5m2-alt-unlatin1.patch

Patch15: man-1.5m2-alt-utf8whatis.patch
Patch16: man-1.5m2-alt-my_xsprintf.patch

PreReq: shadow-utils
Requires: groff-base >= 1.18.1-alt4, mktemp >= 1:1.3.1
Requires: getopt less iconv
Provides: %_sysconfdir/cron.daily/makewhatis

# After fixing bug #9364 file /usr/share/man/$LANG/.charset supplied

# by man package
Conflicts: man-pages-ru <= 0.98-alt11
Conflicts: man-pages-uk <= 20030816-alt1

# Automatically added by buildreq on Wed Mar 12 2003

BuildRequires: groff-base less su

%description
The man package includes three tools for finding information and/or
documentation about your Linux system: man, apropos and whatis.
The man system formats and displays on-line manual pages about commands
or functions on your system.  apropos searches the whatis database
(containing short descriptions of system commands) for a string.
whatis searches its own database for a complete word.

%prep
%setup
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p2
%patch5 -p1

%patch7 -p1
%patch8 -p2
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
#%patch13 -p1

%patch15 -p1
%patch16 -p1

%build

# FIXME:

# Don't install messages for Russian, because they in koi8-r charsets
# and not displayed properly in CP1251 and UTF-8 locales.
INSTALL_LANGUAGES=`grep ^LANGUAGES configure | cut -d\" -f2 | sed 's|,ru||'`
./configure -default -confdir /etc +sgid +fsstnd +fhs +lang "$INSTALL_LANGUAGES"
#./configure -default -confdir /etc +sgid +fsstnd +fhs +lang all

# SMP-incompatible build.

%make CC="%__cc %optflags -D_GNU_SOURCE" LDFLAGS=

%install
%make_install DESTDIR=%buildroot install

install -pD -m750 %_sourcedir/makewhatis.cron.daily %buildroot%_sysconfdir/cron.daily/makewhatis
install -pD -m750 %_sourcedir/makewhatis.cron.weekly %buildroot%_sysconfdir/cron.weekly/makewhatis

# Symlinks for manpath

ln -snf %name %buildroot%_bindir/manpath
ln -snf %name.1 %buildroot%_man1dir/manpath.1

mkdir -p %buildroot{%_cachedir/man/{{,{local,perl,X11R6}/}cat{1,2,3,4,5,6,7,8,9,n},tmp},%_lockdir/makewhatis}
for f in %buildroot%_cachedir/man/{,{local,perl,X11R6}/}whatis; do echo >"$f"; done

find %buildroot%_mandir -type f -print0 |
xargs -r0 chmod 644 --

# See bug #9364 for details

mkdir -p %buildroot%_mandir/{ru,uk}
echo "KOI8-R" > %buildroot%_mandir/ru/.charset
echo "KOI8-U" > %buildroot%_mandir/uk/.charset

%find_lang %name --with-man

for man in man.conf apropos whatis; do
%find_lang "$man" \
--output="%name.lang" \
--append \
--with-man \
--without-mo
done

%pre
/usr/sbin/useradd -r -g man -d %_cachedir/man -s /dev/null -n cacheman >/dev/null 2>&1 ||:

%triggerpostun -- %name < 1.5m2-alt2
echo -n 'Rebuilding whatis database... '
/etc/cron.weekly/makewhatis
echo done.

%files -f %name.lang
%_mandir/ru/.charset
%_mandir/uk/.charset

%config(noreplace) %_sysconfdir/%name.conf
%config %_sysconfdir/cron.*/makewhatis
%_bindir/*
%attr(754,root,man) %_sbindir/makewhatis
%_man1dir/manpath.1.*
%_man1dir/man2html.1.*
%_man8dir/makewhatis.8.*
%attr(700,root,root) %_lockdir/makewhatis

%attr(3775,root,man) %dir %_cachedir/man
%attr(3775,root,man) %dir %_cachedir/man/local
%attr(3775,root,man) %dir %_cachedir/man/perl
%attr(3775,root,man) %dir %_cachedir/man/X11R6
%attr(700,cacheman,man) %dir %_cachedir/man/tmp
%attr(644,cacheman,man) %ghost %_cachedir/man/whatis
%attr(644,cacheman,man) %ghost %_cachedir/man/local/whatis
%attr(644,cacheman,man) %ghost %_cachedir/man/perl/whatis
%attr(644,cacheman,man) %ghost %_cachedir/man/X11R6/whatis

%defattr(644,root,man,2775)
%_cachedir/man/cat*
%_cachedir/man/local/cat*
%_cachedir/man/perl/cat*
%_cachedir/man/X11R6/cat*

%changelog

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

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