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