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