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