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