]> git.pld-linux.org Git - packages/texinfo.git/blob - texinfo.spec
- release 5,
[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
79 %description -n info
80 The GNU project uses the texinfo file format for much of its documentation.
81 This package includes a standalone browser program to view these files.
82
83 %description -l de -n info
84 Das GNU-Projekt benutzt das texinfo-Dateiformat für den Großteil seiner
85 Dokumentation. Dieses Paket enthält ein selbständiges Browser-Programm zum
86 Einsehen dieser Dateien.
87
88 %description -l fr -n info
89 Le projet GNU utilise le format de fichier texinfo pour la plupart de sa
90 documentation. Ce paquetage contient un navigateur pour visualiser ces
91 fichiers.
92
93 %description -l pl -n info
94 Projekty GNU u¿ywaj± formatu texinfo do tworzenia dokumentacji. Pakiet ten
95 zawiera samodzieln± przegl±darkê tych¿e plików.
96
97 %description -l tr -n info
98 Bu pakette, info biçimindeki dosyalarý okumak için bir görüntüleyici
99 bulunur.
100
101 %prep
102 %setup -q
103 %patch1 -p1
104 %patch3 -p1 
105 %patch4 -p1
106 %patch5 -p1
107 %patch6 -p1
108 %patch7 -p1 
109
110 %build
111 ln -s version.texi doc/version2.texi
112 automake
113 gettextize --copy --force
114 aclocal
115 autoconf
116 LDFLAGS="-s -lz"; export LDFLAGS
117 %configure \
118         --without-included-gettext
119 make -C doc distclean-aminfo
120 make
121 rm util/install-info
122 make -C util 
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126 install -d $RPM_BUILD_ROOT{%{_applnkdir}/Utilities,%{_sbindir},/sbin}
127
128 make install DESTDIR=$RPM_BUILD_ROOT
129
130 install util/fix-info-dir $RPM_BUILD_ROOT%{_sbindir}
131
132 mv -f $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT%{_sbindir}
133 ln -s %{_sbindir}/install-info $RPM_BUILD_ROOT/sbin/install-info
134
135 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Utilities
136
137 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/*info*,%{_mandir}/man?/*} \
138         ChangeLog INTRODUCTION NEWS README info/README
139
140 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
141 touch $RPM_BUILD_ROOT%{_infodir}/dir
142
143 %find_lang %{name}
144
145 %post
146 %{_sbindir}/fix-info-dir -c %{_infodir} >/dev/null 2>&1
147
148 %postun
149 %{_sbindir}/fix-info-dir -c %{_infodir} >/dev/null 2>&1
150
151 %pre -n info
152 if [ -e /usr/info ] && [ ! -L /usr/info ]; then
153         cp -af /usr/info %{_infodir} 
154 fi
155
156 %post -n info
157 if [ -e /usr/info ] && [ ! -L /usr/info ]; then
158         rm -rf /usr/info
159         ln -sf %{_infodir} /usr/info
160 fi
161 if [ -L %{_infodir}/dir ]; then
162         rm -f %{_infodir}/dir
163 fi
164 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
165
166 %clean
167 rm -rf $RPM_BUILD_ROOT
168
169 %files
170 %defattr(644,root,root,755)
171 %doc {ChangeLog,INTRODUCTION,NEWS,README,info/README}.gz
172 %attr(755,root,root) %{_bindir}/makeinfo
173 %attr(755,root,root) %{_bindir}/texi2dvi
174 %attr(755,root,root) %{_bindir}/texindex
175
176 %{_infodir}/texinfo*
177 %{_mandir}/man1/makeinfo.1*
178 %{_mandir}/man1/texi2dvi.1*
179 %{_mandir}/man1/texindex.1*
180 %{_mandir}/man5/texinfo.5*
181
182 %files -n info -f texinfo.lang
183 %defattr(644,root,root,755)
184 %attr(755,root,root) %{_bindir}/info
185 %attr(755,root,root) /sbin/install-info
186 %attr(755,root,root) %{_sbindir}/fix-info-dir
187 %attr(755,root,root) %{_sbindir}/install-info
188
189 %{_applnkdir}/Utilities/info.desktop
190
191 %ghost %{_infodir}/dir
192 %{_infodir}/info.info*
193 %{_infodir}/info-stnd.info*
194
195 %{_mandir}/man1/info.1*
196 %{_mandir}/man1/install-info.1*
197 %{_mandir}/man5/info.5*
This page took 0.660222 seconds and 3 git commands to generate.