]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - python(abi) cap is not provided automatically (because /usr/bin/python matches | |
4 | # ELF first; it should be provided by python-libs not binary anyway) | |
5 | # - repackaging when lzma is not installed (todo: fix digest signature of header) | |
6 | # rpmbuild computes digest when writing package to temporary file, then adds a few | |
7 | # tags (incl. digest) and writes whole package to destination file; | |
8 | # repackaging uses unchanged "immutable header" image from original rpm, also | |
9 | # preserving payload format and compressor from original rpm, _not_ current settings | |
10 | # | |
11 | # Conditional build: | |
12 | %bcond_with static # build static rpm+rpmi | |
13 | %bcond_without apidocs # don't generate documentation with doxygen | |
14 | %bcond_with autoreqdep # autogenerate package name deps in addition to sonames/perl(X) | |
15 | %bcond_without python # don't build python bindings | |
16 | %bcond_without selinux # build without selinux support | |
17 | %bcond_without system_libmagic # don't use system libmagic | |
18 | %bcond_with neon # build with HTTP/WebDAV support (neon library) | |
19 | # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc" | |
20 | # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++" | |
21 | # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E" | |
22 | ||
23 | # versions of required libraries | |
24 | %define reqdb_ver 4.4.20 | |
25 | %define reqpopt_ver 1.10.6 | |
26 | %define beecrypt_ver 2:4.1.2-4 | |
27 | %define sover 4.4 | |
28 | Summary: RPM Package Manager | |
29 | Summary(de.UTF-8): RPM Packet-Manager | |
30 | Summary(es.UTF-8): Gestor de paquetes RPM | |
31 | Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM | |
32 | Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM | |
33 | Summary(ru.UTF-8): Менеджер пакетов от RPM | |
34 | Summary(uk.UTF-8): Менеджер пакетів від RPM | |
35 | Name: rpm | |
36 | Version: 4.4.7 | |
37 | Release: 13 | |
38 | License: GPL | |
39 | Group: Base | |
40 | Source0: ftp://jbj.org/pub/rpm-4.4.x/%{name}-%{version}.tar.gz | |
41 | # Source0-md5: d012c81b5169f7377ea4a36607e1445e | |
42 | Source1: %{name}.groups | |
43 | Source2: %{name}.platform | |
44 | Source3: %{name}-install-tree | |
45 | Source4: %{name}-find-spec-bcond | |
46 | Source5: %{name}-find-lang | |
47 | Source6: %{name}-groups-po.awk | |
48 | Source7: %{name}-compress-doc | |
49 | Source8: %{name}-check-files | |
50 | Source9: %{name}-php-provides | |
51 | Source10: %{name}-php-requires | |
52 | Source11: %{name}.sysinfo | |
53 | Source12: perl.prov | |
54 | Source13: %{name}-user_group.sh | |
55 | Source14: %{name}.sysconfig | |
56 | Source30: builder | |
57 | Source31: adapter.awk | |
58 | Source32: pldnotify.awk | |
59 | # http://svn.pld-linux.org/banner.sh/ | |
60 | Source33: banner.sh | |
61 | Patch0: %{name}-pl.po.patch | |
62 | Patch1: %{name}-rpmrc.patch | |
63 | Patch2: %{name}-arch.patch | |
64 | Patch3: %{name}-rpmpopt.patch | |
65 | Patch4: %{name}-perl-macros.patch | |
66 | Patch5: %{name}-perl-req-perlfile.patch | |
67 | Patch6: %{name}-noexpand.patch | |
68 | Patch7: %{name}-scripts-closefds.patch | |
69 | Patch8: %{name}-python-macros.patch | |
70 | Patch9: %{name}-gettext-in-header.patch | |
71 | Patch10: %{name}-compress-doc.patch | |
72 | Patch11: %{name}-rpmdeps-segv.patch | |
73 | Patch12: %{name}-system_libs.patch | |
74 | Patch13: %{name}-bb-and-short-circuit.patch | |
75 | Patch14: %{name}-etc_dir.patch | |
76 | Patch15: %{name}-system_libs-more.patch | |
77 | Patch16: %{name}-php-deps.patch | |
78 | Patch17: %{name}-ldconfig-always.patch | |
79 | Patch18: %{name}-perl_req.patch | |
80 | Patch19: %{name}-link.patch | |
81 | Patch20: %{name}-magic-usesystem.patch | |
82 | Patch21: %{name}-dontneedutils.patch | |
83 | Patch22: %{name}-provides-dont-obsolete.patch | |
84 | Patch23: %{name}-examplesaredoc.patch | |
85 | Patch24: %{name}-po.patch | |
86 | Patch25: %{name}-getcwd.patch | |
87 | Patch26: %{name}-notsc.patch | |
88 | Patch27: %{name}-hack-norpmlibdep.patch | |
89 | Patch28: %{name}-makefile-no_myLDADD_deps.patch | |
90 | Patch29: %{name}-libdir64.patch | |
91 | Patch30: %{name}-libdir-links.patch | |
92 | Patch31: %{name}-missing-prototypes.patch | |
93 | Patch32: %{name}-pld-autodep.patch | |
94 | Patch33: %{name}-arch-x86_64.patch | |
95 | Patch34: %{name}-epoch0.patch | |
96 | Patch35: %{name}-perl_req-INC_dirs.patch | |
97 | Patch36: %{name}-debuginfo.patch | |
98 | Patch37: %{name}-doxygen_hack.patch | |
99 | Patch38: %{name}-empty-rpmlock-path.patch | |
100 | Patch39: %{name}-pythondeps.patch | |
101 | Patch40: %{name}-vendor.patch | |
102 | Patch41: %{name}-reduce-stack-usage.patch | |
103 | Patch42: %{name}-old-fileconflicts-behaviour.patch | |
104 | Patch43: %{name}-patch-quote.patch | |
105 | Patch44: %{name}-no-neon.patch | |
106 | Patch45: %{name}-no-sqlite.patch | |
107 | Patch46: %{name}-mono.patch | |
108 | ||
109 | Patch48: %{name}-requireseq.patch | |
110 | Patch49: %{name}-p4.patch | |
111 | Patch50: %{name}-macros.patch | |
112 | Patch51: %{name}-cleanlibdirs.patch | |
113 | Patch52: %{name}-morearchs.patch | |
114 | Patch53: %{name}-lzma.patch | |
115 | Patch54: %{name}-lzma2.patch | |
116 | Patch55: %{name}-truncate-cvslog.patch | |
117 | Patch56: %{name}-skip-backups.patch | |
118 | Patch57: %{name}-as_needed-fix.patch | |
119 | Patch58: %{name}-repackage-wo-lzma.patch | |
120 | Patch59: %{name}-libtool-deps.patch | |
121 | Patch60: %{name}-CVE-2006-5466.patch | |
122 | Patch61: %{name}-build-failure-error.patch | |
123 | Patch62: %{name}-mcontext.patch | |
124 | Patch63: %{name}-FileDigestParameterized.patch | |
125 | Patch64: %{name}-iconv-translit.patch | |
126 | URL: http://wraptastic.org/ | |
127 | BuildRequires: autoconf >= 2.57 | |
128 | BuildRequires: automake | |
129 | BuildRequires: beecrypt-devel >= %{beecrypt_ver} | |
130 | BuildRequires: bzip2-devel >= 1.0.2-17 | |
131 | BuildRequires: db-devel >= %{reqdb_ver} | |
132 | BuildRequires: elfutils-devel >= 0.108 | |
133 | BuildRequires: gettext-devel >= 0.11.4-2 | |
134 | %{?with_system_libmagic:BuildRequires: libmagic-devel} | |
135 | %{?with_selinux:BuildRequires: libselinux-devel >= 1.18} | |
136 | # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros | |
137 | BuildRequires: libstdc++-devel | |
138 | BuildRequires: libtool >= 1:1.4.2-9 | |
139 | %if %{with neon} | |
140 | BuildRequires: libxml2-devel | |
141 | BuildRequires: neon-devel >= 0.25.5 | |
142 | %endif | |
143 | BuildRequires: patch >= 2.2 | |
144 | BuildRequires: popt-devel >= %{reqpopt_ver} | |
145 | %{?with_python:BuildRequires: python-devel >= 1:2.5} | |
146 | BuildRequires: python-modules >= 1:2.5 | |
147 | BuildRequires: rpm-perlprov | |
148 | %{?with_python:BuildRequires: rpm-pythonprov} | |
149 | BuildRequires: zlib-devel | |
150 | %if %{with apidocs} | |
151 | BuildRequires: doxygen | |
152 | BuildRequires: ghostscript | |
153 | BuildRequires: graphviz | |
154 | BuildRequires: tetex-pdftex | |
155 | %endif | |
156 | %if %{with static} | |
157 | # Require static library only for static build | |
158 | BuildRequires: beecrypt-static >= %{beecrypt_ver} | |
159 | BuildRequires: bzip2-static >= 1.0.2-17 | |
160 | BuildRequires: db-static >= %{reqdb_ver} | |
161 | BuildRequires: elfutils-static | |
162 | BuildRequires: glibc-static >= 2.2.94 | |
163 | %{?with_system_libmagic:BuildRequires: libmagic-static} | |
164 | %{?with_selinux:BuildRequires: libselinux-static >= 1.18} | |
165 | BuildRequires: popt-static >= %{reqpopt_ver} | |
166 | BuildRequires: zlib-static | |
167 | %endif | |
168 | Requires: %{name}-base = %{version}-%{release} | |
169 | Requires: %{name}-lib = %{version}-%{release} | |
170 | Requires: beecrypt >= %{beecrypt_ver} | |
171 | Requires: popt >= %{reqpopt_ver} | |
172 | %{!?with_static:Obsoletes: rpm-utils-static} | |
173 | Conflicts: glibc < 2.2.92 | |
174 | # ABI changes in rpm, new poldek needed | |
175 | Conflicts: poldek < 0.20.1-0.20070105.0 | |
176 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
177 | ||
178 | %define _binary_payload w9.gzdio | |
179 | %define _noPayloadPrefix 1 | |
180 | ||
181 | # don't require very fresh rpm.macros to build | |
182 | %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,} | |
183 | %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4 | |
184 | %define ppc ppc ppc7400 ppc7450 | |
185 | %define x8664 amd64 ia32e x86_64 | |
186 | ||
187 | # stabilize new build environment | |
188 | %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc} | |
189 | %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++} | |
190 | %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E} | |
191 | ||
192 | %define _rpmlibdir /usr/lib/rpm | |
193 | ||
194 | %define specflags -fno-strict-aliasing | |
195 | ||
196 | %description | |
197 | RPM is a powerful package manager, which can be used to build, | |
198 | install, query, verify, update, and uninstall individual software | |
199 | packages. A package consists of an archive of files, and package | |
200 | information, including name, version, and description. | |
201 | ||
202 | %description -l de.UTF-8 | |
203 | RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur | |
204 | Installation, Anfrage, Verifizierung, Aktualisierung und | |
205 | Uninstallation individueller Softwarepakete. Ein Paket besteht aus | |
206 | einem Archiv Dateien und Paketinformation, inklusive Name, Version und | |
207 | Beschreibung. | |
208 | ||
209 | %description -l es.UTF-8 | |
210 | RPM es un poderoso administrador de paquetes, que puede ser usado para | |
211 | construir, instalar, pesquisar, verificar, actualizar y desinstalar | |
212 | paquetes individuales de software. Un paquete consiste en un | |
213 | almacenaje de archivos, y información sobre el paquete, incluyendo | |
214 | nombre, versión y descripción. | |
215 | ||
216 | %description -l pl.UTF-8 | |
217 | RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on | |
218 | przebudowanie, instalację czy weryfikację dowolnego pakietu. | |
219 | Informacje dotyczące każdego pakietu, takie jak jego opis, lista | |
220 | plików wchodzących w skład pakietu, zależności od innych pakietów, są | |
221 | przechowywane w bazie danych i można je uzyskać za pomocą opcji | |
222 | odpytywania programu rpm. | |
223 | ||
224 | %description -l pt_BR.UTF-8 | |
225 | RPM é um poderoso gerenciador de pacotes, que pode ser usado para | |
226 | construir, instalar, pesquisar, verificar, atualizar e desinstalar | |
227 | pacotes individuais de software. Um pacote consiste de um conjunto de | |
228 | arquivos e informações adicionais, incluindo nome, versão e descrição | |
229 | do pacote, permissões dos arquivos, etc. | |
230 | ||
231 | %description -l ru.UTF-8 | |
232 | RPM - это мощный менеджер пакетов, который может быть использован для | |
233 | создания, инсталляции, запросов (query), проверки, обновления и | |
234 | удаления программных пакетов. Пакет состоит из файлового архива и | |
235 | служебной информации, включающей название, версию, описание и другие | |
236 | данные о пакете. | |
237 | ||
238 | %description -l uk.UTF-8 | |
239 | RPM - це потужний менеджер пакетів, що може бути використаний для | |
240 | створення, інсталяції, запитів (query), перевірки, поновлення та | |
241 | видалення програмних пакетів. Пакет складається з файлового архіву та | |
242 | службової інформації, що містить назву, версію, опис та іншу | |
243 | інформацію про пакет. | |
244 | ||
245 | %package base | |
246 | Summary: RPM base package - scripts used by rpm packages themselves | |
247 | Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm | |
248 | Group: Base | |
249 | Requires: filesystem | |
250 | Obsoletes: vserver-rpm | |
251 | ||
252 | %description base | |
253 | The RPM base package contains scripts used by rpm packages themselves. | |
254 | These include: | |
255 | - scripts for adding/removing groups and users needed for rpm | |
256 | packages, | |
257 | - banner.sh to display %%banner messages from rpm scriptlets. | |
258 | ||
259 | %description base -l pl.UTF-8 | |
260 | Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm. | |
261 | Zawiera on: | |
262 | - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm, | |
263 | - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm. | |
264 | ||
265 | %package lib | |
266 | Summary: RPMs library | |
267 | Summary(pl.UTF-8): Biblioteki RPM-a | |
268 | Group: Libraries | |
269 | Requires: beecrypt >= %{beecrypt_ver} | |
270 | Requires: db >= %{reqdb_ver} | |
271 | %{?with_selinux:Requires: libselinux >= 1.18} | |
272 | %{?with_system_libmagic:Requires: libmagic >= 1.15-2} | |
273 | Requires: popt >= %{reqpopt_ver} | |
274 | Obsoletes: rpm-libs | |
275 | # avoid SEGV caused by mixed db versions | |
276 | Conflicts: poldek < 0.18.1-16 | |
277 | Suggests: lzma | |
278 | ||
279 | %description lib | |
280 | RPMs library. | |
281 | ||
282 | %description lib -l pl.UTF-8 | |
283 | Biblioteki RPM-a. | |
284 | ||
285 | %package devel | |
286 | Summary: Header files for rpm libraries | |
287 | Summary(de.UTF-8): Header-Dateien für rpm Libraries | |
288 | Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm | |
289 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm | |
290 | Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM | |
291 | Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами | |
292 | Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm | |
293 | Group: Development/Libraries | |
294 | Requires: %{name}-lib = %{version}-%{release} | |
295 | Requires: beecrypt-devel >= %{beecrypt_ver} | |
296 | Requires: bzip2-devel | |
297 | Requires: db-devel >= %{reqdb_ver} | |
298 | Requires: elfutils-devel | |
299 | %{?with_system_libmagic:Requires: libmagic-devel} | |
300 | %{?with_selinux:Requires: libselinux-devel} | |
301 | Requires: popt-devel >= %{reqpopt_ver} | |
302 | Requires: zlib-devel | |
303 | ||
304 | %description devel | |
305 | The RPM packaging system includes C libraries that make it easy to | |
306 | manipulate RPM packages and databases. They are intended to ease the | |
307 | creation of graphical package managers and other tools that need | |
308 | intimate knowledge of RPM packages. This package contains header files | |
309 | for these libraries. | |
310 | ||
311 | %description devel -l de.UTF-8 | |
312 | Der RPM-Packensystem enthält eine C-Library, die macht es einfach | |
313 | RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für | |
314 | Vereinfachung des Schaffens grafischer Paket-Manager und anderer | |
315 | Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen. | |
316 | ||
317 | %description devel -l es.UTF-8 | |
318 | El sistema de empaquetado RPM incluye una biblioteca C que vuelve | |
319 | fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es | |
320 | facilitar la creación de administradores gráficos de paquetes y otras | |
321 | herramientas que necesiten un conocimiento profundo de paquetes RPM. | |
322 | ||
323 | %description devel -l pl.UTF-8 | |
324 | System RPM zawiera biblioteki C, które ułatwiają manipulowanie | |
325 | pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie | |
326 | graficznych programów zarządzających pakietami oraz innych narzędzi, | |
327 | które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet | |
328 | zawiera pliki nagłówkowe wspomnianych bibliotek. | |
329 | ||
330 | %description devel -l pt_BR.UTF-8 | |
331 | O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil | |
332 | a manipulação de pacotes e bases de dados RPM. Seu objetivo é | |
333 | facilitar a criação de gerenciadores gráficos de pacotes e outras | |
334 | ferramentas que precisem de conhecimento profundo de pacotes RPM. | |
335 | ||
336 | %description devel -l ru.UTF-8 | |
337 | Система управления пакетами RPM содержит библиотеку C, которая | |
338 | упрощает манипуляцию пакетами RPM и соответствующими базами данных. | |
339 | Эта библиотека предназначена для облегчения создания графических | |
340 | пакетных менеджеров и других утилит, которым необходимо работать с | |
341 | пакетами RPM. | |
342 | ||
343 | %description devel -l uk.UTF-8 | |
344 | Система керування пакетами RPM містить бібліотеку C, котра спрощує | |
345 | роботу з пакетами RPM та відповідними базами даних. Ця бібліотека | |
346 | призначена для полегшення створення графічних пакетних менеджерів та | |
347 | інших утиліт, що працюють з пакетами RPM. | |
348 | ||
349 | %package static | |
350 | Summary: RPM static libraries | |
351 | Summary(de.UTF-8): RPMs statische Libraries | |
352 | Summary(pl.UTF-8): Biblioteki statyczne RPM-a | |
353 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM | |
354 | Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами | |
355 | Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm | |
356 | Group: Development/Libraries | |
357 | Requires: %{name}-devel = %{version}-%{release} | |
358 | Requires: beecrypt-static >= %{beecrypt_ver} | |
359 | Requires: bzip2-static | |
360 | Requires: db-static >= %{reqdb_ver} | |
361 | Requires: elfutils-static | |
362 | %{?with_system_libmagic:Requires: libmagic-static} | |
363 | Requires: popt-static >= %{reqpopt_ver} | |
364 | Requires: zlib-static | |
365 | ||
366 | %description static | |
367 | RPM static libraries. | |
368 | ||
369 | %description static -l de.UTF-8 | |
370 | RPMs statische Libraries. | |
371 | ||
372 | %description static -l pl.UTF-8 | |
373 | Biblioteki statyczne RPM-a. | |
374 | ||
375 | %description static -l pt_BR.UTF-8 | |
376 | Bibliotecas estáticas para desenvolvimento. | |
377 | ||
378 | %description static -l ru.UTF-8 | |
379 | Система управления пакетами RPM содержит библиотеку C, которая | |
380 | упрощает манипуляцию пакетами RPM и соответствующими базами данных. | |
381 | Это статическая библиотека RPM. | |
382 | ||
383 | %description static -l uk.UTF-8 | |
384 | Система керування пакетами RPM містить бібліотеку C, котра спрощує | |
385 | роботу з пакетами RPM та відповідними базами даних. Це статична | |
386 | бібліотека RPM. | |
387 | ||
388 | %package utils | |
389 | Summary: Additional utilities for managing rpm packages and database | |
390 | Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken | |
391 | Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami | |
392 | Group: Applications/File | |
393 | Requires: %{name} = %{version}-%{release} | |
394 | Requires: popt >= %{reqpopt_ver} | |
395 | ||
396 | %description utils | |
397 | Additional utilities for managing rpm packages and database. | |
398 | ||
399 | %description utils -l de.UTF-8 | |
400 | Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken. | |
401 | ||
402 | %description utils -l pl.UTF-8 | |
403 | Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami. | |
404 | ||
405 | %package utils-perl | |
406 | Summary: Additional utilities for managing rpm packages and database | |
407 | Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken | |
408 | Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami | |
409 | Group: Applications/File | |
410 | Requires: %{name}-utils = %{version}-%{release} | |
411 | Requires: popt >= %{reqpopt_ver} | |
412 | ||
413 | %description utils-perl | |
414 | Additional utilities for managing rpm packages and database. | |
415 | ||
416 | %description utils-perl -l de.UTF-8 | |
417 | Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken. | |
418 | ||
419 | %description utils-perl -l pl.UTF-8 | |
420 | Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami. | |
421 | ||
422 | %package utils-static | |
423 | Summary: Static rpm utilities | |
424 | Summary(pl.UTF-8): Statyczne narzędzia rpm | |
425 | Group: Applications/System | |
426 | Requires: %{name} = %{version}-%{release} | |
427 | ||
428 | %description utils-static | |
429 | Static rpm utilities for repairing system in case something with | |
430 | shared libraries used by rpm become broken. Currently it contains rpmi | |
431 | binary, which can be used to install/upgrade/remove packages without | |
432 | using shared libraries (well, in fact with exception of NSS modules). | |
433 | ||
434 | %description utils-static -l pl.UTF-8 | |
435 | Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś | |
436 | związanego z bibliotekami współdzielonymi używanymi przez rpm-a. | |
437 | Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji, | |
438 | uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych | |
439 | (z wyjątkiem modułów NSS). | |
440 | ||
441 | %package build | |
442 | Summary: Scripts for building binary RPM packages | |
443 | Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete | |
444 | Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów | |
445 | Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes | |
446 | Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов | |
447 | Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів | |
448 | Group: Applications/File | |
449 | Requires(pre): findutils | |
450 | Requires: %{name}-build-macros >= 1.314 | |
451 | Requires: %{name}-utils = %{version}-%{release} | |
452 | Requires: /bin/id | |
453 | Requires: awk | |
454 | # we need fixed binutils for -feliminate-dwarf2-dups | |
455 | Requires: binutils >= 3:2.17.50.0.3-2 | |
456 | Requires: bzip2 | |
457 | Requires: chrpath >= 0.10-4 | |
458 | Requires: cpio | |
459 | Requires: diffutils | |
460 | Requires: elfutils | |
461 | Requires: file >= 4.17 | |
462 | Requires: fileutils | |
463 | Requires: findutils | |
464 | Requires: gcc >= 5:3.4 | |
465 | Requires: glibc-devel | |
466 | Requires: grep | |
467 | Requires: gzip | |
468 | Requires: lzma | |
469 | Requires: make | |
470 | Requires: patch | |
471 | Requires: sed | |
472 | Requires: sh-utils | |
473 | Requires: tar | |
474 | Requires: textutils | |
475 | Provides: rpmbuild(monoautodeps) | |
476 | Provides: rpmbuild(noauto) = 3 | |
477 | %ifarch %{x8664} | |
478 | Conflicts: automake < 1:1.7.9-2 | |
479 | Conflicts: libtool < 2:1.5-13 | |
480 | %endif | |
481 | ||
482 | %description build | |
483 | Scripts for building binary RPM packages. | |
484 | ||
485 | %description build -l de.UTF-8 | |
486 | Scripts fürs Bauen binärer RPM-Pakete. | |
487 | ||
488 | %description build -l pl.UTF-8 | |
489 | Skrypty pomocnicze do budowania binarnych RPM-ów. | |
490 | ||
491 | %description build -l pt_BR.UTF-8 | |
492 | Este pacote contém scripts e programas executáveis que são usados para | |
493 | construir pacotes usando o RPM. | |
494 | ||
495 | %description build -l ru.UTF-8 | |
496 | Различные вспомогательные скрипты и исполняемые программы, которые | |
497 | используются для сборки RPM'ов. | |
498 | ||
499 | %description build -l uk.UTF-8 | |
500 | Різноманітні допоміжні скрипти та утиліти, які використовуються для | |
501 | побудови RPM'ів. | |
502 | ||
503 | %package build-tools | |
504 | Summary: Scripts for managing .spec files and building RPM packages | |
505 | Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete | |
506 | Summary(pl.UTF-8): Skrypty pomocnicze do zarządznia plikami .spec i budowania RPM-ów | |
507 | Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes | |
508 | Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов | |
509 | Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів | |
510 | Group: Applications/File | |
511 | Requires: %{name}-build = %{version}-%{release} | |
512 | # these are optional | |
513 | #Requires: cvs | |
514 | Requires: wget | |
515 | ||
516 | %description build-tools | |
517 | Scripts for managing .spec files and building RPM packages. | |
518 | ||
519 | %description build-tools -l de.UTF-8 | |
520 | Scripts fürs Bauen RPM-Pakete. | |
521 | ||
522 | %description build-tools -l pl.UTF-8 | |
523 | Skrypty pomocnicze do zarządzania plikami .spec i do budowania RPM-ów. | |
524 | ||
525 | %description build-tools -l pt_BR.UTF-8 | |
526 | Este pacote contém scripts e programas executáveis que são usados para | |
527 | construir pacotes usando o RPM. | |
528 | ||
529 | %description build-tools -l ru.UTF-8 | |
530 | Различные вспомогательные скрипты и исполняемые программы, которые | |
531 | используются для сборки RPM'ов. | |
532 | ||
533 | %description build-tools -l uk.UTF-8 | |
534 | Різноманітні допоміжні скрипти та утиліти, які використовуються для | |
535 | побудови RPM'ів. | |
536 | ||
537 | %package perlprov | |
538 | Summary: Additional utilities for checking perl provides/requires in rpm packages | |
539 | Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen | |
540 | Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów perla w pakietach rpm | |
541 | Group: Applications/File | |
542 | Requires: %{name} = %{version}-%{release} | |
543 | Requires: perl-devel | |
544 | Requires: perl-modules | |
545 | ||
546 | %description perlprov | |
547 | Additional utilities for checking perl provides/requires in rpm | |
548 | packages. | |
549 | ||
550 | %description perlprov -l de.UTF-8 | |
551 | Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen. | |
552 | ||
553 | %description perlprov -l pl.UTF-8 | |
554 | Dodatkowe narzędzia do sprawdzenia zależności skryptów perla w | |
555 | pakietach rpm. | |
556 | ||
557 | %package pythonprov | |
558 | Summary: Python macros, which simplifies creation of rpm packages with Python software | |
559 | Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów rpm z programami napisanymi w Pythonie | |
560 | Group: Applications/File | |
561 | Requires: %{name} = %{version}-%{release} | |
562 | Requires: python | |
563 | Requires: python-modules | |
564 | ||
565 | %description pythonprov | |
566 | Python macros, which simplifies creation of rpm packages with Python | |
567 | software. | |
568 | ||
569 | %description pythonprov -l pl.UTF-8 | |
570 | Makra ułatwiające tworzenie pakietów rpm z programami napisanymi w | |
571 | Pythonie. | |
572 | ||
573 | %package php-pearprov | |
574 | Summary: Additional utilities for managing rpm packages and database | |
575 | Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w rpm | |
576 | Group: Applications/File | |
577 | Requires: %{name} = %{version}-%{release} | |
578 | Requires: sed >= 4.0 | |
579 | ||
580 | %description php-pearprov | |
581 | Additional utilities for checking php pear provides/requires in rpm | |
582 | packages. | |
583 | ||
584 | %description php-pearprov -l pl.UTF-8 | |
585 | Dodatkowe narzędzia do sprawdzenia zależności skryptów php pear w | |
586 | pakietach rpm. | |
587 | ||
588 | %package -n python-rpm | |
589 | Summary: Python interface to RPM library | |
590 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a | |
591 | Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM | |
592 | Group: Development/Languages/Python | |
593 | Requires: %{name} = %{version}-%{release} | |
594 | %pyrequires_eq python | |
595 | Obsoletes: rpm-python | |
596 | ||
597 | %description -n python-rpm | |
598 | The rpm-python package contains a module which permits applications | |
599 | written in the Python programming language to use the interface | |
600 | supplied by RPM (RPM Package Manager) libraries. | |
601 | ||
602 | This package should be installed if you want to develop Python | |
603 | programs that will manipulate RPM packages and databases. | |
604 | ||
605 | %description -n python-rpm -l pl.UTF-8 | |
606 | Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w | |
607 | Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a. | |
608 | ||
609 | Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w | |
610 | Pythonie programy manipulujące pakietami i bazami danych rpm. | |
611 | ||
612 | %description -n python-rpm -l pt_BR.UTF-8 | |
613 | O pacote rpm-python contém um módulo que permite que aplicações | |
614 | escritas em Python utilizem a interface fornecida pelas bibliotecas | |
615 | RPM (RPM Package Manager). | |
616 | ||
617 | Esse pacote deve ser instalado se você quiser desenvolver programas em | |
618 | Python para manipular pacotes e bancos de dados RPM. | |
619 | ||
620 | %package apidocs | |
621 | Summary: RPM API documentation and guides | |
622 | Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki | |
623 | Group: Documentation | |
624 | ||
625 | %description apidocs | |
626 | Documentation for RPM API and guides in HTML format generated from rpm | |
627 | sources by doxygen. | |
628 | ||
629 | %description apidocs -l pl.UTF-8 | |
630 | Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze | |
631 | źrodeł RPM-a przez doxygen. | |
632 | ||
633 | %prep | |
634 | %setup -q | |
635 | %patch0 -p1 | |
636 | %patch1 -p1 | |
637 | %patch2 -p1 | |
638 | %patch3 -p1 | |
639 | %patch4 -p1 | |
640 | %patch5 -p1 | |
641 | %patch6 -p1 | |
642 | %patch7 -p1 | |
643 | %patch8 -p1 | |
644 | %patch9 -p1 | |
645 | %patch10 -p1 | |
646 | %patch11 -p1 | |
647 | %patch12 -p1 | |
648 | %patch13 -p1 | |
649 | %patch14 -p1 | |
650 | %patch15 -p1 | |
651 | %patch16 -p1 | |
652 | %patch17 -p1 | |
653 | %patch18 -p1 | |
654 | sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in | |
655 | #cp -f platform.in macros.pld.in # what for? | |
656 | echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl | |
657 | echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl | |
658 | echo '# obsoleted file' > macros.python | |
659 | echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php | |
660 | echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php | |
661 | echo '%%define __mono_provides /usr/lib/rpm/mono-find-provides' > macros.mono | |
662 | echo '%%define __mono_requires /usr/lib/rpm/mono-find-requires' >> macros.mono | |
663 | install %{SOURCE5} scripts/find-lang.sh | |
664 | install %{SOURCE9} scripts/php.prov.in | |
665 | install %{SOURCE10} scripts/php.req.in | |
666 | install %{SOURCE12} scripts/perl.prov | |
667 | %patch19 -p1 | |
668 | %patch20 -p1 | |
669 | %patch21 -p1 | |
670 | %patch22 -p1 | |
671 | %patch23 -p1 | |
672 | %patch24 -p1 | |
673 | %patch25 -p1 | |
674 | %patch26 -p1 | |
675 | %patch27 -p1 | |
676 | %patch28 -p1 | |
677 | %patch29 -p1 | |
678 | %patch30 -p1 | |
679 | %patch31 -p1 | |
680 | %patch32 -p1 | |
681 | %patch33 -p1 | |
682 | %patch34 -p1 | |
683 | %patch35 -p0 | |
684 | %patch36 -p1 | |
685 | %patch37 -p1 | |
686 | %patch38 -p1 | |
687 | %patch39 -p1 | |
688 | %patch40 -p0 | |
689 | %patch41 -p1 | |
690 | %patch42 -p1 | |
691 | %patch43 -p1 | |
692 | %{!?with_neon:%patch44 -p1} | |
693 | %patch45 -p1 | |
694 | %patch46 -p1 | |
695 | %patch48 -p1 | |
696 | %patch49 -p1 | |
697 | %patch50 -p1 | |
698 | %patch51 -p1 | |
699 | #%patch52 -p1 | |
700 | %patch53 -p1 | |
701 | %patch54 -p1 | |
702 | %patch55 -p1 | |
703 | %patch56 -p1 | |
704 | %patch57 -p1 | |
705 | %patch58 -p1 | |
706 | %patch59 -p1 | |
707 | %patch60 -p0 | |
708 | %patch61 -p0 | |
709 | %patch62 -p1 | |
710 | %patch63 -p0 | |
711 | %patch64 -p1 | |
712 | ||
713 | cd scripts | |
714 | mv -f perl.req perl.req.in | |
715 | mv -f perl.prov perl.prov.in | |
716 | cd .. | |
717 | ||
718 | mv -f po/{no,nb}.po | |
719 | mv -f po/{sr,sr@Latn}.po | |
720 | ||
721 | rm -rf sqlite zlib db db3 popt rpmdb/db.h | |
722 | ||
723 | # generate Group translations to *.po | |
724 | awk -f %{SOURCE6} %{SOURCE1} | |
725 | ||
726 | # update macros paths | |
727 | for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do | |
728 | sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp | |
729 | mv -f ${f}.tmp $f | |
730 | done | |
731 | ||
732 | %build | |
733 | %if %{with system_libmagic} | |
734 | rm -rf file | |
735 | %else | |
736 | cd file | |
737 | %{__libtoolize} | |
738 | %{__aclocal} | |
739 | %{__autoheader} | |
740 | %{__autoconf} | |
741 | %{__automake} | |
742 | cd .. | |
743 | %endif | |
744 | ||
745 | %{__libtoolize} | |
746 | %{__gettextize} | |
747 | %{__aclocal} | |
748 | %{__autoheader} | |
749 | %{__autoconf} | |
750 | %{__automake} | |
751 | ||
752 | # config.guess doesn't handle athlon, so we have to change it by hand. | |
753 | # rpm checks for CPU type at runtime, but it looks better | |
754 | sed -i -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' -e 's|@host_cpu@|%{_target_cpu}|' macros.in | |
755 | ||
756 | CPPFLAGS="-Dglob=rpm_glob -Dglobfree=rpm_globfree"; export CPPFLAGS | |
757 | ||
758 | # pass CC and CXX too in case of building with some older configure macro | |
759 | # disable perl-RPM2 build, we have it in separate spec | |
760 | %configure \ | |
761 | CC="%{__newcc}" \ | |
762 | CXX="%{__newcxx}" \ | |
763 | CPP="%{__newcpp}" \ | |
764 | WITH_PERL_VERSION=no \ | |
765 | %{?with_autoreqdep:--enable-adding-packages-names-in-autogenerated-dependancies} \ | |
766 | --enable-shared \ | |
767 | --enable-static \ | |
768 | %{!?with_apidocs:--without-apidocs} \ | |
769 | %{?with_python:--with-python=2.5} \ | |
770 | %{!?with_python:--without-python} \ | |
771 | %{!?with_selinux:--without-selinux} \ | |
772 | --without-db | |
773 | ||
774 | # file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically | |
775 | %{__make} \ | |
776 | CC="%{__cc}" \ | |
777 | CXX="%{__cxx}" \ | |
778 | CPP="%{__cpp}" \ | |
779 | pylibdir=%{py_libdir} \ | |
780 | myLDFLAGS="%{rpmldflags}" \ | |
781 | file_LDFLAGS= \ | |
782 | debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt" \ | |
783 | staticLDFLAGS=%{?with_static:-all-static} | |
784 | ||
785 | %{?with_apidocs:%{__make} doxygen} | |
786 | ||
787 | %install | |
788 | rm -rf $RPM_BUILD_ROOT | |
789 | install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm,/var/lib/banner} | |
790 | ||
791 | %{__make} install \ | |
792 | DESTDIR=$RPM_BUILD_ROOT \ | |
793 | staticLDFLAGS=%{?with_static:-all-static} \ | |
794 | pylibdir=%{py_libdir} \ | |
795 | pkgbindir="%{_bindir}" | |
796 | ||
797 | echo "%{_target_cpu}-%{_target_vendor}-linux-gnu" > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform | |
798 | ||
799 | %ifarch %{ppc} | |
800 | #sed -e '/_target_platform/s/[%]{_target_cpu}/ppc/' \ | |
801 | # -i $RPM_BUILD_ROOT%{_rpmlibdir}/ppc74[05]0-linux/macros | |
802 | %endif | |
803 | ||
804 | rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides* | |
805 | rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl | |
806 | rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl | |
807 | ||
808 | install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl | |
809 | install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python | |
810 | install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php | |
811 | install macros.mono $RPM_BUILD_ROOT%{_rpmlibdir}/macros.mono | |
812 | ||
813 | install %{SOURCE1} doc/manual/groups | |
814 | install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree | |
815 | install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond | |
816 | install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc | |
817 | install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files | |
818 | install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh | |
819 | install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir} | |
820 | install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir} | |
821 | install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm | |
822 | ||
823 | install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder | |
824 | install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk | |
825 | install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk | |
826 | install %{SOURCE33} $RPM_BUILD_ROOT%{_bindir}/banner.sh | |
827 | ||
828 | install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo | |
829 | ||
830 | install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm | |
831 | ||
832 | # obsolete but still installed | |
833 | rm $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc | |
834 | ||
835 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF | |
836 | # customized rpm macros - global for host | |
837 | # | |
838 | #%%_install_langs pl_PL:en_US | |
839 | %%distribution PLD | |
840 | # | |
841 | # remove or replace with file_contexts path if you want to use custom | |
842 | # SELinux file contexts policy instead of one stored in packages payload | |
843 | %%_install_file_context_path %%{nil} | |
844 | %%_verify_file_context_path %%{nil} | |
845 | ||
846 | # If non-zero, all erasures will be automagically repackaged. | |
847 | #%%_repackage_all_erasures 1 | |
848 | EOF | |
849 | ||
850 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF | |
851 | # global list of files (regexps) which don't generate Provides | |
852 | EOF | |
853 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF | |
854 | # global list of script capabilities (regexps) not to be used in Provides | |
855 | EOF | |
856 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF | |
857 | # global list of files (regexps) which don't generate Requires | |
858 | ^%{_examplesdir}/ | |
859 | ^%{_docdir}/ | |
860 | EOF | |
861 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF | |
862 | # global list of script capabilities (regexps) not to be used in Requires | |
863 | EOF | |
864 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF | |
865 | # global list of capabilities (SONAME, perl(module), php(module) regexps) | |
866 | # which don't generate dependencies on package NAMES | |
867 | # -- OpenGL implementation | |
868 | ^libGL.so.1 | |
869 | ^libGLU.so.1 | |
870 | ^libOSMesa.so | |
871 | # -- Glide | |
872 | ^libglide3.so.3 | |
873 | # -- mozilla | |
874 | ^libgtkmozembed.so | |
875 | ^libgtksuperwin.so | |
876 | ^libxpcom.so | |
877 | # -- X11 implementation | |
878 | ^libFS.so | |
879 | ^libI810XvMC.so | |
880 | ^libICE.so | |
881 | ^libSM.so | |
882 | ^libX11.so | |
883 | ^libXRes.so | |
884 | ^libXTrap.so | |
885 | ^libXaw.so | |
886 | ^libXcomposite.so | |
887 | ^libXcursor.so | |
888 | ^libXdamage.so | |
889 | ^libXdmcp.so | |
890 | ^libXevie.so | |
891 | ^libXext.so | |
892 | ^libXfixes.so | |
893 | ^libXfont.so | |
894 | ^libXfontcache.so | |
895 | ^libXft.so | |
896 | ^libXi.so | |
897 | ^libXinerama.so | |
898 | ^libXmu.so | |
899 | ^libXmuu.so | |
900 | ^libXp.so | |
901 | ^libXpm.so | |
902 | ^libXrandr.so | |
903 | ^libXrender.so | |
904 | ^libXss.so | |
905 | ^libXt.so | |
906 | ^libXtst.so | |
907 | ^libXv.so | |
908 | ^libXvMC.so | |
909 | ^libXxf86dga.so | |
910 | ^libXxf86misc.so | |
911 | ^libXxf86rush.so | |
912 | ^libXxf86vm.so | |
913 | ^libdps.so | |
914 | ^libdpstk.so | |
915 | ^libfontenc.so | |
916 | ^libpsres.so | |
917 | ^libxkbfile.so | |
918 | ^libxkbui.so | |
919 | # -- fam / gamin | |
920 | ^libfam.so.0 | |
921 | EOF | |
922 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF | |
923 | # global list of file masks not to be compressed in DOCDIR | |
924 | EOF | |
925 | ||
926 | # for rpm -e|-U --repackage | |
927 | install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm} | |
928 | touch $RPM_BUILD_ROOT/var/lock/rpm/transaction | |
929 | ||
930 | # move libs to /lib | |
931 | for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do | |
932 | mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib} | |
933 | ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a | |
934 | done | |
935 | ||
936 | # remove arch dependant macros which have no use on noarch | |
937 | %{__sed} -i -e ' | |
938 | /{__spec_install_post_strip}/d | |
939 | /{__spec_install_post_chrpath}/d | |
940 | /{__spec_install_post_compress_modules}/d | |
941 | ' $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros | |
942 | ||
943 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
944 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
945 | ||
946 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py} | |
947 | ||
948 | # (currently) not used or supported in PLD | |
949 | rm -f $RPM_BUILD_ROOT%{_rpmlibdir}/{Specfile.pm,cpanflute,cpanflute2,find-provides,find-requires,freshen.sh,http.req,magic.prov,magic.req,perldeps.pl,sql.prov,sql.req,tcl.req} | |
950 | # wrong location, not used anyway | |
951 | rm -f $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd} | |
952 | ||
953 | %find_lang %{name} | |
954 | ||
955 | rm -rf manual | |
956 | cp -a doc/manual manual | |
957 | rm -f manual/Makefile* | |
958 | ||
959 | %clean | |
960 | rm -rf $RPM_BUILD_ROOT | |
961 | ||
962 | %post lib -p /sbin/ldconfig | |
963 | %postun lib -p /sbin/ldconfig | |
964 | ||
965 | %pre build | |
966 | find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f | |
967 | ||
968 | %files -f %{name}.lang | |
969 | %defattr(644,root,root,755) | |
970 | %doc RPM-PGP-KEY CHANGES manual/* | |
971 | ||
972 | %attr(755,root,root) /bin/rpm | |
973 | #%attr(755,root,root) %{_bindir}/rpmdb | |
974 | #%attr(755,root,root) %{_bindir}/rpmquery | |
975 | #%attr(755,root,root) %{_bindir}/rpmsign | |
976 | #%attr(755,root,root) %{_bindir}/rpmverify | |
977 | ||
978 | %dir %{_sysconfdir}/rpm | |
979 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros | |
980 | # these are ok to be replaced | |
981 | %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo | |
982 | %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform | |
983 | ||
984 | ||
985 | %{_mandir}/man8/rpm.8* | |
986 | %lang(fr) %{_mandir}/fr/man8/rpm.8* | |
987 | %lang(ja) %{_mandir}/ja/man8/rpm.8* | |
988 | %lang(ko) %{_mandir}/ko/man8/rpm.8* | |
989 | %lang(pl) %{_mandir}/pl/man8/rpm.8* | |
990 | %lang(ru) %{_mandir}/ru/man8/rpm.8* | |
991 | %lang(sk) %{_mandir}/sk/man8/rpm.8* | |
992 | ||
993 | %dir /var/lib/rpm | |
994 | %dir %attr(700,root,root) /var/spool/repackage | |
995 | %dir /var/lock/rpm | |
996 | /var/lock/rpm/transaction | |
997 | ||
998 | #%attr(755,root,root) %{_rpmlibdir}/rpmd | |
999 | #%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]} | |
1000 | #%attr(755,root,root) %{_rpmlibdir}/rpmk | |
1001 | #%attr(755,root,root) %{_rpmlibdir}/rpm[qv] | |
1002 | ||
1003 | %{_rpmlibdir}/rpmpopt* | |
1004 | %{_rpmlibdir}/macros | |
1005 | ||
1006 | %files base | |
1007 | %defattr(644,root,root,755) | |
1008 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm | |
1009 | %dir %{_rpmlibdir} | |
1010 | %attr(755,root,root) %{_bindir}/banner.sh | |
1011 | %attr(755,root,root) %{_rpmlibdir}/user_group.sh | |
1012 | %dir /var/lib/banner | |
1013 | ||
1014 | %files lib | |
1015 | %defattr(644,root,root,755) | |
1016 | %attr(755,root,root) /%{_lib}/librpm*-*.so | |
1017 | %attr(755,root,root) %{_libdir}/librpm*-*.so | |
1018 | ||
1019 | %files devel | |
1020 | %defattr(644,root,root,755) | |
1021 | %{_includedir}/rpm | |
1022 | %{_libdir}/librpm*.la | |
1023 | %attr(755,root,root) %{_libdir}/librpm.so | |
1024 | %attr(755,root,root) %{_libdir}/librpm-%{sover}.so | |
1025 | %attr(755,root,root) %{_libdir}/librpmio.so | |
1026 | %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so | |
1027 | %attr(755,root,root) %{_libdir}/librpmdb.so | |
1028 | %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so | |
1029 | %attr(755,root,root) %{_libdir}/librpmbuild.so | |
1030 | ||
1031 | %files static | |
1032 | %defattr(644,root,root,755) | |
1033 | %{_libdir}/librpm*.a | |
1034 | ||
1035 | %files utils | |
1036 | %defattr(644,root,root,755) | |
1037 | %attr(755,root,root) %{_bindir}/debugedit | |
1038 | %attr(755,root,root) %{_bindir}/rpm2cpio | |
1039 | %attr(755,root,root) %{_bindir}/rpmcache | |
1040 | %attr(755,root,root) %{_bindir}/rpmdeps | |
1041 | %attr(755,root,root) %{_bindir}/rpmdigest | |
1042 | %attr(755,root,root) %{_bindir}/rpmgraph | |
1043 | %{!?with_system_libmagic:%attr(755,root,root) %{_bindir}/rpmfile} | |
1044 | %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh | |
1045 | %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh | |
1046 | %attr(755,root,root) %{_rpmlibdir}/tgpg | |
1047 | %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt | |
1048 | %{_mandir}/man8/rpm2cpio.8* | |
1049 | %{_mandir}/man8/rpmdeps.8* | |
1050 | %{_mandir}/man8/rpmcache.8* | |
1051 | %{_mandir}/man8/rpmgraph.8* | |
1052 | %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8* | |
1053 | %lang(ja) %{_mandir}/ja/man8/rpmcache.8* | |
1054 | %lang(ja) %{_mandir}/ja/man8/rpmgraph.8* | |
1055 | %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8* | |
1056 | %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8* | |
1057 | %lang(pl) %{_mandir}/pl/man8/rpmdeps.8* | |
1058 | %lang(pl) %{_mandir}/pl/man8/rpmcache.8* | |
1059 | %lang(pl) %{_mandir}/pl/man8/rpmgraph.8* | |
1060 | %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8* | |
1061 | ||
1062 | %files utils-perl | |
1063 | %defattr(644,root,root,755) | |
1064 | %attr(755,root,root) %{_rpmlibdir}/rpmdiff* | |
1065 | ||
1066 | %if %{with static} | |
1067 | %files utils-static | |
1068 | %defattr(644,root,root,755) | |
1069 | %attr(755,root,root) %{_bindir}/rpm[ieu] | |
1070 | %attr(755,root,root) %{_rpmlibdir}/rpm[ieu] | |
1071 | %endif | |
1072 | ||
1073 | %files build | |
1074 | %defattr(644,root,root,755) | |
1075 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto* | |
1076 | %attr(755,root,root) %{_rpmlibdir}/brp-* | |
1077 | %attr(755,root,root) %{_rpmlibdir}/check-files | |
1078 | # %attr(755,root,root) %{_rpmlibdir}/check-prereqs | |
1079 | %attr(755,root,root) %{_rpmlibdir}/compress-doc | |
1080 | %attr(755,root,root) %{_rpmlibdir}/config.* | |
1081 | %attr(755,root,root) %{_rpmlibdir}/cross-build | |
1082 | %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond | |
1083 | %attr(755,root,root) %{_rpmlibdir}/find-lang.sh | |
1084 | %attr(755,root,root) %{_rpmlibdir}/getpo.sh | |
1085 | %attr(755,root,root) %{_rpmlibdir}/install-build-tree | |
1086 | %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs | |
1087 | %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh | |
1088 | %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh | |
1089 | # needs jar (any jdk), jcf-dump (gcc-java) to work | |
1090 | %attr(755,root,root) %{_rpmlibdir}/javadeps.sh | |
1091 | %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh | |
1092 | # needs hacked pkg-config to return anything | |
1093 | %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh | |
1094 | %attr(755,root,root) %{_rpmlibdir}/rpmb | |
1095 | %attr(755,root,root) %{_rpmlibdir}/rpmt | |
1096 | %{_rpmlibdir}/noarch-* | |
1097 | %ifarch %{ix86} | |
1098 | %{_rpmlibdir}/i?86* | |
1099 | %{_rpmlibdir}/pentium* | |
1100 | %{_rpmlibdir}/athlon* | |
1101 | %endif | |
1102 | %ifarch alpha | |
1103 | %{_rpmlibdir}/alpha* | |
1104 | %endif | |
1105 | %ifarch ia64 | |
1106 | %{_rpmlibdir}/ia64* | |
1107 | %endif | |
1108 | %ifarch mips mipsel mips64 mips64el | |
1109 | %{_rpmlibdir}/mips* | |
1110 | %endif | |
1111 | %ifarch %{ppc} | |
1112 | %{_rpmlibdir}/ppc* | |
1113 | %endif | |
1114 | %ifarch sparc sparc64 | |
1115 | %{_rpmlibdir}/sparc* | |
1116 | %endif | |
1117 | %ifarch %{x8664} | |
1118 | %{_rpmlibdir}/x86_64* | |
1119 | %endif | |
1120 | # must be here for "Requires: rpm-*prov" to work | |
1121 | %{_rpmlibdir}/macros.mono | |
1122 | %{_rpmlibdir}/macros.perl | |
1123 | %{_rpmlibdir}/macros.php | |
1124 | # not used yet ... these six depend on perl | |
1125 | #%attr(755,root,root) %{_rpmlibdir}/http.req | |
1126 | #%attr(755,root,root) %{_rpmlibdir}/magic.prov | |
1127 | #%attr(755,root,root) %{_rpmlibdir}/magic.req | |
1128 | #%{_rpmlibdir}/sql.prov | |
1129 | #%{_rpmlibdir}/sql.req | |
1130 | #%{_rpmlibdir}/tcl.req | |
1131 | %{_rpmlibdir}/trpm | |
1132 | ||
1133 | %attr(755,root,root) %{_bindir}/javadeps | |
1134 | %attr(755,root,root) %{_bindir}/gendiff | |
1135 | %attr(755,root,root) %{_bindir}/rpmbuild | |
1136 | ||
1137 | %{_mandir}/man1/gendiff.1* | |
1138 | %{_mandir}/man8/rpmbuild.8* | |
1139 | %lang(ja) %{_mandir}/ja/man8/rpmbuild.8* | |
1140 | %lang(pl) %{_mandir}/pl/man1/gendiff.1* | |
1141 | %lang(pl) %{_mandir}/pl/man8/rpmbuild.8* | |
1142 | ||
1143 | %files build-tools | |
1144 | %defattr(644,root,root,755) | |
1145 | %attr(755,root,root) %{_bindir}/builder | |
1146 | %attr(755,root,root) %{_bindir}/adapter.awk | |
1147 | %attr(755,root,root) %{_bindir}/pldnotify.awk | |
1148 | ||
1149 | %files perlprov | |
1150 | %defattr(644,root,root,755) | |
1151 | %attr(755,root,root) %{_rpmlibdir}/perl.* | |
1152 | #%attr(755,root,root) %{_rpmlibdir}/perldeps.pl | |
1153 | #%attr(755,root,root) %{_rpmlibdir}/find-perl-* | |
1154 | #%attr(755,root,root) %{_rpmlibdir}/find-*.perl | |
1155 | #%attr(755,root,root) %{_rpmlibdir}/find-prov.pl | |
1156 | #%attr(755,root,root) %{_rpmlibdir}/find-req.pl | |
1157 | #%attr(755,root,root) %{_rpmlibdir}/get_magic.pl | |
1158 | ||
1159 | %files pythonprov | |
1160 | %defattr(644,root,root,755) | |
1161 | %{_rpmlibdir}/macros.python | |
1162 | %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh | |
1163 | ||
1164 | %files php-pearprov | |
1165 | %defattr(644,root,root,755) | |
1166 | %attr(755,root,root) %{_rpmlibdir}/php* | |
1167 | %attr(755,root,root) %{_rpmlibdir}/find-php* | |
1168 | ||
1169 | %if %{with python} | |
1170 | %files -n python-rpm | |
1171 | %defattr(644,root,root,755) | |
1172 | %dir %{py_sitedir}/rpm | |
1173 | %attr(755,root,root) %{py_sitedir}/rpm/*.so | |
1174 | %{py_sitedir}/rpm/*.py[co] | |
1175 | %endif | |
1176 | ||
1177 | %if %{with apidocs} | |
1178 | %files apidocs | |
1179 | %defattr(644,root,root,755) | |
1180 | %doc apidocs | |
1181 | %endif |