]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- pl for new subpackages
[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
1e03ccf5 29Release: 8
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
95d6c96e
JB
141Obsoletes: rpm-utils-perl < 1:4.15
142Obsoletes: rpm-utils-static < 1:4.15
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
95d6c96e
JB
215Obsoletes: rpm-scripts < 4.4
216Obsoletes: vserver-rpm < 1
66edd895
JB
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}
95d6c96e 238Obsoletes: rpm-libs < 4.0.2-4
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
95d6c96e 449Obsoletes: rpm-python < 4.0.2-50
69131f1a 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
f7b2fe1c 477Summary(pl.UTF-8): Wtyczka do logowania zdarzeń audytowych przy operacjach na pakietach
24b1f498 478Group: Base
9fe07969 479Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
480
481%description plugin-audit
f7b2fe1c
JB
482Plugin for libaudit support.
483
484%description plugin-audit -l pl.UTF-8
485Wtyczka do obsługi libaudit.
b0333243
JR
486
487%package plugin-syslog
488Summary: Plugin for syslog functionality
f7b2fe1c 489Summary(pl.UTF-8): Wtyczka do funkcjonalności sysloga
24b1f498 490Group: Base
9fe07969 491Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
492
493%description plugin-syslog
494This plugin exports RPM actions to the system log.
495
f7b2fe1c
JB
496%description plugin-syslog -l pl.UTF-8
497Ta wtyczka eksportuje akcje RPM-a do logu systemowego.
498
b0333243
JR
499%package plugin-systemd-inhibit
500Summary: Plugin for systemd inhibit functionality
f7b2fe1c 501Summary(pl.UTF-8): Wtyczka do funkcjonalności systemd inhibit
24b1f498 502Group: Base
9fe07969 503Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
504
505%description plugin-systemd-inhibit
506This plugin blocks systemd from entering idle, sleep or shutdown while
507an rpm transaction is running using the systemd-inhibit mechanism.
508
f7b2fe1c
JB
509%description plugin-systemd-inhibit -l pl.UTF-8
510Ta wtyczka blokuje systemd przed wejściem w stan bezczynności (idle),
511uśpienia (sleep) lub zamykania (shutdown) podczas trwania transakcji
512RPM-a, korzystając z mechanizmu systemd-inhibit.
513
b0333243
JR
514%package plugin-ima
515Summary: Plugin for IMA file signatures
f7b2fe1c 516Summary(pl.UTF-8): Wtyczka do sygnatur plików IMA
b0333243 517Group: Base
9fe07969 518Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
519
520%description plugin-ima
521This plugin adds support for enforcing and verifying IMA file
522signatures in an rpm.
523
f7b2fe1c
JB
524%description plugin-ima -l pl.UTF-8
525Ta wtyczka dodaje obsługę wymuszania i weryfikacji podpisów plików
526IMA w RPM-ie.
527
b0333243
JR
528%package plugin-prioreset
529Summary: Plugin for resetting scriptlet priorities for SysV init
f7b2fe1c 530Summary(pl.UTF-8): Wtyczka do resetowania priorytetu skryptletów przy inicie SysV
b0333243 531Group: Base
9fe07969 532Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
533
534%description plugin-prioreset
535This plugin is useful on legacy SysV init systems if you run rpm
536transactions with nice/ionice priorities. Should not be used on
537systemd systems.
538
f7b2fe1c
JB
539%description plugin-prioreset -l pl.UTF-8
540Ta wtyczka jest przydatna w systemach ze starym procesem init w wersji
541SysV, jeżeli transakcje RPM-a są uruchamiane z priorytetami
542nice/ionice. Nie powinna być używana w systemach z systemd.
543
b0333243
JR
544%package plugin-selinux
545Summary: Plugin for SELinux functionality
f7b2fe1c 546Summary(pl.UTF-8): Wtyczka do funkcjonalności SELinux
8191f3c5 547Group: Base
9fe07969 548Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
549Requires: libselinux >= 2.1.0
550
551%description plugin-selinux
552Plugin for SELinux functionality.
553
f7b2fe1c
JB
554%description plugin-selinux -l pl.UTF-8
555Wtyczka do funkcjonalności SELinux.
556
8191f3c5
JR
557%package sign
558Summary: Package signing support
f7b2fe1c 559Summary(pl.UTF-8): Obsługa podpisywania pakietów
8191f3c5 560Group: Base
9fe07969 561Requires: %{name}-lib = %{epoch}:%{version}-%{release}
8191f3c5
JR
562
563%description sign
564This package contains support for digitally signing RPM packages.
69131f1a 565
f7b2fe1c
JB
566%description sign -l pl.UTF-8
567Ten pakiet zawiera obsługę cyfrowego podpisywania pakietów RPM.
568
5c2ab5c7
AM
569%package apidocs
570Summary: RPM API documentation and guides
571Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
572Group: Documentation
d308de4c 573BuildArch: noarch
5c2ab5c7
AM
574
575%description apidocs
576Documentation for RPM API and guides in HTML format generated from rpm
577sources by doxygen.
578
579%description apidocs -l pl.UTF-8
580Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
581źrodeł RPM-a przez doxygen.
582
e2025ad1 583%prep
c546a4d6 584%setup -q -n %{name}-%{version}%{?subver}
af0cc499 585%patch0 -p1
2f0ee4ec 586%patch1 -p1
4d5b8e4c 587%patch2 -p1
c0fe6b09 588%patch3 -p1
7a3b1f24 589%patch4 -p1
cbab0cbf
JR
590%patch6 -p0
591%patch7 -p1
7a3b1f24 592%patch8 -p1
cbab0cbf 593%patch9 -p1
9ee75c3c 594%patch10 -p1
9ee75c3c 595%patch11 -p1
9ee75c3c
JR
596%patch12 -p1
597%patch13 -p1
af0cc499 598%patch14 -p1
7033e976 599%patch15 -p1
9ee75c3c 600%patch16 -p1
3c7590cc
JR
601%patch17 -p1
602%patch18 -p1
603%patch19 -p1
604%patch20 -p1
605%patch21 -p1
606%patch22 -p1
3c7590cc 607%patch23 -p1
3c7590cc 608%patch24 -p1
3c7590cc 609%patch25 -p1
ec7b8d8f 610%patch26 -p1
24123ddd 611%patch27 -p1
3c7590cc
JR
612%patch28 -p1
613%patch29 -p1
614%patch30 -p1
615%patch31 -p1
616%patch32 -p1
617%patch33 -p1
950eead3 618%patch34 -p1
3c7590cc 619%patch35 -p1
14a4089a 620%patch36 -p1
883e0fac 621
3ca76e40
JR
622%{__rm} po/*.gmo
623
b2d6b731 624install %{SOURCE15} scripts/perl.prov.in
9d09e076 625
70f8787d 626%{__mv} -f scripts/perl.req{,.in}
633d1e9e 627
cd86db2e 628# generate Group translations to *.po
faba01eb 629awk -f %{SOURCE6} %{SOURCE5}
91ee86a9 630
24b1f498 631%{__sed} -i -e '1s,/usr/bin/python,%{__python3},' scripts/pythondistdeps.py
95bd7348 632
87ef0d95 633%build
ea816ea6 634%{__libtoolize}
ceaaacee 635%{__aclocal}
4cd84746 636%{__autoheader}
7a9d72ce 637%{__autoconf}
7a9d72ce 638%{__automake}
7a9d72ce 639
048d06f8
JR
640# rpm checks for CPU type at runtime, but it looks better
641sed -i \
642 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
643 -e 's|@host_cpu@|%{_target_cpu}|' \
644 -e 's|@host_os@|%{_target_os}|' \
fb35e2d9 645 macros.in
048d06f8 646
624f96ff 647%configure \
01d7a578 648 WITH_PERL_VERSION=no \
bba1059c 649 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
dcf91c25 650 __GPG=%{_bindir}/gpg \
85c29998
JR
651%if %{with python3}
652 PYTHON=python3 \
653 --enable-python \
654%endif
3a3e476f 655 --disable-silent-rules \
cd86db2e 656 --enable-shared \
34865f27 657 --enable-bdb \
8fa0ac2f 658 --enable-bdb-ro \
85c29998
JR
659 --enable-ndb \
660 --enable-sqlite \
af0cc499 661 --enable-zstd \
c38bf1df 662 --with-lua \
85c29998 663 %{?with_imaevm:--with-imaevm} \
34865f27
JR
664 --with-cap \
665 --with-acl \
666 --with-audit \
af0cc499 667 --with-archive \
b0333243
JR
668 --with-selinux=%{!?with_plugins:no}%{?with_plugins:yes} \
669 %{!?with_plugins:--disable-plugins} \
34865f27 670 --with-vendor=pld
cf6faebc 671
ad1682b3 672%{__make}
33be5db0 673
3ca76e40
JR
674%{__make} -C po update-gmo
675
f9d0e5f6
JR
676%if %{with python3}
677cd python
678%py3_build
679%endif
91ee86a9 680
b064b8e6 681%install
ff7bc1e6 682rm -rf $RPM_BUILD_ROOT
d1f5e279 683install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/{rpm,pki/rpm-gpg}} \
375682d2 684 $RPM_BUILD_ROOT{/var/lib/{banner,rpm},/usr/lib/.build-id}
54eb1770 685
faba01eb 686cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 687
ad1682b3 688%{__make} install \
241257bf
AM
689 pkgconfigdir=%{_pkgconfigdir} \
690 DESTDIR=$RPM_BUILD_ROOT
718426e1 691
c546a4d6 692# cleanup
c2683840 693%ifnarch %{ix86} %{x8664} x32
2f409bb7 694rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/athlon-linux/macros
34865f27 695rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/geode-linux/macros
2f409bb7
JR
696rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i386-linux/macros
697rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i486-linux/macros
698rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i586-linux/macros
699rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i686-linux/macros
700rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium3-linux/macros
701rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium4-linux/macros
25ac75ae
AM
702%endif
703
c2683840 704%ifnarch %{x8664} x32
2f409bb7
JR
705rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/amd64-linux/macros
706rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia32e-linux/macros
707rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x32-linux/macros
708rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x86_64-linux/macros
25ac75ae
AM
709%endif
710
c546a4d6 711%ifnarch %{ppc}
34865f27
JR
712rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/m68k-linux/macros
713rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc32dy4-linux/macros
714rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc64*-linux/macros
715rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8260-linux/macros
716rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8560-linux/macros
2f409bb7 717rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros
34865f27 718rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros
25ac75ae
AM
719%endif
720
58dcd653 721%ifnarch aarch64
34865f27 722rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros
7f5abfc0
JP
723%endif
724
1f1f884d 725%ifnarch %{arm}
2f409bb7 726rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros
58dcd653
JP
727%endif
728
1f1f884d 729rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
2f409bb7
JR
730rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros
731rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros
34865f27 732rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros
2f409bb7 733rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros
34865f27 734rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros
2f409bb7 735rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros
c546a4d6 736
2eb9303e 737cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
c2683840
JR
738%ifarch x32
739%{_target_cpu}-%{_target_vendor}-linux-gnux32
740%else
2eb9303e 741%{_target_cpu}-%{_target_vendor}-linux
c2683840 742%endif
2eb9303e 743EOF
2d8ae03e 744
3a3e476f 745%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
9776a251 746
396a7387 747install -d $RPM_BUILD_ROOT%{_rpmlibdir}/pld
396a7387 748
faba01eb
JR
749cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
750cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
faba01eb 751cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rpm
12158148 752
faba01eb 753cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/banner.sh
e1bd88ba 754
faba01eb
JR
755cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
756cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
b2d6b731
JR
757cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
758cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
759cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
760cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
f3fd387a 761
950eead3 762# move rpm to /bin
8191f3c5
JR
763%{__mv} $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
764ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmquery
765ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmverify
766
950eead3 767# move essential libs to /lib (libs that /bin/rpm links to)
40675133
JR
768for a in librpm.so librpmbuild.so librpmio.so librpmsign.so; do
769 mv -f $RPM_BUILD_ROOT%{_libdir}/${a}.* $RPM_BUILD_ROOT/%{_lib}
770 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/${a}.*.*.*) $RPM_BUILD_ROOT%{_libdir}/${a}
c2673e18
AF
771done
772
269352f0
JR
773# init an empty database for %ghost'ing for all supported backends
774for be in sqlite bdb ndb; do
775 ./rpmdb \
776 --macros=$RPM_BUILD_ROOT%{_rpmlibdir}/macros \
777 --rcfile=$RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc \
778 --dbpath=${PWD}/${be} \
779 --define "_db_backend ${be}" \
780 --initdb
781 cp -va ${be}/. $RPM_BUILD_ROOT/var/lib/rpm/
782done
6f18cdb7 783
f9d0e5f6
JR
784%if %{with python3}
785# Remove anything that rpm make install might put there
786%{__rm} -rf $RPM_BUILD_ROOT%{py3_sitedir}
787cd python
788%py3_install
789cd ..
dae5e1a8 790%endif
01d7a578 791
d1f5e279
JR
792%{__rm} $RPM_BUILD_ROOT%{_libdir}/rpm-plugins/*.la
793
01d7a578 794# wrong location, not used anyway
2f409bb7 795%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log}
01d7a578 796
90b03dd6 797%find_lang %{name}
cf6faebc 798
13eb5ebf 799%clean
d7df46b8 800rm -rf $RPM_BUILD_ROOT
76214164 801
be4d3036 802%posttrans
269352f0 803if [ -e /var/lib/rpm/Packages ]; then
d25ec6ea 804 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
6a934782 805 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
8383afc3 806 echo
e4dd6a34 807 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
8383afc3
JR
808 echo
809 fi
3ca91ccd
JR
810 echo
811 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
812 echo 'you should ignore it and restart poldek'
813 echo
269352f0
JR
814 %{__rm} -rf /var/lib/rpm/log >/dev/null 2>/dev/null || :
815 %{__rm} -rf /var/lib/rpm/tmp >/dev/null 2>/dev/null || :
f6db4f31 816 # Unlock database for rebuild, safe since this is posttrans
2e17c03e 817 %{__rm} -f /var/lib/rpm/.rpm.lock >/dev/null 2>/dev/null || :
269352f0
JR
818 if ! /usr/bin/rpmdb --rebuilddb; then
819 echo
820 echo "rpm database conversion failed!"
821 echo "You have to run '/usr/bin/rpmdb --rebuilddb' manually"
822 echo
823 exit 1
824 fi
be4d3036 825fi
f7779567 826
ee63ba8f
JR
827%post
828if [ -d /var/cache/hrmib ]; then
829 %{__rm} -rf /var/cache/hrmib
830 echo "HR-MIB is not supported by this rpm version."
831 echo "/var/cache/hrmib has been removed."
832fi
833
ceaaacee
JB
834%post lib -p /sbin/ldconfig
835%postun lib -p /sbin/ldconfig
76214164 836
37a5a2fc 837%pretrans build
d755a548 838find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 839
3684d90f
JB
840%files -f %{name}.lang
841%defattr(644,root,root,755)
d1f5e279 842%doc ChangeLog CREDITS README
3684d90f 843
3acb62f3
ER
844%dir /etc/pki/rpm-gpg
845/etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
54eb1770 846
7a9d72ce 847%attr(755,root,root) /bin/rpm
8191f3c5
JR
848%attr(755,root,root) %{_bindir}/rpmdb
849%attr(755,root,root) %{_bindir}/rpmkeys
850%attr(755,root,root) %{_bindir}/rpmquery
851%attr(755,root,root) %{_bindir}/rpmverify
e73478cd 852
66edd895 853%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
b1541d4c 854%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
0727c61e 855# this is ok to be replaced
caf453d4
AM
856%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
857
09bb810c 858%{_mandir}/man8/rpm.8*
8191f3c5
JR
859%{_mandir}/man8/rpmdb.8*
860%{_mandir}/man8/rpmkeys.8*
861%{_mandir}/man8/rpm-misc.8*
24b1f498 862%{?with_plugins:%{_mandir}/man8/rpm-plugins.8*}
feb1f12e 863%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 864%lang(ja) %{_mandir}/ja/man8/rpm.8*
d1f5e279 865%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 866%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 867%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 868%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 869
e2025ad1 870%dir /var/lib/rpm
269352f0
JR
871%ghost %config(missingok,noreplace) /var/lib/rpm/*
872%ghost /var/lib/rpm/.*.lock
4acac5de 873
d755a548 874%{_rpmlibdir}/rpmpopt*
8191f3c5 875%{_rpmlibdir}/rpmrc
d755a548 876%{_rpmlibdir}/macros
08697680 877%dir %{_rpmlibdir}/macros.d
e8836e1f 878%dir %{_rpmlibdir}/platform
40675133 879%{_rpmlibdir}/platform/noarch-*
c2683840 880%ifarch %{ix86} %{x8664} x32
34865f27
JR
881%{_rpmlibdir}/platform/athlon*
882%{_rpmlibdir}/platform/geode*
40675133
JR
883%{_rpmlibdir}/platform/i?86*
884%{_rpmlibdir}/platform/pentium*
34865f27
JR
885%endif
886%ifarch %{x8664} x32
887%{_rpmlibdir}/platform/amd64*
888%{_rpmlibdir}/platform/ia32e*
889%{_rpmlibdir}/platform/x86_64*
83a0601a 890%{_rpmlibdir}/platform/x32*
e23edf35
JR
891%endif
892%ifarch alpha
40675133 893%{_rpmlibdir}/platform/alpha*
e23edf35 894%endif
7f5abfc0
JP
895%ifarch aarch64
896%{_rpmlibdir}/platform/aarch64*
897%endif
1f1f884d
JP
898%ifarch %{arm}
899%{_rpmlibdir}/platform/arm*
e23edf35
JR
900%endif
901%ifarch ia64
40675133 902%{_rpmlibdir}/platform/ia64*
e23edf35
JR
903%endif
904%ifarch mips mipsel mips64 mips64el
40675133 905%{_rpmlibdir}/platform/mips*
e23edf35
JR
906%endif
907%ifarch %{ppc}
40675133 908%{_rpmlibdir}/platform/ppc*
e23edf35
JR
909%endif
910%ifarch sparc sparc64
40675133 911%{_rpmlibdir}/platform/sparc*
e23edf35 912%endif
3684d90f 913
3de8e4a9 914%dir %{_rpmlibdir}/pld
396a7387 915
24b1f498
JR
916%attr(755,root,root) %{_rpmlibdir}/rpmdb_dump
917%attr(755,root,root) %{_rpmlibdir}/rpmdb_load
df50421f 918
7d12560f
JR
919# valgrind suppression file for rpm
920%{_rpmlibdir}/rpm.supp
cf709a39 921
375682d2 922%dir /usr/lib/.build-id
df50421f 923
66edd895
JB
924%files base
925%defattr(644,root,root,755)
492a2bd4 926%dir %{_sysconfdir}/rpm
66edd895
JB
927%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
928%dir %{_rpmlibdir}
929%attr(755,root,root) %{_bindir}/banner.sh
930%attr(755,root,root) %{_rpmlibdir}/user_group.sh
931%dir /var/lib/banner
932
874f4c9a
MM
933%files lib
934%defattr(644,root,root,755)
40675133
JR
935%attr(755,root,root) /%{_lib}/librpm.so.9
936%attr(755,root,root) /%{_lib}/librpm.so.%{sover}
937%attr(755,root,root) /%{_lib}/librpmbuild.so.9
938%attr(755,root,root) /%{_lib}/librpmbuild.so.%{sover}
939%attr(755,root,root) /%{_lib}/librpmio.so.9
940%attr(755,root,root) /%{_lib}/librpmio.so.%{sover}
941%attr(755,root,root) /%{_lib}/librpmsign.so.9
942%attr(755,root,root) /%{_lib}/librpmsign.so.%{sover}
b0333243 943%{?with_plugins:%dir %{_libdir}/rpm-plugins}
874f4c9a 944
69131f1a
JB
945%files devel
946%defattr(644,root,root,755)
69131f1a 947%attr(755,root,root) %{_libdir}/librpm.so
950eead3 948%attr(755,root,root) %{_libdir}/librpmbuild.so
69131f1a 949%attr(755,root,root) %{_libdir}/librpmio.so
40675133 950%attr(755,root,root) %{_libdir}/librpmsign.so
950eead3
ER
951%{_libdir}/librpm*.la
952%{_includedir}/rpm
953%{_pkgconfigdir}/*.pc
69131f1a 954
69131f1a
JB
955%files utils
956%defattr(644,root,root,755)
d1f5e279 957%attr(755,root,root) %{_bindir}/rpm2archive
69131f1a 958%attr(755,root,root) %{_bindir}/rpm2cpio
fc36dfd5 959%attr(755,root,root) %{_bindir}/rpmgraph
d1f5e279 960%attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
69131f1a 961%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
25e974c7 962%attr(755,root,root) %{_rpmlibdir}/tgpg
d1f5e279
JR
963%attr(755,root,root) %{_rpmlibdir}/debugedit
964%attr(755,root,root) %{_rpmlibdir}/rpmdeps
24b1f498 965%{_mandir}/man8/rpm2archive.8*
69131f1a
JB
966%{_mandir}/man8/rpm2cpio.8*
967%{_mandir}/man8/rpmdeps.8*
fc36dfd5 968%{_mandir}/man8/rpmgraph.8*
69131f1a 969%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
d1f5e279 970%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
69131f1a 971%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
69131f1a 972%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
d1f5e279 973%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
fc36dfd5
JR
974%lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
975%lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
69131f1a 976
3684d90f 977%files build
a45ae6d8 978%defattr(644,root,root,755)
66edd895 979%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
980%attr(755,root,root) %{_rpmlibdir}/brp-*
981%attr(755,root,root) %{_rpmlibdir}/check-files
d755a548 982%attr(755,root,root) %{_rpmlibdir}/install-build-tree
d1f5e279 983%attr(755,root,root) %{_rpmlibdir}/elfdeps
01d7a578
JB
984%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
985# needs hacked pkg-config to return anything
986%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
d1f5e279 987%attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
37e965e8 988
70f8787d 989%attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
37e965e8 990# must be here for "Requires: rpm-*prov" to work
40675133
JR
991#%{_rpmlibdir}/macros.d/cmake
992#%{_rpmlibdir}/macros.d/gstreamer
40675133 993#%{_rpmlibdir}/macros.d/libtool
40675133 994#%{_rpmlibdir}/macros.d/perl
40675133
JR
995#%{_rpmlibdir}/macros.d/pkgconfig
996#%{_rpmlibdir}/macros.d/python
40675133
JR
997#%{_rpmlibdir}/macros.d/selinux
998#%{_rpmlibdir}/macros.d/tcl
999#%{_rpmlibdir}/macros.rpmbuild
f9d0e5f6 1000
7d12560f
JR
1001%attr(755,root,root) %{_rpmlibdir}/check-buildroot
1002%attr(755,root,root) %{_rpmlibdir}/check-prereqs
1003%attr(755,root,root) %{_rpmlibdir}/check-rpaths
1004%attr(755,root,root) %{_rpmlibdir}/check-rpaths-worker
7d12560f
JR
1005%attr(755,root,root) %{_rpmlibdir}/find-provides
1006%attr(755,root,root) %{_rpmlibdir}/find-requires
24b1f498 1007%attr(755,root,root) %{_rpmlibdir}/ocamldeps.sh
7d12560f
JR
1008%attr(755,root,root) %{_rpmlibdir}/script.req
1009%attr(755,root,root) %{_rpmlibdir}/sepdebugcrcfix
7d12560f 1010
f9d0e5f6
JR
1011%dir %{_rpmlibdir}/fileattrs
1012%{_rpmlibdir}/fileattrs/debuginfo.attr
1013%{_rpmlibdir}/fileattrs/desktop.attr
1014%{_rpmlibdir}/fileattrs/elf.attr
1015%{_rpmlibdir}/fileattrs/font.attr
1016%{_rpmlibdir}/fileattrs/libtool.attr
1017%{_rpmlibdir}/fileattrs/metainfo.attr
1018%{_rpmlibdir}/fileattrs/ocaml.attr
1019%{_rpmlibdir}/fileattrs/perl.attr
1020%{_rpmlibdir}/fileattrs/perllib.attr
f9d0e5f6
JR
1021%{_rpmlibdir}/fileattrs/pkgconfig.attr
1022%{_rpmlibdir}/fileattrs/python.attr
1023%{_rpmlibdir}/fileattrs/pythondist.attr
1024%{_rpmlibdir}/fileattrs/script.attr
df50421f 1025
874f4c9a
MM
1026%attr(755,root,root) %{_bindir}/gendiff
1027%attr(755,root,root) %{_bindir}/rpmbuild
d1f5e279 1028%attr(755,root,root) %{_bindir}/rpmspec
874f4c9a 1029
a00926bc 1030%{_mandir}/man1/gendiff.1*
d1f5e279 1031%lang(pl) %{_mandir}/pl/man1/gendiff.1*
874f4c9a 1032%{_mandir}/man8/rpmbuild.8*
fefe9d30 1033%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
fefe9d30 1034%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
d1f5e279 1035%{_mandir}/man8/rpmspec.8*
f3fe287f 1036
89334051
AF
1037%files perlprov
1038%defattr(644,root,root,755)
d755a548 1039%attr(755,root,root) %{_rpmlibdir}/perl.*
9805fd6d 1040
80d3b868 1041%files pythonprov
d8fcb9b0 1042%defattr(644,root,root,755)
d1f5e279 1043%attr(755,root,root) %{_rpmlibdir}/pythondistdeps.py
09bb810c 1044
f9d0e5f6
JR
1045%if %{with python3}
1046%files -n python3-rpm
42a0025c 1047%defattr(644,root,root,755)
f9d0e5f6
JR
1048%dir %{py3_sitedir}/rpm
1049%attr(755,root,root) %{py3_sitedir}/rpm/*.so
1050%{py3_sitedir}/rpm/*.py
1051%{py3_sitedir}/rpm-%{version}-py*.egg-info
1052%{py3_sitedir}/rpm/__pycache__
50dc9ac0 1053%endif
5c2ab5c7 1054
b0333243
JR
1055%if %{with plugins}
1056%files plugin-audit
1057%defattr(644,root,root,755)
1058%attr(755,root,root) %{_libdir}/rpm-plugins/audit.so
24b1f498 1059%{_mandir}/man8/rpm-plugin-audit.8*
b0333243
JR
1060
1061%files plugin-syslog
1062%defattr(644,root,root,755)
1063%attr(755,root,root) %{_libdir}/rpm-plugins/syslog.so
24b1f498 1064%{_mandir}/man8/rpm-plugin-syslog.8*
b0333243
JR
1065
1066%files plugin-systemd-inhibit
1067%defattr(644,root,root,755)
1068%attr(755,root,root) %{_libdir}/rpm-plugins/systemd_inhibit.so
1069%{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
1070
1071%files plugin-ima
1072%defattr(644,root,root,755)
1073%attr(755,root,root) %{_libdir}/rpm-plugins/ima.so
24b1f498 1074%{_mandir}/man8/rpm-plugin-ima.8*
b0333243
JR
1075
1076%files plugin-prioreset
1077%defattr(644,root,root,755)
1078%attr(755,root,root) %{_libdir}/rpm-plugins/prioreset.so
24b1f498 1079%{_mandir}/man8/rpm-plugin-prioreset.8*
b0333243
JR
1080
1081%files plugin-selinux
1082%defattr(644,root,root,755)
1083%attr(755,root,root) %{_libdir}/rpm-plugins/selinux.so
24b1f498 1084%{_mandir}/man8/rpm-plugin-selinux.8*
b0333243
JR
1085%endif
1086
8191f3c5
JR
1087%files sign
1088%defattr(644,root,root,755)
1089%attr(755,root,root) %{_bindir}/rpmsign
1090%{_mandir}/man8/rpmsign.8*
1091
5c2ab5c7
AM
1092%if %{with apidocs}
1093%files apidocs
1094%defattr(644,root,root,755)
d1f5e279 1095%doc doc/librpm/html/*
5c2ab5c7 1096%endif
This page took 1.125155 seconds and 4 git commands to generate.