]> git.pld-linux.org Git - packages/texinfo.git/blame - texinfo.spec
- use system perl modules (Text::Unidecode, Unicode::EastAsianWidth, libintl)
[packages/texinfo.git] / texinfo.spec
CommitLineData
a1ee05d3 1%include /usr/lib/rpm/macros.perl
fe6c225f 2Summary: Tools needed to create Texinfo format documentation files
db2f7687
ER
3Summary(de.UTF-8): Tools zum Erstellen von texinfo-Dokumentationsdateien
4Summary(es.UTF-8): Formateador texinfo y lector de archivos info
5Summary(fr.UTF-8): Outils créant des documentations au format texinfo
6Summary(pl.UTF-8): Narzędzia potrzebne przy tworzeniu dokumentacji w formacie texinfo
7Summary(pt_BR.UTF-8): Formatador texinfo e leitor de arquivos info
8Summary(ru.UTF-8): Инструменты для создания файлов документации формата Texinfo
9Summary(tr.UTF-8): texinfo biçimleyici ve info okuyucu
10Summary(uk.UTF-8): Інструменти для створення файлів документації формату Texinfo
aca7154f 11Name: texinfo
3f410d03 12Version: 6.6
081cfc61 13Release: 3
90ee9c80 14License: GPL v3+
aca7154f 15Group: Applications/Publishing
a1ee05d3 16Source0: http://ftp.gnu.org/gnu/texinfo/%{name}-%{version}.tar.xz
3f410d03 17# Source0-md5: 5231da3e6aa106cd0532b8609e5b3702
1f3ab6d1 18Source1: info.desktop
a3d78667 19Patch0: %{name}-info.patch
18cac2fc 20URL: http://www.gnu.org/software/texinfo/
a1ee05d3 21BuildRequires: autoconf >= 2.69
eecec284 22BuildRequires: automake >= 1:1.14
fd87f2ef 23BuildRequires: gettext-tools >= 0.19.8
1d774642 24BuildRequires: help2man
7a531d98 25BuildRequires: ncurses-devel >= 5.0
0d6c66b9 26BuildRequires: perl-Encode
1084632f 27BuildRequires: perl-devel >= 1:5.8.0
a1ee05d3 28BuildRequires: perl-modules >= 1:5.8.0
117d69e1 29BuildRequires: perl-tools-devel
246513f0 30BuildRequires: rpm >= 4.4.9-56
081cfc61 31BuildRequires: rpm-build-macros >= 1.663
a1ee05d3
JB
32BuildRequires: rpm-perlprov
33BuildRequires: tar >= 1:1.22
34BuildRequires: xz
53703672 35BuildRequires: zlib-devel
0b516f51 36Requires: info = %{version}-%{release}
081cfc61
JB
37Requires: perl-Text-Unidecode >= 0.04
38Requires: perl-Unicode-EastAsianWidth >= 1.30
39Requires: perl-libintl >= 1.31
e0eaef4d 40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
aca7154f 41
081cfc61
JB
42# don't provide private perl modules as system available
43%define _noautoprovfiles %{_datadir}/texinfo
44# and don't require them externally
45%define _noautoreq_perl Pod::Simple::Texinfo Texinfo::.*
46
aca7154f 47%description
a7c1784e 48Texinfo is a documentation system that can produce both online
49information and printed output from a single source file. Normally,
50you'd have to write two separate documents: one for online help or
51other online information and the other for a typeset manual or other
52printed work. Using Texinfo, you only need to write one source
53document. Then when the work needs revision, you only have to revise
54one source document. The GNU Project uses the Texinfo file format for
55most of its documentation.
fe6c225f 56
3d9086ad 57%description -l de.UTF-8
a7c1784e 58Texinfo ist ein Dokumentationssystem, das sowohl Online-Information
59und gedruckte Ausgabe von einer einzigen Source-Datei erzeugen kann.
3d9086ad
JR
60Normalerweise würden Sie zwei verschiedene Dokumente schreiben, eins
61für Onlinehilfe und eins für ein gedrucktes Handbuch. Mit Texinfo
62reicht es, ein Dokument zu schreiben (und später zu aktualisieren).
63Das GNU-Projekt benutzt texinfo für den größten Teil seiner
a7c1784e 64Dokumentation.
aca7154f 65
3d9086ad
JR
66%description -l es.UTF-8
67Texinfo es un sistema de documentación que puede producir tanto,
68información online como salida impresa a partir de un único archivo
69fuente. Generalmente, tenía que escribir dos documentos por separado:
70uno para la ayuda u otro tipo de información online, y otro para un
c018c93b 71manual u otro tipo de trabajos impresos. Usando Texinfo, basta con
3d9086ad
JR
72escribir un único documento fuente. El día que sea necesaria una
73revisión del trabajo, sólo tendrá que revisar un único documento. El
74Proyecto GNU usa el formato de archivo Texinfo para la mayoría de su
75documentación.
76
77Instale Texinfo si quiere un sistema de documentación para producir
78tanto documentación online como impresa a partir del mismo archivo
79fuente y si va a escribir documentación para el Proyecto GNU.
80
81%description -l fr.UTF-8
82Texinfo est un système de documentation capable de produire de la
83documentation online ou imprimée à partir d'un seul fichier.
84Habituellement, il faut écrire deux documents : l'un orienté
85hypertexte, l'autre axé sur une présentation de type PAO. En utilisant
a7c1784e 86texinfo, vous n'avez plus besoin que d'un seul fichier source. Le
87projet GNU utilie le format de fichier Texinfo pour la plupart de ses
88documentations.
fe6c225f 89
3d9086ad
JR
90%description -l pl.UTF-8
91Texinfo jest systemem dokumentowania umożliwiającym wyprodukowanie
92zarówno dokumentacji online jak i w postaci do wydruku z pojedynczego
93pliku źródłowego. Bardzo często pisze się dwie dokumentacje: jedną do
94przeglądania online i drugą do przyszykowania wysokiej jakości postaci
95drukowanej. Używając Texinfo do powyższego potrzebujesz przygotować
96dokumentację tylko w jednej postaci źródłowej. Podczas modyfikacji
a7c1784e 97dokumentacji modyfikujesz w takim razie tylko jeden dokument.
3d9086ad 98Większość projektów GNU używa do dokumentowania formatu Texinfo.
aca7154f 99
3d9086ad
JR
100%description -l pt_BR.UTF-8
101O texinfo é um sistema de documentação que pode produzir tanto
102informação on-line como saída impressa a partir de um único
103arquivo-fonte. Geralmente, você teria que escrever dois documentos
104separados: um para ajuda on-line ou outro tipo de informação on-line,
c018c93b 105e outro para um manual ou outro tipo de trabalho impresso. Usando o
3d9086ad
JR
106Texinfo, basta escrever um único documento-fonte. Quando houver
107necessidade de revisão, é preciso apenas revisar um único
c018c93b 108documento-fonte. O projeto GNU usa o formato de arquivo texinfo para a
3d9086ad
JR
109maioria da sua documentação.
110
111%description -l ru.UTF-8
112Проект GNU использует формат texinfo для большинства документации,
113созданной в его рамках. Этот пакет включает инструменты, необходимые
114для создания файлов .info из исходных файлов .texinfo и интерфейс к
115emacs для всех этих инструментов.
116
117%description -l tr.UTF-8
118[6~GNU projesi, belgelemesinin büyük bölümünde texinfo dosyalarını
119kullanır. Bu paket, texinfo dosyalarından info dosyalarının
120türetilmesini sağlayan araçlarla birlikte, tüm bu araçlar için bir
121emacs arayüzü de sunar.
122
123%description -l uk.UTF-8
124Проект GNU використовує формат texinfo для більшості документації,
125створеної в його рамках. Цей пакет містить інструменти, потрібні для
126створення файлів .info з вхідних файлів .texinfo та інтерфейс до emacs
127для всіх цих інструментів.
95839e35 128
aca7154f 129%package -n info
857a199c 130Summary: A stand-alone TTY-based reader for GNU texinfo documentation
db2f7687
ER
131Summary(de.UTF-8): Ein TTY-basiertes Leseprogramm für GNU info-Dokumentation
132Summary(es.UTF-8): Lector basado en tty para documentos texinfo GNU
133Summary(fr.UTF-8): un lecteur de documentations info
134Summary(pl.UTF-8): Samodzielny, terminalowy czytnik dokumentów GNU texinfo
135Summary(pt_BR.UTF-8): Leitor baseado em tty para documentos texinfo GNU
136Summary(ru.UTF-8): Программа для просмотра документов в формате GNU texinfo на текстовой консоли
137Summary(tr.UTF-8): GNU texinfo belgeleri için tty tabanlı görüntüleyici
138Summary(uk.UTF-8): Програма для перегляду документів в форматі GNU texinfo на текстовому терміналі
88cd79cb 139Group: Applications/System
06f55bb3 140Requires: fix-info-dir
9126da44 141Obsoletes: info-install
aca7154f 142
143%description -n info
a7c1784e 144The GNU project uses the texinfo file format for much of its
145documentation. This package includes a standalone browser program to
146view these files.
aca7154f 147
3d9086ad
JR
148%description -n info -l de.UTF-8
149Das GNU-Projekt benutzt das texinfo-Dateiformat für den Großteil
150seiner Dokumentation. Dieses Paket enthält ein selbständiges
a7c1784e 151Browser-Programm zum Einsehen dieser Dateien.
aca7154f 152
3d9086ad 153%description -n info -l fr.UTF-8
a7c1784e 154Le projet GNU utilise le format de fichier texinfo pour la plupart de
155sa documentation. Ce paquetage contient un navigateur pour visualiser
156ces fichiers.
aca7154f 157
3d9086ad
JR
158%description -n info -l pl.UTF-8
159Projekty GNU używają formatu texinfo do tworzenia dokumentacji. Pakiet
160ten zawiera samodzielną przeglądarkę tychże plików.
aca7154f 161
3d9086ad 162%description -n info -l pt_BR.UTF-8
c018c93b 163O projeto GNU usa o formato de arquivos texinfo para a maioria de sua
3d9086ad 164documentação. Este pacote inclui um browser para visualização destes
c018c93b 165arquivos.
166
3d9086ad
JR
167%description -n info -l ru.UTF-8
168Проект GNU использует формат texinfo для большинства документации,
169созданной в его рамках. Этот пакет включает программу для просмотра
170документов в формате GNU texinfo на текстовой консоли.
95839e35 171
3d9086ad
JR
172%description -n info -l tr.UTF-8
173Bu pakette, info biçimindeki dosyaları okumak için bir görüntüleyici
aca7154f 174bulunur.
175
3d9086ad
JR
176%description -n info -l uk.UTF-8
177Проект GNU використовує формат texinfo для більшості документації,
178створеної в його рамках. Цей пакет містить програму для перегляду
179документів в форматі GNU texinfo на текстовому терміналі.
95839e35 180
9294cf47
JB
181%package texi2dvi
182Summary: Texinfo to dvi conversion tool
db2f7687 183Summary(pl.UTF-8): Narzędzie do konwersji texinfo na dvi
9294cf47 184Group: Applications/Publishing
0b516f51 185Requires: %{name} = %{version}-%{release}
d8b8859e
ZU
186Requires: texlive
187Requires: texlive-fonts-latex
188Requires: texlive-plain
9294cf47
JB
189
190%description texi2dvi
191Texinfo to dvi conversion tool.
192
3d9086ad
JR
193%description texi2dvi -l pl.UTF-8
194Narzędzie do konwersji plików texinfo na dvi.
9294cf47 195
aca7154f 196%prep
a1ee05d3 197%setup -q
53703672 198%patch0 -p1
0b516f51 199
aca7154f 200%build
1d774642 201%{__aclocal} -I gnulib/m4
21725700 202%{__autoconf}
203%{__automake}
38d767b6 204%configure \
081cfc61
JB
205 --disable-static \
206 --with-external-Text-Unidecode \
207 --with-external-Unicode-EastAsianWidth \
208 --with-external-libintl-perl
0b516f51 209
98b6b41e 210PATH="$PATH:../util" %{__make}
aca7154f 211
212%install
213rm -rf $RPM_BUILD_ROOT
3eb8c50a 214install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_sbindir},/sbin}
aca7154f 215
0b516f51
JB
216%{__make} install \
217 DESTDIR=$RPM_BUILD_ROOT
aca7154f 218
38d767b6 219%{__mv} $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT%{_sbindir}
36510611 220ln -sf %{_sbindir}/install-info $RPM_BUILD_ROOT/sbin/install-info
aca7154f 221
fd87f2ef
JB
222# perl modules
223%{__rm} $RPM_BUILD_ROOT%{_libdir}/texinfo/*.la
38d767b6 224
fbd564d0 225install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
aca7154f 226
18cac2fc
JB
227# copy of default encoding
228%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ca.us-ascii
229%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/de.us-ascii
230%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pt.us-ascii
231# outdated copy of default encoding
232%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pt_BR.us-ascii
233# normalize locale name
a1ee05d3 234%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{no.us-ascii,nb}/LC_MESSAGES/texinfo_document.mo
a1ee05d3 235
8a7d68c2 236%find_lang %{name}
a1ee05d3 237%find_lang texinfo_document
8a7d68c2 238
104dfac5
JB
239%clean
240rm -rf $RPM_BUILD_ROOT
241
7a2a69da 242%post -p /sbin/postshell
aaebc53e 243-/usr/sbin/fix-info-dir -c %{_infodir}
aca7154f 244
7a2a69da 245%postun -p /sbin/postshell
aaebc53e 246-/usr/sbin/fix-info-dir -c %{_infodir}
2ae95f25 247
a1ee05d3 248%post -n info -p /sbin/postshell
5d1cdad7
ER
249-/usr/sbin/fix-info-dir -c %{_infodir}
250
a1ee05d3 251%postun -n info -p /sbin/postshell
246513f0 252-/usr/sbin/fix-info-dir -c %{_infodir}
aca7154f 253
a1ee05d3 254%files -f texinfo_document.lang
aca7154f 255%defattr(644,root,root,755)
a1ee05d3 256%doc AUTHORS ChangeLog NEWS README TODO
65afa3c6 257%attr(755,root,root) %{_bindir}/makeinfo
a1ee05d3
JB
258%attr(755,root,root) %{_bindir}/pod2texi
259%attr(755,root,root) %{_bindir}/texi2any
65afa3c6 260%attr(755,root,root) %{_bindir}/texindex
586f606c 261%{_datadir}/texinfo
38d767b6 262%dir %{_libdir}/texinfo
fd87f2ef 263%attr(755,root,root) %{_libdir}/texinfo/MiscXS.so
3f410d03 264%attr(755,root,root) %{_libdir}/texinfo/Parsetexi.so
081cfc61 265%attr(755,root,root) %{_libdir}/texinfo/XSParagraph.so
fd87f2ef 266%{_infodir}/texinfo*.info*
97f44cc9 267%{_mandir}/man1/makeinfo.1*
a1ee05d3
JB
268%{_mandir}/man1/pod2texi.1*
269%{_mandir}/man1/texi2any.1*
97f44cc9 270%{_mandir}/man1/texindex.1*
271%{_mandir}/man5/texinfo.5*
aca7154f 272
8a7d68c2 273%files -n info -f texinfo.lang
aca7154f 274%defattr(644,root,root,755)
34968592 275%attr(755,root,root) %{_bindir}/info
aca7154f 276%attr(755,root,root) /sbin/install-info
65afa3c6 277%attr(755,root,root) %{_sbindir}/install-info
fbd564d0 278%{_desktopdir}/info.desktop
1f3ab6d1 279%{_infodir}/info-stnd.info*
97f44cc9 280%{_mandir}/man1/info.1*
281%{_mandir}/man1/install-info.1*
282%{_mandir}/man5/info.5*
9294cf47
JB
283
284%files texi2dvi
285%defattr(644,root,root,755)
1d774642 286%attr(755,root,root) %{_bindir}/pdftexi2dvi
9294cf47 287%attr(755,root,root) %{_bindir}/texi2dvi
99140fed 288%attr(755,root,root) %{_bindir}/texi2pdf
1d774642 289%{_mandir}/man1/pdftexi2dvi.1*
9294cf47 290%{_mandir}/man1/texi2dvi.1*
1d774642 291%{_mandir}/man1/texi2pdf.1*
This page took 0.068773 seconds and 4 git commands to generate.