]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- next batch of patch updates
[packages/rpm.git] / rpm.spec
CommitLineData
52c10eff 1#
2# TODO:
d0ee0933
JR
3# - make key infrastructure code fallback from keyutils to plain mode in case keyctl
4# returns -ENOSYS
9fb5ee9e 5# - add macros for some ppc, mipsel, alpha and sparc
a0c0c9ca 6#
c296fee0 7# - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
76005b82 8#
89427592 9# Conditional build:
01d7a578 10%bcond_with static # build static rpm+rpmi
0a1ccab0 11%bcond_without apidocs # don't generate documentation with doxygen
4af66a2c
JB
12%bcond_without python # don't build python bindings
13%bcond_without selinux # build without selinux support
0dc47449 14%bcond_without suggest_tags # build without Suggest tag (bootstrapping)
7f47af9c 15%bcond_with db61 # use DB 6.1 instead of 5.2
34befcc5 16%bcond_with neon # build with HTTP/WebDAV support (neon library)
6f6c7465 17%bcond_with sqlite # build with SQLite support
a22a4387 18%bcond_without system_pcre # use system pcre
d0ee0933 19%bcond_with keyutils # build with keyutils support
858aa7d0 20
ba7bedbb
JR
21%if %{with sqlite}
22# Error: /lib64/librpmio-5.4.so: undefined symbol: sqlite3_enable_load_extension
23%define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
24%endif
25
003a039e 26# versions of required libraries
7f47af9c
JB
27%if %{with db61}
28%define reqdb_pkg db6.1
29%define reqdb_ver 6.1
30%define reqdb_pkgver 6.1.19
5f3f5bd6 31%else
bf728d07 32%define reqdb_pkg db5.2
cf169f7c
JR
33%define reqdb_ver 5.2
34%define reqdb_pkgver 5.2.36.0-4
5f3f5bd6 35%endif
ec44785a 36%define reqpopt_ver 1.15
7f11791f 37%define beecrypt_ver 2:4.2.0
70f8787d 38%define sover 5.4
fc60c9f3 39
e5f02e49 40Summary: RPM Package Manager
4ea2ed33
ER
41Summary(de.UTF-8): RPM Packet-Manager
42Summary(es.UTF-8): Gestor de paquetes RPM
43Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
44Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
45Summary(ru.UTF-8): Менеджер пакетов от RPM
46Summary(uk.UTF-8): Менеджер пакетів від RPM
76214164 47Name: rpm
6ecfe7c2 48Version: 4.15.1
98d9fc8e
JR
49Release: 0.1
50License: GPL v2 / LGPL v2.1
76214164 51Group: Base
6ecfe7c2
JR
52Source0: http://ftp.rpm.org/releases/rpm-4.15.x/%{name}-%{version}.tar.bz2
53# Source0-md5: ed72147451a5ed93b2a48e2f8f5413c3
c546a4d6
ER
54# See README.cpu-os-macros how to update cpu-os-macros.a
55Source100: cpu-os-macros.a
56Source101: README.cpu-os-macros
ff7bc1e6 57Source1: %{name}.groups
08697680 58Source2: macros.pld.in
ff7bc1e6 59Source3: %{name}-install-tree
80b8a1f9 60Source4: %{name}-find-spec-bcond
cf709a39 61Source5: %{name}-hrmib-cache
80b8a1f9
JB
62Source6: %{name}-groups-po.awk
63Source7: %{name}-compress-doc
0bf34f68
JR
64Source8: %{name}-php-provides
65Source9: %{name}-php-requires
66Source10: %{name}.sysinfo
67Source11: perl.prov
68Source12: %{name}-user_group.sh
69Source13: %{name}.sysconfig
70Source14: %{name}-java-requires
a4b7ef27 71# http://svn.pld-linux.org/banner.sh/
0bf34f68 72Source15: banner.sh
34f36471 73Source16: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
e1b97821 74# Source16-md5: 23914bb49fafe7153cee87126d966461
0bf34f68
JR
75Source17: %{name}-mimetypedeps
76Source18: macros.local
f09b01ac
ER
77Source19: %{name}.noautocompressdoc
78Source20: %{name}.noautoprov
79Source21: %{name}.noautoprovfiles
80Source22: %{name}.noautoreq
f09b01ac 81Source24: %{name}.noautoreqfiles
0bf34f68 82Source25: %{name}-php-requires.php
f09b01ac 83Source26: %{name}db_checkversion.c
b1541d4c 84Source27: macros.lang
f09b01ac 85Source28: %{name}db_reset.c
14138aba 86Source29: dbupgrade.sh
e2489d8e 87Source30: rubygems.rb
63194730 88Source31: gem_helper.rb
f05db907 89Patch0: %{name}-branch.patch
2f0ee4ec 90Patch1: %{name}-man_pl.patch
38e53563 91Patch2: %{name}-popt-aliases.patch
3465efba 92Patch4: %{name}-perl-macros.patch
c1768ce2 93Patch5: %{name}-perl-req-perlfile.patch
3c7590cc
JR
94Patch6: %{name}-scripts-closefds.patch
95Patch7: %{name}-php-macros.patch
044171ea 96Patch9: %{name}-lua.patch
9ee75c3c
JR
97Patch14: %{name}-perl_req-INC_dirs.patch
98Patch15: %{name}-debuginfo.patch
99Patch16: vendor-pld.patch
9ee75c3c 100Patch18: %{name}-javadeps.patch
9ee75c3c 101Patch20: %{name}-libtool-deps.patch
9ee75c3c
JR
102Patch29: %{name}-builddir-readlink.patch
103Patch30: %{name}-changelog_order_check_nonfatal.patch
9ee75c3c 104Patch35: %{name}-namespace-compare.patch
9ee75c3c 105Patch37: %{name}-postun-nofail.patch
9ee75c3c
JR
106Patch42: %{name}-pattern_Release.patch
107Patch43: %{name}-fix-___build_pre-macro.patch
108Patch44: %{name}-missing-patch-file-fails-build.patch
109Patch45: %{name}-remove-misleading-missing-patch-message.patch
110Patch46: %{name}-file-magic-can-be-mixed-case.patch
0b0a7839 111Patch47: %{name}-query-always-noisy.patch
7f7a3f24 112Patch48: %{name}-verify-ghosts-broken-logic.patch
295c267a 113Patch49: %{name}-python-enable-compat-RPMSENSE.patch
d6a36788 114Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
bba1059c 115Patch51: %{name}-gst-inspect-typo.patch
1fcc9b69 116Patch52: %{name}-null-term-ascii-digest.patch
70df63f3 117Patch53: %{name}-lua-enable-extra-libs.patch
330093fa 118Patch54: %{name}-fix-filedigests-verify.patch
9158f140 119Patch55: %{name}-disable-hmac-verify.patch
f09b01ac 120Patch56: %{name}-macros.patch
f7779567 121Patch57: %{name}-db5.2.patch
c4861085 122Patch58: %{name}-preserve-iterator.patch
7feffaab 123Patch59: gcc6-stdlib.patch
b10643ac 124Patch60: %{name}-python-sitescriptdir.patch
a6170fd4 125Patch61: %{name}-clean-docdir.patch
108e9711 126Patch62: %{name}-DB_CONFIG.patch
fb11a0dd 127Patch63: %{name}-pythoneggs.patch
80e5119e 128Patch64: %{name}-fix-compress-doc.patch
94807250 129Patch65: %{name}-parseSpec-skip-empty-tags.patch
10526c23 130Patch66: %{name}-payload-use-hashed-inode.patch
4e2db228 131Patch67: %{name}-repackage-dont-force-max-compression.patch
fb9ef172 132Patch68: rpm-bug-420.patch
4e2db228 133Patch70: python-%{name}sense-missingok.patch
497556c4 134Patch71: %{name}-changelog-encoding.patch
c065c1c1 135Patch72: %{name}-preserve-tag-type.patch
68dafc6c
ER
136Patch74: %{name}-fix-internal-lua-build.patch
137Patch75: %{name}-double_check_file_deps.patch
5666ceed 138Patch77: %{name}-lua-expat.patch
3a3e476f 139Patch78: %{name}-double_check_unpackaged_subdirs.patch
5131d1d1 140Patch79: %{name}-rpmspec.patch
6d1e99c9 141Patch80: %{name}-revert-gpg-argv-parsing.patch
9d486499 142Patch81: %{name}-perl-magic.patch
64b1e365 143Patch82: %{name}-5.4.15-use-DSA-sig.patch
10a92209 144Patch83: %{name}-ignore-missing-macro-files.patch
321b78b0 145Patch84: x32.patch
8dc5e023
JR
146Patch85: rpm-CVE-2013-6435.patch
147Patch86: rpm-CVE-2014-8118.patch
0959ed6d 148Patch87: %{name}-file-output-for-ELF.patch
1c02955f 149Patch88: %{name}-rpmtdnext.patch
8b6cca9f 150Patch89: disable-header-verification.patch
a98c8118 151Patch90: %{name}-cppcompat.patch
d397adc8 152Patch91: py-disable-fetch.patch
8029452c 153Patch92: fast_python_deps.patch
b5cd30d4 154Patch93: python2_explicit.patch
7d0a808e 155Patch94: do_not_write_before_macro_buffer.patch
211e3eab 156Patch95: rpm-python-spec-header.patch
8c28fc02 157Patch96: skip-ldconfig-optimization.patch
c0a8bb95 158Patch97: glibc.patch
b8c54dbb 159Patch98: extension-based-compression-detection.patch
7db865f2 160Patch99: %{name}-gpg-pinentry.patch
98d9fc8e 161Patch100: python-libx32.patch
883e0fac 162
955f2725 163URL: http://rpm5.org/
cf169f7c 164BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
6f6c7465
JR
165%if %{with sqlite}
166BuildRequires: sqlite3-devel
167%else
cf169f7c 168BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
6f6c7465 169%endif
29855fc2 170BuildRequires: autoconf >= 2.63
644d8958 171BuildRequires: automake >= 1.4
87ef0d95 172BuildRequires: beecrypt-devel >= %{beecrypt_ver}
33be5db0 173BuildRequires: bzip2-devel >= 1.0.2-17
33be5db0 174BuildRequires: elfutils-devel >= 0.108
3e70c06e 175BuildRequires: gettext-tools >= 0.19.2
d0ee0933 176%{?with_keyutils:BuildRequires: keyutils-devel}
241257bf 177BuildRequires: libmagic-devel
6e115b23
JR
178%if %{with selinux}
179BuildRequires: libselinux-devel >= 2.1.0
6e115b23 180BuildRequires: libsemanage-devel >= 2.1.0
3acb62f3 181BuildRequires: libsepol-devel >= 2.1.0
6e115b23 182%endif
84cdee7a
JB
183# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
184BuildRequires: libstdc++-devel
b60c74c3 185BuildRequires: libtool >= 1:1.4.2-9
33be5db0 186%if %{with neon}
fe861705 187BuildRequires: libxml2-devel
83d6a3fe 188BuildRequires: neon-devel >= 0.25.5
33be5db0 189%endif
c38bf1df 190BuildRequires: lua52-devel >= 5.2.2
127a0b3c 191BuildRequires: ossp-uuid-devel
7973b351 192BuildRequires: patch >= 2.2
1d49ffbc 193BuildRequires: popt-devel >= %{reqpopt_ver}
950eead3
ER
194%{?with_python:BuildRequires: python-devel >= 1:2.3}
195BuildRequires: python-modules >= 1:2.3
2a813afe 196%{?with_python:BuildRequires: rpm-pythonprov}
e56a10a9 197BuildRequires: tcl
77fcdbf7 198BuildRequires: xz-devel
3acb62f3 199BuildRequires: zlib-devel
5c2ab5c7
AM
200%if %{with apidocs}
201BuildRequires: doxygen
202BuildRequires: ghostscript
203BuildRequires: graphviz
204BuildRequires: tetex-pdftex
205%endif
a6e56ce4 206%if %{with static}
e6090a7b 207# Require static library only for static build
cf169f7c 208BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
87ef0d95 209BuildRequires: beecrypt-static >= %{beecrypt_ver}
33be5db0 210BuildRequires: bzip2-static >= 1.0.2-17
290c1c30 211BuildRequires: elfutils-static
10abbd40 212BuildRequires: glibc-static >= 2.2.94
241257bf 213BuildRequires: libmagic-static
6e115b23
JR
214%if %{with selinux}
215BuildRequires: libselinux-static >= 2.1.0
6e115b23 216BuildRequires: libsemanage-static >= 2.1.0
3acb62f3 217BuildRequires: libsepol-static >= 2.1.0
6e115b23 218%endif
003a039e 219BuildRequires: popt-static >= %{reqpopt_ver}
1d49ffbc 220BuildRequires: zlib-static
7a9d72ce 221%endif
d25ec6ea 222Requires(posttrans): coreutils
affe917d 223Requires: FHS >= 3.0-2
66edd895 224Requires: %{name}-base = %{version}-%{release}
b26a9709 225Requires: %{name}-lib = %{version}-%{release}
10abbd40
ER
226Requires: beecrypt >= %{beecrypt_ver}
227Requires: popt >= %{reqpopt_ver}
0229a8b9
AM
228Provides: rpm-db-ver = %{reqdb_ver}
229Obsoletes: rpm-getdeps
4adb7d05 230%{!?with_static:Obsoletes: rpm-utils-static}
874f4c9a 231Conflicts: glibc < 2.2.92
8ee1c72c
AM
232# db4.6 poldek needed
233Conflicts: poldek < 0.21-0.20070703.00.3
d268a169
AM
234# segfaults with lzma 0.42.2
235Conflicts: lzma-libs < 4.999.3
e4084afd 236Conflicts: util-vserver < 0.30.216-1.pre3034.7
1d49ffbc 237BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6d82b332 238
4adb7d05 239%define _binary_payload w9.gzdio
6d82b332 240
4cd84746
JB
241# don't require very fresh rpm.macros to build
242%define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
950eead3 243%define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
9f517079 244%define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
80e9f34d 245%define ppc ppc ppc7400 ppc7450
9f517079 246%define x8664 amd64 ia32e x86_64
4cd84746 247
d755a548 248%define _rpmlibdir /usr/lib/rpm
950eead3 249%define _noautocompressdoc RPM-GPG-KEY
d755a548 250
ff7bc1e6 251%description
252RPM is a powerful package manager, which can be used to build,
253install, query, verify, update, and uninstall individual software
cf6faebc 254packages. A package consists of an archive of files, and package
fed73700 255information, including name, version, and description.
256
dd85fadc
JR
257%description -l de.UTF-8
258RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
fed73700 259Installation, Anfrage, Verifizierung, Aktualisierung und
260Uninstallation individueller Softwarepakete. Ein Paket besteht aus
261einem Archiv Dateien und Paketinformation, inklusive Name, Version und
313a4d1a 262Beschreibung.
263
dd85fadc 264%description -l es.UTF-8
313a4d1a 265RPM es un poderoso administrador de paquetes, que puede ser usado para
266construir, instalar, pesquisar, verificar, actualizar y desinstalar
267paquetes individuales de software. Un paquete consiste en un
dd85fadc
JR
268almacenaje de archivos, y información sobre el paquete, incluyendo
269nombre, versión y descripción.
270
271%description -l pl.UTF-8
272RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
273przebudowanie, instalację czy weryfikację dowolnego pakietu.
274Informacje dotyczące każdego pakietu, takie jak jego opis, lista
275plików wchodzących w skład pakietu, zależności od innych pakietów, są
276przechowywane w bazie danych i można je uzyskać za pomocą opcji
313a4d1a 277odpytywania programu rpm.
278
dd85fadc
JR
279%description -l pt_BR.UTF-8
280RPM é um poderoso gerenciador de pacotes, que pode ser usado para
313a4d1a 281construir, instalar, pesquisar, verificar, atualizar e desinstalar
282pacotes individuais de software. Um pacote consiste de um conjunto de
dd85fadc
JR
283arquivos e informações adicionais, incluindo nome, versão e descrição
284do pacote, permissões dos arquivos, etc.
285
286%description -l ru.UTF-8
287RPM - это мощный менеджер пакетов, который может быть использован для
288создания, инсталляции, запросов (query), проверки, обновления и
289удаления программных пакетов. Пакет состоит из файлового архива и
290служебной информации, включающей название, версию, описание и другие
291данные о пакете.
292
293%description -l uk.UTF-8
294RPM - це потужний менеджер пакетів, що може бути використаний для
295створення, інсталяції, запитів (query), перевірки, поновлення та
296видалення програмних пакетів. Пакет складається з файлового архіву та
297службової інформації, що містить назву, версію, опис та іншу
298інформацію про пакет.
7c6dc55f 299
66edd895
JB
300%package base
301Summary: RPM base package - scripts used by rpm packages themselves
4ea2ed33 302Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
66edd895 303Group: Base
1d9ca0c1 304Requires: filesystem
950eead3 305Obsoletes: rpm-scripts
66edd895
JB
306Obsoletes: vserver-rpm
307
308%description base
309The RPM base package contains scripts used by rpm packages themselves.
310These include:
311- scripts for adding/removing groups and users needed for rpm
312 packages,
313- banner.sh to display %%banner messages from rpm scriptlets.
314
dd85fadc
JR
315%description base -l pl.UTF-8
316Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
66edd895 317Zawiera on:
dd85fadc
JR
318- skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
319- banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
66edd895 320
69131f1a
JB
321%package lib
322Summary: RPMs library
4ea2ed33 323Summary(pl.UTF-8): Biblioteki RPM-a
69131f1a 324Group: Libraries
cf169f7c 325Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
6f6c7465
JR
326%if %{with sqlite}
327Requires: sqlite3 >= %{sqlite_build_version}
328%else
cf169f7c 329Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
6f6c7465 330%endif
3acb62f3 331Requires: beecrypt >= %{beecrypt_ver}
241257bf 332Requires: libmagic >= 1.15-2
6e115b23 333%{?with_selinux:Requires: libselinux >= 2.1.0}
69131f1a 334Requires: popt >= %{reqpopt_ver}
d1795eb0 335Obsoletes: rpm-libs
69131f1a
JB
336# avoid SEGV caused by mixed db versions
337Conflicts: poldek < 0.18.1-16
338
339%description lib
340RPMs library.
341
dd85fadc 342%description lib -l pl.UTF-8
69131f1a
JB
343Biblioteki RPM-a.
344
fed73700 345%package devel
3f2d796a 346Summary: Header files for rpm libraries
4ea2ed33
ER
347Summary(de.UTF-8): Header-Dateien für rpm Libraries
348Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
349Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
350Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
351Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
352Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
89f92de0 353Group: Development/Libraries
153e5706 354Requires: %{name}-lib = %{version}-%{release}
cf169f7c 355Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
87ef0d95 356Requires: beecrypt-devel >= %{beecrypt_ver}
fea3cb89 357Requires: bzip2-devel
5c583f90 358Requires: elfutils-devel
d0ee0933 359%{?with_keyutils:Requires: keyutils-devel}
241257bf 360Requires: libmagic-devel
c7b2d5f9
KK
361%if %{with selinux}
362Requires: libselinux-devel
363Requires: libsemanage-devel
364Requires: libsepol-devel
365%endif
a998ac11 366Requires: popt-devel >= %{reqpopt_ver}
fea3cb89 367Requires: zlib-devel
cf6faebc 368
369%description devel
3f2d796a
JB
370The RPM packaging system includes C libraries that make it easy to
371manipulate RPM packages and databases. They are intended to ease the
cf6faebc 372creation of graphical package managers and other tools that need
3f2d796a
JB
373intimate knowledge of RPM packages. This package contains header files
374for these libraries.
fed73700 375
dd85fadc
JR
376%description devel -l de.UTF-8
377Der RPM-Packensystem enthält eine C-Library, die macht es einfach
378RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
fed73700 379Vereinfachung des Schaffens grafischer Paket-Manager und anderer
313a4d1a 380Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
381
dd85fadc 382%description devel -l es.UTF-8
313a4d1a 383El sistema de empaquetado RPM incluye una biblioteca C que vuelve
dd85fadc
JR
384fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
385facilitar la creación de administradores gráficos de paquetes y otras
20f89981 386herramientas que necesiten un conocimiento profundo de paquetes RPM.
9e42d68a 387
dd85fadc
JR
388%description devel -l pl.UTF-8
389System RPM zawiera biblioteki C, które ułatwiają manipulowanie
390pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
391graficznych programów zarządzających pakietami oraz innych narzędzi,
392które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
393zawiera pliki nagłówkowe wspomnianych bibliotek.
394
395%description devel -l pt_BR.UTF-8
396O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
397a manipulação de pacotes e bases de dados RPM. Seu objetivo é
398facilitar a criação de gerenciadores gráficos de pacotes e outras
edacdf8f 399ferramentas que precisem de conhecimento profundo de pacotes RPM.
400
dd85fadc
JR
401%description devel -l ru.UTF-8
402Система управления пакетами RPM содержит библиотеку C, которая
403упрощает манипуляцию пакетами RPM и соответствующими базами данных.
404Эта библиотека предназначена для облегчения создания графических
405пакетных менеджеров и других утилит, которым необходимо работать с
406пакетами RPM.
7c6dc55f 407
dd85fadc
JR
408%description devel -l uk.UTF-8
409Система керування пакетами RPM містить бібліотеку C, котра спрощує
410роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
411призначена для полегшення створення графічних пакетних менеджерів та
412інших утиліт, що працюють з пакетами RPM.
7c6dc55f 413
fed73700 414%package static
9e42d68a 415Summary: RPM static libraries
4ea2ed33
ER
416Summary(de.UTF-8): RPMs statische Libraries
417Summary(pl.UTF-8): Biblioteki statyczne RPM-a
418Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
419Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
420Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
edacdf8f 421Group: Development/Libraries
153e5706 422Requires: %{name}-devel = %{version}-%{release}
cf169f7c 423Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
87ef0d95 424Requires: beecrypt-static >= %{beecrypt_ver}
df76dbd9 425Requires: bzip2-static
ff03e01a 426Requires: elfutils-static
d0ee0933 427%{?with_keyutils:Requires: keyutils-static}
241257bf 428Requires: libmagic-static
c7b2d5f9
KK
429%if %{with selinux}
430Requires: libselinux-static
431Requires: libsemanage-static
432Requires: libsepol-static
433%endif
a998ac11 434Requires: popt-static >= %{reqpopt_ver}
df76dbd9 435Requires: zlib-static
edacdf8f 436
437%description static
20f89981 438RPM static libraries.
fed73700 439
dd85fadc 440%description static -l de.UTF-8
20f89981 441RPMs statische Libraries.
9e42d68a 442
dd85fadc 443%description static -l pl.UTF-8
0a7ae9bc 444Biblioteki statyczne RPM-a.
313a4d1a 445
dd85fadc
JR
446%description static -l pt_BR.UTF-8
447Bibliotecas estáticas para desenvolvimento.
edacdf8f 448
dd85fadc
JR
449%description static -l ru.UTF-8
450Система управления пакетами RPM содержит библиотеку C, которая
451упрощает манипуляцию пакетами RPM и соответствующими базами данных.
452Это статическая библиотека RPM.
7c6dc55f 453
dd85fadc
JR
454%description static -l uk.UTF-8
455Система керування пакетами RPM містить бібліотеку C, котра спрощує
456роботу з пакетами RPM та відповідними базами даних. Це статична
457бібліотека RPM.
7c6dc55f 458
fed73700 459%package utils
8482995c 460Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
461Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
462Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
edacdf8f 463Group: Applications/File
153e5706 464Requires: %{name} = %{version}-%{release}
a998ac11 465Requires: popt >= %{reqpopt_ver}
86b85368
AG
466%if %{with suggest_tags}
467Suggests: bzip2
468Suggests: gzip
86b85368 469%endif
695e60ad 470Conflicts: filesystem-debuginfo < 3.0-16
edacdf8f 471
472%description utils
8482995c 473Additional utilities for managing RPM packages and database.
fed73700 474
dd85fadc
JR
475%description utils -l de.UTF-8
476Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
9e42d68a 477
dd85fadc
JR
478%description utils -l pl.UTF-8
479Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
fed73700 480
92b3f576 481%package utils-perl
8482995c 482Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
483Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
484Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
92b3f576 485Group: Applications/File
153e5706 486Requires: %{name}-utils = %{version}-%{release}
92b3f576 487Requires: popt >= %{reqpopt_ver}
488
489%description utils-perl
8482995c 490Additional utilities for managing RPM packages and database.
92b3f576 491
dd85fadc
JR
492%description utils-perl -l de.UTF-8
493Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
92b3f576 494
dd85fadc
JR
495%description utils-perl -l pl.UTF-8
496Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
92b3f576 497
a00926bc
JB
498%package utils-static
499Summary: Static rpm utilities
4ea2ed33 500Summary(pl.UTF-8): Statyczne narzędzia rpm
a00926bc 501Group: Applications/System
153e5706 502Requires: %{name} = %{version}-%{release}
a00926bc
JB
503
504%description utils-static
505Static rpm utilities for repairing system in case something with
506shared libraries used by rpm become broken. Currently it contains rpmi
507binary, which can be used to install/upgrade/remove packages without
508using shared libraries (well, in fact with exception of NSS modules).
509
dd85fadc
JR
510%description utils-static -l pl.UTF-8
511Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
512związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
513Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
514uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
515(z wyjątkiem modułów NSS).
a00926bc 516
fed73700 517%package build
e191287c 518Summary: Scripts for building binary RPM packages
4ea2ed33
ER
519Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
520Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
521Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
522Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
523Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
e191287c 524Group: Applications/File
f15ca8ca
ER
525Requires(pretrans): coreutils
526Requires(pretrans): findutils
716fe3ca 527Requires: %{name}-build-macros >= 1.712
153e5706 528Requires: %{name}-utils = %{version}-%{release}
e191287c 529Requires: /bin/id
530Requires: awk
cfa7898a 531Requires: bzip2
e950a6d7 532Requires: chrpath >= 0.10-4
b6547e10 533Requires: cpio
e191287c 534Requires: diffutils
195f647c 535Requires: elfutils
583135b4 536Requires: file >= 4.17
e191287c 537Requires: fileutils
538Requires: findutils
950eead3
ER
539%ifarch athlon
540Requires: gcc >= 3.0.3
541%else
542Requires: gcc
543%endif
e191287c 544Requires: glibc-devel
545Requires: grep
546Requires: gzip
547Requires: make
548Requires: patch
adbd4815 549Requires: sed >= 4.0
e191287c 550Requires: sh-utils
adbd4815 551Requires: tar >= 1:1.22
e191287c 552Requires: textutils
3acb62f3 553Requires: which
adbd4815 554Requires: xz
ca3648b1 555Provides: rpmbuild(monoautodeps)
37ea389a 556Provides: rpmbuild(noauto) = 3
02d17bf9 557%ifarch %{x8664}
195f647c
JB
558Conflicts: automake < 1:1.7.9-2
559Conflicts: libtool < 2:1.5-13
560%endif
0096c5cd 561
e2025ad1 562%description build
58399c37 563Scripts for building binary RPM packages.
fed73700 564
dd85fadc
JR
565%description build -l de.UTF-8
566Scripts fürs Bauen binärer RPM-Pakete.
9e42d68a 567
dd85fadc
JR
568%description build -l pl.UTF-8
569Skrypty pomocnicze do budowania binarnych RPM-ów.
313a4d1a 570
dd85fadc
JR
571%description build -l pt_BR.UTF-8
572Este pacote contém scripts e programas executáveis que são usados para
cf6faebc 573construir pacotes usando o RPM.
e73478cd 574
dd85fadc
JR
575%description build -l ru.UTF-8
576Различные вспомогательные скрипты и исполняемые программы, которые
577используются для сборки RPM'ов.
7c6dc55f 578
dd85fadc
JR
579%description build -l uk.UTF-8
580Різноманітні допоміжні скрипти та утиліти, які використовуються для
581побудови RPM'ів.
7c6dc55f 582
8482995c
JB
583%package javaprov
584Summary: Additional utilities for checking Java provides/requires in RPM packages
585Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
586Group: Applications/File
587Requires: %{name} = %{version}-%{release}
588Requires: file
589Requires: findutils >= 1:4.2.26
590Requires: mktemp
591Requires: unzip
592
593%description javaprov
594Additional utilities for checking Java provides/requires in RPM
595packages.
596
597%description javaprov -l pl.UTF-8
598Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
599RPM.
600
69131f1a 601%package perlprov
8482995c 602Summary: Additional utilities for checking Perl provides/requires in RPM packages
4ea2ed33 603Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
8482995c 604Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
69131f1a
JB
605Group: Applications/File
606Requires: %{name} = %{version}-%{release}
b82853ee 607Requires: perl-Encode
69131f1a
JB
608Requires: perl-devel
609Requires: perl-modules
610
611%description perlprov
8482995c 612Additional utilities for checking Perl provides/requires in RPM
69131f1a
JB
613packages.
614
dd85fadc
JR
615%description perlprov -l de.UTF-8
616Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
69131f1a 617
dd85fadc 618%description perlprov -l pl.UTF-8
8482995c
JB
619Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
620pakietach RPM.
69131f1a
JB
621
622%package pythonprov
8482995c
JB
623Summary: Python macros, which simplifies creation of RPM packages with Python software
624Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
69131f1a
JB
625Group: Applications/File
626Requires: %{name} = %{version}-%{release}
cd800b3c 627Requires: python
cfbc7086 628Requires: python-setuptools
3acb62f3 629Requires: python-modules
69131f1a
JB
630
631%description pythonprov
8482995c 632Python macros, which simplifies creation of RPM packages with Python
69131f1a
JB
633software.
634
dd85fadc 635%description pythonprov -l pl.UTF-8
8482995c 636Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
69131f1a
JB
637Pythonie.
638
639%package php-pearprov
8482995c
JB
640Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
641Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
69131f1a
JB
642Group: Applications/File
643Requires: %{name} = %{version}-%{release}
632f1b5c 644Requires: sed >= 4.0
1b39d378 645Suggests: php-pear-PHP_CompatInfo
69131f1a
JB
646
647%description php-pearprov
8482995c 648Additional utilities for checking PHP PEAR provides/requires in RPM
69131f1a
JB
649packages.
650
dd85fadc 651%description php-pearprov -l pl.UTF-8
8482995c
JB
652Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
653pakietach RPM.
69131f1a 654
ec49e9fb
ER
655%package rubyprov
656Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
657Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
658Group: Applications/File
659Requires: %{name} = %{version}-%{release}
660Requires: ruby
661Requires: ruby-modules
b53b1f84 662Requires: ruby-rubygems
ec49e9fb
ER
663
664%description rubyprov
665Ruby tools, which simplifies creation of RPM packages with Ruby
666software.
667
668%description rubyprov -l pl.UTF-8
669Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
670Ruby.
671
69131f1a
JB
672%package -n python-rpm
673Summary: Python interface to RPM library
4ea2ed33
ER
674Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
675Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
69131f1a
JB
676Group: Development/Languages/Python
677Requires: %{name} = %{version}-%{release}
3acb62f3 678Requires: python
69131f1a
JB
679Obsoletes: rpm-python
680
681%description -n python-rpm
682The rpm-python package contains a module which permits applications
683written in the Python programming language to use the interface
684supplied by RPM (RPM Package Manager) libraries.
685
686This package should be installed if you want to develop Python
687programs that will manipulate RPM packages and databases.
688
dd85fadc
JR
689%description -n python-rpm -l pl.UTF-8
690Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
691Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
69131f1a 692
dd85fadc
JR
693Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
694Pythonie programy manipulujące pakietami i bazami danych rpm.
69131f1a 695
dd85fadc
JR
696%description -n python-rpm -l pt_BR.UTF-8
697O pacote rpm-python contém um módulo que permite que aplicações
69131f1a
JB
698escritas em Python utilizem a interface fornecida pelas bibliotecas
699RPM (RPM Package Manager).
700
dd85fadc 701Esse pacote deve ser instalado se você quiser desenvolver programas em
69131f1a
JB
702Python para manipular pacotes e bancos de dados RPM.
703
5c2ab5c7
AM
704%package apidocs
705Summary: RPM API documentation and guides
706Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
707Group: Documentation
d308de4c
ER
708%if "%{_rpmversion}" >= "5"
709BuildArch: noarch
710%endif
5c2ab5c7
AM
711
712%description apidocs
713Documentation for RPM API and guides in HTML format generated from rpm
714sources by doxygen.
715
716%description apidocs -l pl.UTF-8
717Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
718źrodeł RPM-a przez doxygen.
719
e2025ad1 720%prep
c546a4d6
ER
721%setup -q -n %{name}-%{version}%{?subver}
722install -d platform
723cd platform
724ar x %{SOURCE100}
725cd -
726
317ef122 727#patch0 -p1
2f0ee4ec 728%patch1 -p1
4d5b8e4c 729%patch2 -p1
7a3b1f24
AM
730%patch4 -p1
731%patch5 -p1
3c7590cc 732%patch6 -p1
6ecfe7c2 733#%patch7 -p1
c38bf1df 734%patch9 -p1
9ee75c3c 735%patch14 -p0
7033e976 736%patch15 -p1
c38bf1df
JR
737#%patch16 -p1
738#%patch18 -p1
3c7590cc 739%patch20 -p1
3c7590cc
JR
740%patch29 -p1
741%patch30 -p1
c38bf1df 742#%patch35 -p1
3c7590cc 743%patch37 -p1
9ee75c3c 744%patch42 -p1
9f9190ed 745%patch43 -p1
1d20bd4e 746%patch44 -p1
e94735a5 747%patch45 -p1
7070b427 748%patch46 -p1
358bccd1 749%patch47 -p1
7f7a3f24 750%patch48 -p1
295c267a 751%patch49 -p1
d6a36788 752%patch50 -p1
bba1059c 753%patch51 -p1
1fcc9b69 754%patch52 -p0
70df63f3 755%patch53 -p1
330093fa 756%patch54 -p1
9158f140 757%patch55 -p1
267d7641 758%patch56 -p1
7f47af9c 759%{!?with_db61:%patch57 -p1}
c4861085 760%patch58 -p1
7feffaab 761%patch59 -p1
b10643ac 762%patch60 -p1
a6170fd4 763%patch61 -p1
108e9711 764%patch62 -p1
fb11a0dd 765%patch63 -p1
80e5119e 766%patch64 -p1
94807250 767%patch65 -p1
10526c23 768%patch66 -p1
2f067477 769%patch67 -p1
fb9ef172 770%patch68 -p1
4cfbd61f 771%patch70 -p1
497556c4 772%patch71 -p1
c065c1c1 773%patch72 -p1
1af80494 774%patch74 -p1
900eb2ad 775%patch75 -p1
5666ceed 776%patch77 -p0
3a3e476f 777%patch78 -p1
5131d1d1 778%patch79 -p1
6d1e99c9 779%patch80 -p1
9d486499 780%patch81 -p0
64b1e365 781%patch82 -p1
321b78b0 782%patch84 -p1
8dc5e023
JR
783%patch85 -p1
784%patch86 -p1
0959ed6d 785%patch87 -p1
1c02955f 786%patch88 -p1
8b6cca9f 787%patch89 -p1
a98c8118 788%patch90 -p1
d397adc8 789%patch91 -p1
7db865f2 790%patch99 -p1
765b7c41 791
10a92209 792%patch83 -p1
8029452c 793%patch92 -p1
b5cd30d4 794%patch93 -p1
7d0a808e 795%patch94 -p1
211e3eab 796%patch95 -p1
8c28fc02 797%patch96 -p1
c0a8bb95 798%patch97 -p1
b8c54dbb 799%patch98 -p1
10a92209 800
98d9fc8e 801%patch100 -p1
883e0fac 802
70f8787d 803install %{SOURCE2} macros/pld.in
6ecfe7c2
JR
804#install %{SOURCE8} scripts/php.prov.in
805#install %{SOURCE9} scripts/php.req.in
0bf34f68 806install %{SOURCE11} scripts/perl.prov.in
e2489d8e 807cp -p %{SOURCE30} scripts/rubygems.rb
63194730 808cp -p %{SOURCE31} scripts/gem_helper.rb
08697680 809
9d09e076
ER
810rm scripts/find-php*
811
70f8787d 812%{__mv} -f scripts/perl.req{,.in}
633d1e9e 813
cd86db2e 814# generate Group translations to *.po
80b8a1f9 815awk -f %{SOURCE6} %{SOURCE1}
fefe9d30 816
91ee86a9 817install %{SOURCE26} tools/rpmdb_checkversion.c
8e8746c0 818install %{SOURCE28} tools/rpmdb_reset.c
91ee86a9 819
f012e16d 820for extlib in beecrypt neon %{?with_system_pcre:pcre} popt; do
95bd7348
JR
821 [ -d $extlib ] && %{__rm} -r $extlib
822done
823
87ef0d95 824%build
ea816ea6 825%{__libtoolize}
c0a9be8f 826#%{__autopoint}
ceaaacee 827%{__aclocal}
4cd84746 828%{__autoheader}
7a9d72ce 829%{__autoconf}
7a9d72ce 830%{__automake}
7a9d72ce 831
048d06f8
JR
832# rpm checks for CPU type at runtime, but it looks better
833sed -i \
834 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
835 -e 's|@host_cpu@|%{_target_cpu}|' \
836 -e 's|@host_os@|%{_target_os}|' \
3f84726d 837 macros/macros.in
048d06f8 838
c38bf1df 839CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"
624f96ff 840%configure \
01d7a578 841 WITH_PERL_VERSION=no \
bba1059c 842 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
dcf91c25 843 __GPG=%{_bindir}/gpg \
3a3e476f 844 --disable-silent-rules \
cd86db2e 845 --enable-shared \
874f4c9a 846 --enable-static \
5c2ab5c7 847 %{!?with_apidocs:--without-apidocs} \
241257bf 848 --with-beecrypt=external \
3a3e476f
JB
849 --with-bugreport="http://bugs.pld-linux.org/" \
850 --with-bzip2=external \
57256551
JR
851 --with-db=external \
852 --with-dbapi=db \
3a3e476f
JB
853 --with-file=external \
854 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
855 --with-libelf \
c38bf1df 856 --with-lua \
3a3e476f
JB
857 --with-lzma=external \
858 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
8a13e4c4 859 --with-path-macros='%{_rpmlibdir}/macros:%{_rpmlibdir}/macros.d/pld:%{_rpmlibdir}/%%{_target}/macros:%{_rpmlibdir}/macros.build:%{_sysconfdir}/rpm/macros.*:%{_sysconfdir}/rpm/macros:%{_sysconfdir}/rpm/%%{_target}/macros:%{_sysconfdir}/rpm/macros.d/*.macros:~/etc/.rpmmacros:~/.rpmmacros' \
3a3e476f 860 --without-path-versioned \
f012e16d 861 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
3a3e476f
JB
862 --with-popt=external \
863 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
864 %{!?with_python:--without-python} \
865 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
866 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
867 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
868 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
127a0b3c 869 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
3a3e476f
JB
870 --with-vendor=pld \
871 --with-xz=external \
872 --with-zlib=external
cf6faebc 873
66f89333 874%{__make} -j1
33be5db0 875
5c2ab5c7
AM
876%{?with_apidocs:%{__make} apidocs}
877
fb95de52
JR
878%{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
879 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
8e8746c0
JR
880%{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
881 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
fb95de52
JR
882
883if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
884 echo "Error linking rpmdb tools!"
885 exit 1
886fi
8e8746c0
JR
887if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
888 echo "Error linking rpmdb tools!"
889 exit 1
890fi
91ee86a9 891
b064b8e6 892%install
ff7bc1e6 893rm -rf $RPM_BUILD_ROOT
e9eb00af 894install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
51081e43 895 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
54eb1770 896
0bf34f68 897install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 898
26a5bf70 899%{__make} -j1 install \
241257bf
AM
900 pkgconfigdir=%{_pkgconfigdir} \
901 DESTDIR=$RPM_BUILD_ROOT
718426e1 902
c546a4d6
ER
903# install platform macros
904for f in platform/*macros; do
905 bn=${f#*/}
906 fn=${bn%.macros}/macros
907 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
908done
909
910# cleanup
c2683840 911%ifnarch %{ix86} %{x8664} x32
c546a4d6
ER
912rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
913rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
914rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
915rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
916rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
917rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
918rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
25ac75ae
AM
919%endif
920
c2683840 921%ifnarch %{x8664} x32
c546a4d6 922rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
851689fd 923rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
c2683840 924rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
851689fd 925rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
25ac75ae
AM
926%endif
927
c546a4d6
ER
928%ifnarch %{ppc}
929rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
25ac75ae
AM
930%endif
931
c546a4d6
ER
932rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
933rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
934rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
935rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
936rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
937rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
938rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
939rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
940rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
c546a4d6 941
2eb9303e 942cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
ca076ee5 943# first platform file entry can't contain regexps
c2683840
JR
944%ifarch x32
945%{_target_cpu}-%{_target_vendor}-linux-gnux32
946%else
2eb9303e 947%{_target_cpu}-%{_target_vendor}-linux
c2683840 948%endif
caf453d4 949
2d8ae03e 950%ifarch x86_64
53fd58bc 951x86_64-[^-]*-[Ll]inux(-gnu)?
9cfcb6c8 952amd64-[^-]*-[Ll]inux(-gnu)?
c2683840 953x32-[^-]*-[Ll]inux(-gnu(x32)?)?
2d8ae03e 954%endif
2d8ae03e 955%ifarch amd64
53fd58bc
AM
956amd64-[^-]*-[Ll]inux(-gnu)?
957x86_64-[^-]*-[Ll]inux(-gnu)?
c2683840 958x32-[^-]*-[Ll]inux(-gnu(x32)?)?
2d8ae03e 959%endif
2d8ae03e 960%ifarch ia32e
53fd58bc
AM
961ia32e-[^-]*-[Ll]inux(-gnu)?
962x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 963%endif
c2683840
JR
964%ifarch x32
965x32-[^-]*-[Ll]inux(-gnu(x32)?)?
966x86_64-[^-]*-[Ll]inux(-gnu)?
967amd64-[^-]*-[Ll]inux(-gnu)?
968%endif
2d8ae03e 969
c2683840 970%ifarch athlon %{x8664} x32
53fd58bc 971athlon-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 972%endif
c2683840 973%ifarch pentium4 athlon %{x8664} x32
53fd58bc 974pentium4-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 975%endif
c2683840 976%ifarch pentium3 pentium4 athlon %{x8664} x32
53fd58bc 977pentium3-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 978%endif
c2683840 979%ifarch i686 pentium3 pentium4 athlon %{x8664} x32
53fd58bc 980i686-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 981%endif
c2683840 982%ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
53fd58bc 983i586-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 984%endif
c2683840 985%ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
53fd58bc 986i486-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 987%endif
c2683840 988%ifarch %{ix86} %{x8664} x32
53fd58bc 989i386-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
990%endif
991
5074eba9 992%ifarch alpha
53fd58bc 993alpha-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
994%endif
995
996%ifarch ia64
53fd58bc 997ia64-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
998%endif
999
1000%ifarch ppc64
53fd58bc
AM
1001powerpc64-[^-]*-[Ll]inux(-gnu)?
1002ppc64-[^-]*-[Ll]inux(-gnu)?
5074eba9 1003%endif
950eead3 1004%ifarch %{ppc} ppc64
53fd58bc
AM
1005powerpc-[^-]*-[Ll]inux(-gnu)?
1006ppc-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1007%endif
1008
1009%ifarch s390x
53fd58bc 1010s390x-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1011%endif
1012%ifarch s390 s390x
53fd58bc 1013s390-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1014%endif
1015
1016%ifarch sparc64
53fd58bc
AM
1017sparc64-[^-]*-[Ll]inux(-gnu)?
1018sparcv8-[^-]*-[Ll]inux(-gnu)?
1019sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1020%endif
1021%ifarch sparcv9
53fd58bc
AM
1022sparcv8-[^-]*-[Ll]inux(-gnu)?
1023sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
1024%endif
1025%ifarch sparc sparcv9 sparc64
53fd58bc 1026sparc-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
1027%endif
1028
2eb9303e
ER
1029noarch-[^-]*-.*
1030EOF
2d8ae03e 1031
e5486255
ER
1032# Squash Extra Blank Lines
1033%{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1034
3a3e476f
JB
1035%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1036%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1037%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1038%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1039%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1040%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1041%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1042%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
7cf857f2 1043
644d8958
JB
1044# not installed since 4.4.8 (-tools-perl subpackage)
1045install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1046
61f7e1b3 1047install %{SOURCE1} doc/manual/groups
d755a548 1048install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
80b8a1f9
JB
1049install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1050install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
0bf34f68
JR
1051install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1052install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
d755a548 1053install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
0bf34f68
JR
1054cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
1055install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
cf709a39 1056install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
0bf34f68 1057install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 1058
0bf34f68 1059install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 1060
950eead3
ER
1061install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1062
0bf34f68 1063install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
b1541d4c 1064install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
0bf34f68
JR
1065install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1066install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1067install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1068install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
0bf34f68 1069install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
08697680 1070
950eead3
ER
1071touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1072touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
0bf34f68 1073install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
950eead3
ER
1074touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1075touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1076touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
fbc0ff35 1077
91ee86a9 1078install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
345a6923 1079install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
14138aba 1080install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
91ee86a9 1081
9776a251
JR
1082# create macro loading wrappers for backward compatibility
1083for m in gstreamer java mono perl php python; do
b279f099 1084 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
9776a251
JR
1085done
1086
e1bd88ba
JB
1087# moved to rpm-build-macros 1.699
1088%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1089
f3fd387a 1090# for rpm -e|-U --repackage
a11e0e27
AM
1091install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1092touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
f3fd387a 1093
950eead3
ER
1094# move rpm to /bin
1095mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1096# move essential libs to /lib (libs that /bin/rpm links to)
ece880e2 1097for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
50dc9ac0
JK
1098 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1099 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
c2673e18
AF
1100done
1101
950eead3
ER
1102# Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1103mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1104
dae5e1a8 1105%if %{with python}
6f18cdb7
AF
1106%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1107%py_comp $RPM_BUILD_ROOT%{py_sitedir}
1108
08697680 1109%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
dae5e1a8 1110%endif
01d7a578 1111
01d7a578 1112# wrong location, not used anyway
08697680 1113%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
e86bfbff 1114# utils dropped in 5.4 -- their manuals
854562c1 1115%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
e86bfbff
JR
1116# script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1117%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
01d7a578 1118
90b03dd6 1119%find_lang %{name}
cf6faebc 1120
08697680 1121%{__rm} -rf manual
a998ac11 1122cp -a doc/manual manual
08697680 1123%{__rm} -f manual/Makefile*
874f4c9a 1124
13eb5ebf 1125%clean
d7df46b8 1126rm -rf $RPM_BUILD_ROOT
76214164 1127
cc1a4992
ER
1128%pretrans
1129# this needs to be a dir
1130if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
c1097150 1131 umask 022
cc1a4992
ER
1132 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1133 mkdir %{_sysconfdir}/rpm/sysinfo
1134fi
1135
be4d3036 1136%posttrans
d25ec6ea 1137if [ -e /var/lib/rpm/Packages ] && \
6a934782 1138 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
d25ec6ea 1139 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
6a934782 1140 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
8383afc3 1141 echo
e4dd6a34 1142 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
8383afc3
JR
1143 echo
1144 fi
3ca91ccd
JR
1145 echo
1146 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1147 echo 'you should ignore it and restart poldek'
1148 echo
3fc92bf7 1149 %{_rpmlibdir}/bin/dbupgrade.sh
be4d3036 1150fi
f7779567 1151
b7ee97ef
JR
1152%triggerpostun -- %{name} < 4.4.9-44
1153%{_rpmlibdir}/hrmib-cache
1154
ceaaacee
JB
1155%post lib -p /sbin/ldconfig
1156%postun lib -p /sbin/ldconfig
76214164 1157
37a5a2fc 1158%pretrans build
d755a548 1159find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 1160
3684d90f
JB
1161%files -f %{name}.lang
1162%defattr(644,root,root,755)
241257bf 1163%doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
3684d90f 1164
3acb62f3
ER
1165%dir /etc/pki/rpm-gpg
1166/etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
54eb1770 1167
7a9d72ce 1168%attr(755,root,root) /bin/rpm
e73478cd 1169
66edd895 1170%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
b1541d4c 1171%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
950eead3 1172%dir %{_sysconfdir}/rpm/sysinfo
caf453d4 1173# these are ok to be replaced
950eead3 1174%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
caf453d4
AM
1175%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1176
09bb810c 1177%{_mandir}/man8/rpm.8*
feb1f12e 1178%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 1179%lang(ja) %{_mandir}/ja/man8/rpm.8*
ff7bc1e6 1180%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 1181%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 1182%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 1183
e2025ad1 1184%dir /var/lib/rpm
74a997bd
JR
1185%dir /var/lib/rpm/log
1186%dir /var/lib/rpm/tmp
1187%config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
f3fd387a 1188%dir %attr(700,root,root) /var/spool/repackage
a11e0e27
AM
1189%dir /var/lock/rpm
1190/var/lock/rpm/transaction
4acac5de 1191
cf709a39
ER
1192# exported package NVRA (stamped with install tid)
1193# net-snmp hrSWInstalledName queries, bash-completions
1194%dir /var/cache/hrmib
1195
ec44785a 1196%{_rpmlibdir}/qf
d755a548
JK
1197%{_rpmlibdir}/rpmpopt*
1198%{_rpmlibdir}/macros
08697680
JR
1199%dir %{_rpmlibdir}/macros.d
1200%{_rpmlibdir}/macros.d/pld
9282ffe4 1201%{_rpmlibdir}/cpuinfo.yaml
e23edf35 1202%{_rpmlibdir}/noarch-*
c2683840 1203%ifarch %{ix86} %{x8664} x32
e23edf35
JR
1204%{_rpmlibdir}/i?86*
1205%{_rpmlibdir}/pentium*
1206%{_rpmlibdir}/athlon*
1207%endif
1208%ifarch alpha
1209%{_rpmlibdir}/alpha*
1210%endif
1211%ifarch ia64
1212%{_rpmlibdir}/ia64*
1213%endif
1214%ifarch mips mipsel mips64 mips64el
1215%{_rpmlibdir}/mips*
1216%endif
1217%ifarch %{ppc}
1218%{_rpmlibdir}/ppc*
1219%endif
1220%ifarch sparc sparc64
1221%{_rpmlibdir}/sparc*
1222%endif
c2683840 1223%ifarch %{x8664} x32
e23edf35
JR
1224%{_rpmlibdir}/amd64*
1225%{_rpmlibdir}/ia32e*
1226%{_rpmlibdir}/x86_64*
c2683840 1227%{_rpmlibdir}/x32*
e23edf35 1228%endif
3684d90f 1229
cf709a39
ER
1230%attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1231
df50421f
JR
1232%dir %{_rpmlibdir}/bin
1233%attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
14138aba 1234%attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
91ee86a9 1235%attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
345a6923 1236%attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
0004e9b0 1237%attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
df50421f 1238
66edd895
JB
1239%files base
1240%defattr(644,root,root,755)
492a2bd4 1241%dir %{_sysconfdir}/rpm
66edd895
JB
1242%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1243%dir %{_rpmlibdir}
1244%attr(755,root,root) %{_bindir}/banner.sh
1245%attr(755,root,root) %{_rpmlibdir}/user_group.sh
1246%dir /var/lib/banner
1247
874f4c9a
MM
1248%files lib
1249%defattr(644,root,root,755)
950eead3
ER
1250%attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1251%attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1252%attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1253%attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
a434679c 1254%attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
ece880e2 1255%attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
874f4c9a 1256
69131f1a
JB
1257%files devel
1258%defattr(644,root,root,755)
69131f1a
JB
1259%attr(755,root,root) %{_libdir}/librpm.so
1260%attr(755,root,root) %{_libdir}/librpm-%{sover}.so
950eead3
ER
1261%attr(755,root,root) %{_libdir}/librpmbuild.so
1262%attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
02510ee8
AM
1263%attr(755,root,root) %{_libdir}/librpmconstant.so
1264%attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
950eead3
ER
1265%attr(755,root,root) %{_libdir}/librpmdb.so
1266%attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
69131f1a
JB
1267%attr(755,root,root) %{_libdir}/librpmio.so
1268%attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
02510ee8
AM
1269%attr(755,root,root) %{_libdir}/librpmmisc.so
1270%attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
950eead3
ER
1271%{_libdir}/librpm*.la
1272%{_includedir}/rpm
1273%{_pkgconfigdir}/*.pc
69131f1a
JB
1274
1275%files static
1276%defattr(644,root,root,755)
1277%{_libdir}/librpm*.a
1278
1279%files utils
1280%defattr(644,root,root,755)
69131f1a 1281%attr(755,root,root) %{_bindir}/rpm2cpio
25e974c7 1282%attr(755,root,root) %{_bindir}/rpmconstant
69131f1a 1283%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
69131f1a 1284%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
25e974c7 1285%attr(755,root,root) %{_rpmlibdir}/tgpg
df50421f
JR
1286%attr(755,root,root) %{_rpmlibdir}/bin/chroot
1287%attr(755,root,root) %{_rpmlibdir}/bin/cp
9282ffe4 1288%attr(755,root,root) %{_rpmlibdir}/bin/debugedit
df50421f
JR
1289%attr(755,root,root) %{_rpmlibdir}/bin/find
1290%attr(755,root,root) %{_rpmlibdir}/bin/mgo
9282ffe4
AF
1291%attr(755,root,root) %{_rpmlibdir}/bin/mtree
1292%attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1293%attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1294%attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1295%attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
6e115b23
JR
1296%if %{with selinux}
1297%attr(755,root,root) %{_rpmlibdir}/bin/semodule
1298%attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1299%endif
d0ee0933 1300%{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
9282ffe4 1301%attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
69131f1a 1302%{_mandir}/man8/rpm2cpio.8*
ec44785a 1303%{_mandir}/man8/rpmconstant.8*
69131f1a 1304%{_mandir}/man8/rpmdeps.8*
c0a9be8f 1305%{_mandir}/man8/rpmmtree.8*
69131f1a 1306%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
69131f1a
JB
1307%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1308%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
69131f1a
JB
1309%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1310
1311%files utils-perl
1312%defattr(644,root,root,755)
1313%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
69131f1a
JB
1314
1315%if %{with static}
1316%files utils-static
1317%defattr(644,root,root,755)
1318%attr(755,root,root) %{_bindir}/rpm[ieu]
1319%attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1320%endif
1321
3684d90f 1322%files build
a45ae6d8 1323%defattr(644,root,root,755)
66edd895 1324%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
1325%attr(755,root,root) %{_rpmlibdir}/brp-*
1326%attr(755,root,root) %{_rpmlibdir}/check-files
d755a548
JK
1327%attr(755,root,root) %{_rpmlibdir}/compress-doc
1328%attr(755,root,root) %{_rpmlibdir}/cross-build
d755a548 1329%attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
d755a548
JK
1330%attr(755,root,root) %{_rpmlibdir}/getpo.sh
1331%attr(755,root,root) %{_rpmlibdir}/install-build-tree
d755a548 1332%attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
01d7a578 1333%attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
01d7a578 1334%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
c75b3936 1335%attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
01d7a578
JB
1336# needs hacked pkg-config to return anything
1337%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
df50421f
JR
1338%attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1339%attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
ac8ac881 1340%{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
77fcdbf7
AF
1341%attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1342%attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
df50421f 1343%attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
5131d1d1 1344%attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
df50421f
JR
1345%attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1346%attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1347%attr(755,root,root) %{_rpmlibdir}/bin/wget
ec44785a 1348%attr(755,root,root) %{_rpmlibdir}/vcheck
410dd742 1349# not used yet ... these six depend on perl
ec44785a 1350%attr(755,root,root) %{_rpmlibdir}/http.req
428645e9
JR
1351# we always used scripts provided by mono-devel, maybe move them here
1352#%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1353#%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
37e965e8 1354
70f8787d 1355%attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
37e965e8 1356# must be here for "Requires: rpm-*prov" to work
df50421f
JR
1357%{_rpmlibdir}/macros.d/cmake
1358%{_rpmlibdir}/macros.d/gstreamer
77fcdbf7
AF
1359%{_rpmlibdir}/macros.d/java
1360%{_rpmlibdir}/macros.d/libtool
1361%{_rpmlibdir}/macros.d/mono
1362%{_rpmlibdir}/macros.d/perl
1363%{_rpmlibdir}/macros.d/php
1364%{_rpmlibdir}/macros.d/pkgconfig
1365%{_rpmlibdir}/macros.d/python
3b644c29 1366%{_rpmlibdir}/macros.d/ruby
77fcdbf7 1367%{_rpmlibdir}/macros.d/selinux
df50421f 1368%{_rpmlibdir}/macros.d/tcl
77fcdbf7 1369%{_rpmlibdir}/macros.rpmbuild
9776a251
JR
1370# compat wrappers
1371%{_rpmlibdir}/macros.gstreamer
1372%{_rpmlibdir}/macros.java
1373%{_rpmlibdir}/macros.mono
1374%{_rpmlibdir}/macros.perl
1375%{_rpmlibdir}/macros.php
1376%{_rpmlibdir}/macros.python
77fcdbf7 1377
df50421f
JR
1378%attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1379%attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
df50421f 1380
874f4c9a
MM
1381%attr(755,root,root) %{_bindir}/gendiff
1382%attr(755,root,root) %{_bindir}/rpmbuild
ec44785a
BZ
1383
1384%dir %{_rpmlibdir}/helpers
1385%attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
874f4c9a 1386
a00926bc 1387%{_mandir}/man1/gendiff.1*
874f4c9a 1388%{_mandir}/man8/rpmbuild.8*
fefe9d30
JB
1389%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1390%lang(pl) %{_mandir}/pl/man1/gendiff.1*
1391%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
f3fe287f 1392
7d8492bb
JB
1393%files javaprov
1394%defattr(644,root,root,755)
1395%attr(755,root,root) %{_rpmlibdir}/java-find-requires
1396# needs jar (any jdk), jcf-dump (gcc-java) to work
1397%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1398
ec49e9fb
ER
1399%files rubyprov
1400%defattr(644,root,root,755)
1401%attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1402%attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1403
89334051
AF
1404%files perlprov
1405%defattr(644,root,root,755)
d755a548 1406%attr(755,root,root) %{_rpmlibdir}/perl.*
ec44785a
BZ
1407%attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1408%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
9805fd6d 1409
80d3b868 1410%files pythonprov
d8fcb9b0 1411%defattr(644,root,root,755)
bdbae303 1412%attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
25d296e1 1413%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
09bb810c 1414
d36cb682
PG
1415%files php-pearprov
1416%defattr(644,root,root,755)
9d09e076
ER
1417%attr(755,root,root) %{_rpmlibdir}/php.prov
1418%attr(755,root,root) %{_rpmlibdir}/php.req
1419%attr(755,root,root) %{_rpmlibdir}/php.req.php
d36cb682 1420
50dc9ac0 1421%if %{with python}
cf6faebc 1422%files -n python-rpm
42a0025c 1423%defattr(644,root,root,755)
b33910fe 1424%dir %{py_sitedir}/rpm
6f18cdb7 1425%attr(755,root,root) %{py_sitedir}/rpm/*.so
8c99b39a 1426%{py_sitedir}/rpm/*.py[co]
50dc9ac0 1427%endif
5c2ab5c7
AM
1428
1429%if %{with apidocs}
1430%files apidocs
1431%defattr(644,root,root,755)
1432%doc apidocs
1433%endif
This page took 1.683138 seconds and 4 git commands to generate.