]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- instead of complicated dance with adding our macro files, just
[packages/rpm.git] / rpm.spec
CommitLineData
52c10eff 1#
2# TODO:
317ef122 3# - check if glob() patch needs resurrecting/rewriting
9dce4e74 4# - check if we want shell autodeps: Requires: executable(ln) executable(mv)
2d806774 5# - %{_arch} = i686 not as used to be i386 (platform file thing?):
afbcf91a
ER
6# 5.0.2: rpm -E '%_target_base_arch %_arch'
7# i386 i686
8# 4.4.9: rpm -E '%_target_base_arch %_arch'
9# i386 i386
644d8958
JB
10# - python(abi) cap is not provided automatically because /usr/lib*/libpython2*.so.*
11# matches ELF first
9fb5ee9e 12# - add macros for some ppc, mipsel, alpha and sparc
10abbd40 13#
76005b82 14# - headerGet() making poldek segfault http://rpm5.org/cvs/tktview?tn=38,1
76005b82 15# - rpm doesn't exit when no sources/patches available http://rpm5.org/cvs/tktview?tn=40,1
6664e05e 16# - http://rpm5.org/cvs/tktview?tn=41&_submit=Show
c296fee0 17# - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
76005b82 18#
89427592 19# Conditional build:
01d7a578 20%bcond_with static # build static rpm+rpmi
514e0cea 21%bcond_with apidocs # don't generate documentation with doxygen
4af66a2c
JB
22%bcond_without python # don't build python bindings
23%bcond_without selinux # build without selinux support
0dc47449 24%bcond_without suggest_tags # build without Suggest tag (bootstrapping)
77fcdbf7 25%bcond_without neon # build with HTTP/WebDAV support (neon library)
858aa7d0 26%bcond_without db # BerkeleyDB
77fcdbf7 27%bcond_without sqlite # build with SQLite support
858aa7d0 28%bcond_with sqlite_dbapi # default database backend is sqlite
7564deb4 29%bcond_without system_lua # use system lua
89427592
JB
30# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
31# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
32# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
858aa7d0
AM
33#
34%if %{with sqlite_dbapi}
35%define with_sqlite 1
36%endif
54bfdf99 37
858aa7d0 38%if %{without db} && %{without sqlite}
25ac75ae 39%{error:Need db or sqlite}
858aa7d0
AM
40ERROR
41%endif
42
003a039e 43# versions of required libraries
afb55538 44%define reqdb_ver 5.3
ec44785a 45%define reqpopt_ver 1.15
fc60c9f3 46%define beecrypt_ver 2:4.1.2-4
980b7379 47%define sover 5.4
fc60c9f3 48
e5f02e49 49Summary: RPM Package Manager
4ea2ed33
ER
50Summary(de.UTF-8): RPM Packet-Manager
51Summary(es.UTF-8): Gestor de paquetes RPM
52Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
53Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
54Summary(ru.UTF-8): Менеджер пакетов от RPM
55Summary(uk.UTF-8): Менеджер пакетів від RPM
76214164 56Name: rpm
afb55538 57Version: 5.4.10
9282ffe4 58Release: 0.1
b0434f77 59License: LGPL
76214164 60Group: Base
afb55538
JR
61# http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.10-0.20120706.src.rpm
62Source0: %{name}-%{version}.tar.gz
63# Source0-md5: 5d099161bdd3203265ab32ffad3360b5
d38aed81
JR
64Source100: cpu-os-macros.tar.gz
65# Source100-md5: 928034a5bdceb398881bc14b5f29973b
ff7bc1e6 66Source1: %{name}.groups
08697680 67Source2: macros.pld.in
ff7bc1e6 68Source3: %{name}-install-tree
80b8a1f9 69Source4: %{name}-find-spec-bcond
cf709a39 70Source5: %{name}-hrmib-cache
80b8a1f9
JB
71Source6: %{name}-groups-po.awk
72Source7: %{name}-compress-doc
80b8a1f9
JB
73Source9: %{name}-php-provides
74Source10: %{name}-php-requires
fbc0ff35 75Source11: %{name}.sysinfo
80b8a1f9 76Source12: perl.prov
d0370fe5 77Source13: %{name}-user_group.sh
78Source14: %{name}.sysconfig
1f625675 79Source16: %{name}-java-requires
a4b7ef27 80# http://svn.pld-linux.org/banner.sh/
1c2e2d8e 81Source17: banner.sh
54eb1770 82Source19: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
317ef122 83# Source19-md5: 08b29584dd349aac9caa7610131a0a88
c75b3936 84Source20: %{name}-mimetypedeps
08697680
JR
85Source21: macros.local
86Source22: rpm.noautocompressdoc
87Source23: rpm.noautoprov
88Source24: rpm.noautoprovfiles
89Source25: rpm.noautoreq
90Source26: rpm.noautoreqdep
91Source27: rpm.noautoreqfiles
f15af52e 92Source29: %{name}-php-requires.php
25ac75ae 93
f05db907 94Patch0: %{name}-branch.patch
2f0ee4ec 95Patch1: %{name}-man_pl.patch
38e53563 96Patch2: %{name}-popt-aliases.patch
b174986a 97Patch3: %{name}-rpmpopt.patch
3465efba 98Patch4: %{name}-perl-macros.patch
c1768ce2 99Patch5: %{name}-perl-req-perlfile.patch
f14234e4 100Patch7: %{name}-scripts-closefds.patch
7a3b1f24 101Patch8: %{name}-php-macros.patch
f14234e4 102Patch9: %{name}-gettext-in-header.patch
6a8612bc 103Patch11: %{name}-lua.patch
7a3b1f24 104
f14234e4 105Patch14: %{name}-etc_dir.patch
f14234e4 106Patch16: %{name}-php-deps.patch
32d103b5 107Patch19: %{name}-glob.patch
7a3b1f24 108
f14234e4
JB
109Patch26: %{name}-notsc.patch
110Patch27: %{name}-hack-norpmlibdep.patch
7a3b1f24 111
950eead3 112Patch34: %{name}-epoch0.patch
f14234e4
JB
113Patch35: %{name}-perl_req-INC_dirs.patch
114Patch36: %{name}-debuginfo.patch
115Patch37: %{name}-doxygen_hack.patch
7a3b1f24 116
9282ffe4
AF
117Patch41: vendor-pld.patch
118
bb98669b 119Patch42: %{name}-old-fileconflicts-behaviour.patch
644d8958 120
8482995c 121Patch47: %{name}-javadeps.patch
fbc0ff35 122
d6080f70 123Patch55: %{name}-truncate-cvslog.patch
644d8958 124
59a562c2 125Patch59: %{name}-libtool-deps.patch
c75b3936 126Patch60: %{name}-mimetype.patch
7ffa7946 127Patch61: %{name}-sparc64.patch
7f26883c 128Patch62: %{name}-gendiff.patch
71c31e2b 129Patch70: %{name}-configure-autoconf.patch
77fcdbf7 130Patch72: openmp.patch
a3809792
JR
131Patch73: %{name}-URPM-build-fix.patch
132Patch74: %{name}-db5.3.patch
133Patch75: %{name}-helperEVR-noassert.patch
134Patch76: %{name}-unglobal.patch
135Patch77: %{name}-builddir-readlink.patch
136Patch78: %{name}-changelog_order_check_nonfatal.patch
137Patch79: %{name}-cleanbody.patch
138Patch80: %{name}-dirdeps-macro.patch
139Patch81: %{name}-installbeforeerase.patch
140Patch82: %{name}-libmagic-locale.patch
141Patch83: %{name}-namespace-probe.patch
142Patch84: %{name}-popt-coreutils.patch
143Patch85: %{name}-postun-nofail.patch
955f2725 144URL: http://rpm5.org/
6a8612bc 145BuildRequires: autoconf >= 2.60
644d8958 146BuildRequires: automake >= 1.4
87ef0d95 147BuildRequires: beecrypt-devel >= %{beecrypt_ver}
33be5db0 148BuildRequires: bzip2-devel >= 1.0.2-17
858aa7d0 149%{?with_db:BuildRequires: db-devel >= %{reqdb_ver}}
33be5db0 150BuildRequires: elfutils-devel >= 0.108
0ef6aeae 151#BuildRequires: gettext-autopoint >= 0.11.4-2
d1795eb0 152BuildRequires: gettext-devel >= 0.11.4-2
f7100a40 153BuildRequires: keyutils-devel
241257bf 154BuildRequires: libmagic-devel
8e159d42 155%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
84cdee7a
JB
156# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
157BuildRequires: libstdc++-devel
b60c74c3 158BuildRequires: libtool >= 1:1.4.2-9
33be5db0 159%if %{with neon}
fe861705 160BuildRequires: libxml2-devel
83d6a3fe 161BuildRequires: neon-devel >= 0.25.5
33be5db0 162%endif
7973b351 163BuildRequires: patch >= 2.2
1d49ffbc 164BuildRequires: popt-devel >= %{reqpopt_ver}
6a8612bc 165%{?with_system_lua:BuildRequires: lua51-devel >= 5.1.2}
950eead3
ER
166%{?with_python:BuildRequires: python-devel >= 1:2.3}
167BuildRequires: python-modules >= 1:2.3
2a813afe 168%{?with_python:BuildRequires: rpm-pythonprov}
241257bf 169%{?with_sqlite:BuildRequires: sqlite3-devel}
e56a10a9 170BuildRequires: tcl
874f4c9a 171BuildRequires: zlib-devel
77fcdbf7 172BuildRequires: xz-devel
5c2ab5c7
AM
173%if %{with apidocs}
174BuildRequires: doxygen
175BuildRequires: ghostscript
176BuildRequires: graphviz
177BuildRequires: tetex-pdftex
178%endif
a6e56ce4 179%if %{with static}
e6090a7b 180# Require static library only for static build
87ef0d95 181BuildRequires: beecrypt-static >= %{beecrypt_ver}
33be5db0 182BuildRequires: bzip2-static >= 1.0.2-17
858aa7d0 183%{?with_db:BuildRequires: db-static >= %{reqdb_ver}}
290c1c30 184BuildRequires: elfutils-static
10abbd40 185BuildRequires: glibc-static >= 2.2.94
241257bf 186BuildRequires: libmagic-static
8e159d42 187%{?with_selinux:BuildRequires: libselinux-static >= 1.18}
003a039e 188BuildRequires: popt-static >= %{reqpopt_ver}
1d49ffbc 189BuildRequires: zlib-static
7a9d72ce 190%endif
66edd895 191Requires: %{name}-base = %{version}-%{release}
b26a9709 192Requires: %{name}-lib = %{version}-%{release}
10abbd40
ER
193Requires: beecrypt >= %{beecrypt_ver}
194Requires: popt >= %{reqpopt_ver}
0229a8b9
AM
195Provides: rpm-db-ver = %{reqdb_ver}
196Obsoletes: rpm-getdeps
4adb7d05 197%{!?with_static:Obsoletes: rpm-utils-static}
874f4c9a 198Conflicts: glibc < 2.2.92
8ee1c72c
AM
199# db4.6 poldek needed
200Conflicts: poldek < 0.21-0.20070703.00.3
d268a169
AM
201# segfaults with lzma 0.42.2
202Conflicts: lzma-libs < 4.999.3
1d49ffbc 203BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6d82b332 204
4adb7d05
JB
205%define _binary_payload w9.gzdio
206%define _noPayloadPrefix 1
6d82b332 207
4cd84746
JB
208# don't require very fresh rpm.macros to build
209%define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
950eead3 210%define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
9f517079 211%define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
80e9f34d 212%define ppc ppc ppc7400 ppc7450
9f517079 213%define x8664 amd64 ia32e x86_64
4cd84746 214
89427592 215# stabilize new build environment
f9ac32aa
AM
216%define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
217%define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
218%define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
89427592 219
d755a548 220%define _rpmlibdir /usr/lib/rpm
950eead3 221%define _noautocompressdoc RPM-GPG-KEY
d755a548 222
573e40e1
PS
223%define specflags -fno-strict-aliasing
224
ff7bc1e6 225%description
226RPM is a powerful package manager, which can be used to build,
227install, query, verify, update, and uninstall individual software
cf6faebc 228packages. A package consists of an archive of files, and package
fed73700 229information, including name, version, and description.
230
dd85fadc
JR
231%description -l de.UTF-8
232RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
fed73700 233Installation, Anfrage, Verifizierung, Aktualisierung und
234Uninstallation individueller Softwarepakete. Ein Paket besteht aus
235einem Archiv Dateien und Paketinformation, inklusive Name, Version und
313a4d1a 236Beschreibung.
237
dd85fadc 238%description -l es.UTF-8
313a4d1a 239RPM es un poderoso administrador de paquetes, que puede ser usado para
240construir, instalar, pesquisar, verificar, actualizar y desinstalar
241paquetes individuales de software. Un paquete consiste en un
dd85fadc
JR
242almacenaje de archivos, y información sobre el paquete, incluyendo
243nombre, versión y descripción.
244
245%description -l pl.UTF-8
246RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
247przebudowanie, instalację czy weryfikację dowolnego pakietu.
248Informacje dotyczące każdego pakietu, takie jak jego opis, lista
249plików wchodzących w skład pakietu, zależności od innych pakietów, są
250przechowywane w bazie danych i można je uzyskać za pomocą opcji
313a4d1a 251odpytywania programu rpm.
252
dd85fadc
JR
253%description -l pt_BR.UTF-8
254RPM é um poderoso gerenciador de pacotes, que pode ser usado para
313a4d1a 255construir, instalar, pesquisar, verificar, atualizar e desinstalar
256pacotes individuais de software. Um pacote consiste de um conjunto de
dd85fadc
JR
257arquivos e informações adicionais, incluindo nome, versão e descrição
258do pacote, permissões dos arquivos, etc.
259
260%description -l ru.UTF-8
261RPM - это мощный менеджер пакетов, который может быть использован для
262создания, инсталляции, запросов (query), проверки, обновления и
263удаления программных пакетов. Пакет состоит из файлового архива и
264служебной информации, включающей название, версию, описание и другие
265данные о пакете.
266
267%description -l uk.UTF-8
268RPM - це потужний менеджер пакетів, що може бути використаний для
269створення, інсталяції, запитів (query), перевірки, поновлення та
270видалення програмних пакетів. Пакет складається з файлового архіву та
271службової інформації, що містить назву, версію, опис та іншу
272інформацію про пакет.
7c6dc55f 273
66edd895
JB
274%package base
275Summary: RPM base package - scripts used by rpm packages themselves
4ea2ed33 276Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
66edd895 277Group: Base
1d9ca0c1 278Requires: filesystem
950eead3 279Obsoletes: rpm-scripts
66edd895
JB
280Obsoletes: vserver-rpm
281
282%description base
283The RPM base package contains scripts used by rpm packages themselves.
284These include:
285- scripts for adding/removing groups and users needed for rpm
286 packages,
287- banner.sh to display %%banner messages from rpm scriptlets.
288
dd85fadc
JR
289%description base -l pl.UTF-8
290Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
66edd895 291Zawiera on:
dd85fadc
JR
292- skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
293- banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
66edd895 294
69131f1a
JB
295%package lib
296Summary: RPMs library
4ea2ed33 297Summary(pl.UTF-8): Biblioteki RPM-a
69131f1a 298Group: Libraries
33be5db0 299Requires: beecrypt >= %{beecrypt_ver}
858aa7d0 300%{?with_db:Requires: db >= %{reqdb_ver}}
241257bf 301Requires: libmagic >= 1.15-2
d1795eb0 302%{?with_selinux:Requires: libselinux >= 1.18}
69131f1a 303Requires: popt >= %{reqpopt_ver}
d1795eb0 304Obsoletes: rpm-libs
69131f1a
JB
305# avoid SEGV caused by mixed db versions
306Conflicts: poldek < 0.18.1-16
307
308%description lib
309RPMs library.
310
dd85fadc 311%description lib -l pl.UTF-8
69131f1a
JB
312Biblioteki RPM-a.
313
fed73700 314%package devel
3f2d796a 315Summary: Header files for rpm libraries
4ea2ed33
ER
316Summary(de.UTF-8): Header-Dateien für rpm Libraries
317Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
318Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
319Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
320Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
321Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
89f92de0 322Group: Development/Libraries
153e5706 323Requires: %{name}-lib = %{version}-%{release}
87ef0d95 324Requires: beecrypt-devel >= %{beecrypt_ver}
fea3cb89 325Requires: bzip2-devel
858aa7d0 326%{?with_db:Requires: db-devel >= %{reqdb_ver}}
5c583f90 327Requires: elfutils-devel
f7100a40 328Requires: keyutils-devel
241257bf 329Requires: libmagic-devel
10abbd40 330%{?with_selinux:Requires: libselinux-devel}
a998ac11 331Requires: popt-devel >= %{reqpopt_ver}
fea3cb89 332Requires: zlib-devel
cf6faebc 333
334%description devel
3f2d796a
JB
335The RPM packaging system includes C libraries that make it easy to
336manipulate RPM packages and databases. They are intended to ease the
cf6faebc 337creation of graphical package managers and other tools that need
3f2d796a
JB
338intimate knowledge of RPM packages. This package contains header files
339for these libraries.
fed73700 340
dd85fadc
JR
341%description devel -l de.UTF-8
342Der RPM-Packensystem enthält eine C-Library, die macht es einfach
343RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
fed73700 344Vereinfachung des Schaffens grafischer Paket-Manager und anderer
313a4d1a 345Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
346
dd85fadc 347%description devel -l es.UTF-8
313a4d1a 348El sistema de empaquetado RPM incluye una biblioteca C que vuelve
dd85fadc
JR
349fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
350facilitar la creación de administradores gráficos de paquetes y otras
20f89981 351herramientas que necesiten un conocimiento profundo de paquetes RPM.
9e42d68a 352
dd85fadc
JR
353%description devel -l pl.UTF-8
354System RPM zawiera biblioteki C, które ułatwiają manipulowanie
355pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
356graficznych programów zarządzających pakietami oraz innych narzędzi,
357które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
358zawiera pliki nagłówkowe wspomnianych bibliotek.
359
360%description devel -l pt_BR.UTF-8
361O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
362a manipulação de pacotes e bases de dados RPM. Seu objetivo é
363facilitar a criação de gerenciadores gráficos de pacotes e outras
edacdf8f 364ferramentas que precisem de conhecimento profundo de pacotes RPM.
365
dd85fadc
JR
366%description devel -l ru.UTF-8
367Система управления пакетами RPM содержит библиотеку C, которая
368упрощает манипуляцию пакетами RPM и соответствующими базами данных.
369Эта библиотека предназначена для облегчения создания графических
370пакетных менеджеров и других утилит, которым необходимо работать с
371пакетами RPM.
7c6dc55f 372
dd85fadc
JR
373%description devel -l uk.UTF-8
374Система керування пакетами RPM містить бібліотеку C, котра спрощує
375роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
376призначена для полегшення створення графічних пакетних менеджерів та
377інших утиліт, що працюють з пакетами RPM.
7c6dc55f 378
fed73700 379%package static
9e42d68a 380Summary: RPM static libraries
4ea2ed33
ER
381Summary(de.UTF-8): RPMs statische Libraries
382Summary(pl.UTF-8): Biblioteki statyczne RPM-a
383Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
384Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
385Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
edacdf8f 386Group: Development/Libraries
153e5706 387Requires: %{name}-devel = %{version}-%{release}
87ef0d95 388Requires: beecrypt-static >= %{beecrypt_ver}
df76dbd9 389Requires: bzip2-static
858aa7d0 390%{?with_db:Requires: db-static >= %{reqdb_ver}}
ff03e01a 391Requires: elfutils-static
f7100a40 392Requires: keyutils-static
241257bf 393Requires: libmagic-static
a998ac11 394Requires: popt-static >= %{reqpopt_ver}
df76dbd9 395Requires: zlib-static
edacdf8f 396
397%description static
20f89981 398RPM static libraries.
fed73700 399
dd85fadc 400%description static -l de.UTF-8
20f89981 401RPMs statische Libraries.
9e42d68a 402
dd85fadc 403%description static -l pl.UTF-8
0a7ae9bc 404Biblioteki statyczne RPM-a.
313a4d1a 405
dd85fadc
JR
406%description static -l pt_BR.UTF-8
407Bibliotecas estáticas para desenvolvimento.
edacdf8f 408
dd85fadc
JR
409%description static -l ru.UTF-8
410Система управления пакетами RPM содержит библиотеку C, которая
411упрощает манипуляцию пакетами RPM и соответствующими базами данных.
412Это статическая библиотека RPM.
7c6dc55f 413
dd85fadc
JR
414%description static -l uk.UTF-8
415Система керування пакетами RPM містить бібліотеку C, котра спрощує
416роботу з пакетами RPM та відповідними базами даних. Це статична
417бібліотека RPM.
7c6dc55f 418
fed73700 419%package utils
8482995c 420Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
421Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
422Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
edacdf8f 423Group: Applications/File
153e5706 424Requires: %{name} = %{version}-%{release}
a998ac11 425Requires: popt >= %{reqpopt_ver}
86b85368
AG
426%if %{with suggest_tags}
427Suggests: bzip2
428Suggests: gzip
86b85368 429%endif
695e60ad 430Conflicts: filesystem-debuginfo < 3.0-16
edacdf8f 431
432%description utils
8482995c 433Additional utilities for managing RPM packages and database.
fed73700 434
dd85fadc
JR
435%description utils -l de.UTF-8
436Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
9e42d68a 437
dd85fadc
JR
438%description utils -l pl.UTF-8
439Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
fed73700 440
92b3f576 441%package utils-perl
8482995c 442Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
443Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
444Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
92b3f576 445Group: Applications/File
153e5706 446Requires: %{name}-utils = %{version}-%{release}
92b3f576 447Requires: popt >= %{reqpopt_ver}
448
449%description utils-perl
8482995c 450Additional utilities for managing RPM packages and database.
92b3f576 451
dd85fadc
JR
452%description utils-perl -l de.UTF-8
453Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
92b3f576 454
dd85fadc
JR
455%description utils-perl -l pl.UTF-8
456Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
92b3f576 457
a00926bc
JB
458%package utils-static
459Summary: Static rpm utilities
4ea2ed33 460Summary(pl.UTF-8): Statyczne narzędzia rpm
a00926bc 461Group: Applications/System
153e5706 462Requires: %{name} = %{version}-%{release}
a00926bc
JB
463
464%description utils-static
465Static rpm utilities for repairing system in case something with
466shared libraries used by rpm become broken. Currently it contains rpmi
467binary, which can be used to install/upgrade/remove packages without
468using shared libraries (well, in fact with exception of NSS modules).
469
dd85fadc
JR
470%description utils-static -l pl.UTF-8
471Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
472związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
473Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
474uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
475(z wyjątkiem modułów NSS).
a00926bc 476
fed73700 477%package build
e191287c 478Summary: Scripts for building binary RPM packages
4ea2ed33
ER
479Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
480Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
481Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
482Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
483Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
e191287c 484Group: Applications/File
8f76a271 485Requires(pre): findutils
950eead3 486Requires: %{name}-build-macros >= 1.433-2
153e5706 487Requires: %{name}-utils = %{version}-%{release}
e191287c 488Requires: /bin/id
489Requires: awk
cfa7898a 490Requires: bzip2
e950a6d7 491Requires: chrpath >= 0.10-4
b6547e10 492Requires: cpio
e191287c 493Requires: diffutils
195f647c 494Requires: elfutils
583135b4 495Requires: file >= 4.17
e191287c 496Requires: fileutils
497Requires: findutils
950eead3
ER
498%ifarch athlon
499Requires: gcc >= 3.0.3
500%else
501Requires: gcc
502%endif
e191287c 503Requires: glibc-devel
504Requires: grep
505Requires: gzip
506Requires: make
507Requires: patch
e191287c 508Requires: sed
509Requires: sh-utils
510Requires: tar
511Requires: textutils
ca3648b1 512Provides: rpmbuild(monoautodeps)
37ea389a 513Provides: rpmbuild(noauto) = 3
02d17bf9 514%ifarch %{x8664}
195f647c
JB
515Conflicts: automake < 1:1.7.9-2
516Conflicts: libtool < 2:1.5-13
517%endif
0096c5cd 518
e2025ad1 519%description build
58399c37 520Scripts for building binary RPM packages.
fed73700 521
dd85fadc
JR
522%description build -l de.UTF-8
523Scripts fürs Bauen binärer RPM-Pakete.
9e42d68a 524
dd85fadc
JR
525%description build -l pl.UTF-8
526Skrypty pomocnicze do budowania binarnych RPM-ów.
313a4d1a 527
dd85fadc
JR
528%description build -l pt_BR.UTF-8
529Este pacote contém scripts e programas executáveis que são usados para
cf6faebc 530construir pacotes usando o RPM.
e73478cd 531
dd85fadc
JR
532%description build -l ru.UTF-8
533Различные вспомогательные скрипты и исполняемые программы, которые
534используются для сборки RPM'ов.
7c6dc55f 535
dd85fadc
JR
536%description build -l uk.UTF-8
537Різноманітні допоміжні скрипти та утиліти, які використовуються для
538побудови RPM'ів.
7c6dc55f 539
8482995c
JB
540%package javaprov
541Summary: Additional utilities for checking Java provides/requires in RPM packages
542Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
543Group: Applications/File
544Requires: %{name} = %{version}-%{release}
545Requires: file
546Requires: findutils >= 1:4.2.26
547Requires: mktemp
548Requires: unzip
549
550%description javaprov
551Additional utilities for checking Java provides/requires in RPM
552packages.
553
554%description javaprov -l pl.UTF-8
555Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
556RPM.
557
69131f1a 558%package perlprov
8482995c 559Summary: Additional utilities for checking Perl provides/requires in RPM packages
4ea2ed33 560Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
8482995c 561Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
69131f1a
JB
562Group: Applications/File
563Requires: %{name} = %{version}-%{release}
564Requires: perl-devel
565Requires: perl-modules
566
567%description perlprov
8482995c 568Additional utilities for checking Perl provides/requires in RPM
69131f1a
JB
569packages.
570
dd85fadc
JR
571%description perlprov -l de.UTF-8
572Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
69131f1a 573
dd85fadc 574%description perlprov -l pl.UTF-8
8482995c
JB
575Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
576pakietach RPM.
69131f1a
JB
577
578%package pythonprov
8482995c
JB
579Summary: Python macros, which simplifies creation of RPM packages with Python software
580Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
69131f1a
JB
581Group: Applications/File
582Requires: %{name} = %{version}-%{release}
cd800b3c 583Requires: python
243c6264 584Requires: python-modules
bdbae303 585Requires: python-distribute
69131f1a
JB
586
587%description pythonprov
8482995c 588Python macros, which simplifies creation of RPM packages with Python
69131f1a
JB
589software.
590
dd85fadc 591%description pythonprov -l pl.UTF-8
8482995c 592Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
69131f1a
JB
593Pythonie.
594
595%package php-pearprov
8482995c
JB
596Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
597Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
69131f1a
JB
598Group: Applications/File
599Requires: %{name} = %{version}-%{release}
632f1b5c 600Requires: sed >= 4.0
69131f1a
JB
601
602%description php-pearprov
8482995c 603Additional utilities for checking PHP PEAR provides/requires in RPM
69131f1a
JB
604packages.
605
dd85fadc 606%description php-pearprov -l pl.UTF-8
8482995c
JB
607Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
608pakietach RPM.
69131f1a
JB
609
610%package -n python-rpm
611Summary: Python interface to RPM library
4ea2ed33
ER
612Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
613Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
69131f1a
JB
614Group: Development/Languages/Python
615Requires: %{name} = %{version}-%{release}
616%pyrequires_eq python
617Obsoletes: rpm-python
618
619%description -n python-rpm
620The rpm-python package contains a module which permits applications
621written in the Python programming language to use the interface
622supplied by RPM (RPM Package Manager) libraries.
623
624This package should be installed if you want to develop Python
625programs that will manipulate RPM packages and databases.
626
dd85fadc
JR
627%description -n python-rpm -l pl.UTF-8
628Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
629Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
69131f1a 630
dd85fadc
JR
631Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
632Pythonie programy manipulujące pakietami i bazami danych rpm.
69131f1a 633
dd85fadc
JR
634%description -n python-rpm -l pt_BR.UTF-8
635O pacote rpm-python contém um módulo que permite que aplicações
69131f1a
JB
636escritas em Python utilizem a interface fornecida pelas bibliotecas
637RPM (RPM Package Manager).
638
dd85fadc 639Esse pacote deve ser instalado se você quiser desenvolver programas em
69131f1a
JB
640Python para manipular pacotes e bancos de dados RPM.
641
5c2ab5c7
AM
642%package apidocs
643Summary: RPM API documentation and guides
644Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
645Group: Documentation
646
647%description apidocs
648Documentation for RPM API and guides in HTML format generated from rpm
649sources by doxygen.
650
651%description apidocs -l pl.UTF-8
652Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
653źrodeł RPM-a przez doxygen.
654
e2025ad1 655%prep
d38aed81 656%setup -q -n %{name}-%{version}%{?subver} -a100
317ef122 657#patch0 -p1
2f0ee4ec 658%patch1 -p1
4d5b8e4c 659%patch2 -p1
ece43ea2 660%patch3 -p1
7a3b1f24
AM
661%patch4 -p1
662%patch5 -p1
c1768ce2 663%patch7 -p1
7a3b1f24 664%patch8 -p1
fefe9d30 665%patch9 -p1
6a8612bc 666%{?with_system_lua:%patch11 -p1}
2a321171 667# CHECK ME - macrofiles: ~/etc could be used
98a21402 668#%%patch14 -p1
fefe9d30 669%patch16 -p1
80b8a1f9
JB
670install %{SOURCE9} scripts/php.prov.in
671install %{SOURCE10} scripts/php.req.in
672install %{SOURCE12} scripts/perl.prov
169dcb39 673
a736a97d 674%ifarch i386 i486
0bf2c47b 675# disable TSC
f5afdd6c 676%patch26 -p1
0bf2c47b 677%endif
24123ddd 678%patch27 -p1
950eead3 679%patch34 -p1
7a3b1f24 680%patch35 -p0
148c9957 681%patch36 -p1
e24da480 682%patch37 -p1
9282ffe4 683%patch41 -p1
ece43ea2 684%patch42 -p1
775829eb 685%patch47 -p1
d6080f70 686%patch55 -p1
59a562c2 687%patch59 -p1
317ef122
JR
688# Maybe, at last we can remove this?
689#patch19 -p1
c50e9031 690%patch60 -p1
7ffa7946 691%ifarch sparc64
692%patch61 -p1
693%endif
7f26883c 694%patch62 -p1
77fcdbf7 695%patch70 -p1
77fcdbf7 696%patch72 -p1 -b .wiget
afb55538
JR
697%patch73 -p1
698%patch74 -p1
a3809792
JR
699%patch75 -p1
700%patch76 -p1
701%patch77 -p1
702%patch78 -p1
703%patch79 -p1
704%patch80 -p1
705%patch81 -p1
706%patch82 -p1
707%patch83 -p1
708%patch84 -p1
709%patch85 -p1
765b7c41 710
08697680
JR
711cp -p %{SOURCE2} macros/pld.in
712
7a3b1f24
AM
713cd scripts
714mv -f perl.req perl.req.in
715mv -f perl.prov perl.prov.in
716cd ..
633d1e9e 717
cd86db2e 718# generate Group translations to *.po
80b8a1f9 719awk -f %{SOURCE6} %{SOURCE1}
fefe9d30 720
87ef0d95 721%build
ea816ea6 722%{__libtoolize}
c0a9be8f 723#%{__autopoint}
ceaaacee 724%{__aclocal}
4cd84746 725%{__autoheader}
7a9d72ce 726%{__autoconf}
7a9d72ce 727%{__automake}
7a9d72ce 728
d268a169 729%{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
89427592 730# pass CC and CXX too in case of building with some older configure macro
624f96ff 731%configure \
f9ac32aa
AM
732 CC="%{__newcc}" \
733 CXX="%{__newcxx}" \
734 CPP="%{__newcpp}" \
01d7a578 735 WITH_PERL_VERSION=no \
cd86db2e 736 --enable-shared \
874f4c9a 737 --enable-static \
5c2ab5c7 738 %{!?with_apidocs:--without-apidocs} \
f3cb8244 739 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
a6e56ce4 740 %{!?with_python:--without-python} \
241257bf
AM
741 --with%{!?with_selinux:out}-selinux \
742 --with-libelf \
743 --with-zlib=external \
744 --with-bzip2=external \
745 --with-beecrypt=external \
1afa05ce 746 --with-lzma=external \
77fcdbf7 747 --with-xz=external \
241257bf
AM
748 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
749 --with-file=external \
750 --with-popt=external \
afb55538 751 --with-db=%{?with_db:external}%{!?with_db:no} \
77fcdbf7 752 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
950eead3 753 --with-dbapi=%{!?with_sqlite_dbapi:db}%{?with_sqlite_dbapi:sqlite} \
6a8612bc 754 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
77fcdbf7 755 --with-pcre=external \
241257bf
AM
756 --with-keyutils=none \
757 --without-path-versioned \
0387ab85 758 --with-extra-path-macros='%{_sysconfdir}/rpm/macros.d/*.macros:%{_rpmlibdir}/macros.build:%{_rpmlibdir}/macros.d/pld:~/etc/rpmmacros:~/etc/.rpmmacros:~/.rpmmacros' \
08697680
JR
759 --with-bugreport="http://bugs.pld-linux.org/" \
760 --with-vendor=pld
cf6faebc 761
25e974c7 762%{__make} -j1 \
f9ac32aa
AM
763 CC="%{__cc}" \
764 CXX="%{__cxx}" \
241257bf 765 CPP="%{__cpp}"
33be5db0 766
5c2ab5c7
AM
767%{?with_apidocs:%{__make} apidocs}
768
b064b8e6 769%install
ff7bc1e6 770rm -rf $RPM_BUILD_ROOT
54eb1770
AM
771install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm,/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
772
773install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 774
a5e7fb84 775%{__make} install \
241257bf
AM
776 pkgconfigdir=%{_pkgconfigdir} \
777 DESTDIR=$RPM_BUILD_ROOT
718426e1 778
25ac75ae
AM
779# install ARCH macros
780install -d $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux
d38aed81 781install cpu-os-macros/noarch-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros
25ac75ae
AM
782
783%ifarch %{ix86}
784install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{i386,i486,i586,i686,athlon,pentium3,pentium4}-linux
d38aed81
JR
785install cpu-os-macros/athlon-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
786install cpu-os-macros/i386-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
787install cpu-os-macros/i486-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
788install cpu-os-macros/i586-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
789install cpu-os-macros/i686-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
790install cpu-os-macros/pentium3-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
791install cpu-os-macros/pentium4-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
25ac75ae
AM
792%endif
793
794%ifarch %{x8664}
795install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{x86_64,ia32e,amd64}-linux
d38aed81
JR
796install cpu-os-macros/x86_64-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
797install cpu-os-macros/ia32e-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
798install cpu-os-macros/amd64-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
25ac75ae
AM
799%endif
800
801%ifarch %{ppc}
802install -d $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux
d38aed81 803install cpu-os-macros/ppc-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
25ac75ae
AM
804%endif
805
2eb9303e 806cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
ca076ee5 807# first platform file entry can't contain regexps
2eb9303e 808%{_target_cpu}-%{_target_vendor}-linux
caf453d4 809
2d8ae03e
AM
810# x86_64 things
811%ifarch x86_64
53fd58bc 812x86_64-[^-]*-[Ll]inux(-gnu)?
9cfcb6c8 813amd64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 814%endif
2d8ae03e 815%ifarch amd64
53fd58bc
AM
816amd64-[^-]*-[Ll]inux(-gnu)?
817x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 818%endif
2d8ae03e 819%ifarch ia32e
53fd58bc
AM
820ia32e-[^-]*-[Ll]inux(-gnu)?
821x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
822%endif
823
824# x86 things
06bd38df 825%ifarch athlon %{x8664}
53fd58bc 826athlon-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 827%endif
06bd38df 828%ifarch pentium4 athlon %{x8664}
53fd58bc 829pentium4-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 830%endif
06bd38df 831%ifarch pentium3 pentium4 athlon %{x8664}
53fd58bc 832pentium3-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 833%endif
06bd38df 834%ifarch i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 835i686-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 836%endif
06bd38df 837%ifarch i586 i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 838i586-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 839%endif
06bd38df 840%ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 841i486-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 842%endif
06bd38df 843%ifarch %{ix86} %{x8664}
53fd58bc 844i386-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
845%endif
846
5074eba9 847%ifarch alpha
53fd58bc 848alpha-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
849%endif
850
851%ifarch ia64
53fd58bc 852ia64-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
853%endif
854
855%ifarch ppc64
53fd58bc
AM
856powerpc64-[^-]*-[Ll]inux(-gnu)?
857ppc64-[^-]*-[Ll]inux(-gnu)?
5074eba9 858%endif
950eead3 859%ifarch %{ppc} ppc64
53fd58bc
AM
860powerpc-[^-]*-[Ll]inux(-gnu)?
861ppc-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
862%endif
863
864%ifarch s390x
53fd58bc 865s390x-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
866%endif
867%ifarch s390 s390x
53fd58bc 868s390-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
869%endif
870
871%ifarch sparc64
53fd58bc
AM
872sparc64-[^-]*-[Ll]inux(-gnu)?
873sparcv8-[^-]*-[Ll]inux(-gnu)?
874sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
875%endif
876%ifarch sparcv9
53fd58bc
AM
877sparcv8-[^-]*-[Ll]inux(-gnu)?
878sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
879%endif
880%ifarch sparc sparcv9 sparc64
53fd58bc 881sparc-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
882%endif
883
884# noarch
2eb9303e
ER
885noarch-[^-]*-.*
886EOF
2d8ae03e 887
02919de5
JK
888rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
889rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
890rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
950eead3 891rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
02919de5 892
644d8958
JB
893# not installed since 4.4.8 (-tools-perl subpackage)
894install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
895
61f7e1b3 896install %{SOURCE1} doc/manual/groups
d755a548 897install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
80b8a1f9
JB
898install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
899install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
d0370fe5 900install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
7d8492bb 901install %{SOURCE16} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
d755a548
JK
902install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
903install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
f15af52e 904cp -p %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
c75b3936 905install %{SOURCE20} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
cf709a39 906install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
d0370fe5 907install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 908
1c2e2d8e 909install %{SOURCE17} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 910
950eead3
ER
911install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
912
08697680
JR
913install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
914install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
915install %{SOURCE23} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
916install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
917install %{SOURCE25} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
918install %{SOURCE26} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep
919install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
920
950eead3
ER
921touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
922touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
923install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
924touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
925touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
926touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
fbc0ff35 927
f3fd387a 928# for rpm -e|-U --repackage
a11e0e27
AM
929install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
930touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
f3fd387a 931
950eead3
ER
932# move rpm to /bin
933mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
934# move essential libs to /lib (libs that /bin/rpm links to)
ece880e2 935for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
50dc9ac0
JK
936 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
937 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
c2673e18
AF
938done
939
950eead3
ER
940# Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
941mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
942
6f18cdb7
AF
943%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
944%py_comp $RPM_BUILD_ROOT%{py_sitedir}
945
08697680 946%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
01d7a578 947
01d7a578 948# wrong location, not used anyway
08697680 949%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
950eead3 950# utils dropped in 4.4.8 -- their manuals
08697680 951%{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/rpmgraph.8
e86bfbff 952# utils dropped in 5.4 -- their manuals
854562c1 953%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
e86bfbff
JR
954# script obsoleted by /usr/lib/rpm/bin/dbconvert binary
955%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
01d7a578 956
90b03dd6 957%find_lang %{name}
cf6faebc 958
08697680 959%{__rm} -rf manual
a998ac11 960cp -a doc/manual manual
08697680 961%{__rm} -f manual/Makefile*
874f4c9a 962
13eb5ebf 963%clean
d7df46b8 964rm -rf $RPM_BUILD_ROOT
76214164 965
cc1a4992
ER
966%triggerpostun lib -- %{name}-lib < %{version}
967rm -f /var/lib/rpm/__db*
968
969%pretrans
970# this needs to be a dir
971if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
c1097150 972 umask 022
cc1a4992
ER
973 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
974 mkdir %{_sysconfdir}/rpm/sysinfo
975fi
976
cf709a39
ER
977%triggerpostun -- %{name} < 4.4.9-44
978%{_rpmlibdir}/hrmib-cache
979
ceaaacee
JB
980%post lib -p /sbin/ldconfig
981%postun lib -p /sbin/ldconfig
76214164 982
37a5a2fc 983%pretrans build
d755a548 984find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 985
3684d90f
JB
986%files -f %{name}.lang
987%defattr(644,root,root,755)
241257bf 988%doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
3684d90f 989
54eb1770
AM
990%dir %{_sysconfdir}/pki/rpm-gpg
991%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
992
7a9d72ce 993%attr(755,root,root) /bin/rpm
e73478cd 994
66edd895 995%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
950eead3 996%dir %{_sysconfdir}/rpm/sysinfo
caf453d4 997# these are ok to be replaced
950eead3 998%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
caf453d4
AM
999%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1000
09bb810c 1001%{_mandir}/man8/rpm.8*
feb1f12e 1002%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 1003%lang(ja) %{_mandir}/ja/man8/rpm.8*
1162bdc1 1004%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 1005%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 1006%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 1007%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 1008
e2025ad1 1009%dir /var/lib/rpm
74a997bd
JR
1010%dir /var/lib/rpm/log
1011%dir /var/lib/rpm/tmp
1012%config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
f3fd387a 1013%dir %attr(700,root,root) /var/spool/repackage
a11e0e27
AM
1014%dir /var/lock/rpm
1015/var/lock/rpm/transaction
4acac5de 1016
cf709a39
ER
1017# exported package NVRA (stamped with install tid)
1018# net-snmp hrSWInstalledName queries, bash-completions
1019%dir /var/cache/hrmib
1020
ec44785a 1021%{_rpmlibdir}/qf
d755a548
JK
1022%{_rpmlibdir}/rpmpopt*
1023%{_rpmlibdir}/macros
08697680
JR
1024%dir %{_rpmlibdir}/macros.d
1025%{_rpmlibdir}/macros.d/pld
9282ffe4 1026%{_rpmlibdir}/cpuinfo.yaml
3684d90f 1027
cf709a39
ER
1028%attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1029
df50421f
JR
1030%dir %{_rpmlibdir}/bin
1031%attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1032
66edd895
JB
1033%files base
1034%defattr(644,root,root,755)
492a2bd4 1035%dir %{_sysconfdir}/rpm
66edd895
JB
1036%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1037%dir %{_rpmlibdir}
1038%attr(755,root,root) %{_bindir}/banner.sh
df50421f 1039%attr(755,root,root) %{_bindir}/multiarch-dispatch
66edd895
JB
1040%attr(755,root,root) %{_rpmlibdir}/user_group.sh
1041%dir /var/lib/banner
1042
874f4c9a
MM
1043%files lib
1044%defattr(644,root,root,755)
950eead3
ER
1045%attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1046%attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1047%attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1048%attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
a434679c 1049%attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
ece880e2 1050%attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
874f4c9a 1051
69131f1a
JB
1052%files devel
1053%defattr(644,root,root,755)
69131f1a
JB
1054%attr(755,root,root) %{_libdir}/librpm.so
1055%attr(755,root,root) %{_libdir}/librpm-%{sover}.so
950eead3
ER
1056%attr(755,root,root) %{_libdir}/librpmbuild.so
1057%attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
02510ee8
AM
1058%attr(755,root,root) %{_libdir}/librpmconstant.so
1059%attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
950eead3
ER
1060%attr(755,root,root) %{_libdir}/librpmdb.so
1061%attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
69131f1a
JB
1062%attr(755,root,root) %{_libdir}/librpmio.so
1063%attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
02510ee8
AM
1064%attr(755,root,root) %{_libdir}/librpmmisc.so
1065%attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
950eead3
ER
1066%{_libdir}/librpm*.la
1067%{_includedir}/rpm
df50421f 1068%{_includedir}/multiarch-dispatch.h
950eead3 1069%{_pkgconfigdir}/*.pc
69131f1a
JB
1070
1071%files static
1072%defattr(644,root,root,755)
1073%{_libdir}/librpm*.a
1074
1075%files utils
1076%defattr(644,root,root,755)
69131f1a 1077%attr(755,root,root) %{_bindir}/rpm2cpio
25e974c7 1078%attr(755,root,root) %{_bindir}/rpmconstant
69131f1a 1079%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
69131f1a 1080%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
25e974c7 1081%attr(755,root,root) %{_rpmlibdir}/tgpg
df50421f
JR
1082%attr(755,root,root) %{_rpmlibdir}/bin/chroot
1083%attr(755,root,root) %{_rpmlibdir}/bin/cp
9282ffe4 1084%attr(755,root,root) %{_rpmlibdir}/bin/debugedit
df50421f
JR
1085%attr(755,root,root) %{_rpmlibdir}/bin/find
1086%attr(755,root,root) %{_rpmlibdir}/bin/mgo
9282ffe4
AF
1087%attr(755,root,root) %{_rpmlibdir}/bin/mtree
1088%attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1089%attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1090%attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1091%attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1092%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey
1093%attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
69131f1a 1094%{_mandir}/man8/rpm2cpio.8*
950eead3 1095%{_mandir}/man8/rpmcache.8*
ec44785a 1096%{_mandir}/man8/rpmconstant.8*
69131f1a 1097%{_mandir}/man8/rpmdeps.8*
c0a9be8f 1098%{_mandir}/man8/rpmmtree.8*
69131f1a 1099%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
950eead3 1100%lang(ja) %{_mandir}/ja/man8/rpmcache.8*
69131f1a
JB
1101%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1102%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
950eead3 1103%lang(pl) %{_mandir}/pl/man8/rpmcache.8*
69131f1a 1104%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
69131f1a
JB
1105%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1106
1107%files utils-perl
1108%defattr(644,root,root,755)
1109%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
69131f1a
JB
1110
1111%if %{with static}
1112%files utils-static
1113%defattr(644,root,root,755)
1114%attr(755,root,root) %{_bindir}/rpm[ieu]
1115%attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1116%endif
1117
3684d90f 1118%files build
a45ae6d8 1119%defattr(644,root,root,755)
66edd895 1120%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
1121%attr(755,root,root) %{_rpmlibdir}/brp-*
1122%attr(755,root,root) %{_rpmlibdir}/check-files
d755a548
JK
1123%attr(755,root,root) %{_rpmlibdir}/compress-doc
1124%attr(755,root,root) %{_rpmlibdir}/cross-build
d755a548 1125%attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
d755a548
JK
1126%attr(755,root,root) %{_rpmlibdir}/getpo.sh
1127%attr(755,root,root) %{_rpmlibdir}/install-build-tree
d755a548 1128%attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
01d7a578 1129%attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
01d7a578 1130%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
c75b3936 1131%attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
01d7a578
JB
1132# needs hacked pkg-config to return anything
1133%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
df50421f
JR
1134%attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1135%attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
77fcdbf7
AF
1136%attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1137%attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
df50421f
JR
1138%attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1139%attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1140%attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1141%attr(755,root,root) %{_rpmlibdir}/bin/wget
ec44785a 1142%attr(755,root,root) %{_rpmlibdir}/vcheck
d755a548 1143%{_rpmlibdir}/noarch-*
e9fe9fc5 1144%ifarch %{ix86}
d755a548 1145%{_rpmlibdir}/i?86*
e9fe9fc5 1146%{_rpmlibdir}/pentium*
d755a548
JK
1147%{_rpmlibdir}/athlon*
1148%endif
ad628734
JB
1149%ifarch alpha
1150%{_rpmlibdir}/alpha*
1151%endif
ad628734
JB
1152%ifarch ia64
1153%{_rpmlibdir}/ia64*
8f76a271 1154%endif
410dd742 1155%ifarch mips mipsel mips64 mips64el
1156%{_rpmlibdir}/mips*
1157%endif
80e9f34d 1158%ifarch %{ppc}
410dd742 1159%{_rpmlibdir}/ppc*
1160%endif
1161%ifarch sparc sparc64
1162%{_rpmlibdir}/sparc*
1163%endif
9f517079 1164%ifarch %{x8664}
206b32be
JB
1165%{_rpmlibdir}/amd64*
1166%{_rpmlibdir}/ia32e*
cedf1bfa
PS
1167%{_rpmlibdir}/x86_64*
1168%endif
410dd742 1169# not used yet ... these six depend on perl
ec44785a 1170%attr(755,root,root) %{_rpmlibdir}/http.req
ec44785a 1171%attr(755,root,root) %{_rpmlibdir}/mono*
37e965e8
JR
1172
1173# must be here for "Requires: rpm-*prov" to work
df50421f
JR
1174%{_rpmlibdir}/macros.d/cmake
1175%{_rpmlibdir}/macros.d/gstreamer
77fcdbf7 1176%{_rpmlibdir}/macros.d/java
df50421f 1177%{_rpmlibdir}/macros.d/kernel
77fcdbf7
AF
1178%{_rpmlibdir}/macros.d/libtool
1179%{_rpmlibdir}/macros.d/mono
1180%{_rpmlibdir}/macros.d/perl
1181%{_rpmlibdir}/macros.d/php
1182%{_rpmlibdir}/macros.d/pkgconfig
1183%{_rpmlibdir}/macros.d/python
df50421f 1184%{_rpmlibdir}/macros.d/ruby
77fcdbf7 1185%{_rpmlibdir}/macros.d/selinux
df50421f 1186%{_rpmlibdir}/macros.d/tcl
77fcdbf7
AF
1187%{_rpmlibdir}/macros.rpmbuild
1188
df50421f
JR
1189%attr(755,root,root) %{_rpmlibdir}/check-multiarch-files
1190%attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1191%attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1192%attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1193%attr(755,root,root) %{_rpmlibdir}/mkmultiarch
df50421f
JR
1194%attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1195
874f4c9a 1196%attr(755,root,root) %{_bindir}/gendiff
df50421f 1197%attr(755,root,root) %{_bindir}/multiarch-platform
874f4c9a 1198%attr(755,root,root) %{_bindir}/rpmbuild
ec44785a
BZ
1199
1200%dir %{_rpmlibdir}/helpers
1201%attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
874f4c9a 1202
a00926bc 1203%{_mandir}/man1/gendiff.1*
874f4c9a 1204%{_mandir}/man8/rpmbuild.8*
fefe9d30
JB
1205%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1206%lang(pl) %{_mandir}/pl/man1/gendiff.1*
1207%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
f3fe287f 1208
7d8492bb
JB
1209%files javaprov
1210%defattr(644,root,root,755)
1211%attr(755,root,root) %{_rpmlibdir}/java-find-requires
1212# needs jar (any jdk), jcf-dump (gcc-java) to work
1213%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1214
89334051
AF
1215%files perlprov
1216%defattr(644,root,root,755)
d755a548 1217%attr(755,root,root) %{_rpmlibdir}/perl.*
ec44785a
BZ
1218%attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1219%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
9805fd6d 1220
80d3b868 1221%files pythonprov
d8fcb9b0 1222%defattr(644,root,root,755)
bdbae303 1223%attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
25d296e1 1224%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
09bb810c 1225
d36cb682
PG
1226%files php-pearprov
1227%defattr(644,root,root,755)
d755a548
JK
1228%attr(755,root,root) %{_rpmlibdir}/php*
1229%attr(755,root,root) %{_rpmlibdir}/find-php*
d36cb682 1230
50dc9ac0 1231%if %{with python}
cf6faebc 1232%files -n python-rpm
42a0025c 1233%defattr(644,root,root,755)
b33910fe 1234%dir %{py_sitedir}/rpm
6f18cdb7 1235%attr(755,root,root) %{py_sitedir}/rpm/*.so
8c99b39a 1236%{py_sitedir}/rpm/*.py[co]
50dc9ac0 1237%endif
5c2ab5c7
AM
1238
1239%if %{with apidocs}
1240%files apidocs
1241%defattr(644,root,root,755)
1242%doc apidocs
1243%endif
This page took 1.04911 seconds and 4 git commands to generate.