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