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