]> git.pld-linux.org Git - packages/texinfo.git/blob - texinfo.spec
- Requires: mktemp in %package info
[packages/texinfo.git] / texinfo.spec
1 Summary:        Tools needed to create Texinfo format documentation files
2 Summary(de):    Tools zum Erstellen von texinfo-Dokumentationsdateien
3 Summary(fr):    Outils créant des documentations au format texinfo
4 Summary(pl):    Narzêdzia potrzebne przy tworzeniu dokumentacji w formacie texinfo
5 Summary(tr):    texinfo biçimleyici ve info okuyucu
6 Name:           texinfo
7 Version:        4.0
8 Release:        5
9 License:        GPL
10 Group:          Applications/Publishing
11 Group(pl):      Aplikacje/Publikowanie
12 Source:         ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
13 Source1:        info.desktop
14 Patch1:         texinfo-fix.patch
15 Patch3:         texinfo-zlib.patch
16 Patch4:         texinfo-info.patch
17 Patch5:         texinfo-version.texi.patch
18 Patch6:         texinfo-DESTDIR.patch
19 Patch7:         texinfo-fix-info-dir.patch
20 URL:            http://texinfo.org/
21 BuildRequires:  zlib-devel
22 BuildRequires:  ncurses-devel >= 5.0
23 Prereq:         /usr/sbin/fix-info-dir
24 Requires:       info = %{version}
25 Requires:       mktemp
26 Buildroot:      /tmp/%{name}-%{version}-root
27
28 %define         _applnkdir      /usr/X11R6/share/applnk
29
30 %description
31 Texinfo is a documentation system that can produce both online information
32 and printed output from a single source file. Normally, you'd have to write
33 two separate documents: one for online help or other online information and
34 the other for a typeset manual or other printed work. Using Texinfo, you
35 only need to write one source document. Then when the work needs revision,
36 you only have to revise one source document. The GNU Project uses the
37 Texinfo file format for most of its documentation.
38
39 %description -l de
40 Texinfo ist ein Dokumentationssystem, das sowohl Online-Information und
41 gedruckte Ausgabe von einer einzigen Source-Datei erzeugen kann.
42 Normalerweise würden Sie zwei verschiedene Dokumente schreiben, eins für
43 Onlinehilfe und eins für ein gedrucktes Handbuch. Mit Texinfo reicht es,
44 ein Dokument zu schreiben (und später zu aktualisieren). Das GNU-Projekt
45 benutzt texinfo für den größten Teil seiner Dokumentation.
46
47 %description -l fr
48 Texinfo est un système de documentation capable de produire de la
49 documentation online ou imprimée à partir d'un seul fichier.
50 Habituellement, il faut écrire deux documents : l'un orienté hypertexte,
51 l'autre axé sur une présentation de type PAO. En utilisant texinfo, vous
52 n'avez plus besoin que d'un seul fichier source. Le projet GNU utilie le
53 format de fichier Texinfo pour la plupart de ses documentations.
54
55 %description -l pl
56 Texinfo jest systemem dokumentowania umo¿liwiaj±cym wyprodukowanie zarówno
57 dokumentacji online jak i postaci do wydruku z pojedynczego pliku
58 ¼ród³owego. bardzo czêsto piszê siedwie dokumentacje: jedna do przegl±dania
59 online i inna do przyszykowanai wysokiej jako¶ci postaci drukowane.
60 U¿ywaj±c Texinfo do powy¿szego potzrebujesz przygotowaæ dokumentacjê tylko
61 w jednej postaci ¼ród³owej. Podczas modyfikacji dokumentacji modyfikujesz w
62 takim razie tylko jeden dokument. Wiêkszo¶æ projektów GNU u¿ywa do
63 dukumentowania formatu Texinfo.
64
65 %description -l tr
66 GNU projesi, belgelemesinin büyük bölümünde texinfo dosyalarýný kullanýr.
67 Bu paket, texinfo dosyalarýndan info dosyalarýnýn türetilmesini saðlayan
68 araçlarla birlikte, tüm bu araçlar için bir emacs arayüzü de sunar.
69
70 %package -n info
71 Summary:        A stand-alone TTY-based reader for GNU texinfo documentation.
72 Summary(de):    Ein TTY-basiertes Leseprogramm für GNU info-Dokumentation.
73 Summary(fr):    un lecteur de documentations info
74 Summary(pl):    Samodzielny, bazuj±cy na terminalu czytnik dokumentów GNU texinfo
75 Summary(tr):    GNU texinfo belgeleri için tty tabanlý görüntüleyici
76 Group:          Utilities/System
77 Group(pl):      Narzêdzia/System
78 Requires:       mktemp
79
80 %description -n info
81 The GNU project uses the texinfo file format for much of its documentation.
82 This package includes a standalone browser program to view these files.
83
84 %description -l de -n info
85 Das GNU-Projekt benutzt das texinfo-Dateiformat für den Großteil seiner
86 Dokumentation. Dieses Paket enthält ein selbständiges Browser-Programm zum
87 Einsehen dieser Dateien.
88
89 %description -l fr -n info
90 Le projet GNU utilise le format de fichier texinfo pour la plupart de sa
91 documentation. Ce paquetage contient un navigateur pour visualiser ces
92 fichiers.
93
94 %description -l pl -n info
95 Projekty GNU u¿ywaj± formatu texinfo do tworzenia dokumentacji. Pakiet ten
96 zawiera samodzieln± przegl±darkê tych¿e plików.
97
98 %description -l tr -n info
99 Bu pakette, info biçimindeki dosyalarý okumak için bir görüntüleyici
100 bulunur.
101
102 %prep
103 %setup -q
104 %patch1 -p1
105 %patch3 -p1 
106 %patch4 -p1
107 %patch5 -p1
108 %patch6 -p1
109 %patch7 -p1 
110
111 %build
112 ln -s version.texi doc/version2.texi
113 automake
114 gettextize --copy --force
115 aclocal
116 autoconf
117 LDFLAGS="-s -lz"; export LDFLAGS
118 %configure \
119         --without-included-gettext
120 make -C doc distclean-aminfo
121 make
122 rm util/install-info
123 make -C util 
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Utilities,%{_sbindir},/sbin}
128
129 make install DESTDIR=$RPM_BUILD_ROOT
130
131 install util/fix-info-dir $RPM_BUILD_ROOT%{_sbindir}
132
133 mv -f $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT%{_sbindir}
134 ln -s %{_sbindir}/install-info $RPM_BUILD_ROOT/sbin/install-info
135
136 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Utilities
137
138 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/man?/*} \
139         ChangeLog INTRODUCTION NEWS README info/README
140
141 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
142 touch $RPM_BUILD_ROOT%{_infodir}/dir
143
144 %find_lang %{name}
145
146 %post
147 %{_sbindir}/fix-info-dir -c %{_infodir} >/dev/null 2>&1
148
149 %postun
150 %{_sbindir}/fix-info-dir -c %{_infodir} >/dev/null 2>&1
151
152 %pre -n info
153 if [ -e /usr/info ] && [ ! -L /usr/info ]; then
154         cp -af /usr/info %{_infodir} 
155 fi
156
157 %post -n info
158 if [ -e /usr/info ] && [ ! -L /usr/info ]; then
159         rm -rf /usr/info
160         ln -sf %{_infodir} /usr/info
161 fi
162 if [ -L %{_infodir}/dir ]; then
163         rm -f %{_infodir}/dir
164 fi
165 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
166
167 %clean
168 rm -rf $RPM_BUILD_ROOT
169
170 %files
171 %defattr(644,root,root,755)
172 %doc {ChangeLog,INTRODUCTION,NEWS,README,info/README}.gz
173 %attr(755,root,root) %{_bindir}/makeinfo
174 %attr(755,root,root) %{_bindir}/texi2dvi
175 %attr(755,root,root) %{_bindir}/texindex
176
177 %{_infodir}/texinfo*
178 %{_mandir}/man1/makeinfo.1*
179 %{_mandir}/man1/texi2dvi.1*
180 %{_mandir}/man1/texindex.1*
181 %{_mandir}/man5/texinfo.5*
182
183 %files -n info -f texinfo.lang
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_bindir}/info
186 %attr(755,root,root) /sbin/install-info
187 %attr(755,root,root) %{_sbindir}/fix-info-dir
188 %attr(755,root,root) %{_sbindir}/install-info
189
190 %{_applnkdir}/Utilities/info.desktop
191
192 %ghost %{_infodir}/dir
193 %{_infodir}/info.info*
194 %{_infodir}/info-stnd.info*
195
196 %{_mandir}/man1/info.1*
197 %{_mandir}/man1/install-info.1*
198 %{_mandir}/man5/info.5*
This page took 0.109037 seconds and 4 git commands to generate.