]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- spec cleanup
[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
883e0fac 93
955f2725 94URL: http://rpm5.org/
cf169f7c 95BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
cf169f7c 96BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
29855fc2 97BuildRequires: autoconf >= 2.63
644d8958 98BuildRequires: automake >= 1.4
fb35e2d9 99BuildRequires: openssl-devel >= %{openssl_ver}
33be5db0 100BuildRequires: bzip2-devel >= 1.0.2-17
33be5db0 101BuildRequires: elfutils-devel >= 0.108
3e70c06e 102BuildRequires: gettext-tools >= 0.19.2
af0cc499 103BuildRequires: libarchive-devel
241257bf 104BuildRequires: libmagic-devel
6e115b23
JR
105%if %{with selinux}
106BuildRequires: libselinux-devel >= 2.1.0
6e115b23 107BuildRequires: libsemanage-devel >= 2.1.0
3acb62f3 108BuildRequires: libsepol-devel >= 2.1.0
6e115b23 109%endif
84cdee7a
JB
110# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
111BuildRequires: libstdc++-devel
b60c74c3 112BuildRequires: libtool >= 1:1.4.2-9
5c767dc1 113BuildRequires: lua53-devel >= 5.3.5
127a0b3c 114BuildRequires: ossp-uuid-devel
7973b351 115BuildRequires: patch >= 2.2
1d49ffbc 116BuildRequires: popt-devel >= %{reqpopt_ver}
950eead3
ER
117%{?with_python:BuildRequires: python-devel >= 1:2.3}
118BuildRequires: python-modules >= 1:2.3
2a813afe 119%{?with_python:BuildRequires: rpm-pythonprov}
e56a10a9 120BuildRequires: tcl
77fcdbf7 121BuildRequires: xz-devel
3acb62f3 122BuildRequires: zlib-devel
34865f27 123BuildRequires: zstd-devel
5c2ab5c7
AM
124%if %{with apidocs}
125BuildRequires: doxygen
126BuildRequires: ghostscript
127BuildRequires: graphviz
128BuildRequires: tetex-pdftex
129%endif
a6e56ce4 130%if %{with static}
e6090a7b 131# Require static library only for static build
cf169f7c 132BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
fb35e2d9 133BuildRequires: openssl-static >= %{openssl_ver}
33be5db0 134BuildRequires: bzip2-static >= 1.0.2-17
290c1c30 135BuildRequires: elfutils-static
10abbd40 136BuildRequires: glibc-static >= 2.2.94
241257bf 137BuildRequires: libmagic-static
6e115b23
JR
138%if %{with selinux}
139BuildRequires: libselinux-static >= 2.1.0
6e115b23 140BuildRequires: libsemanage-static >= 2.1.0
3acb62f3 141BuildRequires: libsepol-static >= 2.1.0
6e115b23 142%endif
003a039e 143BuildRequires: popt-static >= %{reqpopt_ver}
1d49ffbc 144BuildRequires: zlib-static
34865f27 145BuildRequires: zstd-static
7a9d72ce 146%endif
d25ec6ea 147Requires(posttrans): coreutils
affe917d 148Requires: FHS >= 3.0-2
66edd895 149Requires: %{name}-base = %{version}-%{release}
b26a9709 150Requires: %{name}-lib = %{version}-%{release}
fb35e2d9 151Requires: openssl >= %{openssl_ver}
10abbd40 152Requires: popt >= %{reqpopt_ver}
0229a8b9
AM
153Provides: rpm-db-ver = %{reqdb_ver}
154Obsoletes: rpm-getdeps
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}
fb35e2d9 251Requires: openssl >= %{openssl_ver}
241257bf 252Requires: libmagic >= 1.15-2
6e115b23 253%{?with_selinux:Requires: libselinux >= 2.1.0}
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}
fb35e2d9 276Requires: openssl-devel >= %{openssl_ver}
fea3cb89 277Requires: bzip2-devel
5c583f90 278Requires: elfutils-devel
241257bf 279Requires: libmagic-devel
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}
fb35e2d9 343Requires: openssl-static >= %{openssl_ver}
df76dbd9 344Requires: bzip2-static
ff03e01a 345Requires: elfutils-static
241257bf 346Requires: libmagic-static
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
cfbc7086 546Requires: python-setuptools
3acb62f3 547Requires: python-modules
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
ER
626%if "%{_rpmversion}" >= "5"
627BuildArch: noarch
628%endif
5c2ab5c7
AM
629
630%description apidocs
631Documentation for RPM API and guides in HTML format generated from rpm
632sources by doxygen.
633
634%description apidocs -l pl.UTF-8
635Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
636źrodeł RPM-a przez doxygen.
637
e2025ad1 638%prep
c546a4d6 639%setup -q -n %{name}-%{version}%{?subver}
af0cc499 640%patch0 -p1
2f0ee4ec 641%patch1 -p1
4d5b8e4c 642%patch2 -p1
af0cc499 643%patch3 -p1
7a3b1f24
AM
644%patch4 -p1
645%patch5 -p1
3c7590cc 646%patch6 -p1
af0cc499
JR
647%patch7 -p0
648%patch8 -p1
c38bf1df 649%patch9 -p1
af0cc499
JR
650%patch10 -p1
651%patch11 -p1
652%patch12 -p1
653%patch13 -p1
654%patch14 -p1
7033e976 655%patch15 -p1
af0cc499
JR
656%patch16 -p1
657%patch17 -p1
658#%patch18 -p1
659#%patch19 -p1
883e0fac 660
fb35e2d9 661install %{SOURCE2} pld.in
34865f27
JR
662install %{SOURCE8} scripts/php.prov.in
663install %{SOURCE9} scripts/php.req.in
0bf34f68 664install %{SOURCE11} scripts/perl.prov.in
e2489d8e 665cp -p %{SOURCE30} scripts/rubygems.rb
63194730 666cp -p %{SOURCE31} scripts/gem_helper.rb
08697680 667
70f8787d 668%{__mv} -f scripts/perl.req{,.in}
633d1e9e 669
cd86db2e 670# generate Group translations to *.po
80b8a1f9 671awk -f %{SOURCE6} %{SOURCE1}
fefe9d30 672
91ee86a9 673install %{SOURCE26} tools/rpmdb_checkversion.c
8e8746c0 674install %{SOURCE28} tools/rpmdb_reset.c
91ee86a9 675
40675133
JR
676%{__sed} -i -e '1s,/usr/bin/python,%{__python},' scripts/pythondistdeps.py
677
87ef0d95 678%build
ea816ea6 679%{__libtoolize}
ceaaacee 680%{__aclocal}
4cd84746 681%{__autoheader}
7a9d72ce 682%{__autoconf}
7a9d72ce 683%{__automake}
7a9d72ce 684
048d06f8
JR
685# rpm checks for CPU type at runtime, but it looks better
686sed -i \
687 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
688 -e 's|@host_cpu@|%{_target_cpu}|' \
689 -e 's|@host_os@|%{_target_os}|' \
fb35e2d9 690 macros.in
048d06f8 691
5c767dc1 692CPPFLAGS="-I/usr/include/lua53 %{rpmcppflags}"
624f96ff 693%configure \
01d7a578 694 WITH_PERL_VERSION=no \
bba1059c 695 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
dcf91c25 696 __GPG=%{_bindir}/gpg \
34865f27 697 %{?with_python:PYTHON=python%{py_ver}} \
3a3e476f 698 --disable-silent-rules \
cd86db2e 699 --enable-shared \
874f4c9a 700 --enable-static \
34865f27
JR
701 --with-hackingdocs=%{!?with_apidocs:no}%{?with_apidocs:yes} \
702 --enable-bdb \
af0cc499 703 --enable-zstd \
fb35e2d9 704 --with-crypto=openssl \
c38bf1df 705 --with-lua \
34865f27
JR
706 --with-cap \
707 --with-acl \
708 --with-audit \
af0cc499 709 --with-archive \
34865f27 710 %{?with_python:--enable-python} \
fb35e2d9 711 --with-selinux=%{!?with_selinux:no}%{?with_selinux:yes} \
34865f27
JR
712 --with-vendor=pld
713
34865f27
JR
714# --enable-ndb (EXPERIMENTAL) enable the new rpm database format
715# --enable-lmdb=[yes/no/auto] (EXPERIMENTAL) build with LMDB rpm database format support (default=auto)
34865f27 716# --with-imaevm build with imaevm support
cf6faebc 717
5c767dc1 718%{__make}
5c2ab5c7 719
fb95de52
JR
720%{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
721 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
8e8746c0
JR
722%{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
723 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
fb95de52
JR
724
725if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
726 echo "Error linking rpmdb tools!"
727 exit 1
728fi
8e8746c0
JR
729if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
730 echo "Error linking rpmdb tools!"
731 exit 1
732fi
91ee86a9 733
b064b8e6 734%install
ff7bc1e6 735rm -rf $RPM_BUILD_ROOT
e9eb00af 736install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
51081e43 737 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
54eb1770 738
0bf34f68 739install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 740
26a5bf70 741%{__make} -j1 install \
241257bf
AM
742 pkgconfigdir=%{_pkgconfigdir} \
743 DESTDIR=$RPM_BUILD_ROOT
718426e1 744
c546a4d6 745# cleanup
c2683840 746%ifnarch %{ix86} %{x8664} x32
2f409bb7 747rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/athlon-linux/macros
34865f27 748rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/geode-linux/macros
2f409bb7
JR
749rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i386-linux/macros
750rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i486-linux/macros
751rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i586-linux/macros
752rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i686-linux/macros
753rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium3-linux/macros
754rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium4-linux/macros
25ac75ae
AM
755%endif
756
c2683840 757%ifnarch %{x8664} x32
2f409bb7
JR
758rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/amd64-linux/macros
759rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia32e-linux/macros
760rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x32-linux/macros
761rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x86_64-linux/macros
25ac75ae
AM
762%endif
763
c546a4d6 764%ifnarch %{ppc}
34865f27
JR
765rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/m68k-linux/macros
766rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc32dy4-linux/macros
767rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc64*-linux/macros
768rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8260-linux/macros
769rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8560-linux/macros
2f409bb7 770rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros
34865f27 771rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros
25ac75ae
AM
772%endif
773
34865f27 774rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros
2f409bb7
JR
775rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
776rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros
777rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros
778rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros
34865f27 779rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros
2f409bb7 780rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros
34865f27 781rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros
2f409bb7 782rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros
c546a4d6 783
3a3e476f 784%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
644d8958 785
61f7e1b3 786install %{SOURCE1} doc/manual/groups
d755a548 787install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
80b8a1f9
JB
788install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
789install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
0bf34f68
JR
790install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
791install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
34865f27 792install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
0bf34f68
JR
793cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
794install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
cf709a39 795install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
0bf34f68 796install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 797
0bf34f68 798install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 799
950eead3
ER
800install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
801
0bf34f68 802install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
b1541d4c 803install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
0bf34f68
JR
804install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
805install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
806install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
807install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
0bf34f68 808install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
08697680 809
950eead3
ER
810touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
811touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
0bf34f68 812install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
950eead3
ER
813touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
814touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
815touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
fbc0ff35 816
91ee86a9 817install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
345a6923 818install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
2f409bb7 819#install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
91ee86a9 820
9776a251
JR
821# create macro loading wrappers for backward compatibility
822for m in gstreamer java mono perl php python; do
b279f099 823 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
9776a251
JR
824done
825
950eead3
ER
826# move rpm to /bin
827mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
828# move essential libs to /lib (libs that /bin/rpm links to)
40675133
JR
829for a in librpm.so librpmbuild.so librpmio.so librpmsign.so; do
830 mv -f $RPM_BUILD_ROOT%{_libdir}/${a}.* $RPM_BUILD_ROOT/%{_lib}
831 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/${a}.*.*.*) $RPM_BUILD_ROOT%{_libdir}/${a}
c2673e18
AF
832done
833
dae5e1a8 834%if %{with python}
6f18cdb7
AF
835%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
836%py_comp $RPM_BUILD_ROOT%{py_sitedir}
837
34865f27 838%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,py}
dae5e1a8 839%endif
01d7a578 840
01d7a578 841# wrong location, not used anyway
2f409bb7 842%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log}
01d7a578 843
90b03dd6 844%find_lang %{name}
cf6faebc 845
08697680 846%{__rm} -rf manual
a998ac11 847cp -a doc/manual manual
08697680 848%{__rm} -f manual/Makefile*
874f4c9a 849
13eb5ebf 850%clean
d7df46b8 851rm -rf $RPM_BUILD_ROOT
76214164 852
cc1a4992
ER
853%pretrans
854# this needs to be a dir
855if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
c1097150 856 umask 022
cc1a4992
ER
857 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
858 mkdir %{_sysconfdir}/rpm/sysinfo
859fi
860
be4d3036 861%posttrans
d25ec6ea 862if [ -e /var/lib/rpm/Packages ] && \
6a934782 863 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
d25ec6ea 864 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
6a934782 865 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
8383afc3 866 echo
e4dd6a34 867 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
8383afc3
JR
868 echo
869 fi
3ca91ccd
JR
870 echo
871 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
872 echo 'you should ignore it and restart poldek'
873 echo
3fc92bf7 874 %{_rpmlibdir}/bin/dbupgrade.sh
be4d3036 875fi
f7779567 876
b7ee97ef
JR
877%triggerpostun -- %{name} < 4.4.9-44
878%{_rpmlibdir}/hrmib-cache
879
ceaaacee
JB
880%post lib -p /sbin/ldconfig
881%postun lib -p /sbin/ldconfig
76214164 882
37a5a2fc 883%pretrans build
d755a548 884find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 885
3684d90f
JB
886%files -f %{name}.lang
887%defattr(644,root,root,755)
40675133 888%doc ChangeLog CREDITS README manual/*
3684d90f 889
3acb62f3
ER
890%dir /etc/pki/rpm-gpg
891/etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
54eb1770 892
7a9d72ce 893%attr(755,root,root) /bin/rpm
e73478cd 894
66edd895 895%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
b1541d4c 896%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
950eead3 897%dir %{_sysconfdir}/rpm/sysinfo
caf453d4 898# these are ok to be replaced
950eead3 899%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
caf453d4 900
09bb810c 901%{_mandir}/man8/rpm.8*
feb1f12e 902%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 903%lang(ja) %{_mandir}/ja/man8/rpm.8*
ff7bc1e6 904%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 905%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 906%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 907
40675133
JR
908#%dir /var/lib/rpm
909#%dir /var/lib/rpm/log
910#%dir /var/lib/rpm/tmp
911#%config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
4acac5de 912
cf709a39
ER
913# exported package NVRA (stamped with install tid)
914# net-snmp hrSWInstalledName queries, bash-completions
915%dir /var/cache/hrmib
916
d755a548
JK
917%{_rpmlibdir}/rpmpopt*
918%{_rpmlibdir}/macros
08697680 919%dir %{_rpmlibdir}/macros.d
40675133
JR
920#%{_rpmlibdir}/macros.d/pld
921%{_rpmlibdir}/platform/noarch-*
c2683840 922%ifarch %{ix86} %{x8664} x32
34865f27
JR
923%{_rpmlibdir}/platform/athlon*
924%{_rpmlibdir}/platform/geode*
40675133
JR
925%{_rpmlibdir}/platform/i?86*
926%{_rpmlibdir}/platform/pentium*
34865f27
JR
927%endif
928%ifarch %{x8664} x32
929%{_rpmlibdir}/platform/amd64*
930%{_rpmlibdir}/platform/ia32e*
931%{_rpmlibdir}/platform/x86_64*
83a0601a 932%{_rpmlibdir}/platform/x32*
e23edf35
JR
933%endif
934%ifarch alpha
40675133 935%{_rpmlibdir}/platform/alpha*
e23edf35
JR
936%endif
937%ifarch ia64
40675133 938%{_rpmlibdir}/platform/ia64*
e23edf35
JR
939%endif
940%ifarch mips mipsel mips64 mips64el
40675133 941%{_rpmlibdir}/platform/mips*
e23edf35
JR
942%endif
943%ifarch %{ppc}
40675133 944%{_rpmlibdir}/platform/ppc*
e23edf35
JR
945%endif
946%ifarch sparc sparc64
40675133 947%{_rpmlibdir}/platform/sparc*
e23edf35 948%endif
3684d90f 949
cf709a39
ER
950%attr(755,root,root) %{_rpmlibdir}/hrmib-cache
951
df50421f 952%dir %{_rpmlibdir}/bin
40675133
JR
953#%attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
954#%attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
955#%attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
956#%attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
957#%attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
df50421f 958
66edd895
JB
959%files base
960%defattr(644,root,root,755)
492a2bd4 961%dir %{_sysconfdir}/rpm
66edd895
JB
962%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
963%dir %{_rpmlibdir}
964%attr(755,root,root) %{_bindir}/banner.sh
965%attr(755,root,root) %{_rpmlibdir}/user_group.sh
966%dir /var/lib/banner
967
874f4c9a
MM
968%files lib
969%defattr(644,root,root,755)
40675133
JR
970%attr(755,root,root) /%{_lib}/librpm.so.9
971%attr(755,root,root) /%{_lib}/librpm.so.%{sover}
972%attr(755,root,root) /%{_lib}/librpmbuild.so.9
973%attr(755,root,root) /%{_lib}/librpmbuild.so.%{sover}
974%attr(755,root,root) /%{_lib}/librpmio.so.9
975%attr(755,root,root) /%{_lib}/librpmio.so.%{sover}
976%attr(755,root,root) /%{_lib}/librpmsign.so.9
977%attr(755,root,root) /%{_lib}/librpmsign.so.%{sover}
874f4c9a 978
69131f1a
JB
979%files devel
980%defattr(644,root,root,755)
69131f1a 981%attr(755,root,root) %{_libdir}/librpm.so
950eead3 982%attr(755,root,root) %{_libdir}/librpmbuild.so
69131f1a 983%attr(755,root,root) %{_libdir}/librpmio.so
40675133 984%attr(755,root,root) %{_libdir}/librpmsign.so
950eead3
ER
985%{_libdir}/librpm*.la
986%{_includedir}/rpm
987%{_pkgconfigdir}/*.pc
69131f1a
JB
988
989%files static
990%defattr(644,root,root,755)
991%{_libdir}/librpm*.a
992
993%files utils
994%defattr(644,root,root,755)
69131f1a 995%attr(755,root,root) %{_bindir}/rpm2cpio
40675133 996#%attr(755,root,root) %{_bindir}/rpmconstant
69131f1a 997%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
69131f1a 998%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
25e974c7 999%attr(755,root,root) %{_rpmlibdir}/tgpg
40675133
JR
1000#%attr(755,root,root) %{_rpmlibdir}/bin/chroot
1001#%attr(755,root,root) %{_rpmlibdir}/bin/cp
1002#%attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1003#%attr(755,root,root) %{_rpmlibdir}/bin/find
1004#%attr(755,root,root) %{_rpmlibdir}/bin/mgo
1005#%attr(755,root,root) %{_rpmlibdir}/bin/mtree
1006#%attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1007#%attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1008#%attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1009#%attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
6e115b23 1010%if %{with selinux}
40675133
JR
1011#%attr(755,root,root) %{_rpmlibdir}/bin/semodule
1012#%attr(755,root,root) %{_rpmlibdir}/bin/spooktool
6e115b23 1013%endif
40675133 1014#%attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
69131f1a 1015%{_mandir}/man8/rpm2cpio.8*
40675133 1016#%{_mandir}/man8/rpmconstant.8*
69131f1a 1017%{_mandir}/man8/rpmdeps.8*
40675133 1018#%{_mandir}/man8/rpmmtree.8*
69131f1a 1019%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
69131f1a
JB
1020%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1021%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
69131f1a
JB
1022%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1023
1024%files utils-perl
1025%defattr(644,root,root,755)
40675133 1026#%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
69131f1a
JB
1027
1028%if %{with static}
1029%files utils-static
1030%defattr(644,root,root,755)
1031%attr(755,root,root) %{_bindir}/rpm[ieu]
1032%attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1033%endif
1034
3684d90f 1035%files build
a45ae6d8 1036%defattr(644,root,root,755)
66edd895 1037%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
1038%attr(755,root,root) %{_rpmlibdir}/brp-*
1039%attr(755,root,root) %{_rpmlibdir}/check-files
d755a548 1040%attr(755,root,root) %{_rpmlibdir}/compress-doc
40675133 1041#%attr(755,root,root) %{_rpmlibdir}/cross-build
d755a548 1042%attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
40675133 1043#%attr(755,root,root) %{_rpmlibdir}/getpo.sh
d755a548 1044%attr(755,root,root) %{_rpmlibdir}/install-build-tree
40675133
JR
1045#%attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1046#%attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
01d7a578 1047%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
c75b3936 1048%attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
01d7a578
JB
1049# needs hacked pkg-config to return anything
1050%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
40675133
JR
1051#%attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1052#%attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
40675133
JR
1053#%attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1054#%attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1055#%attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1056#%attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1057#%attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
40675133
JR
1058#%attr(755,root,root) %{_rpmlibdir}/bin/wget
1059#%attr(755,root,root) %{_rpmlibdir}/vcheck
410dd742 1060# not used yet ... these six depend on perl
40675133 1061#%attr(755,root,root) %{_rpmlibdir}/http.req
428645e9
JR
1062# we always used scripts provided by mono-devel, maybe move them here
1063#%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1064#%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
37e965e8 1065
70f8787d 1066%attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
37e965e8 1067# must be here for "Requires: rpm-*prov" to work
40675133
JR
1068#%{_rpmlibdir}/macros.d/cmake
1069#%{_rpmlibdir}/macros.d/gstreamer
1070#%{_rpmlibdir}/macros.d/java
1071#%{_rpmlibdir}/macros.d/libtool
1072#%{_rpmlibdir}/macros.d/mono
1073#%{_rpmlibdir}/macros.d/perl
1074#%{_rpmlibdir}/macros.d/php
1075#%{_rpmlibdir}/macros.d/pkgconfig
1076#%{_rpmlibdir}/macros.d/python
1077#%{_rpmlibdir}/macros.d/ruby
1078#%{_rpmlibdir}/macros.d/selinux
1079#%{_rpmlibdir}/macros.d/tcl
1080#%{_rpmlibdir}/macros.rpmbuild
9776a251 1081# compat wrappers
40675133 1082#%{_rpmlibdir}/macros.gstreamer
9776a251
JR
1083%{_rpmlibdir}/macros.java
1084%{_rpmlibdir}/macros.mono
1085%{_rpmlibdir}/macros.perl
1086%{_rpmlibdir}/macros.php
1087%{_rpmlibdir}/macros.python
77fcdbf7 1088
40675133
JR
1089#%attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1090#%attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
df50421f 1091
874f4c9a
MM
1092%attr(755,root,root) %{_bindir}/gendiff
1093%attr(755,root,root) %{_bindir}/rpmbuild
ec44785a 1094
40675133
JR
1095#%dir %{_rpmlibdir}/helpers
1096#%attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
874f4c9a 1097
a00926bc 1098%{_mandir}/man1/gendiff.1*
874f4c9a 1099%{_mandir}/man8/rpmbuild.8*
fefe9d30
JB
1100%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1101%lang(pl) %{_mandir}/pl/man1/gendiff.1*
1102%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
f3fe287f 1103
7d8492bb
JB
1104%files javaprov
1105%defattr(644,root,root,755)
1106%attr(755,root,root) %{_rpmlibdir}/java-find-requires
1107# needs jar (any jdk), jcf-dump (gcc-java) to work
40675133 1108#%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
7d8492bb 1109
ec49e9fb
ER
1110%files rubyprov
1111%defattr(644,root,root,755)
40675133
JR
1112#%attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1113#%attr(755,root,root) %{_rpmlibdir}/rubygems.rb
ec49e9fb 1114
89334051
AF
1115%files perlprov
1116%defattr(644,root,root,755)
d755a548 1117%attr(755,root,root) %{_rpmlibdir}/perl.*
40675133
JR
1118#%attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1119#%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
9805fd6d 1120
80d3b868 1121%files pythonprov
d8fcb9b0 1122%defattr(644,root,root,755)
40675133 1123#%attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
25d296e1 1124%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
09bb810c 1125
d36cb682
PG
1126%files php-pearprov
1127%defattr(644,root,root,755)
34865f27
JR
1128%attr(755,root,root) %{_rpmlibdir}/php.prov
1129%attr(755,root,root) %{_rpmlibdir}/php.req
9d09e076 1130%attr(755,root,root) %{_rpmlibdir}/php.req.php
d36cb682 1131
50dc9ac0 1132%if %{with python}
cf6faebc 1133%files -n python-rpm
42a0025c 1134%defattr(644,root,root,755)
34865f27
JR
1135%dir %{py_sitedir}/rpm
1136%attr(755,root,root) %{py_sitedir}/rpm/*.so
1137%{py_sitedir}/rpm/*.py[co]
50dc9ac0 1138%endif
5c2ab5c7
AM
1139
1140%if %{with apidocs}
1141%files apidocs
1142%defattr(644,root,root,755)
40675133 1143#%doc apidocs
5c2ab5c7 1144%endif
This page took 0.720388 seconds and 4 git commands to generate.