]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- rpm-iconv-translit.patch: when converting strings to the locale
[packages/rpm.git] / rpm.spec
CommitLineData
52c10eff 1#
2# TODO:
76f35df6
JB
3# - python(abi) cap is not provided automatically (because /usr/bin/python matches
4# ELF first; it should be provided by python-libs not binary anyway)
a245b6ce 5# - repackaging when lzma is not installed (todo: fix digest signature of header)
351a0199
JB
6# rpmbuild computes digest when writing package to temporary file, then adds a few
7# tags (incl. digest) and writes whole package to destination file;
8# repackaging uses unchanged "immutable header" image from original rpm, also
9# preserving payload format and compressor from original rpm, _not_ current settings
10abbd40 10#
89427592 11# Conditional build:
01d7a578 12%bcond_with static # build static rpm+rpmi
4af66a2c
JB
13%bcond_without apidocs # don't generate documentation with doxygen
14%bcond_with autoreqdep # autogenerate package name deps in addition to sonames/perl(X)
15%bcond_without python # don't build python bindings
16%bcond_without selinux # build without selinux support
632f1b5c 17%bcond_without system_libmagic # don't use system libmagic
33be5db0 18%bcond_with neon # build with HTTP/WebDAV support (neon library)
89427592
JB
19# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
20# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
21# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
54bfdf99 22
003a039e 23# versions of required libraries
83d6a3fe 24%define reqdb_ver 4.4.20
b60c74c3 25%define reqpopt_ver 1.10.6
33be5db0 26%define beecrypt_ver 2:4.1.2-4
10abbd40 27%define sover 4.4
e5f02e49 28Summary: RPM Package Manager
dd85fadc
JR
29Summary(de.UTF-8): RPM Packet-Manager
30Summary(es.UTF-8): Gestor de paquetes RPM
31Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
32Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
33Summary(ru.UTF-8): Менеджер пакетов от RPM
34Summary(uk.UTF-8): Менеджер пакетів від RPM
76214164 35Name: rpm
fbc3563a 36Version: 4.4.7
50281fa4 37Release: 13
9c5bc9ad 38License: GPL
76214164 39Group: Base
4711b7e8 40Source0: ftp://jbj.org/pub/rpm-4.4.x/%{name}-%{version}.tar.gz
fbc3563a 41# Source0-md5: d012c81b5169f7377ea4a36607e1445e
ff7bc1e6 42Source1: %{name}.groups
c2673e18 43Source2: %{name}.platform
ff7bc1e6 44Source3: %{name}-install-tree
80b8a1f9
JB
45Source4: %{name}-find-spec-bcond
46Source5: %{name}-find-lang
47Source6: %{name}-groups-po.awk
48Source7: %{name}-compress-doc
49Source8: %{name}-check-files
50Source9: %{name}-php-provides
51Source10: %{name}-php-requires
fbc0ff35 52Source11: %{name}.sysinfo
80b8a1f9 53Source12: perl.prov
d0370fe5 54Source13: %{name}-user_group.sh
55Source14: %{name}.sysconfig
7c6dc55f 56Source30: builder
57Source31: adapter.awk
58Source32: pldnotify.awk
a4b7ef27 59# http://svn.pld-linux.org/banner.sh/
60Source33: banner.sh
f14234e4 61Patch0: %{name}-pl.po.patch
b174986a 62Patch1: %{name}-rpmrc.patch
3465efba 63Patch2: %{name}-arch.patch
b174986a 64Patch3: %{name}-rpmpopt.patch
3465efba 65Patch4: %{name}-perl-macros.patch
c1768ce2 66Patch5: %{name}-perl-req-perlfile.patch
f14234e4
JB
67Patch6: %{name}-noexpand.patch
68Patch7: %{name}-scripts-closefds.patch
69Patch8: %{name}-python-macros.patch
70Patch9: %{name}-gettext-in-header.patch
71Patch10: %{name}-compress-doc.patch
0dfc6df6 72Patch11: %{name}-rpmdeps-segv.patch
f14234e4
JB
73Patch12: %{name}-system_libs.patch
74Patch13: %{name}-bb-and-short-circuit.patch
75Patch14: %{name}-etc_dir.patch
76Patch15: %{name}-system_libs-more.patch
77Patch16: %{name}-php-deps.patch
78Patch17: %{name}-ldconfig-always.patch
79Patch18: %{name}-perl_req.patch
8b053168 80Patch19: %{name}-link.patch
f14234e4
JB
81Patch20: %{name}-magic-usesystem.patch
82Patch21: %{name}-dontneedutils.patch
83Patch22: %{name}-provides-dont-obsolete.patch
84Patch23: %{name}-examplesaredoc.patch
85Patch24: %{name}-po.patch
d57544b2 86Patch25: %{name}-getcwd.patch
f14234e4
JB
87Patch26: %{name}-notsc.patch
88Patch27: %{name}-hack-norpmlibdep.patch
89Patch28: %{name}-makefile-no_myLDADD_deps.patch
90Patch29: %{name}-libdir64.patch
91Patch30: %{name}-libdir-links.patch
92Patch31: %{name}-missing-prototypes.patch
93Patch32: %{name}-pld-autodep.patch
374b40ea 94Patch33: %{name}-arch-x86_64.patch
f14234e4
JB
95Patch34: %{name}-epoch0.patch
96Patch35: %{name}-perl_req-INC_dirs.patch
97Patch36: %{name}-debuginfo.patch
98Patch37: %{name}-doxygen_hack.patch
75884c95 99Patch38: %{name}-empty-rpmlock-path.patch
3ab6ba6d 100Patch39: %{name}-pythondeps.patch
7c9ace12 101Patch40: %{name}-vendor.patch
65f4f2e2 102Patch41: %{name}-reduce-stack-usage.patch
bb98669b 103Patch42: %{name}-old-fileconflicts-behaviour.patch
33be5db0
JB
104Patch43: %{name}-patch-quote.patch
105Patch44: %{name}-no-neon.patch
106Patch45: %{name}-no-sqlite.patch
5790b583 107Patch46: %{name}-mono.patch
fbc0ff35 108
94987477 109Patch48: %{name}-requireseq.patch
5faf69a1 110Patch49: %{name}-p4.patch
b02ce76b 111Patch50: %{name}-macros.patch
bc8eaf36 112Patch51: %{name}-cleanlibdirs.patch
80e9f34d 113Patch52: %{name}-morearchs.patch
e93003df
ER
114Patch53: %{name}-lzma.patch
115Patch54: %{name}-lzma2.patch
d6080f70
ER
116Patch55: %{name}-truncate-cvslog.patch
117Patch56: %{name}-skip-backups.patch
2748102f 118Patch57: %{name}-as_needed-fix.patch
a245b6ce 119Patch58: %{name}-repackage-wo-lzma.patch
59a562c2 120Patch59: %{name}-libtool-deps.patch
847ecfb1 121Patch60: %{name}-CVE-2006-5466.patch
e54ac8cf 122Patch61: %{name}-build-failure-error.patch
079a4c43 123Patch62: %{name}-mcontext.patch
bcf1e12e 124Patch63: %{name}-FileDigestParameterized.patch
50281fa4 125Patch64: %{name}-iconv-translit.patch
322f70c6 126URL: http://wraptastic.org/
b60c74c3 127BuildRequires: autoconf >= 2.57
afea894b 128BuildRequires: automake
87ef0d95 129BuildRequires: beecrypt-devel >= %{beecrypt_ver}
33be5db0 130BuildRequires: bzip2-devel >= 1.0.2-17
1d34a9ca 131BuildRequires: db-devel >= %{reqdb_ver}
33be5db0 132BuildRequires: elfutils-devel >= 0.108
b59d7b6c 133BuildRequires: gettext-devel >= 0.11.4-2
632f1b5c 134%{?with_system_libmagic:BuildRequires: libmagic-devel}
8e159d42 135%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
84cdee7a
JB
136# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
137BuildRequires: libstdc++-devel
b60c74c3 138BuildRequires: libtool >= 1:1.4.2-9
33be5db0 139%if %{with neon}
fe861705 140BuildRequires: libxml2-devel
83d6a3fe 141BuildRequires: neon-devel >= 0.25.5
33be5db0 142%endif
7973b351 143BuildRequires: patch >= 2.2
1d49ffbc 144BuildRequires: popt-devel >= %{reqpopt_ver}
849b65cd 145%{?with_python:BuildRequires: python-devel >= 1:2.5}
146BuildRequires: python-modules >= 1:2.5
3cfc33fc 147BuildRequires: rpm-perlprov
2a813afe 148%{?with_python:BuildRequires: rpm-pythonprov}
874f4c9a 149BuildRequires: zlib-devel
b0a177d4 150%if %{with apidocs}
151BuildRequires: doxygen
152BuildRequires: ghostscript
153BuildRequires: graphviz
154BuildRequires: tetex-pdftex
155%endif
a6e56ce4 156%if %{with static}
e6090a7b 157# Require static library only for static build
87ef0d95 158BuildRequires: beecrypt-static >= %{beecrypt_ver}
33be5db0 159BuildRequires: bzip2-static >= 1.0.2-17
1d34a9ca 160BuildRequires: db-static >= %{reqdb_ver}
290c1c30 161BuildRequires: elfutils-static
10abbd40 162BuildRequires: glibc-static >= 2.2.94
b9e030ac 163%{?with_system_libmagic:BuildRequires: libmagic-static}
8e159d42 164%{?with_selinux:BuildRequires: libselinux-static >= 1.18}
003a039e 165BuildRequires: popt-static >= %{reqpopt_ver}
1d49ffbc 166BuildRequires: zlib-static
7a9d72ce 167%endif
66edd895 168Requires: %{name}-base = %{version}-%{release}
b26a9709 169Requires: %{name}-lib = %{version}-%{release}
10abbd40
ER
170Requires: beecrypt >= %{beecrypt_ver}
171Requires: popt >= %{reqpopt_ver}
4adb7d05 172%{!?with_static:Obsoletes: rpm-utils-static}
874f4c9a 173Conflicts: glibc < 2.2.92
bcf1e12e
AM
174# ABI changes in rpm, new poldek needed
175Conflicts: poldek < 0.20.1-0.20070105.0
1d49ffbc 176BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6d82b332 177
4adb7d05
JB
178%define _binary_payload w9.gzdio
179%define _noPayloadPrefix 1
6d82b332 180
4cd84746
JB
181# don't require very fresh rpm.macros to build
182%define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
9f517079 183%define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
80e9f34d 184%define ppc ppc ppc7400 ppc7450
9f517079 185%define x8664 amd64 ia32e x86_64
4cd84746 186
89427592 187# stabilize new build environment
f9ac32aa
AM
188%define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
189%define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
190%define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
89427592 191
d755a548
JK
192%define _rpmlibdir /usr/lib/rpm
193
573e40e1
PS
194%define specflags -fno-strict-aliasing
195
ff7bc1e6 196%description
197RPM is a powerful package manager, which can be used to build,
198install, query, verify, update, and uninstall individual software
cf6faebc 199packages. A package consists of an archive of files, and package
fed73700 200information, including name, version, and description.
201
dd85fadc
JR
202%description -l de.UTF-8
203RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
fed73700 204Installation, Anfrage, Verifizierung, Aktualisierung und
205Uninstallation individueller Softwarepakete. Ein Paket besteht aus
206einem Archiv Dateien und Paketinformation, inklusive Name, Version und
313a4d1a 207Beschreibung.
208
dd85fadc 209%description -l es.UTF-8
313a4d1a 210RPM es un poderoso administrador de paquetes, que puede ser usado para
211construir, instalar, pesquisar, verificar, actualizar y desinstalar
212paquetes individuales de software. Un paquete consiste en un
dd85fadc
JR
213almacenaje de archivos, y información sobre el paquete, incluyendo
214nombre, versión y descripción.
215
216%description -l pl.UTF-8
217RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
218przebudowanie, instalację czy weryfikację dowolnego pakietu.
219Informacje dotyczące każdego pakietu, takie jak jego opis, lista
220plików wchodzących w skład pakietu, zależności od innych pakietów, są
221przechowywane w bazie danych i można je uzyskać za pomocą opcji
313a4d1a 222odpytywania programu rpm.
223
dd85fadc
JR
224%description -l pt_BR.UTF-8
225RPM é um poderoso gerenciador de pacotes, que pode ser usado para
313a4d1a 226construir, instalar, pesquisar, verificar, atualizar e desinstalar
227pacotes individuais de software. Um pacote consiste de um conjunto de
dd85fadc
JR
228arquivos e informações adicionais, incluindo nome, versão e descrição
229do pacote, permissões dos arquivos, etc.
230
231%description -l ru.UTF-8
232RPM - это мощный менеджер пакетов, который может быть использован для
233создания, инсталляции, запросов (query), проверки, обновления и
234удаления программных пакетов. Пакет состоит из файлового архива и
235служебной информации, включающей название, версию, описание и другие
236данные о пакете.
237
238%description -l uk.UTF-8
239RPM - це потужний менеджер пакетів, що може бути використаний для
240створення, інсталяції, запитів (query), перевірки, поновлення та
241видалення програмних пакетів. Пакет складається з файлового архіву та
242службової інформації, що містить назву, версію, опис та іншу
243інформацію про пакет.
7c6dc55f 244
66edd895
JB
245%package base
246Summary: RPM base package - scripts used by rpm packages themselves
dd85fadc 247Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
66edd895 248Group: Base
1d9ca0c1 249Requires: filesystem
66edd895
JB
250Obsoletes: vserver-rpm
251
252%description base
253The RPM base package contains scripts used by rpm packages themselves.
254These include:
255- scripts for adding/removing groups and users needed for rpm
256 packages,
257- banner.sh to display %%banner messages from rpm scriptlets.
258
dd85fadc
JR
259%description base -l pl.UTF-8
260Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
66edd895 261Zawiera on:
dd85fadc
JR
262- skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
263- banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
66edd895 264
69131f1a
JB
265%package lib
266Summary: RPMs library
dd85fadc 267Summary(pl.UTF-8): Biblioteki RPM-a
69131f1a 268Group: Libraries
33be5db0 269Requires: beecrypt >= %{beecrypt_ver}
1d34a9ca 270Requires: db >= %{reqdb_ver}
33be5db0 271%{?with_selinux:Requires: libselinux >= 1.18}
632f1b5c 272%{?with_system_libmagic:Requires: libmagic >= 1.15-2}
69131f1a 273Requires: popt >= %{reqpopt_ver}
33be5db0 274Obsoletes: rpm-libs
69131f1a
JB
275# avoid SEGV caused by mixed db versions
276Conflicts: poldek < 0.18.1-16
33693ef9 277Suggests: lzma
69131f1a
JB
278
279%description lib
280RPMs library.
281
dd85fadc 282%description lib -l pl.UTF-8
69131f1a
JB
283Biblioteki RPM-a.
284
fed73700 285%package devel
3f2d796a 286Summary: Header files for rpm libraries
dd85fadc
JR
287Summary(de.UTF-8): Header-Dateien für rpm Libraries
288Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
289Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
290Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
291Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
292Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
89f92de0 293Group: Development/Libraries
153e5706 294Requires: %{name}-lib = %{version}-%{release}
87ef0d95 295Requires: beecrypt-devel >= %{beecrypt_ver}
fea3cb89 296Requires: bzip2-devel
1d34a9ca 297Requires: db-devel >= %{reqdb_ver}
5c583f90 298Requires: elfutils-devel
632f1b5c 299%{?with_system_libmagic:Requires: libmagic-devel}
10abbd40 300%{?with_selinux:Requires: libselinux-devel}
a998ac11 301Requires: popt-devel >= %{reqpopt_ver}
fea3cb89 302Requires: zlib-devel
cf6faebc 303
304%description devel
3f2d796a
JB
305The RPM packaging system includes C libraries that make it easy to
306manipulate RPM packages and databases. They are intended to ease the
cf6faebc 307creation of graphical package managers and other tools that need
3f2d796a
JB
308intimate knowledge of RPM packages. This package contains header files
309for these libraries.
fed73700 310
dd85fadc
JR
311%description devel -l de.UTF-8
312Der RPM-Packensystem enthält eine C-Library, die macht es einfach
313RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
fed73700 314Vereinfachung des Schaffens grafischer Paket-Manager und anderer
313a4d1a 315Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
316
dd85fadc 317%description devel -l es.UTF-8
313a4d1a 318El sistema de empaquetado RPM incluye una biblioteca C que vuelve
dd85fadc
JR
319fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
320facilitar la creación de administradores gráficos de paquetes y otras
20f89981 321herramientas que necesiten un conocimiento profundo de paquetes RPM.
9e42d68a 322
dd85fadc
JR
323%description devel -l pl.UTF-8
324System RPM zawiera biblioteki C, które ułatwiają manipulowanie
325pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
326graficznych programów zarządzających pakietami oraz innych narzędzi,
327które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
328zawiera pliki nagłówkowe wspomnianych bibliotek.
329
330%description devel -l pt_BR.UTF-8
331O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
332a manipulação de pacotes e bases de dados RPM. Seu objetivo é
333facilitar a criação de gerenciadores gráficos de pacotes e outras
edacdf8f 334ferramentas que precisem de conhecimento profundo de pacotes RPM.
335
dd85fadc
JR
336%description devel -l ru.UTF-8
337Система управления пакетами RPM содержит библиотеку C, которая
338упрощает манипуляцию пакетами RPM и соответствующими базами данных.
339Эта библиотека предназначена для облегчения создания графических
340пакетных менеджеров и других утилит, которым необходимо работать с
341пакетами RPM.
7c6dc55f 342
dd85fadc
JR
343%description devel -l uk.UTF-8
344Система керування пакетами RPM містить бібліотеку C, котра спрощує
345роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
346призначена для полегшення створення графічних пакетних менеджерів та
347інших утиліт, що працюють з пакетами RPM.
7c6dc55f 348
fed73700 349%package static
9e42d68a 350Summary: RPM static libraries
dd85fadc
JR
351Summary(de.UTF-8): RPMs statische Libraries
352Summary(pl.UTF-8): Biblioteki statyczne RPM-a
353Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
354Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
355Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
edacdf8f 356Group: Development/Libraries
153e5706 357Requires: %{name}-devel = %{version}-%{release}
87ef0d95 358Requires: beecrypt-static >= %{beecrypt_ver}
df76dbd9 359Requires: bzip2-static
1d34a9ca 360Requires: db-static >= %{reqdb_ver}
ff03e01a 361Requires: elfutils-static
632f1b5c 362%{?with_system_libmagic:Requires: libmagic-static}
a998ac11 363Requires: popt-static >= %{reqpopt_ver}
df76dbd9 364Requires: zlib-static
edacdf8f 365
366%description static
20f89981 367RPM static libraries.
fed73700 368
dd85fadc 369%description static -l de.UTF-8
20f89981 370RPMs statische Libraries.
9e42d68a 371
dd85fadc 372%description static -l pl.UTF-8
0a7ae9bc 373Biblioteki statyczne RPM-a.
313a4d1a 374
dd85fadc
JR
375%description static -l pt_BR.UTF-8
376Bibliotecas estáticas para desenvolvimento.
edacdf8f 377
dd85fadc
JR
378%description static -l ru.UTF-8
379Система управления пакетами RPM содержит библиотеку C, которая
380упрощает манипуляцию пакетами RPM и соответствующими базами данных.
381Это статическая библиотека RPM.
7c6dc55f 382
dd85fadc
JR
383%description static -l uk.UTF-8
384Система керування пакетами RPM містить бібліотеку C, котра спрощує
385роботу з пакетами RPM та відповідними базами даних. Це статична
386бібліотека RPM.
7c6dc55f 387
fed73700 388%package utils
9e42d68a 389Summary: Additional utilities for managing rpm packages and database
dd85fadc
JR
390Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
391Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
edacdf8f 392Group: Applications/File
153e5706 393Requires: %{name} = %{version}-%{release}
a998ac11 394Requires: popt >= %{reqpopt_ver}
edacdf8f 395
396%description utils
20f89981 397Additional utilities for managing rpm packages and database.
fed73700 398
dd85fadc
JR
399%description utils -l de.UTF-8
400Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
9e42d68a 401
dd85fadc
JR
402%description utils -l pl.UTF-8
403Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
fed73700 404
92b3f576 405%package utils-perl
406Summary: Additional utilities for managing rpm packages and database
dd85fadc
JR
407Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
408Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
92b3f576 409Group: Applications/File
153e5706 410Requires: %{name}-utils = %{version}-%{release}
92b3f576 411Requires: popt >= %{reqpopt_ver}
412
413%description utils-perl
414Additional utilities for managing rpm packages and database.
415
dd85fadc
JR
416%description utils-perl -l de.UTF-8
417Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
92b3f576 418
dd85fadc
JR
419%description utils-perl -l pl.UTF-8
420Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
92b3f576 421
a00926bc
JB
422%package utils-static
423Summary: Static rpm utilities
dd85fadc 424Summary(pl.UTF-8): Statyczne narzędzia rpm
a00926bc 425Group: Applications/System
153e5706 426Requires: %{name} = %{version}-%{release}
a00926bc
JB
427
428%description utils-static
429Static rpm utilities for repairing system in case something with
430shared libraries used by rpm become broken. Currently it contains rpmi
431binary, which can be used to install/upgrade/remove packages without
432using shared libraries (well, in fact with exception of NSS modules).
433
dd85fadc
JR
434%description utils-static -l pl.UTF-8
435Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
436związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
437Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
438uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
439(z wyjątkiem modułów NSS).
a00926bc 440
fed73700 441%package build
e191287c 442Summary: Scripts for building binary RPM packages
dd85fadc
JR
443Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
444Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
445Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
446Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
447Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
e191287c 448Group: Applications/File
8f76a271 449Requires(pre): findutils
b0a177d4 450Requires: %{name}-build-macros >= 1.314
153e5706 451Requires: %{name}-utils = %{version}-%{release}
e191287c 452Requires: /bin/id
453Requires: awk
b6754a7e
PS
454# we need fixed binutils for -feliminate-dwarf2-dups
455Requires: binutils >= 3:2.17.50.0.3-2
cfa7898a 456Requires: bzip2
e950a6d7 457Requires: chrpath >= 0.10-4
b6547e10 458Requires: cpio
e191287c 459Requires: diffutils
195f647c 460Requires: elfutils
583135b4 461Requires: file >= 4.17
e191287c 462Requires: fileutils
463Requires: findutils
120d96b6 464Requires: gcc >= 5:3.4
e191287c 465Requires: glibc-devel
466Requires: grep
467Requires: gzip
e93003df 468Requires: lzma
e191287c 469Requires: make
470Requires: patch
e191287c 471Requires: sed
472Requires: sh-utils
473Requires: tar
474Requires: textutils
ca3648b1 475Provides: rpmbuild(monoautodeps)
37ea389a 476Provides: rpmbuild(noauto) = 3
02d17bf9 477%ifarch %{x8664}
195f647c
JB
478Conflicts: automake < 1:1.7.9-2
479Conflicts: libtool < 2:1.5-13
480%endif
0096c5cd 481
e2025ad1 482%description build
58399c37 483Scripts for building binary RPM packages.
fed73700 484
dd85fadc
JR
485%description build -l de.UTF-8
486Scripts fürs Bauen binärer RPM-Pakete.
9e42d68a 487
dd85fadc
JR
488%description build -l pl.UTF-8
489Skrypty pomocnicze do budowania binarnych RPM-ów.
313a4d1a 490
dd85fadc
JR
491%description build -l pt_BR.UTF-8
492Este pacote contém scripts e programas executáveis que são usados para
cf6faebc 493construir pacotes usando o RPM.
e73478cd 494
dd85fadc
JR
495%description build -l ru.UTF-8
496Различные вспомогательные скрипты и исполняемые программы, которые
497используются для сборки RPM'ов.
7c6dc55f 498
dd85fadc
JR
499%description build -l uk.UTF-8
500Різноманітні допоміжні скрипти та утиліти, які використовуються для
501побудови RPM'ів.
7c6dc55f 502
503%package build-tools
504Summary: Scripts for managing .spec files and building RPM packages
dd85fadc
JR
505Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
506Summary(pl.UTF-8): Skrypty pomocnicze do zarządznia plikami .spec i budowania RPM-ów
507Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
508Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
509Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
7c6dc55f 510Group: Applications/File
153e5706 511Requires: %{name}-build = %{version}-%{release}
7c6dc55f 512# these are optional
513#Requires: cvs
c76eeb55 514Requires: wget
7c6dc55f 515
516%description build-tools
517Scripts for managing .spec files and building RPM packages.
518
dd85fadc
JR
519%description build-tools -l de.UTF-8
520Scripts fürs Bauen RPM-Pakete.
7c6dc55f 521
dd85fadc
JR
522%description build-tools -l pl.UTF-8
523Skrypty pomocnicze do zarządzania plikami .spec i do budowania RPM-ów.
7c6dc55f 524
dd85fadc
JR
525%description build-tools -l pt_BR.UTF-8
526Este pacote contém scripts e programas executáveis que são usados para
7c6dc55f 527construir pacotes usando o RPM.
528
dd85fadc
JR
529%description build-tools -l ru.UTF-8
530Различные вспомогательные скрипты и исполняемые программы, которые
531используются для сборки RPM'ов.
7c6dc55f 532
dd85fadc
JR
533%description build-tools -l uk.UTF-8
534Різноманітні допоміжні скрипти та утиліти, які використовуються для
535побудови RPM'ів.
7c6dc55f 536
69131f1a
JB
537%package perlprov
538Summary: Additional utilities for checking perl provides/requires in rpm packages
dd85fadc
JR
539Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
540Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów perla w pakietach rpm
69131f1a
JB
541Group: Applications/File
542Requires: %{name} = %{version}-%{release}
543Requires: perl-devel
544Requires: perl-modules
545
546%description perlprov
547Additional utilities for checking perl provides/requires in rpm
548packages.
549
dd85fadc
JR
550%description perlprov -l de.UTF-8
551Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
69131f1a 552
dd85fadc
JR
553%description perlprov -l pl.UTF-8
554Dodatkowe narzędzia do sprawdzenia zależności skryptów perla w
69131f1a
JB
555pakietach rpm.
556
557%package pythonprov
558Summary: Python macros, which simplifies creation of rpm packages with Python software
dd85fadc 559Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów rpm z programami napisanymi w Pythonie
69131f1a
JB
560Group: Applications/File
561Requires: %{name} = %{version}-%{release}
cd800b3c 562Requires: python
243c6264 563Requires: python-modules
69131f1a
JB
564
565%description pythonprov
566Python macros, which simplifies creation of rpm packages with Python
567software.
568
dd85fadc
JR
569%description pythonprov -l pl.UTF-8
570Makra ułatwiające tworzenie pakietów rpm z programami napisanymi w
69131f1a
JB
571Pythonie.
572
573%package php-pearprov
574Summary: Additional utilities for managing rpm packages and database
dd85fadc 575Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w rpm
69131f1a
JB
576Group: Applications/File
577Requires: %{name} = %{version}-%{release}
632f1b5c 578Requires: sed >= 4.0
69131f1a
JB
579
580%description php-pearprov
581Additional utilities for checking php pear provides/requires in rpm
582packages.
583
dd85fadc
JR
584%description php-pearprov -l pl.UTF-8
585Dodatkowe narzędzia do sprawdzenia zależności skryptów php pear w
69131f1a
JB
586pakietach rpm.
587
588%package -n python-rpm
589Summary: Python interface to RPM library
dd85fadc
JR
590Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
591Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
69131f1a
JB
592Group: Development/Languages/Python
593Requires: %{name} = %{version}-%{release}
594%pyrequires_eq python
595Obsoletes: rpm-python
596
597%description -n python-rpm
598The rpm-python package contains a module which permits applications
599written in the Python programming language to use the interface
600supplied by RPM (RPM Package Manager) libraries.
601
602This package should be installed if you want to develop Python
603programs that will manipulate RPM packages and databases.
604
dd85fadc
JR
605%description -n python-rpm -l pl.UTF-8
606Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
607Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
69131f1a 608
dd85fadc
JR
609Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
610Pythonie programy manipulujące pakietami i bazami danych rpm.
69131f1a 611
dd85fadc
JR
612%description -n python-rpm -l pt_BR.UTF-8
613O pacote rpm-python contém um módulo que permite que aplicações
69131f1a
JB
614escritas em Python utilizem a interface fornecida pelas bibliotecas
615RPM (RPM Package Manager).
616
dd85fadc 617Esse pacote deve ser instalado se você quiser desenvolver programas em
69131f1a
JB
618Python para manipular pacotes e bancos de dados RPM.
619
d6dddf74
JB
620%package apidocs
621Summary: RPM API documentation and guides
dd85fadc 622Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
10abbd40 623Group: Documentation
b2ae427d 624
625%description apidocs
e93003df
ER
626Documentation for RPM API and guides in HTML format generated from rpm
627sources by doxygen.
31f4a5bc 628
dd85fadc 629%description apidocs -l pl.UTF-8
e93003df 630Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
dd85fadc 631źrodeł RPM-a przez doxygen.
b2ae427d 632
e2025ad1 633%prep
2065c1cd 634%setup -q
01d7a578 635%patch0 -p1
db88c593 636%patch1 -p1
243e72f3 637%patch2 -p1
01d7a578 638%patch3 -p1
e2025ad1 639%patch4 -p1
c1768ce2 640%patch5 -p1
f14234e4 641%patch6 -p1
c1768ce2 642%patch7 -p1
fefe9d30
JB
643%patch8 -p1
644%patch9 -p1
645%patch10 -p1
0dfc6df6 646%patch11 -p1
c7def65c 647%patch12 -p1
7a9d72ce 648%patch13 -p1
9a8d811d 649%patch14 -p1
f14234e4 650%patch15 -p1
fefe9d30
JB
651%patch16 -p1
652%patch17 -p1
f14234e4 653%patch18 -p1
feb1f12e 654sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
1fcb29e9 655#cp -f platform.in macros.pld.in # what for?
8e989934 656echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
657echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
c2673e18 658echo '# obsoleted file' > macros.python
ac090b0f
ER
659echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
660echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
120d96b6 661echo '%%define __mono_provides /usr/lib/rpm/mono-find-provides' > macros.mono
662echo '%%define __mono_requires /usr/lib/rpm/mono-find-requires' >> macros.mono
80b8a1f9
JB
663install %{SOURCE5} scripts/find-lang.sh
664install %{SOURCE9} scripts/php.prov.in
665install %{SOURCE10} scripts/php.req.in
666install %{SOURCE12} scripts/perl.prov
8b053168 667%patch19 -p1
f14234e4
JB
668%patch20 -p1
669%patch21 -p1
c7def65c 670%patch22 -p1
671%patch23 -p1
9a8d811d 672%patch24 -p1
d57544b2 673%patch25 -p1
fefe9d30 674%patch26 -p1
24123ddd 675%patch27 -p1
8432f0c5 676%patch28 -p1
c7def65c 677%patch29 -p1
678%patch30 -p1
679%patch31 -p1
374b40ea
AM
680%patch32 -p1
681%patch33 -p1
f14234e4
JB
682%patch34 -p1
683%patch35 -p0
5f7fdcd9 684%patch36 -p1
ecbe8a50 685%patch37 -p1
75884c95 686%patch38 -p1
f14234e4 687%patch39 -p1
7c9ace12 688%patch40 -p0
65f4f2e2 689%patch41 -p1
bb98669b 690%patch42 -p1
33be5db0 691%patch43 -p1
374b40ea 692%{!?with_neon:%patch44 -p1}
33be5db0 693%patch45 -p1
5790b583 694%patch46 -p1
94987477 695%patch48 -p1
5faf69a1 696%patch49 -p1
b02ce76b 697%patch50 -p1
bc8eaf36 698%patch51 -p1
a05b34dc 699#%patch52 -p1
3138b4c9 700%patch53 -p1
701%patch54 -p1
d6080f70
ER
702%patch55 -p1
703%patch56 -p1
2748102f 704%patch57 -p1
a245b6ce 705%patch58 -p1
59a562c2 706%patch59 -p1
847ecfb1 707%patch60 -p0
e54ac8cf 708%patch61 -p0
079a4c43 709%patch62 -p1
bcf1e12e 710%patch63 -p0
50281fa4 711%patch64 -p1
d36cb682 712
bcdcbb03 713cd scripts
37550797 714mv -f perl.req perl.req.in
874f4c9a
MM
715mv -f perl.prov perl.prov.in
716cd ..
633d1e9e 717
4adb7d05
JB
718mv -f po/{no,nb}.po
719mv -f po/{sr,sr@Latn}.po
720
33be5db0 721rm -rf sqlite zlib db db3 popt rpmdb/db.h
633d1e9e 722
cd86db2e 723# generate Group translations to *.po
80b8a1f9 724awk -f %{SOURCE6} %{SOURCE1}
fefe9d30
JB
725
726# update macros paths
727for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
728 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
729 mv -f ${f}.tmp $f
730done
0d76071c 731
87ef0d95 732%build
a63662c4 733%if %{with system_libmagic}
734rm -rf file
735%else
87ef0d95 736cd file
ea816ea6 737%{__libtoolize}
ceaaacee
JB
738%{__aclocal}
739%{__autoheader}
0b35155a 740%{__autoconf}
edacdf8f 741%{__automake}
72be9ffe 742cd ..
a63662c4 743%endif
a998ac11 744
ea816ea6 745%{__libtoolize}
c222dedc 746%{__gettextize}
ceaaacee 747%{__aclocal}
4cd84746 748%{__autoheader}
7a9d72ce 749%{__autoconf}
7a9d72ce 750%{__automake}
7a9d72ce 751
cd86db2e 752# config.guess doesn't handle athlon, so we have to change it by hand.
753# rpm checks for CPU type at runtime, but it looks better
7c9ace12 754sed -i -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' -e 's|@host_cpu@|%{_target_cpu}|' macros.in
7a9d72ce 755
5fa37b2a
AM
756CPPFLAGS="-Dglob=rpm_glob -Dglobfree=rpm_globfree"; export CPPFLAGS
757
89427592 758# pass CC and CXX too in case of building with some older configure macro
01d7a578 759# disable perl-RPM2 build, we have it in separate spec
624f96ff 760%configure \
f9ac32aa
AM
761 CC="%{__newcc}" \
762 CXX="%{__newcxx}" \
763 CPP="%{__newcpp}" \
01d7a578 764 WITH_PERL_VERSION=no \
33be5db0 765 %{?with_autoreqdep:--enable-adding-packages-names-in-autogenerated-dependancies} \
cd86db2e 766 --enable-shared \
874f4c9a 767 --enable-static \
2e6b4088 768 %{!?with_apidocs:--without-apidocs} \
849b65cd 769 %{?with_python:--with-python=2.5} \
a6e56ce4 770 %{!?with_python:--without-python} \
c6abc173 771 %{!?with_selinux:--without-selinux} \
874f4c9a 772 --without-db
cf6faebc 773
4adb7d05 774# file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
874f4c9a 775%{__make} \
f9ac32aa
AM
776 CC="%{__cc}" \
777 CXX="%{__cxx}" \
778 CPP="%{__cpp}" \
e8d70bea 779 pylibdir=%{py_libdir} \
4adb7d05
JB
780 myLDFLAGS="%{rpmldflags}" \
781 file_LDFLAGS= \
01d7a578
JB
782 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt" \
783 staticLDFLAGS=%{?with_static:-all-static}
33be5db0 784
796d4a88 785%{?with_apidocs:%{__make} doxygen}
e05585d0 786
b064b8e6 787%install
ff7bc1e6 788rm -rf $RPM_BUILD_ROOT
66edd895 789install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm,/var/lib/banner}
76214164 790
a5e7fb84 791%{__make} install \
9805fd6d 792 DESTDIR=$RPM_BUILD_ROOT \
c34a847a 793 staticLDFLAGS=%{?with_static:-all-static} \
e8d70bea 794 pylibdir=%{py_libdir} \
cf6faebc 795 pkgbindir="%{_bindir}"
718426e1 796
caf453d4
AM
797echo "%{_target_cpu}-%{_target_vendor}-linux-gnu" > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
798
137e2891 799%ifarch %{ppc}
a05b34dc 800#sed -e '/_target_platform/s/[%]{_target_cpu}/ppc/' \
801# -i $RPM_BUILD_ROOT%{_rpmlibdir}/ppc74[05]0-linux/macros
137e2891 802%endif
803
02919de5
JK
804rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
805rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
806rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
807
d755a548
JK
808install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
809install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
810install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
5790b583 811install macros.mono $RPM_BUILD_ROOT%{_rpmlibdir}/macros.mono
7ba63f26 812
61f7e1b3 813install %{SOURCE1} doc/manual/groups
d755a548 814install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
80b8a1f9
JB
815install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
816install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
817install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
d0370fe5 818install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
d755a548
JK
819install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
820install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
d0370fe5 821install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 822
7c6dc55f 823install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
824install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
825install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
a4b7ef27 826install %{SOURCE33} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 827
fbc0ff35
AM
828install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
829
e663e5ff
JB
830install rpmio/ugid.h $RPM_BUILD_ROOT%{_includedir}/rpm
831
d23a99cc
AM
832# obsolete but still installed
833rm $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
720f06f0 834
e663e5ff
JB
835cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
836# customized rpm macros - global for host
837#
40c1ea77
AF
838#%%_install_langs pl_PL:en_US
839%%distribution PLD
541eacd3
JB
840#
841# remove or replace with file_contexts path if you want to use custom
842# SELinux file contexts policy instead of one stored in packages payload
31858397
JB
843%%_install_file_context_path %%{nil}
844%%_verify_file_context_path %%{nil}
627d5615
ER
845
846# If non-zero, all erasures will be automagically repackaged.
847#%%_repackage_all_erasures 1
09bb810c
AF
848EOF
849
3d9806c2 850cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
99a3012c 851# global list of files (regexps) which don't generate Provides
3d9806c2
JB
852EOF
853cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
99a3012c 854# global list of script capabilities (regexps) not to be used in Provides
3d9806c2
JB
855EOF
856cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
99a3012c 857# global list of files (regexps) which don't generate Requires
e93003df
ER
858^%{_examplesdir}/
859^%{_docdir}/
3d9806c2
JB
860EOF
861cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
99a3012c 862# global list of script capabilities (regexps) not to be used in Requires
3d9806c2
JB
863EOF
864cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
99a3012c 865# global list of capabilities (SONAME, perl(module), php(module) regexps)
3d9806c2 866# which don't generate dependencies on package NAMES
195f647c 867# -- OpenGL implementation
f694a4d9
JB
868^libGL.so.1
869^libGLU.so.1
195f647c
JB
870^libOSMesa.so
871# -- Glide
f694a4d9 872^libglide3.so.3
195f647c 873# -- mozilla
f694a4d9
JB
874^libgtkmozembed.so
875^libgtksuperwin.so
876^libxpcom.so
195f647c
JB
877# -- X11 implementation
878^libFS.so
879^libI810XvMC.so
880^libICE.so
881^libSM.so
882^libX11.so
883^libXRes.so
884^libXTrap.so
885^libXaw.so
8c3b25a7 886^libXcomposite.so
195f647c 887^libXcursor.so
8c3b25a7
JB
888^libXdamage.so
889^libXdmcp.so
890^libXevie.so
195f647c 891^libXext.so
8c3b25a7 892^libXfixes.so
195f647c
JB
893^libXfont.so
894^libXfontcache.so
895^libXft.so
896^libXi.so
897^libXinerama.so
898^libXmu.so
899^libXmuu.so
900^libXp.so
901^libXpm.so
902^libXrandr.so
903^libXrender.so
904^libXss.so
905^libXt.so
906^libXtst.so
907^libXv.so
908^libXvMC.so
909^libXxf86dga.so
910^libXxf86misc.so
911^libXxf86rush.so
912^libXxf86vm.so
37ea389a
JB
913^libdps.so
914^libdpstk.so
195f647c 915^libfontenc.so
37ea389a 916^libpsres.so
195f647c
JB
917^libxkbfile.so
918^libxkbui.so
eec3b202
JB
919# -- fam / gamin
920^libfam.so.0
3d9806c2 921EOF
a4852742
JB
922cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
923# global list of file masks not to be compressed in DOCDIR
924EOF
3d9806c2 925
f3fd387a 926# for rpm -e|-U --repackage
a11e0e27
AM
927install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
928touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
f3fd387a 929
c2673e18 930# move libs to /lib
a11e0e27 931for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
50dc9ac0
JK
932 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
933 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
c2673e18
AF
934done
935
fca52ae1 936# remove arch dependant macros which have no use on noarch
627d5615 937%{__sed} -i -e '
fca52ae1
ER
938/{__spec_install_post_strip}/d
939/{__spec_install_post_chrpath}/d
940/{__spec_install_post_compress_modules}/d
941' $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros
942
6f18cdb7
AF
943%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
944%py_comp $RPM_BUILD_ROOT%{py_sitedir}
945
01d7a578
JB
946rm -f $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
947
948# (currently) not used or supported in PLD
949rm -f $RPM_BUILD_ROOT%{_rpmlibdir}/{Specfile.pm,cpanflute,cpanflute2,find-provides,find-requires,freshen.sh,http.req,magic.prov,magic.req,perldeps.pl,sql.prov,sql.req,tcl.req}
950# wrong location, not used anyway
951rm -f $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
952
90b03dd6 953%find_lang %{name}
cf6faebc 954
c2673e18 955rm -rf manual
a998ac11
AF
956cp -a doc/manual manual
957rm -f manual/Makefile*
874f4c9a 958
13eb5ebf 959%clean
d7df46b8 960rm -rf $RPM_BUILD_ROOT
76214164 961
ceaaacee
JB
962%post lib -p /sbin/ldconfig
963%postun lib -p /sbin/ldconfig
76214164 964
8f76a271 965%pre build
d755a548 966find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 967
3684d90f
JB
968%files -f %{name}.lang
969%defattr(644,root,root,755)
b486a522 970%doc RPM-PGP-KEY CHANGES manual/*
3684d90f 971
7a9d72ce 972%attr(755,root,root) /bin/rpm
35a6f2f9
JB
973#%attr(755,root,root) %{_bindir}/rpmdb
974#%attr(755,root,root) %{_bindir}/rpmquery
975#%attr(755,root,root) %{_bindir}/rpmsign
976#%attr(755,root,root) %{_bindir}/rpmverify
e73478cd 977
978%dir %{_sysconfdir}/rpm
66edd895 979%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
caf453d4
AM
980# these are ok to be replaced
981%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo
982%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
983
e73478cd 984
09bb810c 985%{_mandir}/man8/rpm.8*
feb1f12e 986%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 987%lang(ja) %{_mandir}/ja/man8/rpm.8*
1162bdc1 988%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 989%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 990%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 991%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 992
e2025ad1 993%dir /var/lib/rpm
f3fd387a 994%dir %attr(700,root,root) /var/spool/repackage
a11e0e27
AM
995%dir /var/lock/rpm
996/var/lock/rpm/transaction
4acac5de 997
4acac5de 998#%attr(755,root,root) %{_rpmlibdir}/rpmd
4adb7d05 999#%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
4acac5de
JB
1000#%attr(755,root,root) %{_rpmlibdir}/rpmk
1001#%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
e2025ad1 1002
d755a548
JK
1003%{_rpmlibdir}/rpmpopt*
1004%{_rpmlibdir}/macros
3684d90f 1005
66edd895
JB
1006%files base
1007%defattr(644,root,root,755)
1008%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1009%dir %{_rpmlibdir}
1010%attr(755,root,root) %{_bindir}/banner.sh
1011%attr(755,root,root) %{_rpmlibdir}/user_group.sh
1012%dir /var/lib/banner
1013
874f4c9a
MM
1014%files lib
1015%defattr(644,root,root,755)
50dc9ac0 1016%attr(755,root,root) /%{_lib}/librpm*-*.so
874f4c9a
MM
1017%attr(755,root,root) %{_libdir}/librpm*-*.so
1018
69131f1a
JB
1019%files devel
1020%defattr(644,root,root,755)
1021%{_includedir}/rpm
1022%{_libdir}/librpm*.la
1023%attr(755,root,root) %{_libdir}/librpm.so
1024%attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1025%attr(755,root,root) %{_libdir}/librpmio.so
1026%attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1027%attr(755,root,root) %{_libdir}/librpmdb.so
1028%attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1029%attr(755,root,root) %{_libdir}/librpmbuild.so
1030
1031%files static
1032%defattr(644,root,root,755)
1033%{_libdir}/librpm*.a
1034
1035%files utils
1036%defattr(644,root,root,755)
1037%attr(755,root,root) %{_bindir}/debugedit
1038%attr(755,root,root) %{_bindir}/rpm2cpio
1039%attr(755,root,root) %{_bindir}/rpmcache
1040%attr(755,root,root) %{_bindir}/rpmdeps
374b40ea 1041%attr(755,root,root) %{_bindir}/rpmdigest
69131f1a 1042%attr(755,root,root) %{_bindir}/rpmgraph
a63662c4 1043%{!?with_system_libmagic:%attr(755,root,root) %{_bindir}/rpmfile}
69131f1a
JB
1044%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1045%attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
1046%attr(755,root,root) %{_rpmlibdir}/tgpg
1047%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1048%{_mandir}/man8/rpm2cpio.8*
1049%{_mandir}/man8/rpmdeps.8*
1050%{_mandir}/man8/rpmcache.8*
1051%{_mandir}/man8/rpmgraph.8*
1052%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1053%lang(ja) %{_mandir}/ja/man8/rpmcache.8*
1054%lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
1055%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1056%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1057%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1058%lang(pl) %{_mandir}/pl/man8/rpmcache.8*
1059%lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
1060%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1061
1062%files utils-perl
1063%defattr(644,root,root,755)
1064%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
69131f1a
JB
1065
1066%if %{with static}
1067%files utils-static
1068%defattr(644,root,root,755)
1069%attr(755,root,root) %{_bindir}/rpm[ieu]
1070%attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1071%endif
1072
3684d90f 1073%files build
a45ae6d8 1074%defattr(644,root,root,755)
66edd895 1075%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
1076%attr(755,root,root) %{_rpmlibdir}/brp-*
1077%attr(755,root,root) %{_rpmlibdir}/check-files
374b40ea 1078# %attr(755,root,root) %{_rpmlibdir}/check-prereqs
d755a548 1079%attr(755,root,root) %{_rpmlibdir}/compress-doc
01d7a578 1080%attr(755,root,root) %{_rpmlibdir}/config.*
d755a548 1081%attr(755,root,root) %{_rpmlibdir}/cross-build
d755a548
JK
1082%attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1083%attr(755,root,root) %{_rpmlibdir}/find-lang.sh
d755a548
JK
1084%attr(755,root,root) %{_rpmlibdir}/getpo.sh
1085%attr(755,root,root) %{_rpmlibdir}/install-build-tree
01d7a578 1086%attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
d755a548 1087%attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
01d7a578
JB
1088%attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1089# needs jar (any jdk), jcf-dump (gcc-java) to work
1090%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1091%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1092# needs hacked pkg-config to return anything
1093%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
d755a548
JK
1094%attr(755,root,root) %{_rpmlibdir}/rpmb
1095%attr(755,root,root) %{_rpmlibdir}/rpmt
1096%{_rpmlibdir}/noarch-*
e9fe9fc5 1097%ifarch %{ix86}
d755a548 1098%{_rpmlibdir}/i?86*
e9fe9fc5 1099%{_rpmlibdir}/pentium*
d755a548
JK
1100%{_rpmlibdir}/athlon*
1101%endif
ad628734
JB
1102%ifarch alpha
1103%{_rpmlibdir}/alpha*
1104%endif
ad628734
JB
1105%ifarch ia64
1106%{_rpmlibdir}/ia64*
8f76a271 1107%endif
410dd742 1108%ifarch mips mipsel mips64 mips64el
1109%{_rpmlibdir}/mips*
1110%endif
80e9f34d 1111%ifarch %{ppc}
410dd742 1112%{_rpmlibdir}/ppc*
1113%endif
1114%ifarch sparc sparc64
1115%{_rpmlibdir}/sparc*
1116%endif
9f517079 1117%ifarch %{x8664}
cedf1bfa
PS
1118%{_rpmlibdir}/x86_64*
1119%endif
410dd742 1120# must be here for "Requires: rpm-*prov" to work
5790b583 1121%{_rpmlibdir}/macros.mono
410dd742 1122%{_rpmlibdir}/macros.perl
1123%{_rpmlibdir}/macros.php
1124# not used yet ... these six depend on perl
1125#%attr(755,root,root) %{_rpmlibdir}/http.req
591cc005
JB
1126#%attr(755,root,root) %{_rpmlibdir}/magic.prov
1127#%attr(755,root,root) %{_rpmlibdir}/magic.req
1128#%{_rpmlibdir}/sql.prov
1129#%{_rpmlibdir}/sql.req
1130#%{_rpmlibdir}/tcl.req
d755a548 1131%{_rpmlibdir}/trpm
7a9d72ce 1132
874f4c9a
MM
1133%attr(755,root,root) %{_bindir}/javadeps
1134%attr(755,root,root) %{_bindir}/gendiff
1135%attr(755,root,root) %{_bindir}/rpmbuild
1136
a00926bc 1137%{_mandir}/man1/gendiff.1*
874f4c9a 1138%{_mandir}/man8/rpmbuild.8*
fefe9d30
JB
1139%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1140%lang(pl) %{_mandir}/pl/man1/gendiff.1*
1141%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
f3fe287f 1142
69131f1a 1143%files build-tools
a00926bc 1144%defattr(644,root,root,755)
69131f1a
JB
1145%attr(755,root,root) %{_bindir}/builder
1146%attr(755,root,root) %{_bindir}/adapter.awk
1147%attr(755,root,root) %{_bindir}/pldnotify.awk
a00926bc 1148
89334051
AF
1149%files perlprov
1150%defattr(644,root,root,755)
d755a548
JK
1151%attr(755,root,root) %{_rpmlibdir}/perl.*
1152#%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1153#%attr(755,root,root) %{_rpmlibdir}/find-perl-*
02919de5
JK
1154#%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1155#%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1156#%attr(755,root,root) %{_rpmlibdir}/find-req.pl
374b40ea 1157#%attr(755,root,root) %{_rpmlibdir}/get_magic.pl
9805fd6d 1158
80d3b868 1159%files pythonprov
d8fcb9b0 1160%defattr(644,root,root,755)
d755a548 1161%{_rpmlibdir}/macros.python
25d296e1 1162%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
09bb810c 1163
d36cb682
PG
1164%files php-pearprov
1165%defattr(644,root,root,755)
d755a548
JK
1166%attr(755,root,root) %{_rpmlibdir}/php*
1167%attr(755,root,root) %{_rpmlibdir}/find-php*
d36cb682 1168
50dc9ac0 1169%if %{with python}
cf6faebc 1170%files -n python-rpm
42a0025c 1171%defattr(644,root,root,755)
b33910fe 1172%dir %{py_sitedir}/rpm
6f18cdb7 1173%attr(755,root,root) %{py_sitedir}/rpm/*.so
8c99b39a 1174%{py_sitedir}/rpm/*.py[co]
50dc9ac0 1175%endif
874f4c9a 1176
b2ae427d 1177%if %{with apidocs}
1178%files apidocs
1179%defattr(644,root,root,755)
1180%doc apidocs
1181%endif
This page took 0.702558 seconds and 4 git commands to generate.