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