]>
Commit | Line | Data |
---|---|---|
959435fe | 1 | # |
2 | # Conditional build: | |
ec14e164 | 3 | %bcond_with tars # generate man-pages tars for other packages [not done yet] |
959435fe | 4 | # |
8da581ee | 5 | Summary: System manual pages from the Linux Documentation Project |
a888fd84 ER |
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 | |
8da581ee | 17 | Name: man-pages |
1fb44808 | 18 | Version: 5.03 |
5984477c | 19 | Release: 1 |
4fa3f14b | 20 | License: distributable |
8da581ee | 21 | Group: Documentation |
664977a6 | 22 | %define cs_version 0.17.20080113 |
b1e10afe | 23 | %define da_version 0.1.2 |
664977a6 | 24 | %define de_version 0.5 |
b070770a | 25 | %define es_version 1.55 |
b0e8db7f | 26 | %define es_extra_version 0.8a |
b070770a | 27 | %define fi_version 0.2 |
d0e84c16 | 28 | %define fr_version 3.70-1 |
b070770a | 29 | %define hu_version 20010119 |
b0e8db7f | 30 | %define id_version 20011116 |
c2a53488 | 31 | %define it_version 4.08 |
1fb44808 | 32 | %define ja_version 20191015 |
b070770a | 33 | %define ko_version 20050219 |
887cc7a5 | 34 | %define nl_version 0.13.3 |
b070770a | 35 | %define pl_version 20051105 |
b0e8db7f | 36 | %define pt_version 1.39 |
c371e08d | 37 | %define ro_version 0.2 |
b070770a | 38 | #%%define ru_version 0.98 |
cb1f2108 | 39 | %define ru_asp_version 1.4 |
664977a6 | 40 | %define tr_version 1.0.5 |
61e15330 | 41 | %define zh_version 1.5.2 |
85412686 | 42 | %define posix_version 2013-a |
95ea7f43 | 43 | Source0: https://www.kernel.org/pub/linux/docs/man-pages/%{name}-%{version}.tar.xz |
1fb44808 | 44 | # Source0-md5: 4a85d16759c883048a1d27c741dadf17 |
664977a6 MK |
45 | Source1: ftp://ftp.linux.cz/pub/localization/linux/czman/%{name}-cs-%{cs_version}.tar.bz2 |
46 | # Source1-md5: a3df67d98ab63a0a360cd0794ec87e0e | |
b070770a | 47 | # there is no LDP man page here, yet - but include it in sources for completeness |
b1e10afe JB |
48 | # http://www.sslug.dk/locale/man-sider/manpages-da-%{da_version}.tar.gz (404 as of Feb 2018) |
49 | Source2: manpages-da-%{da_version}.tar.gz | |
50 | # Source2-md5: 26cdd12ea7c62e595fc1a3a39bf53115 | |
d0e84c16 | 51 | # TODO: new project at https://manpages-de-team.pages.debian.net/manpages-de/, current version is 2.12 |
c594fddb | 52 | Source3: http://www.infodrom.org/projects/manpages-de/download/manpages-de-%{de_version}.tar.gz |
664977a6 | 53 | # Source3-md5: 6686b1be6da01cdbb5ea7511ddcf61a0 |
b070770a JB |
54 | Source4: http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-%{es_version}.tar.bz2 |
55 | # Source4-md5: b71f701dcae827f2f5e4e848c66321fc | |
b0e8db7f | 56 | Source5: http://www.ditec.um.es/~piernas/manpages-es/%{name}-es-extra-%{es_extra_version}.tar.gz |
18e828fd | 57 | # Source5-md5: 5827f41f77658df17f550b7f8e831432 |
b070770a JB |
58 | # 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 |
59 | # (despite archive filename it's 0.2 version) | |
60 | Source6: man-fi-0.1.tar.bz2 | |
61 | # Source6-md5: bb266d3797cdf71bfbe1da190196f455 | |
d0e84c16 JB |
62 | #Source7Download: https://gitlab.com/perkamon/man-pages-fr/tags |
63 | # TODO: use https://gitlab.com/perkamon/man-pages-fr/-/archive/%{fr_version}/man-pages-fr-%{fr_version}.tar.bz2, then make dist-fr to get tarball - but 4.16 produces very few translations | |
64 | Source7: man-pages-fr-%{fr_version}.tar.xz | |
b1e10afe | 65 | # Source7-md5: 66a6033fb2ed3641c35b1d53c0fe5deb |
60bf1e84 JB |
66 | # there is also: http://manpagesfr.free.fr/download/man-pages-extras-fr-0.8.1.tar.bz2 |
67 | # and: http://manpagesfr.free.fr/download/man-pages-sup-fr-20080606.tar.bz2 | |
b070770a JB |
68 | #Source8: http://download.uhulinux.hu/sources/man-pages-hu/man_hu_%{hu_version}.tar.gz (older) |
69 | Source8: http://ftp.debian.org/debian/pool/main/m/manpages-hu/manpages-hu_%{hu_version}.orig.tar.gz | |
70 | # Source8-md5: 742b682c5237a1e370b28f363826b2d5 | |
b070770a JB |
71 | # there is no LDP man page here, yet, but included for completeness |
72 | # based on http://nakula.rvs.uni-bielefeld.de/made/my_project/ManPage/ (dead now) | |
4694804c | 73 | Source9: http://www.mif.pg.gda.pl/homepages/ankry/man-pages/%{name}-from-www-id-%{id_version}.tar.gz |
b070770a | 74 | # Source9-md5: 34a69de42ec4ae8180b947f8777a3e7a |
c594fddb | 75 | # available also as http:// |
60bf1e84 | 76 | Source10: ftp://ftp.pluto.linux.it/pub/pluto/ildp/man/%{name}-it-%{it_version}.tar.xz |
c2a53488 | 77 | # Source10-md5: 869cf8ff2aa5c11b8d15d1ba7a47f4fa |
60bf1e84 | 78 | # note: man-pages-it-extra-0.5.0.tar.gz is also covered by the above version |
71fff68b JB |
79 | #Source11Download: http://linuxjm.osdn.jp/download.html |
80 | Source11: http://linuxjm.osdn.jp/%{name}-ja-%{ja_version}.tar.gz | |
1fb44808 | 81 | # Source11-md5: 57969415701eb835a6437bbf1e464816 |
b070770a JB |
82 | Source12: http://download.kldp.net/man/man-pages-ko/%{ko_version}/%{name}-ko-%{ko_version}.tar.gz |
83 | # Source12-md5: e31dc6a51c02436371373dedaeeeacab | |
60bf1e84 | 84 | # TODO: check 20051127 in Debian/Ubuntu? |
887cc7a5 | 85 | Source13: ftp://ftp.nl.linux.org/pub/DOC-NL/manpages-nl/manpages-nl-%{nl_version}.tar.gz |
18e828fd | 86 | # Source13-md5: b37b0216a87db7583e88ba87031a0b4a |
d33d2eab | 87 | # TODO: PTM has been overtaken by new project at http://manpages-pl.sourceforge.net/ |
d0e84c16 | 88 | # http://downloads.sourceforge.net/manpages-pl/manpages-pl-%{pl_version}.tar.bz2 with pl_version=0.7 |
b070770a JB |
89 | Source14: %{name}-pl-PTM-snapshot.%{pl_version}.tar.bz2 |
90 | # Source14-md5: b9b5751fcde4c36022850d0e5a4757d3 | |
60bf1e84 | 91 | Source15: http://www.win.tue.nl/~aeb/ftpdocs/linux-local/manpages/tr/%{name}-pt_BR-%{pt_version}.tgz |
18e828fd | 92 | # Source15-md5: 3f8db6dd6a7884b595e70f624ac93735 |
b070770a JB |
93 | # no LDP man pages yet |
94 | Source16: http://www.rolix.org/man/arhiva/man-pages-ro-%{ro_version}.tar.gz | |
95 | # Source16-md5: ac5b2c970a31cb721e068ff80e5bd466 | |
d0e84c16 | 96 | # TODO: new project at: https://sourceforge.net/projects/man-pages-ru/files/, latest version man-pages-ru_4.17-2385-2385-20181124.tar.bz2 |
60bf1e84 | 97 | #Source17: http://linuxshare.ru/projects/trans/manpages-ru-%{ru_version}.tar.bz2 |
b070770a | 98 | # ASP-linux have more up-to-date manpages (but 0.98 contains some updated pages) |
1f3051b1 | 99 | Source17: http://www.mif.pg.gda.pl/homepages/ankry/man-pages/manpages-ru-asp-%{ru_asp_version}.tar.bz2 |
cb1f2108 | 100 | # Source17-md5: fffb27648417c8dd551e2a4403eefc64 |
2bb77790 | 101 | Source18: http://downloads.sourceforge.net/belgeler/man-pages-tr-%{tr_version}.tar.gz |
664977a6 | 102 | # Source18-md5: 8f322a60c80e31c34ef8979edaf68aae |
b070770a JB |
103 | Source19: http://www.linux.org.ua/twiki/pub/Projects/ManUk/man-pages-uk_UA.alfa.tar.gz |
104 | # Source19-md5: 89576c5b51bb83c8bfa8bda794b96e21 | |
61e15330 JB |
105 | #Source20Download: https://github.com/lidaobing/manpages-zh/releases |
106 | # also newer git snapshot available at http://www.win.tue.nl/~aeb/ftpdocs/linux-local/manpages/tr/man-pages-zh-20141004.zip | |
107 | Source20: https://github.com/lidaobing/manpages-zh/archive/v%{zh_version}/manpages-zh-%{zh_version}.tar.gz | |
108 | # Source20-md5: 1bbdc4f32272df0b95146518b27bf4be | |
85412686 | 109 | Source30: https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-%{posix_version}.tar.xz |
88ba9efa | 110 | # Source30-md5: 825fde78e6fddd02426ecdd50e2cbe0d |
78dd76f6 | 111 | Source50: %{name}-links.list |
71782a41 | 112 | Source100: %{name}-tars.list |
2bb77790 ŁK |
113 | Patch0: %{name}-zh_fixes.patch |
114 | Patch1: %{name}-misc.patch | |
115 | Patch2: %{name}-extra.patch | |
116 | Patch3: %{name}-tr-bash.patch | |
117 | Patch4: %{name}-misc-localized.patch | |
118 | Patch5: %{name}-cs-bash.patch | |
78dd76f6 | 119 | Patch10: %{name}-extra-files.patch |
85412686 | 120 | URL: https://www.kernel.org/doc/man-pages/ |
61e15330 JB |
121 | BuildRequires: autoconf >= 2.61 |
122 | BuildRequires: automake | |
85412686 | 123 | BuildRequires: rpmbuild(macros) >= 1.566 |
672cf0af | 124 | BuildRequires: sed >= 4.0 |
b1e10afe | 125 | BuildRequires: tar >= 1:1.22 |
61e15330 JB |
126 | # for man-pages-zh |
127 | BuildRequires: zh-autoconvert | |
b1e10afe | 128 | BuildRequires: xz |
d33d2eab JB |
129 | # for man-pages-tr |
130 | BuildRequires: zlib-devel | |
950df0a5 | 131 | Obsoletes: man-pages-cs |
132 | Obsoletes: man-pages-de | |
133 | Obsoletes: man-pages-es | |
134 | Obsoletes: man-pages-fi | |
135 | Obsoletes: man-pages-fr | |
136 | Obsoletes: man-pages-hu | |
137 | Obsoletes: man-pages-it | |
138 | Obsoletes: man-pages-ja | |
139 | Obsoletes: man-pages-ko | |
140 | Obsoletes: man-pages-nl | |
fd014ac0 | 141 | Obsoletes: man-pages-pl |
950df0a5 | 142 | Obsoletes: man-pages-pt |
d16b4828 | 143 | Obsoletes: man-pages-pt_BR |
950df0a5 | 144 | Obsoletes: man-pages-ru |
c594fddb | 145 | Obsoletes: man-pages-ru-asp |
146 | Obsoletes: man-pages-uk | |
51268b8a | 147 | Obsoletes: man-pages-zh |
dc734bfb | 148 | Obsoletes: manpages-hu |
17acc5d5 | 149 | Conflicts: attr-devel < 2.2.0-2 |
71782a41 | 150 | Conflicts: kbd < 1.12-9 |
4a106a4e | 151 | Conflicts: keyutils < 1.5.10 |
71782a41 | 152 | Conflicts: libcap < 1:1.10-5 |
86eb102b | 153 | Conflicts: lirc < 0.9.3a-2 |
672cf0af | 154 | BuildArch: noarch |
c594fddb | 155 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4694804c | 156 | AutoReqProv: no |
d2c978c2 | 157 | |
85412686 JB |
158 | # languages of packaged man pages |
159 | # note: pt_BR is omitted here, these manuals are packaged as pt | |
61e15330 | 160 | %define man_langs cs da de es fi fr hu id it ja ko nl pl pt ru tr uk zh_CN zh_TW |
85412686 | 161 | |
d2c978c2 | 162 | %description |
163 | A large collection of man pages covering programming APIs, file | |
164 | formats, protocols, etc. | |
165 | ||
950df0a5 | 166 | - section 1: user commands (intro only) |
167 | - section 2: system calls | |
f425bca4 | 168 | - section 3: libc calls (intro only) |
950df0a5 | 169 | - section 4: devices (e.g., hd, sd) |
170 | - section 5: file formats and protocols (e.g., wtmp, /etc/passwd, nfs) | |
171 | - section 6: games (intro only) | |
172 | - section 7: conventions, macro packages, etc. (e.g., nroff, ascii) | |
173 | - section 8: system administration (intro only) | |
d2c978c2 | 174 | |
bb9af523 JR |
175 | %description -l de.UTF-8 |
176 | Eine große Sammlung von man-Seiten über Programmier-APIs, | |
d2c978c2 | 177 | Dateiformate, Protokolle, usw.. |
178 | ||
950df0a5 | 179 | - section 1: Benutzerbefehle (nur intro) |
180 | - section 2: Systemaufrufe | |
f425bca4 | 181 | - section 3: libc-Aufrufe (nur intro) |
bb9af523 | 182 | - section 4: Geräte (z.B. hd, sd) |
950df0a5 | 183 | - section 5: Dateiformate und Protokolle (z.B. wtmp, /etc/passwd, nfs) |
184 | - section 6: Spiele (nur intro) | |
185 | - section 7: Konventionen, Makro-Pakete, usw. (z.B. nroff, ascii) | |
186 | - section 8: Systemverwaltung (nur intro) | |
187 | ||
bb9af523 JR |
188 | %description -l es.UTF-8 |
189 | Una larga colección de páginas de manuales cubriendo programación | |
1eef344c | 190 | APIs, formatos de archivos, protocolos, etc. |
191 | ||
bb9af523 JR |
192 | - seción 1: comandos de usuario (solamente introducción) |
193 | - seción 2: llamadas de sistema | |
194 | - seción 3: llamadas libc (solamente introducción) | |
195 | - seción 4: dispositivos (ej.: hd, sd) | |
196 | - seción 5: formatos de archivos y protocolos (ej: wtmp, /etc/passwd, | |
1eef344c | 197 | nfs) |
bb9af523 JR |
198 | - seción 6: juegos (solamente introducción) |
199 | - seción 7: convenciones, paquetes de macros, etc. (ej: nroff, ascii) | |
200 | - seción 8: administración de sistema (solamente introducción) | |
1eef344c | 201 | |
bb9af523 JR |
202 | %description -l fi.UTF-8 |
203 | Kokoelma man-sivujen käännöksiä suomenkielelle. Sivuja on mukana | |
204 | yhteensä 211 kpl ja ne on paketoitu 14.11.1999 mennessä valmiina | |
950df0a5 | 205 | olleista sivuista. Sivut ovat osista 1 (komennot) ja 2 (pelit). |
d2c978c2 | 206 | |
bb9af523 | 207 | %description -l fr.UTF-8 |
950df0a5 | 208 | Une large collection de pages de manuel du Project de Documentation |
bb9af523 JR |
209 | Linux (LDP), traduites en Français. Les pages de manuel sont |
210 | organisées en differentes sections : | |
950df0a5 | 211 | |
f425bca4 | 212 | - section 1: Commandes utilisateur (intro seulement) |
bb9af523 | 213 | - section 2: Appels système |
f425bca4 | 214 | - section 3: Appels de la Libc (intro seulement) |
bb9af523 | 215 | - section 4: Périphériques (par ex. hd, sd) |
950df0a5 | 216 | - section 5: Formats de fichiers et de protocoles (par ex. wtmp, |
2321feb4 | 217 | /etc/passwd, nfs) |
950df0a5 | 218 | - section 6: Jeux (intro seulement) |
219 | - section 7: Conventions, macro packages, etc. (par ex. nroff, ascii) | |
bb9af523 | 220 | - section 8: Administration système (intro seulement) |
950df0a5 | 221 | |
bb9af523 | 222 | %description -l it.UTF-8 |
950df0a5 | 223 | Traduzioni italiane delle pagine di manuale per Linux: questo |
224 | pacchetto include non solo quelle dell'LDP, ma anche traduzioni di | |
225 | altre pagine di uso comune. ATTENZIONE: alcune pagine sono obsolete! | |
d2c978c2 | 226 | |
bb9af523 JR |
227 | %description -l pl.UTF-8 |
228 | Pakiet ten zawiera dużą kolekcję podręczników ekranowych (man pages), | |
229 | opisujących format plików, protokoły itp. | |
d2c978c2 | 230 | |
bb9af523 JR |
231 | - sekcja 1: polecenia użytkowników (tylko wstęp) |
232 | - sekcja 2: wywołania systemowe | |
233 | - sekcja 3: wywołania bibliotek (tylko wstęp) | |
234 | - sekcja 4: urządzenia (np., hd, sd) | |
235 | - sekcja 5: format plików i protokoły (np., wtmp, /etc/passwd, nfs) | |
236 | - sekcja 6: gry (tylko wstęp) | |
950df0a5 | 237 | - sekcja 7: konwencje, makro-pakiety, itp. (np., nroff, ascii) |
bb9af523 | 238 | - sekcja 8: administracja systemu (tylko wstęp) |
950df0a5 | 239 | |
bb9af523 JR |
240 | %description -l pt.UTF-8 |
241 | Uma larga coleção de páginas de manuais cobrindo programação APIs, | |
f425bca4 | 242 | formatos de arquivos, protocolos, etc. |
243 | ||
bb9af523 JR |
244 | - seção 1: comandos de usuário (somente introdução) |
245 | - seção 2: chamadas de sistema | |
246 | - seção 3: chamadas libc (somente introdução) | |
247 | - seção 4: dispositivos (ex.: hd, sd) | |
248 | - seção 5: formatos de arquivos e protocolos (ex: wtmp, /etc/passwd, | |
f425bca4 | 249 | nfs) |
bb9af523 JR |
250 | - seção 6: jogos (somente introdução) |
251 | - seção 7: convenções, pacotes de macros, etc. (ex: nroff, ascii) | |
252 | - seção 8: administração de sistema (somente introdução) | |
f425bca4 | 253 | |
bb9af523 JR |
254 | %description -l pt_BR.UTF-8 |
255 | Uma larga coleção de páginas de manuais cobrindo programação APIs, | |
1eef344c | 256 | formatos de arquivos, protocolos, etc. |
257 | ||
bb9af523 JR |
258 | - seção 1: comandos de usuário (somente introdução) |
259 | - seção 2: chamadas de sistema | |
260 | - seção 3: chamadas libc (somente introdução) | |
261 | - seção 4: dispositivos (ex.: hd, sd) | |
262 | - seção 5: formatos de arquivos e protocolos (ex: wtmp, /etc/passwd, | |
1eef344c | 263 | nfs) |
bb9af523 JR |
264 | - seção 6: jogos (somente introdução) |
265 | - seção 7: convenções, pacotes de macros, etc. (ex: nroff, ascii) | |
266 | - seção 8: administração de sistema (somente introdução) | |
950df0a5 | 267 | |
bb9af523 JR |
268 | %description -l ru.UTF-8 |
269 | Небольшая коллекция страниц руководства из Проекта Документации на | |
270 | Линукс. Страницы руководства организованы следующим образом: | |
950df0a5 | 271 | |
bb9af523 JR |
272 | - секция 1: команд пользователя (только введение) |
273 | - секция 2: системные вызовы | |
274 | - секция 3: функции библиотеки языка C (только введение) | |
275 | - секция 4: устройства (например, hd, sd) | |
276 | - секция 5: форматы файлов и протоколы (например, wtmp, /etc/passwd, | |
950df0a5 | 277 | nfs) |
bb9af523 JR |
278 | - секция 6: игры (только введение) |
279 | - секция 7: соглашения, макро-пакеты, и т. п. (например, nroff, ascii) | |
280 | - секция 8: утилиты администратора (только введение) | |
d5f41404 | 281 | |
bb9af523 JR |
282 | %description -l tr.UTF-8 |
283 | Programlama arayüzlerini, dosya formatlarını, protokolleri vs. | |
284 | kapsayan, geniş bir kılavuz sayfaları derlemesi. | |
d2c978c2 | 285 | |
bb9af523 JR |
286 | %description -l uk.UTF-8 |
287 | Великий набір сторінок мануалу (документації) з Linux Documentation | |
288 | Project (LDP). Сторінки організовані у такі секції: Секція 1, команди | |
289 | користувача (тільки вступ); Секція 2, системні виклики; Секція 3, | |
290 | виклики libc; Секція 4, пристрої (наприклад, hd, sd); Секція 5, | |
291 | формати файлів та протоколи (наприклад, wtmp, /etc/passwd, nfs); | |
292 | Секція 6, ігри (тільки вступ); Секція 7, угоди, макропакети і т.і. | |
293 | (наприклад, nroff, ascii); Секція 8, системне адміністрування (тільки | |
294 | вступ). | |
8daf7585 | 295 | |
66f43052 | 296 | %package posix |
297 | Summary: POSIX manual pages from the Linux Documentation Project | |
a888fd84 ER |
298 | Summary(de.UTF-8): POSIX-man-Seiten vom Linux Documentation Project |
299 | Summary(pl.UTF-8): Podręczniki systemowe z Linux Documentation Project dotyczące POSIX | |
66f43052 | 300 | Group: Documentation |
301 | ||
302 | %description posix | |
303 | Part of POSIX 1003.1-2003 in man pages format. | |
304 | ||
bb9af523 JR |
305 | %description posix -l pl.UTF-8 |
306 | Fragmenty POSIX 1003.1-2003 w postaci stron podręcznika systemowego. | |
66f43052 | 307 | |
d2c978c2 | 308 | %prep |
85412686 | 309 | %setup -q -c -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a13 -a14 -a15 -a16 -a17 -a18 -a19 -a20 -a30 |
61e15330 | 310 | %patch0 -p1 -d manpages-zh-%{zh_version} |
2bb77790 ŁK |
311 | %patch3 -p1 -d man-pages-tr-%{tr_version} |
312 | %patch5 -p1 -d man-pages-cs-%{cs_version} | |
78dd76f6 JB |
313 | # man-pages-extra |
314 | %patch10 -p0 | |
2bb77790 | 315 | %patch2 -p0 -d man-pages-extra |
78dd76f6 JB |
316 | install -d man-pages-extra/C |
317 | %{__mv} man-pages-extra/man* man-pages-extra/C | |
85412686 JB |
318 | |
319 | # prepare somehow unified source trees | |
320 | install -d src | |
321 | %{__mv} man-pages-%{version} src/C | |
322 | %{__mv} man-pages-posix-%{posix_version}/man*p src/C | |
323 | %{__mv} man-pages-cs-%{cs_version} src/cs | |
324 | %{__mv} manpages-da-%{da_version} src/da | |
325 | %{__mv} manpages-de-%{de_version} src/de | |
326 | %{__mv} man-pages-es-%{es_version} src/es | |
327 | %{__mv} manpages-fi src/fi | |
b1e10afe | 328 | %{__mv} fr src/fr |
85412686 JB |
329 | %{__mv} manpages-hu-%{hu_version}.orig/usr/share/man/hu src/hu |
330 | install -d src/id/man{1,8} | |
331 | %{__mv} man-pages-it-%{it_version} src/it | |
332 | %{__mv} man-pages-ja-%{ja_version} src/ja | |
333 | install -d src/ko | |
334 | tar xzf %{SOURCE12} -C src/ko | |
335 | %{__mv} manpages-nl-%{nl_version} src/nl | |
336 | %{__mv} pl_PL src/pl | |
337 | %{__mv} man-pages-%{pt_version}-pt_BR src/pt_BR | |
338 | %{__mv} man-ro src/ro | |
339 | %{__mv} manpages-ru-asp-%{ru_asp_version} src/ru | |
340 | %{__mv} man-pages-tr-%{tr_version} src/tr | |
341 | %{__mv} man-pages-uk_UA.alfa src/uk | |
61e15330 | 342 | %{__mv} manpages-zh-%{zh_version} src/zh |
85412686 | 343 | |
1a4c72ed JB |
344 | # extra so links (via man-pages-extra) |
345 | while read LINE ; do | |
346 | if echo "$LINE" | grep -q '^#' ; then | |
347 | continue | |
348 | fi | |
349 | set -- $LINE | |
350 | install -d man-pages-extra/${1}/$(dirname $2) | |
351 | if [ -f man-pages-extra/${1}/${2} ]; then | |
352 | echo "man-pages-extra/${1}/${2} already exists!" | |
353 | exit 1 | |
354 | fi | |
355 | echo ".so $3" >>man-pages-extra/${1}/${2} | |
356 | # special case for zh | |
357 | if [ "$1" = "zh_CN" ]; then | |
358 | zhmandir="src/zh/src/$(dirname "$2")" | |
359 | makefile="$zhmandir/manpages" | |
360 | if [ ! -f "$zhmandir/.init.mark" ]; then | |
361 | # allow continuation in next line | |
362 | %{__sed} -i -e 's/\(\.[1-8]\)$/\1 \\/' "$makefile" | |
363 | touch "$zhmandir/.init.mark" | |
364 | fi | |
365 | printf " %s" "$(basename "$2")" >> "$makefile" | |
366 | fi | |
367 | done < %{SOURCE50} | |
368 | ||
85412686 JB |
369 | # unify trees for easier processing (where possible) |
370 | ||
85412686 JB |
371 | # da: add man1 subdir |
372 | install -d src/da/man1 | |
373 | %{__mv} src/da/*.1 src/da/man1 | |
374 | ||
375 | # es: merge in "extra" pages | |
376 | # skip pages already in main es | |
d33d2eab JB |
377 | %{__rm} man-pages-es-extra-%{es_extra_version}/man3/dl*.3 |
378 | %{__rm} man-pages-es-extra-%{es_extra_version}/man5/{acct,host.conf,resolv.conf,resolver}.5 | |
379 | %{__rm} man-pages-es-extra-%{es_extra_version}/man8/ld.so.8 | |
672cf0af | 380 | for f in 1 2 4 5 6 7 8 ; do |
85412686 | 381 | mv -i man-pages-es-extra-%{es_extra_version}/man${f}/* src/es/man${f} |
672cf0af | 382 | done |
85412686 JB |
383 | |
384 | # it: merge per-package trees | |
385 | %{__mv} src/it/man-pages/man? src/it | |
60bf1e84 | 386 | for f in 1 4 5 8 9 ; do |
85412686 | 387 | mv -i src/it/*/man${f}/* src/it/man${f} |
60bf1e84 | 388 | done |
85412686 JB |
389 | |
390 | # ja: merge per-package trees | |
391 | %{__mv} src/ja/manual/LDP_man-pages/man* src/ja | |
672cf0af | 392 | # duplicates of LDP man pages |
1fb44808 | 393 | %{__rm} -r src/ja/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}} |
672cf0af | 394 | # shadow manuals already in shadow package |
85412686 | 395 | %{__rm} -r src/ja/manual/shadow |
672cf0af | 396 | # dhcp 3 not dhcp2 |
85412686 | 397 | %{__rm} -r src/ja/manual/dhcp2 |
672cf0af | 398 | # nfs-utils not nfs-server |
85412686 | 399 | %{__rm} -r src/ja/manual/nfs-server |
672cf0af | 400 | # ypbind-mt not ypbind |
85412686 | 401 | %{__rm} -r src/ja/manual/ypbind |
1fb44808 JB |
402 | # we use: net-tools/hostname, util-linux/{kill,last,lastb,write}, SysVinit/{mesg,wall,halt,reboot,shutdown}, textutils/od, quota/rquotad |
403 | %{__rm} src/ja/manual/{GNU_sh-utils/man1/hostname.1,SysVinit/man1/{last,lastb}.1,procps/man1/kill.1,util-linux/man1/{mesg,wall}.1,netkit/man1/write.1,nfs-utils/man8/rquotad.8} | |
672cf0af | 404 | # following modutils changes |
85412686 JB |
405 | for f in src/ja/manual/modutils/man8/{depmod,insmod,lsmod,modinfo,modprobe,rmmod} ; do |
406 | %{__mv} ${f}.8 ${f}.modutils.8 | |
672cf0af JB |
407 | done |
408 | # avoid filename conflict | |
85412686 | 409 | %{__mv} src/ja/manual/netkit/man8/ftpd.{8,8n} |
664977a6 MK |
410 | # remove files existing in main man-pages tarball |
411 | # note: (should we keep those from main tarball or ja tarball?) | |
85412686 JB |
412 | %{__rm} src/ja/manual/GNU_fileutils/man1/{chgrp,chmod,chown,cp,dd,df,du,install,ln,ls,mkdir,mkfifo,mknod,mv,rm,rmdir,touch}.1 |
413 | %{__rm} src/ja/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 | |
414 | %{__rm} src/ja/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 | |
415 | %{__rm} src/ja/manual/lpr-linux/man1/{lpq,lpr,lprm}.1 | |
416 | %{__rm} src/ja/manual/net-tools/man1/hostname.1 | |
417 | %{__rm} src/ja/manual/netatalk/man1/timeout.1 | |
418 | %{__rm} src/ja/manual/procps/man1/uptime.1 | |
1fb44808 | 419 | %{__rm} src/ja/manual/util-linux/man1/kill.1 |
85412686 JB |
420 | %{__rm} src/ja/manual/bind/man7/hostname.7 |
421 | %{__rm} src/ja/manual/cups/man8/lpc.8 | |
65aa3334 | 422 | for f in 1 3 4 5 6 7 8 ; do |
85412686 | 423 | mv -i src/ja/manual/*/man${f}/* src/ja/man${f} |
672cf0af | 424 | done |
85412686 | 425 | |
61e15330 | 426 | # zh_CN: cleanup must be done after build (in build stage) |
85412686 JB |
427 | |
428 | # individual man pages fixes | |
429 | ||
71782a41 | 430 | # unify name |
85412686 JB |
431 | %{__mv} src/de/man7/{iso_8859_1,iso_8859-1}.7 |
432 | %{__mv} src/es/man4/magic.4 src/es/man5/magic.5 | |
433 | %{__mv} src/es/man8/sync.8 src/es/man1/sync.1 | |
85412686 | 434 | %{__mv} src/hu/man1/gpm.1 src/hu/man8/gpm.8 |
59887c80 | 435 | # man1/sync.1 already exists |
85412686 JB |
436 | %{__rm} src/hu/man8/sync.8 |
437 | %undos src/it/man7/{iso-8859-2,iso_8859_2}.7 | |
438 | %{__mv} src/ja/man4/magic.4 src/ja/man5/magic.5 | |
439 | %{__mv} src/ja/man8/nslookup.8 src/ja/man1/nslookup.1 | |
440 | %{__mv} src/ko/man8/sync.8 src/ko/man1/sync.1 | |
59887c80 | 441 | # filename typo? |
85412686 | 442 | %{__mv} src/pl/man5/{at_acces,at_access}.5 |
59887c80 | 443 | # man1/sync.1 already exists |
85412686 JB |
444 | %{__rm} src/pl/man8/sync.8 |
445 | %{__mv} src/pt_BR/man8/sync.8 src/pt_BR/man1/sync.1 | |
446 | %{__mv} src/ru/man8/sync.8 src/ru/man1/sync.1 | |
61e15330 | 447 | # zh: handler later (after build) |
ae956556 | 448 | |
2bb77790 ŁK |
449 | %patch1 -p1 -d src/C |
450 | %patch4 -p1 -d src | |
672cf0af | 451 | |
1b885887 ER |
452 | # patching creates backups |
453 | find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -rf | |
454 | ||
9e5b134d JB |
455 | # merge our "extra" tarball |
456 | ||
85412686 | 457 | # apply man-pages-extra, preventing overwriting of already existing man pages |
78dd76f6 JB |
458 | for d in man-pages-extra/C/man* ; do |
459 | mv -i $d/*.* src/C/${d#man-pages-extra/C/} | |
85412686 | 460 | done |
1a4c72ed | 461 | # note: cs and zh_CN are omitted here and processed in separate special pass |
61e15330 | 462 | for d in man-pages-extra/{de,es,fi,fr,hu,id,it,ja,ko,nl,pl,pt_BR,ru}/man* ; do |
85412686 | 463 | mv -i $d/*.* src/${d#man-pages-extra/} |
672cf0af | 464 | done |
61e15330 JB |
465 | for d in man-pages-extra/zh_CN/man* ; do |
466 | mv -i $d/*.* src/zh/src/${d#man-pages-extra/zh_CN/} | |
467 | done | |
672cf0af | 468 | |
85412686 JB |
469 | ln -sf pt_BR src/pt |
470 | ||
471 | # remove man pages existing in other packages | |
672cf0af | 472 | |
71782a41 | 473 | # time |
85412686 | 474 | %{__rm} src/C/man1/time.1 |
672cf0af | 475 | # ftp servers |
85412686 | 476 | %{__rm} src/C/man5/ftpusers.5 |
71782a41 | 477 | |
85412686 JB |
478 | %build |
479 | # some man-pages require build step | |
480 | ||
9e5b134d JB |
481 | # cs: prepare man pages and apply extra |
482 | LANG=en_GB.UTF-8 \ | |
483 | %{__make} -C src/cs latest | |
484 | %{__mv} src/cs/latest/man* src/cs | |
485 | rmdir src/cs/latest | |
486 | for d in man-pages-extra/cs/man* ; do | |
487 | mv -i $d/*.* src/${d#man-pages-extra/} | |
488 | done | |
489 | ||
85412686 JB |
490 | # tr: make man pages from XML (note: compiles some utility) |
491 | %{__make} -C src/tr/source | |
492 | find src/tr/tr -name '*.gz' | xargs gzip -d | |
493 | %{__mv} src/tr/tr/man* src/tr | |
494 | ||
61e15330 JB |
495 | # zh: prepare zh_CN and zh_TW |
496 | cd src/zh | |
497 | %{__aclocal} | |
498 | %{__autoconf} | |
499 | %{__automake} | |
500 | %configure | |
501 | %{__make} | |
502 | cd ../.. | |
503 | for l in zh_CN zh_TW ; do | |
504 | install -d src/${l} | |
505 | for d in man{1,2,3,4,5,6,7,8,n} ; do | |
506 | ln -snf ../zh/src/${d}/${l} src/${l}/${d} | |
507 | done | |
508 | done | |
509 | # zh_*: man1/sync.1 already exists | |
510 | %{__rm} src/zh_CN/man8/sync.8 | |
511 | %{__rm} src/zh_TW/man8/sync.8 | |
512 | ||
85412686 | 513 | # per-package lists / tarballs production |
71782a41 JB |
514 | package=NONE |
515 | while read line ; do | |
516 | if echo $line | grep -q '^\[.\+\]$' ; then | |
517 | package=`echo $line | sed -e 's/^\[//;s/\]$//;'` | |
95ea7f43 | 518 | elif ! echo $line | grep -q '^#' ; then |
85412686 | 519 | if [ -f "src/C/$line" ]; then |
71782a41 JB |
520 | echo "$line" >> ${package}-man.list |
521 | fi | |
85412686 JB |
522 | for l in %{man_langs} ; do |
523 | if [ -f "src/$l/$line" ]; then | |
71782a41 JB |
524 | echo "$l/$line" >> ${package}-man.list |
525 | fi | |
526 | done | |
527 | fi | |
528 | done < %{SOURCE100} | |
85412686 JB |
529 | %if %{with tars} |
530 | rm -rf tarsrc tar | |
531 | install -d tarsrc tar | |
532 | cd tarsrc | |
533 | ln -snf ../src/[!C]* ../src/C/man* ../man-pages-extra/README.*-pages . | |
534 | cd .. | |
71782a41 JB |
535 | for l in *-man.list ; do |
536 | t=`basename $l .list` | |
85412686 | 537 | if [ -f tarsrc/README.${t}-pages ]; then |
71782a41 JB |
538 | echo "README.${t}-pages" >> "$l" |
539 | fi | |
1a4c72ed | 540 | tar chJf tar/${t}-pages.tar.xz -C tarsrc --files-from "$l" |
71782a41 | 541 | done |
71782a41 JB |
542 | %endif |
543 | ||
d2c978c2 | 544 | %install |
545 | rm -rf $RPM_BUILD_ROOT | |
331090ee | 546 | install -d $RPM_BUILD_ROOT%{_mandir}/man{1,2,3,4,5,6,7,8,0p,1p,3p} |
45cdc2e5 | 547 | |
85412686 JB |
548 | # install C man pages |
549 | for n in src/C/man{1,2,3,4,5,6,7,8,0p,1p,3p}/*; do | |
95ea7f43 | 550 | bn=${n#src/C/} |
85412686 | 551 | install -m644 $n $RPM_BUILD_ROOT%{_mandir}/$bn |
d2c978c2 | 552 | done |
85412686 | 553 | # drop man pages packaged separately |
2bb77790 | 554 | grep '^man' glibc-man.list | sed -e "s,^,$RPM_BUILD_ROOT%{_mandir}/," | xargs -r %{__rm} |
85412686 JB |
555 | # rpcbind, formerly glibc |
556 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/rpcinfo.8 | |
557 | # gawk | |
558 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{gawk,igawk}.1 | |
95ea7f43 JB |
559 | # libaio |
560 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{aio_init,lio_listio}.3 | |
85412686 JB |
561 | # shadow (but not pwdutils!); shadow(5) is missing in pwdutils too |
562 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man5/passwd.5 | |
d5f41404 | 563 | |
85412686 JB |
564 | # install localized man pages, only for installed C man pages |
565 | for l in %{man_langs} ; do | |
672cf0af | 566 | install -d $RPM_BUILD_ROOT%{_mandir}/$l/man{1,2,3,4,5,6,7,8} |
85412686 JB |
567 | for n in $RPM_BUILD_ROOT%{_mandir}/man{1,2,3,4,5,6,7,8}/*; do |
568 | bn=$(basename $(dirname $n))/$(basename $n) | |
569 | if [ -f src/$l/$bn ]; then | |
570 | install -m644 src/$l/$bn $RPM_BUILD_ROOT%{_mandir}/$l/$bn | |
b0e8db7f | 571 | fi |
572 | done | |
573 | done | |
308d755b | 574 | |
e780c0e9 | 575 | # files with just .so links pointing to non-existing man pages |
85412686 | 576 | # modules.2 |
d33d2eab | 577 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/de/man2/{create_module,delete_module,get_kernel_syms,init_module}.2 |
85412686 | 578 | # obsolete.2 |
9e5b134d | 579 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/{cs,de,es,ko,nl,pl,pt,ru}/man2/{oldfstat,oldlstat,oldolduname,oldstat,olduname}.2 |
95ea7f43 JB |
580 | # undocumented.7 (exists in es, but not installed because it's not in C manuals) |
581 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/es/man5/networks.5 | |
582 | # clock_getres.3 (packaged in glibc, but these links exist only in fr manuals, not C) | |
583 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/fr/man2/{clock_getres,clock_gettime,clock_settime}.2 | |
85412686 | 584 | # undocumented.7 |
95ea7f43 | 585 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/ru/man5/networks.5 |
85412686 JB |
586 | # statfs.2 |
587 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/pl/man2/fstatfs.2 | |
e780c0e9 | 588 | |
d2c978c2 | 589 | %clean |
590 | rm -rf $RPM_BUILD_ROOT | |
591 | ||
592 | %files | |
44b81d9f | 593 | %defattr(644,root,root,755) |
85412686 JB |
594 | %{_mandir}/man1/*.1* |
595 | %{_mandir}/man2/*.2* | |
596 | %{_mandir}/man3/*.3* | |
597 | %{_mandir}/man4/*.4* | |
598 | %{_mandir}/man5/*.5* | |
599 | %{_mandir}/man6/*.6* | |
600 | %{_mandir}/man7/*.7* | |
601 | %{_mandir}/man8/*.8* | |
9e5b134d | 602 | %lang(cs) %{_mandir}/cs/man*/* |
d5f41404 | 603 | %lang(de) %{_mandir}/de/man*/* |
604 | %lang(es) %{_mandir}/es/man*/* | |
605 | %lang(fi) %{_mandir}/fi/man*/* | |
606 | %lang(fr) %{_mandir}/fr/man*/* | |
607 | %lang(hu) %{_mandir}/hu/man*/* | |
608 | %lang(it) %{_mandir}/it/man*/* | |
609 | %lang(ja) %{_mandir}/ja/man*/* | |
029d2616 | 610 | %lang(ko) %{_mandir}/ko/man*/* |
d5f41404 | 611 | %lang(nl) %{_mandir}/nl/man*/* |
612 | %lang(pl) %{_mandir}/pl/man*/* | |
029d2616 | 613 | %lang(pt) %{_mandir}/pt/man*/* |
85412686 | 614 | # packaged as plain pt for now |
e83da0a4 | 615 | #%lang(pt_BR) %{_mandir}/pt_BR/man*/* |
d5f41404 | 616 | %lang(ru) %{_mandir}/ru/man*/* |
b070770a | 617 | %lang(tr) %{_mandir}/tr/man*/* |
78e97ba6 | 618 | %lang(uk) %{_mandir}/uk/man*/* |
51268b8a | 619 | %lang(zh_CN) %{_mandir}/zh_CN/man*/* |
61e15330 | 620 | %lang(zh_TW) %{_mandir}/zh_TW/man*/* |
331090ee | 621 | |
622 | %files posix | |
623 | %defattr(644,root,root,755) | |
85412686 JB |
624 | %dir %{_mandir}/man0p |
625 | %{_mandir}/man0p/*.0p* | |
626 | %dir %{_mandir}/man1p | |
627 | %{_mandir}/man1p/*.1p* | |
628 | %dir %{_mandir}/man3p | |
629 | %{_mandir}/man3p/*.3p* |