]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- unified __sed, __rm macros usage and -devel files verbosity
[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
63527776 17%define sover 9.1.2
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
63527776 36Version: 4.16.1.2
1e03ccf5 37Release: 8
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
63527776 42# Source0-md5: 0d10f63a0a4c9517cf3808a601378399
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
JB
666 %{!?with_plugins:--disable-plugins} \
667 --disable-silent-rules \
85c29998 668 --enable-sqlite \
af0cc499 669 --enable-zstd \
34865f27 670 --with-acl \
af0cc499 671 --with-archive \
7c4fb942
JB
672 --with-audit%{!?with_audit:=no} \
673 --with-cap \
674 %{?with_imaevm:--with-imaevm} \
675 --with-lua \
676 %{?with_python3:--enable-python} \
677 --with-selinux%{!?with_selinux:=no} \
34865f27 678 --with-vendor=pld
cf6faebc 679
ad1682b3 680%{__make}
33be5db0 681
3ca76e40
JR
682%{__make} -C po update-gmo
683
f9d0e5f6
JR
684%if %{with python3}
685cd python
686%py3_build
687%endif
91ee86a9 688
b064b8e6 689%install
ff7bc1e6 690rm -rf $RPM_BUILD_ROOT
d1f5e279 691install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/{rpm,pki/rpm-gpg}} \
375682d2 692 $RPM_BUILD_ROOT{/var/lib/{banner,rpm},/usr/lib/.build-id}
54eb1770 693
faba01eb 694cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 695
ad1682b3 696%{__make} install \
241257bf
AM
697 pkgconfigdir=%{_pkgconfigdir} \
698 DESTDIR=$RPM_BUILD_ROOT
718426e1 699
c546a4d6 700# cleanup
c2683840 701%ifnarch %{ix86} %{x8664} x32
c7d5ed4c
JB
702%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/athlon-linux/macros
703%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/geode-linux/macros
704%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i386-linux/macros
705%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i486-linux/macros
706%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i586-linux/macros
707%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i686-linux/macros
708%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium3-linux/macros
709%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium4-linux/macros
25ac75ae
AM
710%endif
711
c2683840 712%ifnarch %{x8664} x32
c7d5ed4c
JB
713%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/amd64-linux/macros
714%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia32e-linux/macros
715%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x32-linux/macros
716%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x86_64-linux/macros
25ac75ae
AM
717%endif
718
c546a4d6 719%ifnarch %{ppc}
c7d5ed4c
JB
720%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/m68k-linux/macros
721%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc32dy4-linux/macros
722%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc64*-linux/macros
723%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8260-linux/macros
724%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8560-linux/macros
725%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros
726%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros
25ac75ae
AM
727%endif
728
58dcd653 729%ifnarch aarch64
c7d5ed4c 730%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros
7f5abfc0
JP
731%endif
732
1f1f884d 733%ifnarch %{arm}
c7d5ed4c 734%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros
58dcd653
JP
735%endif
736
c7d5ed4c
JB
737%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
738%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros
739%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros
740%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros
741%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros
742%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros
743%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros
c546a4d6 744
2eb9303e 745cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
c2683840
JR
746%ifarch x32
747%{_target_cpu}-%{_target_vendor}-linux-gnux32
748%else
2eb9303e 749%{_target_cpu}-%{_target_vendor}-linux
c2683840 750%endif
2eb9303e 751EOF
2d8ae03e 752
3a3e476f 753%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
9776a251 754
396a7387 755install -d $RPM_BUILD_ROOT%{_rpmlibdir}/pld
396a7387 756
faba01eb
JR
757cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
758cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
faba01eb 759cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rpm
12158148 760
faba01eb 761cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/banner.sh
e1bd88ba 762
faba01eb
JR
763cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
764cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
b2d6b731
JR
765cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
766cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
767cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
768cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
f3fd387a 769
950eead3 770# move rpm to /bin
8191f3c5
JR
771%{__mv} $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
772ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmquery
773ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmverify
774
950eead3 775# move essential libs to /lib (libs that /bin/rpm links to)
40675133
JR
776for a in librpm.so librpmbuild.so librpmio.so librpmsign.so; do
777 mv -f $RPM_BUILD_ROOT%{_libdir}/${a}.* $RPM_BUILD_ROOT/%{_lib}
778 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/${a}.*.*.*) $RPM_BUILD_ROOT%{_libdir}/${a}
c2673e18
AF
779done
780
269352f0
JR
781# init an empty database for %ghost'ing for all supported backends
782for be in sqlite bdb ndb; do
783 ./rpmdb \
784 --macros=$RPM_BUILD_ROOT%{_rpmlibdir}/macros \
785 --rcfile=$RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc \
786 --dbpath=${PWD}/${be} \
787 --define "_db_backend ${be}" \
788 --initdb
789 cp -va ${be}/. $RPM_BUILD_ROOT/var/lib/rpm/
790done
6f18cdb7 791
f9d0e5f6
JR
792%if %{with python3}
793# Remove anything that rpm make install might put there
794%{__rm} -rf $RPM_BUILD_ROOT%{py3_sitedir}
795cd python
796%py3_install
797cd ..
dae5e1a8 798%endif
01d7a578 799
d1f5e279
JR
800%{__rm} $RPM_BUILD_ROOT%{_libdir}/rpm-plugins/*.la
801
01d7a578 802# wrong location, not used anyway
2f409bb7 803%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log}
01d7a578 804
90b03dd6 805%find_lang %{name}
cf6faebc 806
13eb5ebf 807%clean
d7df46b8 808rm -rf $RPM_BUILD_ROOT
76214164 809
be4d3036 810%posttrans
269352f0 811if [ -e /var/lib/rpm/Packages ]; then
d25ec6ea 812 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
6a934782 813 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
8383afc3 814 echo
e4dd6a34 815 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
8383afc3
JR
816 echo
817 fi
3ca91ccd
JR
818 echo
819 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
820 echo 'you should ignore it and restart poldek'
821 echo
269352f0
JR
822 %{__rm} -rf /var/lib/rpm/log >/dev/null 2>/dev/null || :
823 %{__rm} -rf /var/lib/rpm/tmp >/dev/null 2>/dev/null || :
f6db4f31 824 # Unlock database for rebuild, safe since this is posttrans
2e17c03e 825 %{__rm} -f /var/lib/rpm/.rpm.lock >/dev/null 2>/dev/null || :
269352f0
JR
826 if ! /usr/bin/rpmdb --rebuilddb; then
827 echo
828 echo "rpm database conversion failed!"
829 echo "You have to run '/usr/bin/rpmdb --rebuilddb' manually"
830 echo
831 exit 1
832 fi
be4d3036 833fi
f7779567 834
ee63ba8f
JR
835%post
836if [ -d /var/cache/hrmib ]; then
837 %{__rm} -rf /var/cache/hrmib
838 echo "HR-MIB is not supported by this rpm version."
839 echo "/var/cache/hrmib has been removed."
840fi
841
ceaaacee
JB
842%post lib -p /sbin/ldconfig
843%postun lib -p /sbin/ldconfig
76214164 844
37a5a2fc 845%pretrans build
d755a548 846find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 847
3684d90f
JB
848%files -f %{name}.lang
849%defattr(644,root,root,755)
d1f5e279 850%doc ChangeLog CREDITS README
3684d90f 851
3acb62f3
ER
852%dir /etc/pki/rpm-gpg
853/etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
54eb1770 854
7a9d72ce 855%attr(755,root,root) /bin/rpm
8191f3c5
JR
856%attr(755,root,root) %{_bindir}/rpmdb
857%attr(755,root,root) %{_bindir}/rpmkeys
858%attr(755,root,root) %{_bindir}/rpmquery
859%attr(755,root,root) %{_bindir}/rpmverify
e73478cd 860
66edd895 861%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
b1541d4c 862%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
0727c61e 863# this is ok to be replaced
caf453d4
AM
864%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
865
09bb810c 866%{_mandir}/man8/rpm.8*
8191f3c5
JR
867%{_mandir}/man8/rpmdb.8*
868%{_mandir}/man8/rpmkeys.8*
869%{_mandir}/man8/rpm-misc.8*
24b1f498 870%{?with_plugins:%{_mandir}/man8/rpm-plugins.8*}
feb1f12e 871%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 872%lang(ja) %{_mandir}/ja/man8/rpm.8*
d1f5e279 873%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 874%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 875%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 876%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 877
e2025ad1 878%dir /var/lib/rpm
269352f0
JR
879%ghost %config(missingok,noreplace) /var/lib/rpm/*
880%ghost /var/lib/rpm/.*.lock
4acac5de 881
d755a548 882%{_rpmlibdir}/rpmpopt*
8191f3c5 883%{_rpmlibdir}/rpmrc
d755a548 884%{_rpmlibdir}/macros
08697680 885%dir %{_rpmlibdir}/macros.d
e8836e1f 886%dir %{_rpmlibdir}/platform
40675133 887%{_rpmlibdir}/platform/noarch-*
c2683840 888%ifarch %{ix86} %{x8664} x32
34865f27
JR
889%{_rpmlibdir}/platform/athlon*
890%{_rpmlibdir}/platform/geode*
40675133
JR
891%{_rpmlibdir}/platform/i?86*
892%{_rpmlibdir}/platform/pentium*
34865f27
JR
893%endif
894%ifarch %{x8664} x32
895%{_rpmlibdir}/platform/amd64*
896%{_rpmlibdir}/platform/ia32e*
897%{_rpmlibdir}/platform/x86_64*
83a0601a 898%{_rpmlibdir}/platform/x32*
e23edf35
JR
899%endif
900%ifarch alpha
40675133 901%{_rpmlibdir}/platform/alpha*
e23edf35 902%endif
7f5abfc0
JP
903%ifarch aarch64
904%{_rpmlibdir}/platform/aarch64*
905%endif
1f1f884d
JP
906%ifarch %{arm}
907%{_rpmlibdir}/platform/arm*
e23edf35
JR
908%endif
909%ifarch ia64
40675133 910%{_rpmlibdir}/platform/ia64*
e23edf35
JR
911%endif
912%ifarch mips mipsel mips64 mips64el
40675133 913%{_rpmlibdir}/platform/mips*
e23edf35
JR
914%endif
915%ifarch %{ppc}
40675133 916%{_rpmlibdir}/platform/ppc*
e23edf35
JR
917%endif
918%ifarch sparc sparc64
40675133 919%{_rpmlibdir}/platform/sparc*
e23edf35 920%endif
3684d90f 921
3de8e4a9 922%dir %{_rpmlibdir}/pld
396a7387 923
24b1f498
JR
924%attr(755,root,root) %{_rpmlibdir}/rpmdb_dump
925%attr(755,root,root) %{_rpmlibdir}/rpmdb_load
df50421f 926
7d12560f
JR
927# valgrind suppression file for rpm
928%{_rpmlibdir}/rpm.supp
cf709a39 929
375682d2 930%dir /usr/lib/.build-id
df50421f 931
66edd895
JB
932%files base
933%defattr(644,root,root,755)
492a2bd4 934%dir %{_sysconfdir}/rpm
66edd895
JB
935%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
936%dir %{_rpmlibdir}
937%attr(755,root,root) %{_bindir}/banner.sh
938%attr(755,root,root) %{_rpmlibdir}/user_group.sh
939%dir /var/lib/banner
940
874f4c9a
MM
941%files lib
942%defattr(644,root,root,755)
40675133
JR
943%attr(755,root,root) /%{_lib}/librpm.so.9
944%attr(755,root,root) /%{_lib}/librpm.so.%{sover}
945%attr(755,root,root) /%{_lib}/librpmbuild.so.9
946%attr(755,root,root) /%{_lib}/librpmbuild.so.%{sover}
947%attr(755,root,root) /%{_lib}/librpmio.so.9
948%attr(755,root,root) /%{_lib}/librpmio.so.%{sover}
949%attr(755,root,root) /%{_lib}/librpmsign.so.9
950%attr(755,root,root) /%{_lib}/librpmsign.so.%{sover}
b0333243 951%{?with_plugins:%dir %{_libdir}/rpm-plugins}
874f4c9a 952
69131f1a
JB
953%files devel
954%defattr(644,root,root,755)
69131f1a 955%attr(755,root,root) %{_libdir}/librpm.so
950eead3 956%attr(755,root,root) %{_libdir}/librpmbuild.so
69131f1a 957%attr(755,root,root) %{_libdir}/librpmio.so
40675133 958%attr(755,root,root) %{_libdir}/librpmsign.so
c7d5ed4c
JB
959%{_libdir}/librpm.la
960%{_libdir}/librpmbuild.la
961%{_libdir}/librpmio.la
962%{_libdir}/librpmsign.la
950eead3 963%{_includedir}/rpm
c7d5ed4c 964%{_pkgconfigdir}/rpm.pc
69131f1a 965
69131f1a
JB
966%files utils
967%defattr(644,root,root,755)
d1f5e279 968%attr(755,root,root) %{_bindir}/rpm2archive
69131f1a 969%attr(755,root,root) %{_bindir}/rpm2cpio
fc36dfd5 970%attr(755,root,root) %{_bindir}/rpmgraph
d1f5e279 971%attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
69131f1a 972%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
25e974c7 973%attr(755,root,root) %{_rpmlibdir}/tgpg
d1f5e279
JR
974%attr(755,root,root) %{_rpmlibdir}/debugedit
975%attr(755,root,root) %{_rpmlibdir}/rpmdeps
24b1f498 976%{_mandir}/man8/rpm2archive.8*
69131f1a
JB
977%{_mandir}/man8/rpm2cpio.8*
978%{_mandir}/man8/rpmdeps.8*
fc36dfd5 979%{_mandir}/man8/rpmgraph.8*
69131f1a 980%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
d1f5e279 981%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
69131f1a 982%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
69131f1a 983%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
d1f5e279 984%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
fc36dfd5
JR
985%lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
986%lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
69131f1a 987
3684d90f 988%files build
a45ae6d8 989%defattr(644,root,root,755)
66edd895 990%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
991%attr(755,root,root) %{_rpmlibdir}/brp-*
992%attr(755,root,root) %{_rpmlibdir}/check-files
d755a548 993%attr(755,root,root) %{_rpmlibdir}/install-build-tree
d1f5e279 994%attr(755,root,root) %{_rpmlibdir}/elfdeps
01d7a578
JB
995%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
996# needs hacked pkg-config to return anything
997%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
d1f5e279 998%attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
37e965e8 999
70f8787d 1000%attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
37e965e8 1001# must be here for "Requires: rpm-*prov" to work
40675133
JR
1002#%{_rpmlibdir}/macros.d/cmake
1003#%{_rpmlibdir}/macros.d/gstreamer
40675133 1004#%{_rpmlibdir}/macros.d/libtool
40675133 1005#%{_rpmlibdir}/macros.d/perl
40675133
JR
1006#%{_rpmlibdir}/macros.d/pkgconfig
1007#%{_rpmlibdir}/macros.d/python
40675133
JR
1008#%{_rpmlibdir}/macros.d/selinux
1009#%{_rpmlibdir}/macros.d/tcl
1010#%{_rpmlibdir}/macros.rpmbuild
f9d0e5f6 1011
7d12560f
JR
1012%attr(755,root,root) %{_rpmlibdir}/check-buildroot
1013%attr(755,root,root) %{_rpmlibdir}/check-prereqs
1014%attr(755,root,root) %{_rpmlibdir}/check-rpaths
1015%attr(755,root,root) %{_rpmlibdir}/check-rpaths-worker
7d12560f
JR
1016%attr(755,root,root) %{_rpmlibdir}/find-provides
1017%attr(755,root,root) %{_rpmlibdir}/find-requires
24b1f498 1018%attr(755,root,root) %{_rpmlibdir}/ocamldeps.sh
7d12560f
JR
1019%attr(755,root,root) %{_rpmlibdir}/script.req
1020%attr(755,root,root) %{_rpmlibdir}/sepdebugcrcfix
7d12560f 1021
f9d0e5f6
JR
1022%dir %{_rpmlibdir}/fileattrs
1023%{_rpmlibdir}/fileattrs/debuginfo.attr
1024%{_rpmlibdir}/fileattrs/desktop.attr
1025%{_rpmlibdir}/fileattrs/elf.attr
1026%{_rpmlibdir}/fileattrs/font.attr
1027%{_rpmlibdir}/fileattrs/libtool.attr
1028%{_rpmlibdir}/fileattrs/metainfo.attr
1029%{_rpmlibdir}/fileattrs/ocaml.attr
1030%{_rpmlibdir}/fileattrs/perl.attr
1031%{_rpmlibdir}/fileattrs/perllib.attr
f9d0e5f6
JR
1032%{_rpmlibdir}/fileattrs/pkgconfig.attr
1033%{_rpmlibdir}/fileattrs/python.attr
1034%{_rpmlibdir}/fileattrs/pythondist.attr
1035%{_rpmlibdir}/fileattrs/script.attr
df50421f 1036
874f4c9a
MM
1037%attr(755,root,root) %{_bindir}/gendiff
1038%attr(755,root,root) %{_bindir}/rpmbuild
d1f5e279 1039%attr(755,root,root) %{_bindir}/rpmspec
874f4c9a 1040
a00926bc 1041%{_mandir}/man1/gendiff.1*
d1f5e279 1042%lang(pl) %{_mandir}/pl/man1/gendiff.1*
874f4c9a 1043%{_mandir}/man8/rpmbuild.8*
fefe9d30 1044%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
fefe9d30 1045%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
d1f5e279 1046%{_mandir}/man8/rpmspec.8*
f3fe287f 1047
89334051
AF
1048%files perlprov
1049%defattr(644,root,root,755)
d755a548 1050%attr(755,root,root) %{_rpmlibdir}/perl.*
9805fd6d 1051
80d3b868 1052%files pythonprov
d8fcb9b0 1053%defattr(644,root,root,755)
d1f5e279 1054%attr(755,root,root) %{_rpmlibdir}/pythondistdeps.py
09bb810c 1055
f9d0e5f6
JR
1056%if %{with python3}
1057%files -n python3-rpm
42a0025c 1058%defattr(644,root,root,755)
f9d0e5f6
JR
1059%dir %{py3_sitedir}/rpm
1060%attr(755,root,root) %{py3_sitedir}/rpm/*.so
1061%{py3_sitedir}/rpm/*.py
1062%{py3_sitedir}/rpm-%{version}-py*.egg-info
1063%{py3_sitedir}/rpm/__pycache__
50dc9ac0 1064%endif
5c2ab5c7 1065
b0333243
JR
1066%if %{with plugins}
1067%files plugin-audit
1068%defattr(644,root,root,755)
1069%attr(755,root,root) %{_libdir}/rpm-plugins/audit.so
24b1f498 1070%{_mandir}/man8/rpm-plugin-audit.8*
b0333243
JR
1071
1072%files plugin-syslog
1073%defattr(644,root,root,755)
1074%attr(755,root,root) %{_libdir}/rpm-plugins/syslog.so
24b1f498 1075%{_mandir}/man8/rpm-plugin-syslog.8*
b0333243
JR
1076
1077%files plugin-systemd-inhibit
1078%defattr(644,root,root,755)
1079%attr(755,root,root) %{_libdir}/rpm-plugins/systemd_inhibit.so
1080%{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
1081
1082%files plugin-ima
1083%defattr(644,root,root,755)
1084%attr(755,root,root) %{_libdir}/rpm-plugins/ima.so
24b1f498 1085%{_mandir}/man8/rpm-plugin-ima.8*
b0333243
JR
1086
1087%files plugin-prioreset
1088%defattr(644,root,root,755)
1089%attr(755,root,root) %{_libdir}/rpm-plugins/prioreset.so
24b1f498 1090%{_mandir}/man8/rpm-plugin-prioreset.8*
b0333243
JR
1091
1092%files plugin-selinux
1093%defattr(644,root,root,755)
1094%attr(755,root,root) %{_libdir}/rpm-plugins/selinux.so
24b1f498 1095%{_mandir}/man8/rpm-plugin-selinux.8*
b0333243
JR
1096%endif
1097
8191f3c5
JR
1098%files sign
1099%defattr(644,root,root,755)
1100%attr(755,root,root) %{_bindir}/rpmsign
1101%{_mandir}/man8/rpmsign.8*
1102
5c2ab5c7
AM
1103%if %{with apidocs}
1104%files apidocs
1105%defattr(644,root,root,755)
d1f5e279 1106%doc doc/librpm/html/*
5c2ab5c7 1107%endif
This page took 0.757721 seconds and 4 git commands to generate.