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