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