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