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