]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985 | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without apidocs # Doxygen based API documentation | |
7 | %bcond_without python3 # Python (3) bindings | |
8 | %bcond_without plugins # plugins (all, including: audit, imaevm, selinux, systemd) | |
9 | %bcond_without recommends_tags # use of Recommends tag (disable for bootstrapping) | |
10 | %bcond_with imaevm # IMA/EVM signing support (requires libimaevm from ima-evm-utils) | |
11 | %bcond_without audit # audit plugin | |
12 | %bcond_without selinux # SELinux plugin | |
13 | %bcond_without systemd # systemd inhibit plugin | |
14 | ||
15 | %define db_ver 5.3.28.0 | |
16 | %define popt_ver 1.15 | |
17 | %define sover 9.1.3 | |
18 | ||
19 | %if "%{_rpmversion}" >= "4.12" && "%{_rpmversion}" < "5" | |
20 | %define with_recommends_tags 1 | |
21 | %endif | |
22 | ||
23 | %if %{without plugins} | |
24 | %undefine with_audit | |
25 | %undefine with_selinux | |
26 | %undefine with_systemd | |
27 | %endif | |
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.16.1.3 | |
37 | Release: 5 | |
38 | Epoch: 1 | |
39 | License: GPL v2 / LGPL v2.1 | |
40 | Group: Base | |
41 | Source0: http://ftp.rpm.org/releases/rpm-4.16.x/%{name}-%{version}.tar.bz2 | |
42 | # Source0-md5: 576277fafa5d0681a8a92c8716aca5f0 | |
43 | Source1: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc | |
44 | # Source1-md5: 23914bb49fafe7153cee87126d966461 | |
45 | Source2: macros.local | |
46 | Source3: macros.lang | |
47 | Source4: %{name}.sysconfig | |
48 | Source5: %{name}.groups | |
49 | Source6: %{name}-groups-po.awk | |
50 | Source7: %{name}-install-tree | |
51 | Source9: %{name}-user_group.sh | |
52 | # http://svn.pld-linux.org/banner.sh/ | |
53 | Source10: banner.sh | |
54 | Source11: %{name}.noautoprov | |
55 | Source12: %{name}.noautoprovfiles | |
56 | Source13: %{name}.noautoreq | |
57 | Source14: %{name}.noautoreqfiles | |
58 | Source15: perl.prov | |
59 | Patch0: %{name}-man_pl.patch | |
60 | Patch1: %{name}-popt-aliases.patch | |
61 | Patch2: %{name}-perl-macros.patch | |
62 | Patch3: %{name}-perl-req-perlfile.patch | |
63 | Patch4: %{name}-scripts-closefds.patch | |
64 | Patch5: %{name}-dir-macros-relative.patch | |
65 | Patch6: %{name}-perl_req-INC_dirs.patch | |
66 | Patch7: %{name}-debuginfo.patch | |
67 | Patch8: %{name}-libtool-deps.patch | |
68 | Patch9: %{name}-builddir-readlink.patch | |
69 | Patch10: %{name}-changelog_order_check_nonfatal.patch | |
70 | Patch11: %{name}-postun-nofail.patch | |
71 | Patch12: %{name}-clean-docdir.patch | |
72 | Patch13: %{name}-perl-magic.patch | |
73 | Patch14: %{name}-ignore-missing-macro-files.patch | |
74 | Patch15: x32.patch | |
75 | Patch16: rpm5-db-compat.patch | |
76 | Patch17: python-internal-build.patch | |
77 | Patch18: missing-macros.patch | |
78 | Patch19: pkgconfig.patch | |
79 | Patch20: uname-deps.patch | |
80 | Patch21: arm_abi.patch | |
81 | Patch22: ix86-platforms.patch | |
82 | Patch23: shortcircuited-deps.patch | |
83 | Patch24: cpuinfo-deps.patch | |
84 | Patch25: rpmio-read-proc-files.patch | |
85 | Patch26: allow-at-in-ver-rel.patch | |
86 | Patch27: no-exeonly-for-elf-reqprov.patch | |
87 | Patch28: default-patch-flags.patch | |
88 | Patch29: %{name}-noarch_py_prov.patch | |
89 | Patch30: missing-ghost-terminate-build.patch | |
90 | Patch31: missing-doc-terminate-build.patch | |
91 | Patch32: noexpand.patch | |
92 | Patch33: sqlite-db-backend.patch | |
93 | Patch34: skip-symlinks.patch | |
94 | Patch35: pl-po.patch | |
95 | Patch36: build-locale.patch | |
96 | URL: https://rpm.org/ | |
97 | BuildRequires: acl-devel | |
98 | %{?with_audit:BuildRequires: audit-libs-devel} | |
99 | BuildRequires: autoconf >= 2.63 | |
100 | BuildRequires: automake >= 1:1.10 | |
101 | BuildRequires: bzip2-devel >= 1.0.2-17 | |
102 | BuildRequires: db-devel >= %{db_ver} | |
103 | %{?with_systemd:BuildRequires: dbus-devel >= 1.3} | |
104 | BuildRequires: elfutils-devel >= 0.108 | |
105 | BuildRequires: gettext-tools >= 0.19.2 | |
106 | BuildRequires: libarchive-devel | |
107 | BuildRequires: libcap-devel | |
108 | BuildRequires: libmagic-devel | |
109 | BuildRequires: libgcrypt-devel | |
110 | BuildRequires: libgomp-devel >= 6:4.5 | |
111 | %{?with_imaevm:BuildRequires: libimaevm-devel >= 1.0} | |
112 | %{?with_selinux:BuildRequires: libselinux-devel >= 2.1.0} | |
113 | # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros | |
114 | BuildRequires: libstdc++-devel | |
115 | BuildRequires: libtool >= 1:1.4.2-9 | |
116 | BuildRequires: lua-devel >= 5.2 | |
117 | BuildRequires: patch >= 2.2 | |
118 | BuildRequires: pkgconfig | |
119 | BuildRequires: popt-devel >= %{popt_ver} | |
120 | BuildRequires: python3-modules >= 1:3.2 | |
121 | %if %{with python3} | |
122 | BuildRequires: python3-devel >= 1:3.2 | |
123 | BuildRequires: rpm-pythonprov | |
124 | BuildRequires: rpmbuild(macros) >= 1.750 | |
125 | %endif | |
126 | BuildRequires: rpm-build >= 4.6 | |
127 | BuildRequires: sqlite3-devel >= 3.22.0 | |
128 | BuildRequires: tcl | |
129 | BuildRequires: xz-devel | |
130 | BuildRequires: zlib-devel | |
131 | BuildRequires: zstd-devel | |
132 | %if %{with apidocs} | |
133 | BuildRequires: doxygen | |
134 | BuildRequires: ghostscript | |
135 | BuildRequires: graphviz | |
136 | BuildRequires: tetex-pdftex | |
137 | %endif | |
138 | Requires(posttrans): coreutils | |
139 | Requires: %{name}-base = %{epoch}:%{version}-%{release} | |
140 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
141 | Requires: rpm-pld-macros >= 2.002 | |
142 | Requires: FHS >= 3.0-2 | |
143 | Requires: libgcrypt | |
144 | Requires: popt >= %{popt_ver} | |
145 | %if %{with recommends_tags} | |
146 | Recommends: rpm-plugin-audit | |
147 | Recommends: rpm-plugin-prioreset | |
148 | Recommends: rpm-plugin-syslog | |
149 | Recommends: rpm-plugin-systemd-inhibit | |
150 | %endif | |
151 | Obsoletes: rpm-utils-perl < 1:4.15 | |
152 | Obsoletes: rpm-utils-static < 1:4.15 | |
153 | Conflicts: glibc < 2.2.92 | |
154 | # db4.6 poldek needed | |
155 | Conflicts: poldek < 0.21-0.20070703.00.3 | |
156 | # segfaults with lzma 0.42.2 | |
157 | Conflicts: lzma-libs < 4.999.3 | |
158 | Conflicts: util-vserver < 0.30.216-1.pre3034.7 | |
159 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
160 | ||
161 | %define _binary_payload w9.gzdio | |
162 | ||
163 | # don't require very fresh rpm.macros to build | |
164 | %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT | |
165 | %define ix86 i386 i486 i586 i686 athlon geode pentium3 pentium4 | |
166 | %define ppc ppc ppc7400 ppc7450 | |
167 | %define x8664 amd64 ia32e x86_64 | |
168 | ||
169 | %define _rpmlibdir /usr/lib/rpm | |
170 | ||
171 | %description | |
172 | RPM is a powerful package manager, which can be used to build, | |
173 | install, query, verify, update, and uninstall individual software | |
174 | packages. A package consists of an archive of files, and package | |
175 | information, including name, version, and description. | |
176 | ||
177 | %description -l de.UTF-8 | |
178 | RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur | |
179 | Installation, Anfrage, Verifizierung, Aktualisierung und | |
180 | Uninstallation individueller Softwarepakete. Ein Paket besteht aus | |
181 | einem Archiv Dateien und Paketinformation, inklusive Name, Version und | |
182 | Beschreibung. | |
183 | ||
184 | %description -l es.UTF-8 | |
185 | RPM es un poderoso administrador de paquetes, que puede ser usado para | |
186 | construir, instalar, pesquisar, verificar, actualizar y desinstalar | |
187 | paquetes individuales de software. Un paquete consiste en un | |
188 | almacenaje de archivos, y información sobre el paquete, incluyendo | |
189 | nombre, versión y descripción. | |
190 | ||
191 | %description -l pl.UTF-8 | |
192 | RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on | |
193 | przebudowanie, instalację czy weryfikację dowolnego pakietu. | |
194 | Informacje dotyczące każdego pakietu, takie jak jego opis, lista | |
195 | plików wchodzących w skład pakietu, zależności od innych pakietów, są | |
196 | przechowywane w bazie danych i można je uzyskać za pomocą opcji | |
197 | odpytywania programu rpm. | |
198 | ||
199 | %description -l pt_BR.UTF-8 | |
200 | RPM é um poderoso gerenciador de pacotes, que pode ser usado para | |
201 | construir, instalar, pesquisar, verificar, atualizar e desinstalar | |
202 | pacotes individuais de software. Um pacote consiste de um conjunto de | |
203 | arquivos e informações adicionais, incluindo nome, versão e descrição | |
204 | do pacote, permissões dos arquivos, etc. | |
205 | ||
206 | %description -l ru.UTF-8 | |
207 | RPM - это мощный менеджер пакетов, который может быть использован для | |
208 | создания, инсталляции, запросов (query), проверки, обновления и | |
209 | удаления программных пакетов. Пакет состоит из файлового архива и | |
210 | служебной информации, включающей название, версию, описание и другие | |
211 | данные о пакете. | |
212 | ||
213 | %description -l uk.UTF-8 | |
214 | RPM - це потужний менеджер пакетів, що може бути використаний для | |
215 | створення, інсталяції, запитів (query), перевірки, поновлення та | |
216 | видалення програмних пакетів. Пакет складається з файлового архіву та | |
217 | службової інформації, що містить назву, версію, опис та іншу | |
218 | інформацію про пакет. | |
219 | ||
220 | %package base | |
221 | Summary: RPM base package - scripts used by rpm packages themselves | |
222 | Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm | |
223 | Group: Base | |
224 | Requires: filesystem | |
225 | Obsoletes: rpm-scripts < 4.4 | |
226 | Obsoletes: vserver-rpm < 1 | |
227 | ||
228 | %description base | |
229 | The RPM base package contains scripts used by rpm packages themselves. | |
230 | These include: | |
231 | - scripts for adding/removing groups and users needed for rpm | |
232 | packages, | |
233 | - banner.sh to display %%banner messages from rpm scriptlets. | |
234 | ||
235 | %description base -l pl.UTF-8 | |
236 | Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm. | |
237 | Zawiera on: | |
238 | - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm, | |
239 | - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm. | |
240 | ||
241 | %package lib | |
242 | Summary: RPMs library | |
243 | Summary(pl.UTF-8): Biblioteki RPM-a | |
244 | Group: Libraries | |
245 | Requires: db >= %{db_ver} | |
246 | Requires: libmagic >= 1.15-2 | |
247 | Requires: popt >= %{popt_ver} | |
248 | Requires: sqlite3-libs >= 3.22.0 | |
249 | Obsoletes: rpm-libs < 4.0.2-4 | |
250 | # avoid SEGV caused by mixed db versions | |
251 | Conflicts: poldek < 0.18.1-16 | |
252 | ||
253 | %description lib | |
254 | RPMs library. | |
255 | ||
256 | %description lib -l pl.UTF-8 | |
257 | Biblioteki RPM-a. | |
258 | ||
259 | %package devel | |
260 | Summary: Header files for rpm libraries | |
261 | Summary(de.UTF-8): Header-Dateien für rpm Libraries | |
262 | Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm | |
263 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm | |
264 | Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM | |
265 | Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами | |
266 | Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm | |
267 | Group: Development/Libraries | |
268 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
269 | Requires: bzip2-devel | |
270 | Requires: db-devel >= %{db_ver} | |
271 | Requires: elfutils-devel | |
272 | Requires: libmagic-devel | |
273 | Requires: libgcrypt-devel | |
274 | %if %{with selinux} | |
275 | Requires: libselinux-devel | |
276 | Requires: libsemanage-devel | |
277 | Requires: libsepol-devel | |
278 | %endif | |
279 | Requires: popt-devel >= %{popt_ver} | |
280 | Requires: zlib-devel | |
281 | ||
282 | %description devel | |
283 | The RPM packaging system includes C libraries that make it easy to | |
284 | manipulate RPM packages and databases. They are intended to ease the | |
285 | creation of graphical package managers and other tools that need | |
286 | intimate knowledge of RPM packages. This package contains header files | |
287 | for these libraries. | |
288 | ||
289 | %description devel -l de.UTF-8 | |
290 | Der RPM-Packensystem enthält eine C-Library, die macht es einfach | |
291 | RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für | |
292 | Vereinfachung des Schaffens grafischer Paket-Manager und anderer | |
293 | Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen. | |
294 | ||
295 | %description devel -l es.UTF-8 | |
296 | El sistema de empaquetado RPM incluye una biblioteca C que vuelve | |
297 | fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es | |
298 | facilitar la creación de administradores gráficos de paquetes y otras | |
299 | herramientas que necesiten un conocimiento profundo de paquetes RPM. | |
300 | ||
301 | %description devel -l pl.UTF-8 | |
302 | System RPM zawiera biblioteki C, które ułatwiają manipulowanie | |
303 | pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie | |
304 | graficznych programów zarządzających pakietami oraz innych narzędzi, | |
305 | które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet | |
306 | zawiera pliki nagłówkowe wspomnianych bibliotek. | |
307 | ||
308 | %description devel -l pt_BR.UTF-8 | |
309 | O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil | |
310 | a manipulação de pacotes e bases de dados RPM. Seu objetivo é | |
311 | facilitar a criação de gerenciadores gráficos de pacotes e outras | |
312 | ferramentas que precisem de conhecimento profundo de pacotes RPM. | |
313 | ||
314 | %description devel -l ru.UTF-8 | |
315 | Система управления пакетами RPM содержит библиотеку C, которая | |
316 | упрощает манипуляцию пакетами RPM и соответствующими базами данных. | |
317 | Эта библиотека предназначена для облегчения создания графических | |
318 | пакетных менеджеров и других утилит, которым необходимо работать с | |
319 | пакетами RPM. | |
320 | ||
321 | %description devel -l uk.UTF-8 | |
322 | Система керування пакетами RPM містить бібліотеку C, котра спрощує | |
323 | роботу з пакетами RPM та відповідними базами даних. Ця бібліотека | |
324 | призначена для полегшення створення графічних пакетних менеджерів та | |
325 | інших утиліт, що працюють з пакетами RPM. | |
326 | ||
327 | %package utils | |
328 | Summary: Additional utilities for managing RPM packages and database | |
329 | Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken | |
330 | Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami | |
331 | Group: Applications/File | |
332 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
333 | Requires: popt >= %{popt_ver} | |
334 | %if %{with recommends_tags} | |
335 | Recommends: bzip2 | |
336 | Recommends: gzip | |
337 | %endif | |
338 | Conflicts: filesystem-debuginfo < 3.0-16 | |
339 | ||
340 | %description utils | |
341 | Additional utilities for managing RPM packages and database. | |
342 | ||
343 | %description utils -l de.UTF-8 | |
344 | Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken. | |
345 | ||
346 | %description utils -l pl.UTF-8 | |
347 | Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami. | |
348 | ||
349 | %package build | |
350 | Summary: Scripts for building binary RPM packages | |
351 | Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete | |
352 | Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów | |
353 | Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes | |
354 | Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов | |
355 | Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів | |
356 | Group: Applications/File | |
357 | Requires(pretrans): coreutils | |
358 | Requires(pretrans): findutils | |
359 | Requires: %{name}-utils = %{epoch}:%{version}-%{release} | |
360 | Requires: rpm-pld-macros-build >= 1.744 | |
361 | Requires: /bin/id | |
362 | Requires: awk | |
363 | Requires: bzip2 | |
364 | Requires: chrpath >= 0.10-4 | |
365 | Requires: cpio | |
366 | Requires: diffutils | |
367 | Requires: elfutils | |
368 | Requires: file >= 4.17 | |
369 | Requires: fileutils | |
370 | Requires: findutils | |
371 | %ifarch athlon | |
372 | Requires: gcc >= 3.0.3 | |
373 | %else | |
374 | Requires: gcc | |
375 | %endif | |
376 | Requires: glibc-devel | |
377 | Requires: grep | |
378 | Requires: gzip | |
379 | Requires: make | |
380 | Requires: patch | |
381 | Requires: sed >= 4.0 | |
382 | Requires: sh-utils | |
383 | Requires: tar >= 1:1.22 | |
384 | Requires: textutils | |
385 | Requires: which | |
386 | Requires: xz | |
387 | Provides: rpmbuild(noauto) = 3 | |
388 | %ifarch %{x8664} | |
389 | Conflicts: automake < 1:1.7.9-2 | |
390 | Conflicts: libtool < 2:1.5-13 | |
391 | %endif | |
392 | ||
393 | %description build | |
394 | Scripts for building binary RPM packages. | |
395 | ||
396 | %description build -l de.UTF-8 | |
397 | Scripts fürs Bauen binärer RPM-Pakete. | |
398 | ||
399 | %description build -l pl.UTF-8 | |
400 | Skrypty pomocnicze do budowania binarnych RPM-ów. | |
401 | ||
402 | %description build -l pt_BR.UTF-8 | |
403 | Este pacote contém scripts e programas executáveis que são usados para | |
404 | construir pacotes usando o RPM. | |
405 | ||
406 | %description build -l ru.UTF-8 | |
407 | Различные вспомогательные скрипты и исполняемые программы, которые | |
408 | используются для сборки RPM'ов. | |
409 | ||
410 | %description build -l uk.UTF-8 | |
411 | Різноманітні допоміжні скрипти та утиліти, які використовуються для | |
412 | побудови RPM'ів. | |
413 | ||
414 | %package perlprov | |
415 | Summary: Additional utilities for checking Perl provides/requires in RPM packages | |
416 | Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen | |
417 | Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM | |
418 | Group: Applications/File | |
419 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
420 | Requires: perl-Encode | |
421 | Requires: perl-devel | |
422 | Requires: perl-modules | |
423 | ||
424 | %description perlprov | |
425 | Additional utilities for checking Perl provides/requires in RPM | |
426 | packages. | |
427 | ||
428 | %description perlprov -l de.UTF-8 | |
429 | Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen. | |
430 | ||
431 | %description perlprov -l pl.UTF-8 | |
432 | Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w | |
433 | pakietach RPM. | |
434 | ||
435 | %package pythonprov | |
436 | Summary: Python macros, which simplifies creation of RPM packages with Python software | |
437 | Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie | |
438 | Group: Applications/File | |
439 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
440 | Requires: python3 | |
441 | Requires: python3-modules | |
442 | Requires: python3-setuptools | |
443 | ||
444 | %description pythonprov | |
445 | Python macros, which simplifies creation of RPM packages with Python | |
446 | software. | |
447 | ||
448 | %description pythonprov -l pl.UTF-8 | |
449 | Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w | |
450 | Pythonie. | |
451 | ||
452 | %package -n python3-rpm | |
453 | Summary: Python 3 interface to RPM library | |
454 | Summary(pl.UTF-8): Interfejs Pythona 3 do biblioteki RPM-a | |
455 | Summary(pt_BR.UTF-8): Módulo Python 3 para aplicativos que manipulam pacotes RPM | |
456 | Group: Development/Languages/Python | |
457 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
458 | Requires: python3 | |
459 | Obsoletes: python-rpm < 1:4.16.0 | |
460 | Obsoletes: rpm-python < 4.0.2-50 | |
461 | ||
462 | %description -n python3-rpm | |
463 | The python3-rpm package contains a module which permits applications | |
464 | written in the Python 3 programming language to use the interface | |
465 | supplied by RPM (RPM Package Manager) libraries. | |
466 | ||
467 | This package should be installed if you want to develop Python 3 | |
468 | programs that will manipulate RPM packages and databases. | |
469 | ||
470 | %description -n python3-rpm -l pl.UTF-8 | |
471 | Pakiet python3-rpm zawiera moduł, który pozwala aplikacjom napisanym w | |
472 | Pythonie 3 na używanie interfejsu dostarczanego przez biblioteki | |
473 | RPM-a. | |
474 | ||
475 | Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w | |
476 | Pythonie 3 programy manipulujące pakietami i bazami danych rpm. | |
477 | ||
478 | %description -n python3-rpm -l pt_BR.UTF-8 | |
479 | O pacote python3-rpm contém um módulo que permite que aplicações | |
480 | escritas em Python 3 utilizem a interface fornecida pelas bibliotecas | |
481 | RPM (RPM Package Manager). | |
482 | ||
483 | Esse pacote deve ser instalado se você quiser desenvolver programas em | |
484 | Python 3 para manipular pacotes e bancos de dados RPM. | |
485 | ||
486 | %package plugin-audit | |
487 | Summary: Plugin for logging audit events on package operations | |
488 | Summary(pl.UTF-8): Wtyczka do logowania zdarzeń audytowych przy operacjach na pakietach | |
489 | Group: Base | |
490 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
491 | ||
492 | %description plugin-audit | |
493 | Plugin for libaudit support. | |
494 | ||
495 | %description plugin-audit -l pl.UTF-8 | |
496 | Wtyczka do obsługi libaudit. | |
497 | ||
498 | %package plugin-syslog | |
499 | Summary: Plugin for syslog functionality | |
500 | Summary(pl.UTF-8): Wtyczka do funkcjonalności sysloga | |
501 | Group: Base | |
502 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
503 | ||
504 | %description plugin-syslog | |
505 | This plugin exports RPM actions to the system log. | |
506 | ||
507 | %description plugin-syslog -l pl.UTF-8 | |
508 | Ta wtyczka eksportuje akcje RPM-a do logu systemowego. | |
509 | ||
510 | %package plugin-systemd-inhibit | |
511 | Summary: Plugin for systemd inhibit functionality | |
512 | Summary(pl.UTF-8): Wtyczka do funkcjonalności systemd inhibit | |
513 | Group: Base | |
514 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
515 | Requires: dbus >= 1.3 | |
516 | ||
517 | %description plugin-systemd-inhibit | |
518 | This plugin blocks systemd from entering idle, sleep or shutdown while | |
519 | an rpm transaction is running using the systemd-inhibit mechanism. | |
520 | ||
521 | %description plugin-systemd-inhibit -l pl.UTF-8 | |
522 | Ta wtyczka blokuje systemd przed wejściem w stan bezczynności (idle), | |
523 | uśpienia (sleep) lub zamykania (shutdown) podczas trwania transakcji | |
524 | RPM-a, korzystając z mechanizmu systemd-inhibit. | |
525 | ||
526 | %package plugin-ima | |
527 | Summary: Plugin for IMA file signatures | |
528 | Summary(pl.UTF-8): Wtyczka do sygnatur plików IMA | |
529 | Group: Base | |
530 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
531 | ||
532 | %description plugin-ima | |
533 | This plugin adds support for enforcing and verifying IMA file | |
534 | signatures in an rpm. | |
535 | ||
536 | %description plugin-ima -l pl.UTF-8 | |
537 | Ta wtyczka dodaje obsługę wymuszania i weryfikacji podpisów plików | |
538 | IMA w RPM-ie. | |
539 | ||
540 | %package plugin-prioreset | |
541 | Summary: Plugin for resetting scriptlet priorities for SysV init | |
542 | Summary(pl.UTF-8): Wtyczka do resetowania priorytetu skryptletów przy inicie SysV | |
543 | Group: Base | |
544 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
545 | ||
546 | %description plugin-prioreset | |
547 | This plugin is useful on legacy SysV init systems if you run rpm | |
548 | transactions with nice/ionice priorities. Should not be used on | |
549 | systemd systems. | |
550 | ||
551 | %description plugin-prioreset -l pl.UTF-8 | |
552 | Ta wtyczka jest przydatna w systemach ze starym procesem init w wersji | |
553 | SysV, jeżeli transakcje RPM-a są uruchamiane z priorytetami | |
554 | nice/ionice. Nie powinna być używana w systemach z systemd. | |
555 | ||
556 | %package plugin-selinux | |
557 | Summary: Plugin for SELinux functionality | |
558 | Summary(pl.UTF-8): Wtyczka do funkcjonalności SELinux | |
559 | Group: Base | |
560 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
561 | Requires: libselinux >= 2.1.0 | |
562 | ||
563 | %description plugin-selinux | |
564 | Plugin for SELinux functionality. | |
565 | ||
566 | %description plugin-selinux -l pl.UTF-8 | |
567 | Wtyczka do funkcjonalności SELinux. | |
568 | ||
569 | %package sign | |
570 | Summary: Package signing support | |
571 | Summary(pl.UTF-8): Obsługa podpisywania pakietów | |
572 | Group: Base | |
573 | Requires: %{name}-lib = %{epoch}:%{version}-%{release} | |
574 | ||
575 | %description sign | |
576 | This package contains support for digitally signing RPM packages. | |
577 | ||
578 | %description sign -l pl.UTF-8 | |
579 | Ten pakiet zawiera obsługę cyfrowego podpisywania pakietów RPM. | |
580 | ||
581 | %package apidocs | |
582 | Summary: RPM API documentation and guides | |
583 | Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki | |
584 | Group: Documentation | |
585 | BuildArch: noarch | |
586 | ||
587 | %description apidocs | |
588 | Documentation for RPM API and guides in HTML format generated from rpm | |
589 | sources by doxygen. | |
590 | ||
591 | %description apidocs -l pl.UTF-8 | |
592 | Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze | |
593 | źrodeł RPM-a przez doxygen. | |
594 | ||
595 | %prep | |
596 | %setup -q -n %{name}-%{version}%{?subver} | |
597 | %patch0 -p1 | |
598 | %patch1 -p1 | |
599 | %patch2 -p1 | |
600 | %patch3 -p1 | |
601 | %patch4 -p1 | |
602 | %patch5 -p1 | |
603 | %patch6 -p0 | |
604 | %patch7 -p1 | |
605 | %patch8 -p1 | |
606 | %patch9 -p1 | |
607 | %patch10 -p1 | |
608 | %patch11 -p1 | |
609 | %patch12 -p1 | |
610 | %patch13 -p1 | |
611 | %patch14 -p1 | |
612 | %patch15 -p1 | |
613 | %patch16 -p1 | |
614 | %patch17 -p1 | |
615 | %patch18 -p1 | |
616 | %patch19 -p1 | |
617 | %patch20 -p1 | |
618 | %patch21 -p1 | |
619 | %patch22 -p1 | |
620 | %patch23 -p1 | |
621 | %patch24 -p1 | |
622 | %patch25 -p1 | |
623 | %patch26 -p1 | |
624 | %patch27 -p1 | |
625 | %patch28 -p1 | |
626 | %patch29 -p1 | |
627 | %patch30 -p1 | |
628 | %patch31 -p1 | |
629 | %patch32 -p1 | |
630 | %patch33 -p1 | |
631 | %patch34 -p1 | |
632 | %patch35 -p1 | |
633 | %patch36 -p1 | |
634 | ||
635 | %{__rm} po/*.gmo | |
636 | ||
637 | install %{SOURCE15} scripts/perl.prov.in | |
638 | ||
639 | %{__mv} scripts/perl.req{,.in} | |
640 | ||
641 | # generate Group translations to *.po | |
642 | awk -f %{SOURCE6} %{SOURCE5} | |
643 | ||
644 | %{__sed} -i -e '1s,/usr/bin/python,%{__python3},' scripts/pythondistdeps.py | |
645 | ||
646 | %build | |
647 | %{__libtoolize} | |
648 | %{__aclocal} | |
649 | %{__autoheader} | |
650 | %{__autoconf} | |
651 | %{__automake} | |
652 | ||
653 | # rpm checks for CPU type at runtime, but it looks better | |
654 | %{__sed} -i \ | |
655 | -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \ | |
656 | -e 's|@host_cpu@|%{_target_cpu}|' \ | |
657 | -e 's|@host_os@|%{_target_os}|' \ | |
658 | macros.in | |
659 | ||
660 | %configure \ | |
661 | PYTHON=python3 \ | |
662 | WITH_PERL_VERSION=no \ | |
663 | __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \ | |
664 | __GPG=%{_bindir}/gpg \ | |
665 | --enable-bdb \ | |
666 | --enable-bdb-ro \ | |
667 | --enable-ndb \ | |
668 | %{!?with_plugins:--disable-plugins} \ | |
669 | %{!?with_systemd:--disable-inhibit-plugin} \ | |
670 | --disable-silent-rules \ | |
671 | --enable-sqlite \ | |
672 | --enable-zstd \ | |
673 | --with-acl \ | |
674 | --with-archive \ | |
675 | --with-audit%{!?with_audit:=no} \ | |
676 | --with-cap \ | |
677 | %{?with_imaevm:--with-imaevm} \ | |
678 | --with-lua \ | |
679 | %{?with_python3:--enable-python} \ | |
680 | --with-selinux%{!?with_selinux:=no} \ | |
681 | --with-vendor=pld | |
682 | ||
683 | %{__make} | |
684 | ||
685 | %{__make} -C po update-gmo | |
686 | ||
687 | %if %{with python3} | |
688 | cd python | |
689 | %py3_build | |
690 | %endif | |
691 | ||
692 | %install | |
693 | rm -rf $RPM_BUILD_ROOT | |
694 | install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/{rpm,pki/rpm-gpg}} \ | |
695 | $RPM_BUILD_ROOT{/var/lib/{banner,rpm},/usr/lib/.build-id} | |
696 | ||
697 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc | |
698 | ||
699 | %{__make} install \ | |
700 | pkgconfigdir=%{_pkgconfigdir} \ | |
701 | DESTDIR=$RPM_BUILD_ROOT | |
702 | ||
703 | # cleanup | |
704 | %ifnarch %{ix86} %{x8664} x32 | |
705 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/athlon-linux/macros | |
706 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/geode-linux/macros | |
707 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i386-linux/macros | |
708 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i486-linux/macros | |
709 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i586-linux/macros | |
710 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i686-linux/macros | |
711 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium3-linux/macros | |
712 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium4-linux/macros | |
713 | %endif | |
714 | ||
715 | %ifnarch %{x8664} x32 | |
716 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/amd64-linux/macros | |
717 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia32e-linux/macros | |
718 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x32-linux/macros | |
719 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x86_64-linux/macros | |
720 | %endif | |
721 | ||
722 | %ifnarch %{ppc} | |
723 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/m68k-linux/macros | |
724 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc32dy4-linux/macros | |
725 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc64*-linux/macros | |
726 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8260-linux/macros | |
727 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8560-linux/macros | |
728 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros | |
729 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros | |
730 | %endif | |
731 | ||
732 | %ifnarch aarch64 | |
733 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros | |
734 | %endif | |
735 | ||
736 | %ifnarch %{arm} | |
737 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros | |
738 | %endif | |
739 | ||
740 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros | |
741 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros | |
742 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros | |
743 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros | |
744 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros | |
745 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros | |
746 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros | |
747 | ||
748 | cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform | |
749 | %ifarch x32 | |
750 | %{_target_cpu}-%{_target_vendor}-linux-gnux32 | |
751 | %else | |
752 | %{_target_cpu}-%{_target_vendor}-linux | |
753 | %endif | |
754 | EOF | |
755 | ||
756 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh | |
757 | ||
758 | install -d $RPM_BUILD_ROOT%{_rpmlibdir}/pld | |
759 | ||
760 | cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree | |
761 | cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh | |
762 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rpm | |
763 | ||
764 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/banner.sh | |
765 | ||
766 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros | |
767 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang | |
768 | cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov | |
769 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles | |
770 | cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq | |
771 | cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles | |
772 | ||
773 | # move rpm to /bin | |
774 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin | |
775 | ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmquery | |
776 | ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmverify | |
777 | ||
778 | # move essential libs to /lib (libs that /bin/rpm links to) | |
779 | for a in librpm.so librpmbuild.so librpmio.so librpmsign.so; do | |
780 | mv -f $RPM_BUILD_ROOT%{_libdir}/${a}.* $RPM_BUILD_ROOT/%{_lib} | |
781 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/${a}.*.*.*) $RPM_BUILD_ROOT%{_libdir}/${a} | |
782 | done | |
783 | ||
784 | # init an empty database for %ghost'ing for all supported backends | |
785 | for be in sqlite bdb ndb; do | |
786 | ./rpmdb \ | |
787 | --macros=$RPM_BUILD_ROOT%{_rpmlibdir}/macros \ | |
788 | --rcfile=$RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc \ | |
789 | --dbpath=${PWD}/${be} \ | |
790 | --define "_db_backend ${be}" \ | |
791 | --initdb | |
792 | cp -va ${be}/. $RPM_BUILD_ROOT/var/lib/rpm/ | |
793 | done | |
794 | ||
795 | %if %{with python3} | |
796 | # Remove anything that rpm make install might put there | |
797 | %{__rm} -rf $RPM_BUILD_ROOT%{py3_sitedir} | |
798 | cd python | |
799 | %py3_install | |
800 | cd .. | |
801 | %endif | |
802 | ||
803 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/rpm-plugins/*.la | |
804 | ||
805 | # wrong location, not used anyway | |
806 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log} | |
807 | ||
808 | %find_lang %{name} | |
809 | ||
810 | %clean | |
811 | rm -rf $RPM_BUILD_ROOT | |
812 | ||
813 | %posttrans | |
814 | if [ -e /var/lib/rpm/Packages ]; then | |
815 | if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \ | |
816 | /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then | |
817 | echo | |
818 | echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}" | |
819 | echo | |
820 | fi | |
821 | echo | |
822 | echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,' | |
823 | echo 'you should ignore it and restart poldek' | |
824 | echo | |
825 | %{__rm} -rf /var/lib/rpm/log >/dev/null 2>/dev/null || : | |
826 | %{__rm} -rf /var/lib/rpm/tmp >/dev/null 2>/dev/null || : | |
827 | # Unlock database for rebuild, safe since this is posttrans | |
828 | %{__rm} -f /var/lib/rpm/.rpm.lock >/dev/null 2>/dev/null || : | |
829 | if ! /usr/bin/rpmdb --rebuilddb; then | |
830 | echo | |
831 | echo "rpm database conversion failed!" | |
832 | echo "You have to run '/usr/bin/rpmdb --rebuilddb' manually" | |
833 | echo | |
834 | exit 1 | |
835 | fi | |
836 | fi | |
837 | ||
838 | %post | |
839 | if [ -d /var/cache/hrmib ]; then | |
840 | %{__rm} -rf /var/cache/hrmib | |
841 | echo "HR-MIB is not supported by this rpm version." | |
842 | echo "/var/cache/hrmib has been removed." | |
843 | fi | |
844 | ||
845 | %post lib -p /sbin/ldconfig | |
846 | %postun lib -p /sbin/ldconfig | |
847 | ||
848 | %pretrans build | |
849 | find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f | |
850 | ||
851 | %files -f %{name}.lang | |
852 | %defattr(644,root,root,755) | |
853 | %doc ChangeLog CREDITS README | |
854 | ||
855 | %dir /etc/pki/rpm-gpg | |
856 | /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc | |
857 | ||
858 | %attr(755,root,root) /bin/rpm | |
859 | %attr(755,root,root) %{_bindir}/rpmdb | |
860 | %attr(755,root,root) %{_bindir}/rpmkeys | |
861 | %attr(755,root,root) %{_bindir}/rpmquery | |
862 | %attr(755,root,root) %{_bindir}/rpmverify | |
863 | ||
864 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros | |
865 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang | |
866 | # this is ok to be replaced | |
867 | %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform | |
868 | ||
869 | %{_mandir}/man8/rpm.8* | |
870 | %{_mandir}/man8/rpmdb.8* | |
871 | %{_mandir}/man8/rpmkeys.8* | |
872 | %{_mandir}/man8/rpm-misc.8* | |
873 | %{?with_plugins:%{_mandir}/man8/rpm-plugins.8*} | |
874 | %lang(fr) %{_mandir}/fr/man8/rpm.8* | |
875 | %lang(ja) %{_mandir}/ja/man8/rpm.8* | |
876 | %lang(ko) %{_mandir}/ko/man8/rpm.8* | |
877 | %lang(pl) %{_mandir}/pl/man8/rpm.8* | |
878 | %lang(ru) %{_mandir}/ru/man8/rpm.8* | |
879 | %lang(sk) %{_mandir}/sk/man8/rpm.8* | |
880 | ||
881 | %dir /var/lib/rpm | |
882 | %ghost %config(missingok,noreplace) /var/lib/rpm/* | |
883 | %ghost /var/lib/rpm/.*.lock | |
884 | ||
885 | %{_rpmlibdir}/rpmpopt* | |
886 | %{_rpmlibdir}/rpmrc | |
887 | %{_rpmlibdir}/macros | |
888 | %dir %{_rpmlibdir}/macros.d | |
889 | %dir %{_rpmlibdir}/platform | |
890 | %{_rpmlibdir}/platform/noarch-* | |
891 | %ifarch %{ix86} %{x8664} x32 | |
892 | %{_rpmlibdir}/platform/athlon* | |
893 | %{_rpmlibdir}/platform/geode* | |
894 | %{_rpmlibdir}/platform/i?86* | |
895 | %{_rpmlibdir}/platform/pentium* | |
896 | %endif | |
897 | %ifarch %{x8664} x32 | |
898 | %{_rpmlibdir}/platform/amd64* | |
899 | %{_rpmlibdir}/platform/ia32e* | |
900 | %{_rpmlibdir}/platform/x86_64* | |
901 | %{_rpmlibdir}/platform/x32* | |
902 | %endif | |
903 | %ifarch alpha | |
904 | %{_rpmlibdir}/platform/alpha* | |
905 | %endif | |
906 | %ifarch aarch64 | |
907 | %{_rpmlibdir}/platform/aarch64* | |
908 | %endif | |
909 | %ifarch %{arm} | |
910 | %{_rpmlibdir}/platform/arm* | |
911 | %endif | |
912 | %ifarch ia64 | |
913 | %{_rpmlibdir}/platform/ia64* | |
914 | %endif | |
915 | %ifarch mips mipsel mips64 mips64el | |
916 | %{_rpmlibdir}/platform/mips* | |
917 | %endif | |
918 | %ifarch %{ppc} | |
919 | %{_rpmlibdir}/platform/ppc* | |
920 | %endif | |
921 | %ifarch sparc sparc64 | |
922 | %{_rpmlibdir}/platform/sparc* | |
923 | %endif | |
924 | ||
925 | %dir %{_rpmlibdir}/pld | |
926 | ||
927 | %attr(755,root,root) %{_rpmlibdir}/rpmdb_dump | |
928 | %attr(755,root,root) %{_rpmlibdir}/rpmdb_load | |
929 | ||
930 | # valgrind suppression file for rpm | |
931 | %{_rpmlibdir}/rpm.supp | |
932 | ||
933 | %dir /usr/lib/.build-id | |
934 | ||
935 | %files base | |
936 | %defattr(644,root,root,755) | |
937 | %dir %{_sysconfdir}/rpm | |
938 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm | |
939 | %dir %{_rpmlibdir} | |
940 | %attr(755,root,root) %{_bindir}/banner.sh | |
941 | %attr(755,root,root) %{_rpmlibdir}/user_group.sh | |
942 | %dir /var/lib/banner | |
943 | ||
944 | %files lib | |
945 | %defattr(644,root,root,755) | |
946 | %attr(755,root,root) /%{_lib}/librpm.so.9 | |
947 | %attr(755,root,root) /%{_lib}/librpm.so.%{sover} | |
948 | %attr(755,root,root) /%{_lib}/librpmbuild.so.9 | |
949 | %attr(755,root,root) /%{_lib}/librpmbuild.so.%{sover} | |
950 | %attr(755,root,root) /%{_lib}/librpmio.so.9 | |
951 | %attr(755,root,root) /%{_lib}/librpmio.so.%{sover} | |
952 | %attr(755,root,root) /%{_lib}/librpmsign.so.9 | |
953 | %attr(755,root,root) /%{_lib}/librpmsign.so.%{sover} | |
954 | %{?with_plugins:%dir %{_libdir}/rpm-plugins} | |
955 | ||
956 | %files devel | |
957 | %defattr(644,root,root,755) | |
958 | %attr(755,root,root) %{_libdir}/librpm.so | |
959 | %attr(755,root,root) %{_libdir}/librpmbuild.so | |
960 | %attr(755,root,root) %{_libdir}/librpmio.so | |
961 | %attr(755,root,root) %{_libdir}/librpmsign.so | |
962 | %{_libdir}/librpm.la | |
963 | %{_libdir}/librpmbuild.la | |
964 | %{_libdir}/librpmio.la | |
965 | %{_libdir}/librpmsign.la | |
966 | %{_includedir}/rpm | |
967 | %{_pkgconfigdir}/rpm.pc | |
968 | ||
969 | %files utils | |
970 | %defattr(644,root,root,755) | |
971 | %attr(755,root,root) %{_bindir}/rpm2archive | |
972 | %attr(755,root,root) %{_bindir}/rpm2cpio | |
973 | %attr(755,root,root) %{_bindir}/rpmgraph | |
974 | %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh | |
975 | %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh | |
976 | %attr(755,root,root) %{_rpmlibdir}/tgpg | |
977 | %attr(755,root,root) %{_rpmlibdir}/debugedit | |
978 | %attr(755,root,root) %{_rpmlibdir}/rpmdeps | |
979 | %{_mandir}/man8/rpm2archive.8* | |
980 | %{_mandir}/man8/rpm2cpio.8* | |
981 | %{_mandir}/man8/rpmdeps.8* | |
982 | %{_mandir}/man8/rpmgraph.8* | |
983 | %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8* | |
984 | %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8* | |
985 | %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8* | |
986 | %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8* | |
987 | %lang(pl) %{_mandir}/pl/man8/rpmdeps.8* | |
988 | %lang(ja) %{_mandir}/ja/man8/rpmgraph.8* | |
989 | %lang(pl) %{_mandir}/pl/man8/rpmgraph.8* | |
990 | ||
991 | %files build | |
992 | %defattr(644,root,root,755) | |
993 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto* | |
994 | %attr(755,root,root) %{_rpmlibdir}/brp-* | |
995 | %attr(755,root,root) %{_rpmlibdir}/check-files | |
996 | %attr(755,root,root) %{_rpmlibdir}/install-build-tree | |
997 | %attr(755,root,root) %{_rpmlibdir}/elfdeps | |
998 | %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh | |
999 | # needs hacked pkg-config to return anything | |
1000 | %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh | |
1001 | %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs | |
1002 | ||
1003 | %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov | |
1004 | # must be here for "Requires: rpm-*prov" to work | |
1005 | #%{_rpmlibdir}/macros.d/cmake | |
1006 | #%{_rpmlibdir}/macros.d/gstreamer | |
1007 | #%{_rpmlibdir}/macros.d/libtool | |
1008 | #%{_rpmlibdir}/macros.d/perl | |
1009 | #%{_rpmlibdir}/macros.d/pkgconfig | |
1010 | #%{_rpmlibdir}/macros.d/python | |
1011 | #%{_rpmlibdir}/macros.d/selinux | |
1012 | #%{_rpmlibdir}/macros.d/tcl | |
1013 | #%{_rpmlibdir}/macros.rpmbuild | |
1014 | ||
1015 | %attr(755,root,root) %{_rpmlibdir}/check-buildroot | |
1016 | %attr(755,root,root) %{_rpmlibdir}/check-prereqs | |
1017 | %attr(755,root,root) %{_rpmlibdir}/check-rpaths | |
1018 | %attr(755,root,root) %{_rpmlibdir}/check-rpaths-worker | |
1019 | %attr(755,root,root) %{_rpmlibdir}/find-provides | |
1020 | %attr(755,root,root) %{_rpmlibdir}/find-requires | |
1021 | %attr(755,root,root) %{_rpmlibdir}/ocamldeps.sh | |
1022 | %attr(755,root,root) %{_rpmlibdir}/script.req | |
1023 | %attr(755,root,root) %{_rpmlibdir}/sepdebugcrcfix | |
1024 | ||
1025 | %dir %{_rpmlibdir}/fileattrs | |
1026 | %{_rpmlibdir}/fileattrs/debuginfo.attr | |
1027 | %{_rpmlibdir}/fileattrs/desktop.attr | |
1028 | %{_rpmlibdir}/fileattrs/elf.attr | |
1029 | %{_rpmlibdir}/fileattrs/font.attr | |
1030 | %{_rpmlibdir}/fileattrs/libtool.attr | |
1031 | %{_rpmlibdir}/fileattrs/metainfo.attr | |
1032 | %{_rpmlibdir}/fileattrs/ocaml.attr | |
1033 | %{_rpmlibdir}/fileattrs/perl.attr | |
1034 | %{_rpmlibdir}/fileattrs/perllib.attr | |
1035 | %{_rpmlibdir}/fileattrs/pkgconfig.attr | |
1036 | %{_rpmlibdir}/fileattrs/python.attr | |
1037 | %{_rpmlibdir}/fileattrs/pythondist.attr | |
1038 | %{_rpmlibdir}/fileattrs/script.attr | |
1039 | ||
1040 | %attr(755,root,root) %{_bindir}/gendiff | |
1041 | %attr(755,root,root) %{_bindir}/rpmbuild | |
1042 | %attr(755,root,root) %{_bindir}/rpmspec | |
1043 | ||
1044 | %{_mandir}/man1/gendiff.1* | |
1045 | %lang(pl) %{_mandir}/pl/man1/gendiff.1* | |
1046 | %{_mandir}/man8/rpmbuild.8* | |
1047 | %lang(ja) %{_mandir}/ja/man8/rpmbuild.8* | |
1048 | %lang(pl) %{_mandir}/pl/man8/rpmbuild.8* | |
1049 | %{_mandir}/man8/rpmspec.8* | |
1050 | ||
1051 | %files perlprov | |
1052 | %defattr(644,root,root,755) | |
1053 | %attr(755,root,root) %{_rpmlibdir}/perl.* | |
1054 | ||
1055 | %files pythonprov | |
1056 | %defattr(644,root,root,755) | |
1057 | %attr(755,root,root) %{_rpmlibdir}/pythondistdeps.py | |
1058 | ||
1059 | %if %{with python3} | |
1060 | %files -n python3-rpm | |
1061 | %defattr(644,root,root,755) | |
1062 | %dir %{py3_sitedir}/rpm | |
1063 | %attr(755,root,root) %{py3_sitedir}/rpm/*.so | |
1064 | %{py3_sitedir}/rpm/*.py | |
1065 | %{py3_sitedir}/rpm-%{version}-py*.egg-info | |
1066 | %{py3_sitedir}/rpm/__pycache__ | |
1067 | %endif | |
1068 | ||
1069 | %if %{with plugins} | |
1070 | %files plugin-audit | |
1071 | %defattr(644,root,root,755) | |
1072 | %attr(755,root,root) %{_libdir}/rpm-plugins/audit.so | |
1073 | %{_mandir}/man8/rpm-plugin-audit.8* | |
1074 | ||
1075 | %files plugin-syslog | |
1076 | %defattr(644,root,root,755) | |
1077 | %attr(755,root,root) %{_libdir}/rpm-plugins/syslog.so | |
1078 | %{_mandir}/man8/rpm-plugin-syslog.8* | |
1079 | ||
1080 | %if %{with systemd} | |
1081 | %files plugin-systemd-inhibit | |
1082 | %defattr(644,root,root,755) | |
1083 | %attr(755,root,root) %{_libdir}/rpm-plugins/systemd_inhibit.so | |
1084 | %{_mandir}/man8/rpm-plugin-systemd-inhibit.8* | |
1085 | %endif | |
1086 | ||
1087 | %files plugin-ima | |
1088 | %defattr(644,root,root,755) | |
1089 | %attr(755,root,root) %{_libdir}/rpm-plugins/ima.so | |
1090 | %{_mandir}/man8/rpm-plugin-ima.8* | |
1091 | ||
1092 | %files plugin-prioreset | |
1093 | %defattr(644,root,root,755) | |
1094 | %attr(755,root,root) %{_libdir}/rpm-plugins/prioreset.so | |
1095 | %{_mandir}/man8/rpm-plugin-prioreset.8* | |
1096 | ||
1097 | %files plugin-selinux | |
1098 | %defattr(644,root,root,755) | |
1099 | %attr(755,root,root) %{_libdir}/rpm-plugins/selinux.so | |
1100 | %{_mandir}/man8/rpm-plugin-selinux.8* | |
1101 | %endif | |
1102 | ||
1103 | %files sign | |
1104 | %defattr(644,root,root,755) | |
1105 | %attr(755,root,root) %{_bindir}/rpmsign | |
1106 | %{_mandir}/man8/rpmsign.8* | |
1107 | ||
1108 | %if %{with apidocs} | |
1109 | %files apidocs | |
1110 | %defattr(644,root,root,755) | |
1111 | %doc doc/librpm/html/* | |
1112 | %endif |