Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37048104
en ru br
Репозитории ALT
S:7.0.3-alt1
5.1: 4.13-alt7
4.1: 4.11-alt3
4.0: 4.8-alt4
3.0: 4.8-alt2
www.altlinux.org/Changes

Группа :: Издательство
Пакет: texinfo

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

Name: texinfo
Version: 4.8
Release: alt2

Summary: Tools needed to create Texinfo format documentation files
License: GPL
Group: Publishing
Url: http://www.gnu.org/software/%name/
%define src_url ftp://ftp.gnu.org/pub/gnu/%name

Source0: %src_url/%name-%version.tar.bz2
#Source1: %src_url/texinfo.tex.bz2
Source2: info-dir
Source4: install_info
Source5: uninstall_info
Source6: %name.macros
Source7: texi2pdf

Patch0: %name-4.8-alt-zio.patch
Patch1: %name-4.7-rh-alt-readfile.patch
Patch2: %name-4.7-alt-ru.po.patch
Patch3: %name-4.7-owl-alt-texindex-tmp.patch
Patch4: %name-4.6-alt-texi2dvi-tmp.patch
Patch5: %name-4.6-deb-alt-texi2dvi-tex.patch
Patch6: %name-4.8-alt-texi2dvi-recode.patch
Patch7: %name-4.8-alt-texinfo.patch
Patch8: %name-4.8-alt-tinfo.patch
Patch9: %name-4.8-deb-fixes.patch
Patch10: %name-4.6-alt-install-info-rpm_excludedocs.patch

PreReq: info-install = %version-%release
Requires: mktemp >= 1:1.3.1

BuildRequires: libtinfo-devel libzio-devel bzlib-devel zlib-devel

%package -n info-install
Summary: A program to update the GNU texinfo config file
Group: System/Base
PreReq: /bin/zcat, /bin/bzcat
Provides: %__install_info, %_sbindir/install_info, %_sbindir/uninstall_info

%package -n info
Summary: A standalone tty-based reader for GNU texinfo documentation
Group: System/Base
PreReq: info-install = %version-%release

%description
Texinfo is a documentation system that can produce both online information
and printed output from a single source file.  Normally, you'd have to
write two separate documents: one for online help or other online
information and the other for a typeset manual or other printed work.
Using Texinfo, you only need to write one source document.  Then when the
work needs revision, you only have to revise one source document.  The GNU
Project uses the Texinfo file format for most of its documentation.

Install %name if you want a documentation system for producing both
online and print documentation from the same source file and/or if you are
going to write documentation for the GNU Project.

%description -n info
The GNU project uses the texinfo file format for much of its documentation.
The info package provides a standalone tty-based browser program for
viewing texinfo files.

You should install info, because GNU's texinfo documentation is a valuable
source of information about the software on your system.

%description -n info-install
This packages contains install-info - a program to update menu entries
in the Info system config files.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1

#%__install -p -m644 %SOURCE1 doc/

#bunzip -f doc/texinfo.tex.bz2

%__install -pm755 %SOURCE7 util/

%build
%__rm -f po/*.gmo po/stamp*
%configure
%make_build
bzip2 -9kf ChangeLog{,.46}

%install
rln()
{
local target=$1 && shift
local source=$1 && shift
target=`relative "$target" "$source"`
%__ln_s -nf "$target" "$RPM_BUILD_ROOT$source"
}

%makeinstall

# Install doc/texinfo.tex

%__install -p -m644 doc/texinfo.tex $RPM_BUILD_ROOT%_datadir/%name/

# Install catalogue.

%__install -pD -m644 %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/info-dir
rln %_sysconfdir/info-dir %_infodir/dir

# Relocate install-info.

%__mkdir_p $RPM_BUILD_ROOT/sbin
%__mv $RPM_BUILD_ROOT%_bindir/install-info $RPM_BUILD_ROOT/sbin/

# Install install_info and uninstall_info scripts.

%__mkdir_p $RPM_BUILD_ROOT%_sbindir
%__install -p -m755 %SOURCE4 %SOURCE5 $RPM_BUILD_ROOT%_sbindir/
%__subst -p 's,%%_infodir,%_infodir,g;s,%%__install_info,%__install_info,g' \
$RPM_BUILD_ROOT%_sbindir/*

# New texinfo macros.

%__install -pD -m644 %SOURCE6 $RPM_BUILD_ROOT%_sysconfdir/rpm/macros.d/%name

# Do not package texi2pdf which was added in 4.8-alt1

# since it already owned by with tetex-core package.
%__rm -f $RPM_BUILD_ROOT%_bindir/texi2pdf

%find_lang %name

%post
%_sbindir/install_info %name

%preun
%_sbindir/uninstall_info %name

%post -n info
%_sbindir/install_info info{,-stnd}.info

%preun -n info
%_sbindir/uninstall_info info{,-stnd}.info

%files -f %name.lang
%config %_sysconfdir/rpm/macros.d/%name
%_bindir/makeinfo
%_bindir/texi2*
%_bindir/texindex
%_infodir/texi*
%_mandir/man?/makeinfo.*
%_mandir/man?/texi*.*
%_datadir/%name
%doc AUTHORS ChangeLog*.bz2 INTRODUCTION NEWS README TODO

%files -n info
%_bindir/info
%_bindir/infokey
%_mandir/man?/info.*
%_mandir/man?/infokey.*
%_infodir/info*.info*

%files -n info-install
%config(noreplace) %_sysconfdir/info-dir
/sbin/install-info
%_sbindir/*
%_infodir/dir
%_mandir/man?/install-info.*

%changelog

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

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