]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with tars # generate man-pages tars for other packages [not done yet] | |
4 | # | |
5 | Summary: System manual pages from the Linux Documentation Project | |
6 | Summary(de.UTF-8): System-man-Seiten vom Linux Documentation Project | |
7 | Summary(es.UTF-8): Páginas de manual, del Proyecto de Documentación del Linux (LDP) | |
8 | Summary(fi.UTF-8): Suomenkieliset man-sivut | |
9 | Summary(fr.UTF-8): Pages man système du Projet de Documentation Linux | |
10 | Summary(it.UTF-8): Pagine di manuale | |
11 | Summary(pl.UTF-8): Podręczniki systemowe z Linux Documentation Project | |
12 | Summary(pt.UTF-8): Páginas de manual, do Projeto de Documentação do Linux (LDP) | |
13 | Summary(pt_BR.UTF-8): Páginas de manual, do Projeto de Documentação do Linux (LDP) | |
14 | Summary(ru.UTF-8): Страницы руководства из Проекта Документации на Линукс | |
15 | Summary(tr.UTF-8): Linux Belgeleme Projesinin sistem kılavuz sayfaları | |
16 | Summary(uk.UTF-8): Сторінки мануалу (man) з Linux Documentation Project | |
17 | Name: man-pages | |
18 | Version: 3.71 | |
19 | Release: 3 | |
20 | License: distributable | |
21 | Group: Documentation | |
22 | %define cs_version 0.17.20080113 | |
23 | %define da_version 0.1.1 | |
24 | %define de_version 0.5 | |
25 | %define es_version 1.55 | |
26 | %define es_extra_version 0.8a | |
27 | %define fi_version 0.2 | |
28 | %define fr_version 3.03.0 | |
29 | %define hu_version 20010119 | |
30 | %define id_version 20011116 | |
31 | %define it_version 2.80 | |
32 | %define ja_version 20130715 | |
33 | %define ko_version 20050219 | |
34 | %define nl_version 0.13.3 | |
35 | %define pl_version 20051105 | |
36 | %define pt_version 1.39 | |
37 | %define ro_version 0.2 | |
38 | #%%define ru_version 0.98 | |
39 | %define ru_asp_version 1.4 | |
40 | %define tr_version 1.0.5 | |
41 | %define zh_version 1.5 | |
42 | Source0: http://www.kernel.org/pub/linux/docs/man-pages/%{name}-%{version}.tar.xz | |
43 | # Source0-md5: 9a2a288f1e481045c991e0cb476127d8 | |
44 | Source1: ftp://ftp.linux.cz/pub/localization/linux/czman/%{name}-cs-%{cs_version}.tar.bz2 | |
45 | # Source1-md5: a3df67d98ab63a0a360cd0794ec87e0e | |
46 | # there is no LDP man page here, yet - but include it in sources for completeness | |
47 | Source2: http://www.sslug.dk/locale/man-sider/manpages-da-%{da_version}.tar.gz | |
48 | # Source2-md5: d12ba0481d824c28a8b7d6b73e20d7c0 | |
49 | Source3: http://www.infodrom.org/projects/manpages-de/download/manpages-de-%{de_version}.tar.gz | |
50 | # Source3-md5: 6686b1be6da01cdbb5ea7511ddcf61a0 | |
51 | Source4: http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-%{es_version}.tar.bz2 | |
52 | # Source4-md5: b71f701dcae827f2f5e4e848c66321fc | |
53 | Source5: http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-extra-%{es_extra_version}.tar.gz | |
54 | # Source5-md5: 5827f41f77658df17f550b7f8e831432 | |
55 | # extracted from http://www.ftp.funet.fi/index/sotlinux/bestlinux-2000R3/BL_2000_R3_FINAL/update/Finnish/man-pages-fi-0.2-1.src.rpm | |
56 | # (despite archive filename it's 0.2 version) | |
57 | Source6: man-fi-0.1.tar.bz2 | |
58 | # Source6-md5: bb266d3797cdf71bfbe1da190196f455 | |
59 | Source7: http://manpagesfr.free.fr/download/%{name}-fr-%{fr_version}.tar.bz2 | |
60 | # Source7-md5: 64046b022c7c8d559d78dd05f953261b | |
61 | #Source8: http://download.uhulinux.hu/sources/man-pages-hu/man_hu_%{hu_version}.tar.gz (older) | |
62 | Source8: http://ftp.debian.org/debian/pool/main/m/manpages-hu/manpages-hu_%{hu_version}.orig.tar.gz | |
63 | # Source8-md5: 742b682c5237a1e370b28f363826b2d5 | |
64 | # there is no LDP man page here, yet, but included for completeness | |
65 | # based on http://nakula.rvs.uni-bielefeld.de/made/my_project/ManPage/ (dead now) | |
66 | Source9: http://www.mif.pg.gda.pl/homepages/ankry/man-pages/%{name}-from-www-id-%{id_version}.tar.gz | |
67 | # Source9-md5: 34a69de42ec4ae8180b947f8777a3e7a | |
68 | # available also as http:// | |
69 | Source10: ftp://ftp.pluto.linux.it/pub/pluto/ildp/man/%{name}-it-%{it_version}.tar.gz | |
70 | # Source10-md5: d6edbaf893507f80199f35df9c268aa0 | |
71 | Source11: http://linuxjm.sourceforge.jp/%{name}-ja-%{ja_version}.tar.gz | |
72 | # Source11-md5: e4b364e9707b5421d6f54d722f16998d | |
73 | Source12: http://download.kldp.net/man/man-pages-ko/%{ko_version}/%{name}-ko-%{ko_version}.tar.gz | |
74 | # Source12-md5: e31dc6a51c02436371373dedaeeeacab | |
75 | Source13: ftp://ftp.nl.linux.org/pub/DOC-NL/manpages-nl/manpages-nl-%{nl_version}.tar.gz | |
76 | # Source13-md5: b37b0216a87db7583e88ba87031a0b4a | |
77 | # currently at http://ptm.linux.pl/ (latest http://ptm.linux.pl/man-PL28-06-2007.tar.gz) | |
78 | # there is also a fork at http://ptm.berlios.de/, but seems to be stalled just after it started | |
79 | #Source14: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/PTM-snapshots/%{name}-pl-PTM-snapshot.%{pl_version}.tar.bz2 | |
80 | Source14: %{name}-pl-PTM-snapshot.%{pl_version}.tar.bz2 | |
81 | # Source14-md5: b9b5751fcde4c36022850d0e5a4757d3 | |
82 | Source15: ftp://ftp.win.tue.nl/pub/home/aeb/linux-local/manpages/tr/%{name}-pt_BR-%{pt_version}.tgz | |
83 | # Source15-md5: 3f8db6dd6a7884b595e70f624ac93735 | |
84 | # no LDP man pages yet | |
85 | Source16: http://www.rolix.org/man/arhiva/man-pages-ro-%{ro_version}.tar.gz | |
86 | # Source16-md5: ac5b2c970a31cb721e068ff80e5bd466 | |
87 | #Source17: http://www.linuxshare.ru/projects/trans/manpages-ru-%{ru_version}.tar.bz2 | |
88 | # ASP-linux have more up-to-date manpages (but 0.98 contains some updated pages) | |
89 | Source17: http://www.mif.pg.gda.pl/homepages/ankry/man-pages/manpages-ru-asp-%{ru_asp_version}.tar.bz2 | |
90 | # Source17-md5: fffb27648417c8dd551e2a4403eefc64 | |
91 | Source18: http://download.sourceforge.net/belgeler/man-pages-tr-%{tr_version}.tar.gz | |
92 | # Source18-md5: 8f322a60c80e31c34ef8979edaf68aae | |
93 | Source19: http://www.linux.org.ua/twiki/pub/Projects/ManUk/man-pages-uk_UA.alfa.tar.gz | |
94 | # Source19-md5: 89576c5b51bb83c8bfa8bda794b96e21 | |
95 | #Source20: http://cmpp.linuxforum.net/download/man-pages-zh_CN-%{zh_version}.tar.gz | |
96 | Source20: http://download.sf.linuxforum.net/cmpp/man-pages-zh_CN-%{zh_version}.tar.gz | |
97 | # Source20-md5: edfe517621579520cf7451088ab126ea | |
98 | Source30: https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2013-a.tar.xz | |
99 | # Source30-md5: 825fde78e6fddd02426ecdd50e2cbe0d | |
100 | Source50: %{name}-extra.tar.bz2 | |
101 | # Source50-md5: 15d763c5221088dcb15ba8ae95f6d239 | |
102 | Source100: %{name}-tars.list | |
103 | Patch0: %{name}-localtime.patch | |
104 | Patch1: %{name}-zh_fixes.patch | |
105 | Patch2: %{name}-misc.patch | |
106 | Patch3: %{name}-extra.patch | |
107 | URL: http://www.kernel.org/doc/man-pages/ | |
108 | BuildRequires: sed >= 4.0 | |
109 | Obsoletes: man-pages-cs | |
110 | Obsoletes: man-pages-de | |
111 | Obsoletes: man-pages-es | |
112 | Obsoletes: man-pages-fi | |
113 | Obsoletes: man-pages-fr | |
114 | Obsoletes: man-pages-hu | |
115 | Obsoletes: man-pages-it | |
116 | Obsoletes: man-pages-ja | |
117 | Obsoletes: man-pages-ko | |
118 | Obsoletes: man-pages-nl | |
119 | Obsoletes: man-pages-pl | |
120 | Obsoletes: man-pages-pt | |
121 | Obsoletes: man-pages-pt_BR | |
122 | Obsoletes: man-pages-ru | |
123 | Obsoletes: man-pages-ru-asp | |
124 | Obsoletes: man-pages-uk | |
125 | Obsoletes: man-pages-zh | |
126 | Obsoletes: manpages-hu | |
127 | Conflicts: attr-devel < 2.2.0-2 | |
128 | Conflicts: kbd < 1.12-9 | |
129 | Conflicts: libcap < 1:1.10-5 | |
130 | BuildArch: noarch | |
131 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
132 | AutoReqProv: no | |
133 | ||
134 | %description | |
135 | A large collection of man pages covering programming APIs, file | |
136 | formats, protocols, etc. | |
137 | ||
138 | - section 1: user commands (intro only) | |
139 | - section 2: system calls | |
140 | - section 3: libc calls (intro only) | |
141 | - section 4: devices (e.g., hd, sd) | |
142 | - section 5: file formats and protocols (e.g., wtmp, /etc/passwd, nfs) | |
143 | - section 6: games (intro only) | |
144 | - section 7: conventions, macro packages, etc. (e.g., nroff, ascii) | |
145 | - section 8: system administration (intro only) | |
146 | ||
147 | %description -l de.UTF-8 | |
148 | Eine große Sammlung von man-Seiten über Programmier-APIs, | |
149 | Dateiformate, Protokolle, usw.. | |
150 | ||
151 | - section 1: Benutzerbefehle (nur intro) | |
152 | - section 2: Systemaufrufe | |
153 | - section 3: libc-Aufrufe (nur intro) | |
154 | - section 4: Geräte (z.B. hd, sd) | |
155 | - section 5: Dateiformate und Protokolle (z.B. wtmp, /etc/passwd, nfs) | |
156 | - section 6: Spiele (nur intro) | |
157 | - section 7: Konventionen, Makro-Pakete, usw. (z.B. nroff, ascii) | |
158 | - section 8: Systemverwaltung (nur intro) | |
159 | ||
160 | %description -l es.UTF-8 | |
161 | Una larga colección de páginas de manuales cubriendo programación | |
162 | APIs, formatos de archivos, protocolos, etc. | |
163 | ||
164 | - seción 1: comandos de usuario (solamente introducción) | |
165 | - seción 2: llamadas de sistema | |
166 | - seción 3: llamadas libc (solamente introducción) | |
167 | - seción 4: dispositivos (ej.: hd, sd) | |
168 | - seción 5: formatos de archivos y protocolos (ej: wtmp, /etc/passwd, | |
169 | nfs) | |
170 | - seción 6: juegos (solamente introducción) | |
171 | - seción 7: convenciones, paquetes de macros, etc. (ej: nroff, ascii) | |
172 | - seción 8: administración de sistema (solamente introducción) | |
173 | ||
174 | %description -l fi.UTF-8 | |
175 | Kokoelma man-sivujen käännöksiä suomenkielelle. Sivuja on mukana | |
176 | yhteensä 211 kpl ja ne on paketoitu 14.11.1999 mennessä valmiina | |
177 | olleista sivuista. Sivut ovat osista 1 (komennot) ja 2 (pelit). | |
178 | ||
179 | %description -l fr.UTF-8 | |
180 | Une large collection de pages de manuel du Project de Documentation | |
181 | Linux (LDP), traduites en Français. Les pages de manuel sont | |
182 | organisées en differentes sections : | |
183 | ||
184 | - section 1: Commandes utilisateur (intro seulement) | |
185 | - section 2: Appels système | |
186 | - section 3: Appels de la Libc (intro seulement) | |
187 | - section 4: Périphériques (par ex. hd, sd) | |
188 | - section 5: Formats de fichiers et de protocoles (par ex. wtmp, | |
189 | /etc/passwd, nfs) | |
190 | - section 6: Jeux (intro seulement) | |
191 | - section 7: Conventions, macro packages, etc. (par ex. nroff, ascii) | |
192 | - section 8: Administration système (intro seulement) | |
193 | ||
194 | %description -l it.UTF-8 | |
195 | Traduzioni italiane delle pagine di manuale per Linux: questo | |
196 | pacchetto include non solo quelle dell'LDP, ma anche traduzioni di | |
197 | altre pagine di uso comune. ATTENZIONE: alcune pagine sono obsolete! | |
198 | ||
199 | %description -l pl.UTF-8 | |
200 | Pakiet ten zawiera dużą kolekcję podręczników ekranowych (man pages), | |
201 | opisujących format plików, protokoły itp. | |
202 | ||
203 | - sekcja 1: polecenia użytkowników (tylko wstęp) | |
204 | - sekcja 2: wywołania systemowe | |
205 | - sekcja 3: wywołania bibliotek (tylko wstęp) | |
206 | - sekcja 4: urządzenia (np., hd, sd) | |
207 | - sekcja 5: format plików i protokoły (np., wtmp, /etc/passwd, nfs) | |
208 | - sekcja 6: gry (tylko wstęp) | |
209 | - sekcja 7: konwencje, makro-pakiety, itp. (np., nroff, ascii) | |
210 | - sekcja 8: administracja systemu (tylko wstęp) | |
211 | ||
212 | %description -l pt.UTF-8 | |
213 | Uma larga coleção de páginas de manuais cobrindo programação APIs, | |
214 | formatos de arquivos, protocolos, etc. | |
215 | ||
216 | - seção 1: comandos de usuário (somente introdução) | |
217 | - seção 2: chamadas de sistema | |
218 | - seção 3: chamadas libc (somente introdução) | |
219 | - seção 4: dispositivos (ex.: hd, sd) | |
220 | - seção 5: formatos de arquivos e protocolos (ex: wtmp, /etc/passwd, | |
221 | nfs) | |
222 | - seção 6: jogos (somente introdução) | |
223 | - seção 7: convenções, pacotes de macros, etc. (ex: nroff, ascii) | |
224 | - seção 8: administração de sistema (somente introdução) | |
225 | ||
226 | %description -l pt_BR.UTF-8 | |
227 | Uma larga coleção de páginas de manuais cobrindo programação APIs, | |
228 | formatos de arquivos, protocolos, etc. | |
229 | ||
230 | - seção 1: comandos de usuário (somente introdução) | |
231 | - seção 2: chamadas de sistema | |
232 | - seção 3: chamadas libc (somente introdução) | |
233 | - seção 4: dispositivos (ex.: hd, sd) | |
234 | - seção 5: formatos de arquivos e protocolos (ex: wtmp, /etc/passwd, | |
235 | nfs) | |
236 | - seção 6: jogos (somente introdução) | |
237 | - seção 7: convenções, pacotes de macros, etc. (ex: nroff, ascii) | |
238 | - seção 8: administração de sistema (somente introdução) | |
239 | ||
240 | %description -l ru.UTF-8 | |
241 | Небольшая коллекция страниц руководства из Проекта Документации на | |
242 | Линукс. Страницы руководства организованы следующим образом: | |
243 | ||
244 | - секция 1: команд пользователя (только введение) | |
245 | - секция 2: системные вызовы | |
246 | - секция 3: функции библиотеки языка C (только введение) | |
247 | - секция 4: устройства (например, hd, sd) | |
248 | - секция 5: форматы файлов и протоколы (например, wtmp, /etc/passwd, | |
249 | nfs) | |
250 | - секция 6: игры (только введение) | |
251 | - секция 7: соглашения, макро-пакеты, и т. п. (например, nroff, ascii) | |
252 | - секция 8: утилиты администратора (только введение) | |
253 | ||
254 | %description -l tr.UTF-8 | |
255 | Programlama arayüzlerini, dosya formatlarını, protokolleri vs. | |
256 | kapsayan, geniş bir kılavuz sayfaları derlemesi. | |
257 | ||
258 | %description -l uk.UTF-8 | |
259 | Великий набір сторінок мануалу (документації) з Linux Documentation | |
260 | Project (LDP). Сторінки організовані у такі секції: Секція 1, команди | |
261 | користувача (тільки вступ); Секція 2, системні виклики; Секція 3, | |
262 | виклики libc; Секція 4, пристрої (наприклад, hd, sd); Секція 5, | |
263 | формати файлів та протоколи (наприклад, wtmp, /etc/passwd, nfs); | |
264 | Секція 6, ігри (тільки вступ); Секція 7, угоди, макропакети і т.і. | |
265 | (наприклад, nroff, ascii); Секція 8, системне адміністрування (тільки | |
266 | вступ). | |
267 | ||
268 | %package posix | |
269 | Summary: POSIX manual pages from the Linux Documentation Project | |
270 | Summary(de.UTF-8): POSIX-man-Seiten vom Linux Documentation Project | |
271 | Summary(pl.UTF-8): Podręczniki systemowe z Linux Documentation Project dotyczące POSIX | |
272 | Group: Documentation | |
273 | ||
274 | %description posix | |
275 | Part of POSIX 1003.1-2003 in man pages format. | |
276 | ||
277 | %description posix -l pl.UTF-8 | |
278 | Fragmenty POSIX 1003.1-2003 w postaci stron podręcznika systemowego. | |
279 | ||
280 | %prep | |
281 | %setup -q -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a30 | |
282 | %patch0 -p1 | |
283 | %patch1 -p0 | |
284 | ||
285 | mv man-pages-posix-*/man*p . | |
286 | ||
287 | mkdir ko | |
288 | tar xzf %{SOURCE12} -C ko | |
289 | ||
290 | # unify trees for easier processing | |
291 | mv -f man-pages-%{pt_version}-pt_BR pt_BR | |
292 | mv -f man-pages-cs-%{cs_version} cs | |
293 | # replace symlinks by .so pointers | |
294 | for l in `find cs -type l` ; do | |
295 | t=`readlink "$l"` | |
296 | rm -f "$l" | |
297 | echo ".so $t" > "$l" | |
298 | done | |
299 | mv -f manpages-da-%{da_version} da | |
300 | install -d da/man1 | |
301 | mv -f da/*.1 da/man1 | |
302 | mv -f manpages-de-%{de_version} de | |
303 | mv -f man-pages-es-%{es_version} es | |
304 | # already in main es | |
305 | rm -f man-pages-es-extra-%{es_extra_version}/man3/dl*.3 | |
306 | rm -f man-pages-es-extra-%{es_extra_version}/man5/{acct,host.conf,resolv.conf,resolver}.5 | |
307 | rm -f man-pages-es-extra-%{es_extra_version}/man8/ld.so.8 | |
308 | for f in 1 2 4 5 6 7 8 ; do | |
309 | mv -i man-pages-es-extra-%{es_extra_version}/man${f}/* es/man${f} | |
310 | done | |
311 | mv -f manpages-fi fi | |
312 | mv -f man-pages-fr-%{fr_version} fr | |
313 | mv -f manpages-hu-%{hu_version}.orig/usr/share/man/hu hu | |
314 | mv -f man-pages-it-%{it_version} it | |
315 | mv -f man-pages-ja-%{ja_version}/manual/LDP_man-pages ja | |
316 | # duplicates of LDP man pages | |
317 | rm -rf man-pages-ja-%{ja_version}/manual/{gnumaniak,ld.so,modutils/man2,glibc-linuxthreads/man3,man/man1/{apropos,man,whatis}.1,netkit/{man3/{daemon,err,login}.3,man5/ftpusers.5},bind/{man5/resolver.5,man7/mailaddr.7},util-linux/man1/tailf.1} | |
318 | # shadow manuals already in shadow package | |
319 | rm -rf man-pages-ja-%{ja_version}/manual/shadow | |
320 | # dhcp 3 not dhcp2 | |
321 | rm -rf man-pages-ja-%{ja_version}/manual/dhcp2 | |
322 | # nfs-utils not nfs-server | |
323 | rm -rf man-pages-ja-%{ja_version}/manual/nfs-server | |
324 | # ypbind-mt not ypbind | |
325 | rm -rf man-pages-ja-%{ja_version}/manual/ypbind | |
326 | # we use: net-tools/hostname, util-linux/{kill,write}, SysVinit/{last,mesg,wall,halt,reboot,shutdown}, textutils/od, quota/rquotad | |
327 | rm -f man-pages-ja-%{ja_version}/manual/{GNU_sh-utils/man1/hostname.1,procps/man1/kill.1,util-linux/man1/{last,mesg,od,wall}.1,netkit/man1/write.1,nfs-utils/man8/rquotad.8,util-linux/man8/{halt,reboot,shutdown}.8} | |
328 | # following modutils changes | |
329 | for f in man-pages-ja-%{ja_version}/manual/modutils/man8/{depmod,insmod,lsmod,modinfo,modprobe,rmmod} ; do | |
330 | mv -f ${f}.8 ${f}.modutils.8 | |
331 | done | |
332 | # avoid filename conflict | |
333 | mv -f man-pages-ja-%{ja_version}/manual/netkit/man8/ftpd.{8,8n} | |
334 | # remove files existing in main man-pages tarball | |
335 | # note: (should we keep those from main tarball or ja tarball?) | |
336 | rm -f man-pages-ja-%{ja_version}/manual/GNU_fileutils/man1/{chgrp,chmod,chown,cp,dd,df,du,install,ln,ls,mkdir,mkfifo,mknod,mv,rm,rmdir,touch}.1 | |
337 | rm -f man-pages-ja-%{ja_version}/manual/GNU_sh-utils/man1/{basename,chroot,date,dirname,echo,env,expr,false,groups,hostid,id,logname,nice,nohup,pathchk,printenv,printf,pwd,sleep,stty,su,tee,test,true,tty,uname,users,who,whoami,yes}.1 | |
338 | rm -f man-pages-ja-%{ja_version}/manual/GNU_textutils/man1/{cat,cksum,comm,csplit,cut,expand,fmt,fold,head,join,md5sum,nl,od,paste,pr,sort,split,sum,tac,tail,tr,unexpand,uniq,wc}.1 | |
339 | rm -f man-pages-ja-%{ja_version}/manual/lpr-linux/man1/{lpq,lpr,lprm}.1 | |
340 | rm -f man-pages-ja-%{ja_version}/manual/net-tools/man1/hostname.1 | |
341 | rm -f man-pages-ja-%{ja_version}/manual/netatalk/man1/timeout.1 | |
342 | rm -f man-pages-ja-%{ja_version}/manual/procps/man1/uptime.1 | |
343 | rm -f man-pages-ja-%{ja_version}/manual/util-linux/man1/{arch,kill}.1 | |
344 | rm -f man-pages-ja-%{ja_version}/manual/bind/man7/hostname.7 | |
345 | rm -f man-pages-ja-%{ja_version}/manual/cups/man8/lpc.8 | |
346 | for f in 1 3 4 5 6 7 8 ; do | |
347 | mv -i man-pages-ja-%{ja_version}/manual/*/man${f}/* ja/man${f} | |
348 | done | |
349 | mv -f manpages-nl-%{nl_version} nl | |
350 | mv -f pl_PL pl | |
351 | mv -f man-ro ro | |
352 | mv -f manpages-ru-asp-%{ru_asp_version} ru | |
353 | make -C man-pages-tr-%{tr_version}/source | |
354 | find man-pages-tr-%{tr_version} -name '*.gz' | xargs gzip -d | |
355 | mv -f man-pages-tr-%{tr_version}/tr tr | |
356 | mv -f man-pages-uk_UA.alfa uk | |
357 | mv -f man-pages-zh_CN-%{zh_version}/src zh_CN | |
358 | find zh_CN -name CVS -o -name '*.orig' -o -name '*~' | xargs rm -rf | |
359 | # would go in big5 or gb18030, but not gb2312 | |
360 | rm -f zh_CN/man1/perltw.1 | |
361 | # would go in gb18030, but not gb2312 | |
362 | rm -f zh_CN/man8/{chat,printcap}.8 | |
363 | # unify name | |
364 | mv -f de/man7/{iso_8859_1,iso_8859-1}.7 | |
365 | mv -f es/man4/magic.4 es/man5/magic.5 | |
366 | mv -f es/man8/sync.8 es/man1/sync.1 | |
367 | mv -f fr/man8/sync.8 fr/man1/sync.1 | |
368 | mv -f hu/man1/gpm.1 hu/man8/gpm.8 | |
369 | # man1/sync.1 already exists | |
370 | rm -f hu/man8/sync.8 | |
371 | # unify name + fix infinite loop | |
372 | mv -f it/man7/{iso_8859-1,tmp}.7 | |
373 | mv -f it/man7/{iso_8859_1,iso_8859-1}.7 | |
374 | mv -f it/man7/{tmp,iso_8859_1}.7 | |
375 | # non-existing target | |
376 | rm -f it/man7/latin.2 | |
377 | mv -f ja/man4/magic.4 ja/man5/magic.5 | |
378 | mv -f ja/man8/nslookup.8 ja/man1/nslookup.1 | |
379 | mv -f ja/man8/sync.8 ja/man1/sync.1 | |
380 | mv -f ko/man8/sync.8 ko/man1/sync.1 | |
381 | # filename typo? | |
382 | mv -f pl/man5/{at_acces,at_access}.5 | |
383 | # man1/sync.1 already exists | |
384 | rm -f pl/man8/sync.8 | |
385 | mv -f pt_BR/man8/sync.8 pt_BR/man1/sync.1 | |
386 | mv -f ru/man8/sync.8 ru/man1/sync.1 | |
387 | # man1/sync.1 already exists | |
388 | rm -f zh_CN/man8/sync.8 | |
389 | ||
390 | %patch2 -p1 | |
391 | ||
392 | bzip2 -dc %{SOURCE50} | tar xf - | |
393 | %patch3 -p0 | |
394 | ||
395 | # patching creates backups | |
396 | find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -rf | |
397 | ||
398 | # cleanup | |
399 | rm -f man1/COPYING | |
400 | rm -f man*/README* | |
401 | ||
402 | for n in man{1,2,3,4,5,6,7,8,0p,1p,3p}/* */man{1,2,3,4,5,6,7,8,9}/* ; do | |
403 | if head -n 1 $n | grep "^\.so [^/]*$" >/dev/null 2>&1 ; then | |
404 | sed -i -e 's,.so \([^\.]*\)\.\(.*\),.so man\2/\1.\2,' $n | |
405 | fi | |
406 | done | |
407 | ||
408 | ln -sf pt_BR pt | |
409 | ||
410 | # these belong to coreutils (sync is man1 BTW) | |
411 | rm -f man1/{chgrp,chmod,chown,cp,dd,df,dircolors,du,install,diff}.1 | |
412 | rm -f man1/{ln,ls,mkdir,mkfifo,mknod,mv,rm,rmdir,touch,dir,vdir}.1 | |
413 | rm -f man8/sync.8 | |
414 | # time | |
415 | rm -f man1/time.1 | |
416 | # ftp servers | |
417 | rm -f man5/ftpusers.5 | |
418 | # glibc | |
419 | rm -f man8/ld-linux{,.so}.8 | |
420 | ||
421 | %if %{with tars} | |
422 | package=NONE | |
423 | while read line ; do | |
424 | if echo $line | grep -q '^\[.\+\]$' ; then | |
425 | package=`echo $line | sed -e 's/^\[//;s/\]$//;'` | |
426 | else | |
427 | if [ -f "$line" ]; then | |
428 | echo "$line" >> ${package}-man.list | |
429 | fi | |
430 | # omit pt_BR here, package them as pt | |
431 | for l in cs da de es fi fr hu id it ja ko nl pl pt ru tr uk zh_CN ; do | |
432 | if [ -f "$l/$line" ]; then | |
433 | echo "$l/$line" >> ${package}-man.list | |
434 | fi | |
435 | done | |
436 | fi | |
437 | done < %{SOURCE100} | |
438 | for l in *-man.list ; do | |
439 | t=`basename $l .list` | |
440 | if [ -f README.${t}-pages ]; then | |
441 | echo "README.${t}-pages" >> "$l" | |
442 | fi | |
443 | tar cjf %{_sourcedir}/${t}-pages.tar.bz2 --files-from "$l" | |
444 | grep '^man' "$l" | xargs rm -f | |
445 | done | |
446 | %else | |
447 | # glibc | |
448 | find man3 -type f | grep -v 'intro\.3' | xargs rm -f | |
449 | rm -f man1/{getent,iconv,ldd,locale,localedef,sprof,rpcgen}.1 | |
450 | rm -f man5/{locale,nscd.conf,nsswitch.conf,tzfile}.5 | |
451 | rm -f man7/{ascii,charsets,iso*,koi8-r,latin*,locale,unicode,utf*}.7 | |
452 | rm -f man8/{ld.so,ldconfig,nscd,sln,tzselect,zdump,zic}.8 | |
453 | rm -f */man1/ldd.1 */man8/sln.8 */man1/iconv.1 | |
454 | rm -f {ja,ru}/man1/rpcgen.1 | |
455 | %endif | |
456 | ||
457 | # shadow (but not pwdutils!); shadow(5) is missing in pwdutils too | |
458 | rm -f man5/passwd.5 | |
459 | ||
460 | # rpcbind, formerly glibc | |
461 | rm -f man8/rpcinfo.8 | |
462 | ||
463 | rm -f man1/{i,}gawk.1 | |
464 | rm -f man1/{i,}gawk.1 | |
465 | rm -f {it,ja,pl}/man1/{i,}gawk.1 | |
466 | ||
467 | %install | |
468 | rm -rf $RPM_BUILD_ROOT | |
469 | install -d $RPM_BUILD_ROOT%{_mandir}/man{1,2,3,4,5,6,7,8,0p,1p,3p} | |
470 | ||
471 | for n in man{1,2,3,4,5,6,7,8,0p,1p,3p}/*; do | |
472 | install $n $RPM_BUILD_ROOT%{_mandir}/$n | |
473 | done | |
474 | ||
475 | # omit pt_BR here, package them as pt | |
476 | for l in cs da de es fi fr hu id it ja ko nl pl pt ru tr uk zh_CN ; do | |
477 | install -d $RPM_BUILD_ROOT%{_mandir}/$l/man{1,2,3,4,5,6,7,8} | |
478 | for n in man{1,2,3,4,5,6,7,8}/*; do | |
479 | if [ -f $l/$n ]; then | |
480 | install $l/$n $RPM_BUILD_ROOT%{_mandir}/$l/$n | |
481 | fi | |
482 | done | |
483 | done | |
484 | ||
485 | # files with just .so links pointing to non-existing man pages | |
486 | rm -f $RPM_BUILD_ROOT%{_mandir}/{man2,{fr,ja}/man2}/{getcwd,gethostid,mq_notify,mq_open,mq_timedreceive,mq_timedsend,mq_unlink}.2 | |
487 | rm -f $RPM_BUILD_ROOT%{_mandir}/man2/{fstatvfs,getcontext,getdtablesize,setcontext,sethostid,sigqueue,statvfs}.2 | |
488 | rm -f $RPM_BUILD_ROOT%{_mandir}/fr/man2/{clock_getres,clock_gettime,clock_settime,sethostid}.2 | |
489 | rm -f $RPM_BUILD_ROOT%{_mandir}/ja/man2/{sethostid,sigqueue,statvfs}.2 | |
490 | rm -f $RPM_BUILD_ROOT%{_mandir}/{man7,ja/man7}/tis-620.7 | |
491 | rm -f $RPM_BUILD_ROOT%{_mandir}/{fr,ja}/man2/fstatvfs.2 | |
492 | rm -f $RPM_BUILD_ROOT%{_mandir}/{cs,de,es,fr,ja,ko,nl,pl,pt,ru}/man2/{oldfstat,oldlstat,oldolduname,oldstat,olduname}.2 | |
493 | rm -f $RPM_BUILD_ROOT%{_mandir}/{es,fr,ja,ru}/man2/setcontext.2 | |
494 | rm -f $RPM_BUILD_ROOT%{_mandir}/de/man2/{create_module,delete_module,get_kernel_syms,init_module}.2 | |
495 | rm -f $RPM_BUILD_ROOT%{_mandir}/{es,ru}/man5/networks.5 | |
496 | ||
497 | %clean | |
498 | rm -rf $RPM_BUILD_ROOT | |
499 | ||
500 | %files | |
501 | %defattr(644,root,root,755) | |
502 | %{_mandir}/man?/* | |
503 | %lang(cs) %{_mandir}/cs/man*/* | |
504 | %lang(de) %{_mandir}/de/man*/* | |
505 | %lang(es) %{_mandir}/es/man*/* | |
506 | %lang(fi) %{_mandir}/fi/man*/* | |
507 | %lang(fr) %{_mandir}/fr/man*/* | |
508 | %lang(hu) %{_mandir}/hu/man*/* | |
509 | %lang(it) %{_mandir}/it/man*/* | |
510 | %lang(ja) %{_mandir}/ja/man*/* | |
511 | %lang(ko) %{_mandir}/ko/man*/* | |
512 | %lang(nl) %{_mandir}/nl/man*/* | |
513 | %lang(pl) %{_mandir}/pl/man*/* | |
514 | %lang(pt) %{_mandir}/pt/man*/* | |
515 | #%lang(pt_BR) %{_mandir}/pt_BR/man*/* | |
516 | %lang(ru) %{_mandir}/ru/man*/* | |
517 | %lang(tr) %{_mandir}/tr/man*/* | |
518 | %lang(uk) %{_mandir}/uk/man*/* | |
519 | %lang(zh_CN) %{_mandir}/zh_CN/man*/* | |
520 | ||
521 | %files posix | |
522 | %defattr(644,root,root,755) | |
523 | %dir %{_mandir}/man?p | |
524 | %{_mandir}/man?p/* |