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