3 # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
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
19 %if "%{_rpmversion}" >= "4.12" && "%{_rpmversion}" < "5"
20 %define with_recommends_tags 1
23 %if %{without plugins}
25 %undefine with_selinux
26 %undefine with_systemd
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
39 License: GPL v2 / LGPL v2.1
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
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/
54 Source11: %{name}.noautoprov
55 Source12: %{name}.noautoprovfiles
56 Source13: %{name}.noautoreq
57 Source14: %{name}.noautoreqfiles
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
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
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
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
124 BuildRequires: python3-devel >= 1:3.2
125 BuildRequires: rpm-pythonprov
126 BuildRequires: rpmbuild(macros) >= 1.750
128 BuildRequires: rpm-build >= 4.6
129 BuildRequires: sqlite3-devel >= 3.22.0
131 BuildRequires: xz-devel
132 BuildRequires: zlib-devel >= 1.0.5
133 BuildRequires: zstd-devel >= 1.3.8
135 BuildRequires: doxygen
136 BuildRequires: ghostscript
137 BuildRequires: graphviz
138 BuildRequires: tetex-pdftex
140 Requires(posttrans): coreutils
141 Requires: %{name}-base = %{epoch}:%{version}-%{release}
142 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
143 Requires: FHS >= 3.0-2
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
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)
163 %define _binary_payload w9.gzdio
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
171 %define _rpmlibdir /usr/lib/rpm
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.
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
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.
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.
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.
208 %description -l ru.UTF-8
209 RPM - это мощный менеджер пакетов, который может быть использован для
210 создания, инсталляции, запросов (query), проверки, обновления и
211 удаления программных пакетов. Пакет состоит из файлового архива и
212 служебной информации, включающей название, версию, описание и другие
215 %description -l uk.UTF-8
216 RPM - це потужний менеджер пакетів, що може бути використаний для
217 створення, інсталяції, запитів (query), перевірки, поновлення та
218 видалення програмних пакетів. Пакет складається з файлового архіву та
219 службової інформації, що містить назву, версію, опис та іншу
220 інформацію про пакет.
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
227 Obsoletes: rpm-scripts < 4.4
228 Obsoletes: vserver-rpm < 1
231 The RPM base package contains scripts used by rpm packages themselves.
233 - scripts for adding/removing groups and users needed for rpm
235 - banner.sh to display %%banner messages from rpm scriptlets.
237 %description base -l pl.UTF-8
238 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
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.
244 Summary: RPMs library
245 Summary(pl.UTF-8): Biblioteki RPM-a
247 Requires: elfutils >= 0.159
248 Requires: elfutils-libelf >= 0.159
249 Requires: libmagic >= 1.15-2
250 Requires: popt >= %{popt_ver}
251 Requires: sqlite3-libs >= 3.22.0
252 Requires: zlib >= 1.0.5
253 Requires: zstd >= 1.3.8
254 Obsoletes: rpm-libs < 4.0.2-4
255 # avoid SEGV caused by mixed db versions
256 Conflicts: poldek < 0.18.1-16
261 %description lib -l pl.UTF-8
265 Summary: Header files for rpm libraries
266 Summary(de.UTF-8): Header-Dateien für rpm Libraries
267 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
268 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
269 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
270 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
271 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
272 Group: Development/Libraries
273 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
275 %{?with_audit:Requires: audit-libs-devel}
276 Requires: bzip2-devel
277 Requires: elfutils-devel >= 0.159
278 Requires: libcap-devel
279 Requires: libgcrypt-devel
280 Requires: libgomp-devel >= 6:4.5
281 Requires: libmagic-devel
283 Requires: libselinux-devel
284 Requires: libsemanage-devel
285 Requires: libsepol-devel
287 Requires: lua-devel >= 5.3
288 Requires: popt-devel >= %{popt_ver}
289 Requires: sqlite3-devel >= 3.22.0
291 Requires: zlib-devel >= 1.0.5
292 Requires: zstd-devel >= 1.3.8
293 Obsoletes: rpm-static < 1:4.15
296 The RPM packaging system includes C libraries that make it easy to
297 manipulate RPM packages and databases. They are intended to ease the
298 creation of graphical package managers and other tools that need
299 intimate knowledge of RPM packages. This package contains header files
302 %description devel -l de.UTF-8
303 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
304 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
305 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
306 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
308 %description devel -l es.UTF-8
309 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
310 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
311 facilitar la creación de administradores gráficos de paquetes y otras
312 herramientas que necesiten un conocimiento profundo de paquetes RPM.
314 %description devel -l pl.UTF-8
315 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
316 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
317 graficznych programów zarządzających pakietami oraz innych narzędzi,
318 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
319 zawiera pliki nagłówkowe wspomnianych bibliotek.
321 %description devel -l pt_BR.UTF-8
322 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
323 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
324 facilitar a criação de gerenciadores gráficos de pacotes e outras
325 ferramentas que precisem de conhecimento profundo de pacotes RPM.
327 %description devel -l ru.UTF-8
328 Система управления пакетами RPM содержит библиотеку C, которая
329 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
330 Эта библиотека предназначена для облегчения создания графических
331 пакетных менеджеров и других утилит, которым необходимо работать с
334 %description devel -l uk.UTF-8
335 Система керування пакетами RPM містить бібліотеку C, котра спрощує
336 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
337 призначена для полегшення створення графічних пакетних менеджерів та
338 інших утиліт, що працюють з пакетами RPM.
341 Summary: Additional utilities for managing RPM packages and database
342 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
343 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
344 Group: Applications/File
345 Requires: %{name} = %{epoch}:%{version}-%{release}
346 Requires: popt >= %{popt_ver}
347 %if %{with recommends_tags}
351 Conflicts: filesystem-debuginfo < 3.0-16
354 Additional utilities for managing RPM packages and database.
356 %description utils -l de.UTF-8
357 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
359 %description utils -l pl.UTF-8
360 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
363 Summary: Scripts for building binary RPM packages
364 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
365 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
366 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
367 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
368 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
369 Group: Applications/File
370 Requires(pretrans): coreutils
371 Requires(pretrans): findutils
372 Requires: %{name}-utils = %{epoch}:%{version}-%{release}
376 Requires: chrpath >= 0.10-4
381 Requires: file >= 4.17
384 Requires: rpm-pld-macros-build >= 1.744
386 Requires: gcc >= 3.0.3
390 Requires: glibc-devel
397 Requires: tar >= 1:1.22
401 Provides: rpmbuild(noauto) = 3
403 Conflicts: automake < 1:1.7.9-2
404 Conflicts: libtool < 2:1.5-13
408 Scripts for building binary RPM packages.
410 %description build -l de.UTF-8
411 Scripts fürs Bauen binärer RPM-Pakete.
413 %description build -l pl.UTF-8
414 Skrypty pomocnicze do budowania binarnych RPM-ów.
416 %description build -l pt_BR.UTF-8
417 Este pacote contém scripts e programas executáveis que são usados para
418 construir pacotes usando o RPM.
420 %description build -l ru.UTF-8
421 Различные вспомогательные скрипты и исполняемые программы, которые
422 используются для сборки RPM'ов.
424 %description build -l uk.UTF-8
425 Різноманітні допоміжні скрипти та утиліти, які використовуються для
429 Summary: Additional utilities for checking Perl provides/requires in RPM packages
430 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
431 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
432 Group: Applications/File
433 Requires: %{name} = %{epoch}:%{version}-%{release}
434 Requires: perl-Encode
436 Requires: perl-modules
438 %description perlprov
439 Additional utilities for checking Perl provides/requires in RPM
442 %description perlprov -l de.UTF-8
443 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
445 %description perlprov -l pl.UTF-8
446 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
449 %package -n python3-rpm
450 Summary: Python 3 interface to RPM library
451 Summary(pl.UTF-8): Interfejs Pythona 3 do biblioteki RPM-a
452 Summary(pt_BR.UTF-8): Módulo Python 3 para aplicativos que manipulam pacotes RPM
453 Group: Development/Languages/Python
454 Requires: %{name} = %{epoch}:%{version}-%{release}
456 Obsoletes: python-rpm < 1:4.16.0
457 Obsoletes: rpm-python < 4.0.2-50
459 %description -n python3-rpm
460 The python3-rpm package contains a module which permits applications
461 written in the Python 3 programming language to use the interface
462 supplied by RPM (RPM Package Manager) libraries.
464 This package should be installed if you want to develop Python 3
465 programs that will manipulate RPM packages and databases.
467 %description -n python3-rpm -l pl.UTF-8
468 Pakiet python3-rpm zawiera moduł, który pozwala aplikacjom napisanym w
469 Pythonie 3 na używanie interfejsu dostarczanego przez biblioteki
472 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
473 Pythonie 3 programy manipulujące pakietami i bazami danych rpm.
475 %description -n python3-rpm -l pt_BR.UTF-8
476 O pacote python3-rpm contém um módulo que permite que aplicações
477 escritas em Python 3 utilizem a interface fornecida pelas bibliotecas
478 RPM (RPM Package Manager).
480 Esse pacote deve ser instalado se você quiser desenvolver programas em
481 Python 3 para manipular pacotes e bancos de dados RPM.
483 %package plugin-audit
484 Summary: Plugin for logging audit events on package operations
485 Summary(pl.UTF-8): Wtyczka do logowania zdarzeń audytowych przy operacjach na pakietach
487 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
489 %description plugin-audit
490 Plugin for libaudit support.
492 %description plugin-audit -l pl.UTF-8
493 Wtyczka do obsługi libaudit.
495 %package plugin-syslog
496 Summary: Plugin for syslog functionality
497 Summary(pl.UTF-8): Wtyczka do funkcjonalności sysloga
499 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
501 %description plugin-syslog
502 This plugin exports RPM actions to the system log.
504 %description plugin-syslog -l pl.UTF-8
505 Ta wtyczka eksportuje akcje RPM-a do logu systemowego.
507 %package plugin-systemd-inhibit
508 Summary: Plugin for systemd inhibit functionality
509 Summary(pl.UTF-8): Wtyczka do funkcjonalności systemd inhibit
511 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
512 Requires: dbus >= 1.3
514 %description plugin-systemd-inhibit
515 This plugin blocks systemd from entering idle, sleep or shutdown while
516 an rpm transaction is running using the systemd-inhibit mechanism.
518 %description plugin-systemd-inhibit -l pl.UTF-8
519 Ta wtyczka blokuje systemd przed wejściem w stan bezczynności (idle),
520 uśpienia (sleep) lub zamykania (shutdown) podczas trwania transakcji
521 RPM-a, korzystając z mechanizmu systemd-inhibit.
524 Summary: Plugin for IMA file signatures
525 Summary(pl.UTF-8): Wtyczka do sygnatur plików IMA
527 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
529 %description plugin-ima
530 This plugin adds support for enforcing and verifying IMA file
531 signatures in an rpm.
533 %description plugin-ima -l pl.UTF-8
534 Ta wtyczka dodaje obsługę wymuszania i weryfikacji podpisów plików IMA
537 %package plugin-prioreset
538 Summary: Plugin for resetting scriptlet priorities for SysV init
539 Summary(pl.UTF-8): Wtyczka do resetowania priorytetu skryptletów przy inicie SysV
541 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
543 %description plugin-prioreset
544 This plugin is useful on legacy SysV init systems if you run rpm
545 transactions with nice/ionice priorities. Should not be used on
548 %description plugin-prioreset -l pl.UTF-8
549 Ta wtyczka jest przydatna w systemach ze starym procesem init w wersji
550 SysV, jeżeli transakcje RPM-a są uruchamiane z priorytetami
551 nice/ionice. Nie powinna być używana w systemach z systemd.
553 %package plugin-selinux
554 Summary: Plugin for SELinux functionality
555 Summary(pl.UTF-8): Wtyczka do funkcjonalności SELinux
557 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
558 Requires: libselinux >= 2.1.0
560 %description plugin-selinux
561 Plugin for SELinux functionality.
563 %description plugin-selinux -l pl.UTF-8
564 Wtyczka do funkcjonalności SELinux.
566 %package plugin-fsverity
567 Summary: Plugin for fsverity file signatures
568 Summary(pl.UTF-8): Wtyczka do sygnatur plików fsverity
570 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
572 %description plugin-fsverity
573 Plugin for fsverity file signatures.
575 %description plugin-fsverity -l pl.UTF-8
576 Wtyczka do sygnatur plików fsverity.
578 %package plugin-fapolicyd
579 Summary: Plugin for fapolicyd support
580 Summary(pl.UTF-8): Wtyczka do obsługi fapolicyd
582 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
584 %description plugin-fapolicyd
585 Plugin for fapolicyd support.
587 See https://people.redhat.com/sgrubb/fapolicyd/ for information about
588 the fapolicyd daemon.
590 %description plugin-fapolicyd -l pl.UTF-8
591 Wtyczka do obsługi fapolicyd.
593 Informacje na temat demona fapolicyd można znaleźć pod adresem
594 <https://people.redhat.com/sgrubb/fapolicyd/>.
596 %package plugin-dbus-announce
597 Summary: Plugin for announcing transactions on the DBUS
598 Summary(pl.UTF-8): Wtyczka ogłaszająca transakcje przez DBUS
600 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
602 %description plugin-dbus-announce
603 The plugin announces basic information about rpm transactions to the
604 system DBUS - like packages installed or removed. Other programs can
605 subscribe to the signals to get notified when packages on the system
608 %description plugin-dbus-announce -l pl.UTF-8
609 Ta wtyczka ogłasza przez podstawowe szynę systemową DBUS informacje o
610 transakcjach RPM-a, takie jak pakiety, które są instalowane lub
611 usuwane. Inne programy mogą zasubskrybować sygnały powiadamiające o
612 zmianach w pakietach systemowych.
615 Summary: Package signing support
616 Summary(pl.UTF-8): Obsługa podpisywania pakietów
618 Requires: %{name}-lib = %{epoch}:%{version}-%{release}
621 This package contains support for digitally signing RPM packages.
623 %description sign -l pl.UTF-8
624 Ten pakiet zawiera obsługę cyfrowego podpisywania pakietów RPM.
627 Summary: RPM API documentation and guides
628 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
633 Documentation for RPM API and guides in HTML format generated from rpm
636 %description apidocs -l pl.UTF-8
637 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
638 źrodeł RPM-a przez doxygen.
641 %setup -q -n %{name}-%{version}%{?subver}
683 install %{SOURCE15} scripts/perl.prov.in
685 %{__mv} scripts/perl.req{,.in}
687 # generate Group translations to *.po
688 awk -f %{SOURCE6} %{SOURCE5}
697 # rpm checks for CPU type at runtime, but it looks better
699 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
700 -e 's|@host_cpu@|%{_target_cpu}|' \
701 -e 's|@host_os@|%{_target_os}|' \
706 WITH_PERL_VERSION=no \
707 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
708 __GPG=%{_bindir}/gpg \
711 %{!?with_plugins:--disable-plugins} \
712 %{!?with_systemd:--disable-inhibit-plugin} \
713 --disable-silent-rules \
718 --with-audit%{!?with_audit:=no} \
721 %{?with_imaevm:--with-imaevm} \
722 %{?with_python3:--enable-python} \
723 --with-selinux%{!?with_selinux:=no} \
728 %{__make} -C po update-gmo
736 rm -rf $RPM_BUILD_ROOT
737 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/{rpm,pki/rpm-gpg}} \
738 $RPM_BUILD_ROOT/var/lib/{banner,rpm}
740 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
743 pkgconfigdir=%{_pkgconfigdir} \
744 DESTDIR=$RPM_BUILD_ROOT
747 %ifnarch %{ix86} %{x8664} x32
748 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/athlon-linux/macros
749 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/geode-linux/macros
750 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i386-linux/macros
751 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i486-linux/macros
752 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i586-linux/macros
753 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i686-linux/macros
754 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium3-linux/macros
755 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium4-linux/macros
758 %ifnarch %{x8664} x32
759 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/amd64-linux/macros
760 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia32e-linux/macros
761 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x32-linux/macros
762 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x86_64-linux/macros
766 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/m68k-linux/macros
767 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc32dy4-linux/macros
768 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc64*-linux/macros
769 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8260-linux/macros
770 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8560-linux/macros
771 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros
772 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros
776 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros
780 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros
783 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
784 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros
785 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros
786 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros
787 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros
788 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros
789 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros
791 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
793 %{_target_cpu}-%{_target_vendor}-linux-gnux32
795 %{_target_cpu}-%{_target_vendor}-linux
799 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
801 install -d $RPM_BUILD_ROOT%{_rpmlibdir}/pld
803 cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
804 cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
805 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rpm
807 cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/banner.sh
809 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
810 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
811 cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
812 cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
813 cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
814 cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
816 cp -p %{SOURCE16} $RPM_BUILD_ROOT%{_rpmlibdir}/libtooldeps.sh
817 cp -p %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/fileattrs/libtool.attr
820 %{__mv} $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
821 ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmquery
822 ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmverify
824 # move essential libs to /lib (libs that /bin/rpm links to)
825 for a in librpm.so librpmbuild.so librpmio.so librpmsign.so; do
826 mv -f $RPM_BUILD_ROOT%{_libdir}/${a}.* $RPM_BUILD_ROOT/%{_lib}
827 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/${a}.*.*.*) $RPM_BUILD_ROOT%{_libdir}/${a}
830 # init an empty database for %ghost'ing for all supported backends
831 for be in sqlite bdb ndb; do
833 --macros=$RPM_BUILD_ROOT%{_rpmlibdir}/macros \
834 --rcfile=$RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc \
835 --dbpath=${PWD}/${be} \
836 --define "_db_backend ${be}" \
838 cp -va ${be}/. $RPM_BUILD_ROOT/var/lib/rpm/
842 # Remove anything that rpm make install might put there
843 %{__rm} -rf $RPM_BUILD_ROOT%{py3_sitedir}
849 %{__rm} $RPM_BUILD_ROOT%{_libdir}/rpm-plugins/*.la
851 # wrong location, not used anyway
852 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log}
857 rm -rf $RPM_BUILD_ROOT
860 if [ -e /var/lib/rpm/Packages ]; then
861 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
862 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
864 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
868 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
869 echo 'you should ignore it and restart poldek'
871 %{__rm} -rf /var/lib/rpm/log >/dev/null 2>/dev/null || :
872 %{__rm} -rf /var/lib/rpm/tmp >/dev/null 2>/dev/null || :
873 # Unlock database for rebuild, safe since this is posttrans
874 %{__rm} -f /var/lib/rpm/.rpm.lock >/dev/null 2>/dev/null || :
875 if ! /usr/bin/rpmdb --rebuilddb; then
877 echo "rpm database conversion failed!"
878 echo "You have to run '/usr/bin/rpmdb --rebuilddb' manually"
885 if [ -d /var/cache/hrmib ]; then
886 %{__rm} -rf /var/cache/hrmib
887 echo "HR-MIB is not supported by this rpm version."
888 echo "/var/cache/hrmib has been removed."
891 %post lib -p /sbin/ldconfig
892 %postun lib -p /sbin/ldconfig
895 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
897 %files -f %{name}.lang
898 %defattr(644,root,root,755)
899 %doc ChangeLog CREDITS README
901 %dir /etc/pki/rpm-gpg
902 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
904 %attr(755,root,root) /bin/rpm
905 %attr(755,root,root) %{_bindir}/rpmdb
906 %attr(755,root,root) %{_bindir}/rpmkeys
907 %attr(755,root,root) %{_bindir}/rpmquery
908 %attr(755,root,root) %{_bindir}/rpmverify
910 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
911 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
912 # this is ok to be replaced
913 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
915 %{_mandir}/man8/rpm.8*
916 %{_mandir}/man8/rpmdb.8*
917 %{_mandir}/man8/rpmkeys.8*
918 %{_mandir}/man8/rpm-misc.8*
919 %{?with_plugins:%{_mandir}/man8/rpm-plugins.8*}
920 %lang(fr) %{_mandir}/fr/man8/rpm.8*
921 %lang(ja) %{_mandir}/ja/man8/rpm.8*
922 %lang(ko) %{_mandir}/ko/man8/rpm.8*
923 %lang(pl) %{_mandir}/pl/man8/rpm.8*
924 %lang(ru) %{_mandir}/ru/man8/rpm.8*
925 %lang(sk) %{_mandir}/sk/man8/rpm.8*
928 %ghost %config(missingok,noreplace) /var/lib/rpm/*
929 %ghost /var/lib/rpm/.*.lock
931 %{_rpmlibdir}/rpmpopt*
934 %dir %{_rpmlibdir}/macros.d
935 %dir %{_rpmlibdir}/platform
936 %{_rpmlibdir}/platform/noarch-*
937 %ifarch %{ix86} %{x8664} x32
938 %{_rpmlibdir}/platform/athlon*
939 %{_rpmlibdir}/platform/geode*
940 %{_rpmlibdir}/platform/i?86*
941 %{_rpmlibdir}/platform/pentium*
944 %{_rpmlibdir}/platform/amd64*
945 %{_rpmlibdir}/platform/ia32e*
946 %{_rpmlibdir}/platform/x86_64*
947 %{_rpmlibdir}/platform/x32*
950 %{_rpmlibdir}/platform/alpha*
953 %{_rpmlibdir}/platform/aarch64*
956 %{_rpmlibdir}/platform/arm*
959 %{_rpmlibdir}/platform/ia64*
961 %ifarch mips mipsel mips64 mips64el
962 %{_rpmlibdir}/platform/mips*
965 %{_rpmlibdir}/platform/ppc*
967 %ifarch sparc sparc64
968 %{_rpmlibdir}/platform/sparc*
971 %dir %{_rpmlibdir}/pld
973 %attr(755,root,root) %{_rpmlibdir}/rpmdb_dump
974 %attr(755,root,root) %{_rpmlibdir}/rpmdb_load
976 # valgrind suppression file for rpm
977 %{_rpmlibdir}/rpm.supp
980 %defattr(644,root,root,755)
981 %dir %{_sysconfdir}/rpm
982 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
984 %attr(755,root,root) %{_bindir}/banner.sh
985 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
989 %defattr(644,root,root,755)
990 %attr(755,root,root) /%{_lib}/librpm.so.9
991 %attr(755,root,root) /%{_lib}/librpm.so.%{sover}
992 %attr(755,root,root) /%{_lib}/librpmbuild.so.9
993 %attr(755,root,root) /%{_lib}/librpmbuild.so.%{sover}
994 %attr(755,root,root) /%{_lib}/librpmio.so.9
995 %attr(755,root,root) /%{_lib}/librpmio.so.%{sover}
996 %attr(755,root,root) /%{_lib}/librpmsign.so.9
997 %attr(755,root,root) /%{_lib}/librpmsign.so.%{sover}
998 %{?with_plugins:%dir %{_libdir}/rpm-plugins}
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_libdir}/librpm.so
1003 %attr(755,root,root) %{_libdir}/librpmbuild.so
1004 %attr(755,root,root) %{_libdir}/librpmio.so
1005 %attr(755,root,root) %{_libdir}/librpmsign.so
1006 %{_libdir}/librpm.la
1007 %{_libdir}/librpmbuild.la
1008 %{_libdir}/librpmio.la
1009 %{_libdir}/librpmsign.la
1011 %{_pkgconfigdir}/rpm.pc
1014 %defattr(644,root,root,755)
1015 %attr(755,root,root) %{_bindir}/rpm2archive
1016 %attr(755,root,root) %{_bindir}/rpm2cpio
1017 %attr(755,root,root) %{_bindir}/rpmgraph
1018 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
1019 %attr(755,root,root) %{_rpmlibdir}/tgpg
1020 %attr(755,root,root) %{_rpmlibdir}/rpmdeps
1021 %{_mandir}/man8/rpm2archive.8*
1022 %{_mandir}/man8/rpm2cpio.8*
1023 %{_mandir}/man8/rpmdeps.8*
1024 %{_mandir}/man8/rpmgraph.8*
1025 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1026 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1027 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1028 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1029 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1030 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
1031 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
1034 %defattr(644,root,root,755)
1035 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1036 %attr(755,root,root) %{_rpmlibdir}/brp-*
1037 %attr(755,root,root) %{_rpmlibdir}/check-files
1038 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1039 %attr(755,root,root) %{_rpmlibdir}/elfdeps
1040 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1041 # needs hacked pkg-config to return anything
1042 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1043 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
1044 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1045 %attr(755,root,root) %{_rpmlibdir}/check-buildroot
1046 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
1047 %attr(755,root,root) %{_rpmlibdir}/check-rpaths
1048 %attr(755,root,root) %{_rpmlibdir}/check-rpaths-worker
1049 %attr(755,root,root) %{_rpmlibdir}/find-provides
1050 %attr(755,root,root) %{_rpmlibdir}/find-requires
1051 %attr(755,root,root) %{_rpmlibdir}/ocamldeps.sh
1052 %attr(755,root,root) %{_rpmlibdir}/script.req
1054 %dir %{_rpmlibdir}/fileattrs
1055 %{_rpmlibdir}/fileattrs/debuginfo.attr
1056 %{_rpmlibdir}/fileattrs/desktop.attr
1057 %{_rpmlibdir}/fileattrs/elf.attr
1058 %{_rpmlibdir}/fileattrs/font.attr
1059 %{_rpmlibdir}/fileattrs/libtool.attr
1060 %{_rpmlibdir}/fileattrs/metainfo.attr
1061 %{_rpmlibdir}/fileattrs/ocaml.attr
1062 %{_rpmlibdir}/fileattrs/pkgconfig.attr
1063 %{_rpmlibdir}/fileattrs/script.attr
1065 %attr(755,root,root) %{_bindir}/gendiff
1066 %attr(755,root,root) %{_bindir}/rpmbuild
1067 %attr(755,root,root) %{_bindir}/rpmspec
1069 %{_mandir}/man1/gendiff.1*
1070 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1071 %{_mandir}/man8/rpmbuild.8*
1072 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1073 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1074 %{_mandir}/man8/rpmspec.8*
1077 %defattr(644,root,root,755)
1078 %{_rpmlibdir}/fileattrs/perl.attr
1079 %{_rpmlibdir}/fileattrs/perllib.attr
1080 %attr(755,root,root) %{_rpmlibdir}/perl.*
1083 %files -n python3-rpm
1084 %defattr(644,root,root,755)
1085 %dir %{py3_sitedir}/rpm
1086 %attr(755,root,root) %{py3_sitedir}/rpm/*.so
1087 %{py3_sitedir}/rpm/*.py
1088 %{py3_sitedir}/rpm-%{version}-py*.egg-info
1089 %{py3_sitedir}/rpm/__pycache__
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/rpm-plugins/audit.so
1096 %{_mandir}/man8/rpm-plugin-audit.8*
1098 %files plugin-syslog
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_libdir}/rpm-plugins/syslog.so
1101 %{_mandir}/man8/rpm-plugin-syslog.8*
1104 %files plugin-systemd-inhibit
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{_libdir}/rpm-plugins/systemd_inhibit.so
1107 %{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{_libdir}/rpm-plugins/ima.so
1113 %{_mandir}/man8/rpm-plugin-ima.8*
1115 %files plugin-prioreset
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_libdir}/rpm-plugins/prioreset.so
1118 %{_mandir}/man8/rpm-plugin-prioreset.8*
1120 %files plugin-selinux
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{_libdir}/rpm-plugins/selinux.so
1123 %{_mandir}/man8/rpm-plugin-selinux.8*
1125 %if %{with fsverity}
1126 %files plugin-fsverity
1127 %defattr(644,root,root,755)
1128 %attr(755,root,root) %{_libdir}/rpm-plugins/fsverity.so
1131 %files plugin-fapolicyd
1132 %defattr(644,root,root,755)
1133 %attr(755,root,root) %{_libdir}/rpm-plugins/fapolicyd.so
1134 %{_mandir}/man8/rpm-plugin-fapolicyd.8*
1137 %files plugin-dbus-announce
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{_libdir}/rpm-plugins/dbus_announce.so
1140 %{_mandir}/man8/rpm-plugin-dbus-announce.8*
1141 %{_sysconfdir}/dbus-1/system.d/org.rpm.conf
1146 %defattr(644,root,root,755)
1147 %attr(755,root,root) %{_bindir}/rpmsign
1148 %{_mandir}/man8/rpmsign.8*
1152 %defattr(644,root,root,755)
1153 %doc docs/librpm/html/*