]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- forced -fPIE/-pie needs gcc 3.4
[packages/rpm.git] / rpm.spec
CommitLineData
52c10eff 1#
2# TODO:
644d8958
JB
3# - python(abi) cap is not provided automatically because /usr/lib*/libpython2*.so.*
4# matches ELF first
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
0dc47449 18%bcond_without suggest_tags # build without Suggest tag (bootstrapping)
33be5db0 19%bcond_with neon # build with HTTP/WebDAV support (neon library)
89427592
JB
20# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
21# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
22# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
54bfdf99 23
003a039e 24# versions of required libraries
644d8958
JB
25%define reqdb_ver 4.5.20
26%define reqpopt_ver 1.10.8
33be5db0 27%define beecrypt_ver 2:4.1.2-4
10abbd40 28%define sover 4.4
e5f02e49 29Summary: RPM Package Manager
4ea2ed33
ER
30Summary(de.UTF-8): RPM Packet-Manager
31Summary(es.UTF-8): Gestor de paquetes RPM
32Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
33Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
34Summary(ru.UTF-8): Менеджер пакетов от RPM
35Summary(uk.UTF-8): Менеджер пакетів від RPM
76214164 36Name: rpm
4617e0e8 37Version: 4.4.9
80253deb 38Release: 1
9c5bc9ad 39License: GPL
76214164 40Group: Base
955f2725 41Source0: http://rpm5.org/files/rpm/rpm-4.4/%{name}-%{version}.tar.gz
4617e0e8 42# Source0-md5: 210b768006e7d88dd8a3bcd498ea27f6
ff7bc1e6 43Source1: %{name}.groups
c2673e18 44Source2: %{name}.platform
ff7bc1e6 45Source3: %{name}-install-tree
80b8a1f9
JB
46Source4: %{name}-find-spec-bcond
47Source5: %{name}-find-lang
48Source6: %{name}-groups-po.awk
49Source7: %{name}-compress-doc
50Source8: %{name}-check-files
51Source9: %{name}-php-provides
52Source10: %{name}-php-requires
fbc0ff35 53Source11: %{name}.sysinfo
80b8a1f9 54Source12: perl.prov
d0370fe5 55Source13: %{name}-user_group.sh
56Source14: %{name}.sysconfig
1f625675
JB
57Source15: %{name}-macros.java
58Source16: %{name}-java-requires
7c6dc55f 59Source30: builder
60Source31: adapter.awk
61Source32: pldnotify.awk
a4b7ef27 62# http://svn.pld-linux.org/banner.sh/
63Source33: banner.sh
f14234e4 64Patch0: %{name}-pl.po.patch
b174986a 65Patch1: %{name}-rpmrc.patch
3465efba 66Patch2: %{name}-arch.patch
b174986a 67Patch3: %{name}-rpmpopt.patch
3465efba 68Patch4: %{name}-perl-macros.patch
c1768ce2 69Patch5: %{name}-perl-req-perlfile.patch
f14234e4
JB
70Patch6: %{name}-noexpand.patch
71Patch7: %{name}-scripts-closefds.patch
72Patch8: %{name}-python-macros.patch
73Patch9: %{name}-gettext-in-header.patch
74Patch10: %{name}-compress-doc.patch
ce32d233 75Patch11: %{name}-Nmalloc.patch
f14234e4
JB
76Patch12: %{name}-system_libs.patch
77Patch13: %{name}-bb-and-short-circuit.patch
78Patch14: %{name}-etc_dir.patch
79Patch15: %{name}-system_libs-more.patch
80Patch16: %{name}-php-deps.patch
81Patch17: %{name}-ldconfig-always.patch
82Patch18: %{name}-perl_req.patch
8b053168 83Patch19: %{name}-link.patch
f14234e4
JB
84Patch20: %{name}-magic-usesystem.patch
85Patch21: %{name}-dontneedutils.patch
86Patch22: %{name}-provides-dont-obsolete.patch
644d8958 87Patch23: %{name}-pkgconfigdeps.patch
f14234e4 88Patch24: %{name}-po.patch
496e35d1 89Patch25: %{name}-rpm2cpio-payload.patch
f14234e4
JB
90Patch26: %{name}-notsc.patch
91Patch27: %{name}-hack-norpmlibdep.patch
92Patch28: %{name}-makefile-no_myLDADD_deps.patch
82687d05 93
f14234e4
JB
94Patch31: %{name}-missing-prototypes.patch
95Patch32: %{name}-pld-autodep.patch
374b40ea 96Patch33: %{name}-arch-x86_64.patch
f14234e4
JB
97Patch34: %{name}-epoch0.patch
98Patch35: %{name}-perl_req-INC_dirs.patch
99Patch36: %{name}-debuginfo.patch
100Patch37: %{name}-doxygen_hack.patch
82687d05 101
65f4f2e2 102Patch41: %{name}-reduce-stack-usage.patch
bb98669b 103Patch42: %{name}-old-fileconflicts-behaviour.patch
644d8958 104
33be5db0
JB
105Patch44: %{name}-no-neon.patch
106Patch45: %{name}-no-sqlite.patch
5790b583 107Patch46: %{name}-mono.patch
8482995c 108Patch47: %{name}-javadeps.patch
fbc0ff35 109
5faf69a1 110Patch49: %{name}-p4.patch
b02ce76b 111Patch50: %{name}-macros.patch
bc8eaf36 112Patch51: %{name}-cleanlibdirs.patch
80e9f34d 113Patch52: %{name}-morearchs.patch
644d8958 114
d6080f70 115Patch55: %{name}-truncate-cvslog.patch
644d8958 116
2748102f 117Patch57: %{name}-as_needed-fix.patch
a245b6ce 118Patch58: %{name}-repackage-wo-lzma.patch
59a562c2 119Patch59: %{name}-libtool-deps.patch
99ad19f2 120Patch60: %{name}-obsolete-rpmrc.patch
7ffa7946 121Patch61: %{name}-sparc64.patch
955f2725 122URL: http://rpm5.org/
b60c74c3 123BuildRequires: autoconf >= 2.57
644d8958 124BuildRequires: automake >= 1.4
87ef0d95 125BuildRequires: beecrypt-devel >= %{beecrypt_ver}
33be5db0 126BuildRequires: bzip2-devel >= 1.0.2-17
1d34a9ca 127BuildRequires: db-devel >= %{reqdb_ver}
33be5db0 128BuildRequires: elfutils-devel >= 0.108
edef21f2
JB
129%ifnarch sparc64
130# -fPIE/-pie
131BuildRequires: gcc >= 5:3.4
132%endif
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 174# ABI changes in rpm, new poldek needed
1da2e983 175Conflicts: poldek < 0.20.1-0.20070108.1.4
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
4ea2ed33 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
4ea2ed33 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
0dc47449 277%{?with_suggest_tags:Suggests: 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
4ea2ed33
ER
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
4ea2ed33
ER
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
8482995c 389Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
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
8482995c 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
8482995c 406Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
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
8482995c 414Additional utilities for managing RPM packages and database.
92b3f576 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
4ea2ed33 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
4ea2ed33
ER
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
4ea2ed33
ER
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
8482995c
JB
537%package javaprov
538Summary: Additional utilities for checking Java provides/requires in RPM packages
539Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
540Group: Applications/File
541Requires: %{name} = %{version}-%{release}
542Requires: file
543Requires: findutils >= 1:4.2.26
544Requires: mktemp
545Requires: unzip
546
547%description javaprov
548Additional utilities for checking Java provides/requires in RPM
549packages.
550
551%description javaprov -l pl.UTF-8
552Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
553RPM.
554
69131f1a 555%package perlprov
8482995c 556Summary: Additional utilities for checking Perl provides/requires in RPM packages
4ea2ed33 557Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
8482995c 558Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
69131f1a
JB
559Group: Applications/File
560Requires: %{name} = %{version}-%{release}
561Requires: perl-devel
562Requires: perl-modules
563
564%description perlprov
8482995c 565Additional utilities for checking Perl provides/requires in RPM
69131f1a
JB
566packages.
567
dd85fadc
JR
568%description perlprov -l de.UTF-8
569Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
69131f1a 570
dd85fadc 571%description perlprov -l pl.UTF-8
8482995c
JB
572Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
573pakietach RPM.
69131f1a
JB
574
575%package pythonprov
8482995c
JB
576Summary: Python macros, which simplifies creation of RPM packages with Python software
577Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
69131f1a
JB
578Group: Applications/File
579Requires: %{name} = %{version}-%{release}
cd800b3c 580Requires: python
243c6264 581Requires: python-modules
69131f1a
JB
582
583%description pythonprov
8482995c 584Python macros, which simplifies creation of RPM packages with Python
69131f1a
JB
585software.
586
dd85fadc 587%description pythonprov -l pl.UTF-8
8482995c 588Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
69131f1a
JB
589Pythonie.
590
591%package php-pearprov
8482995c
JB
592Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
593Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
69131f1a
JB
594Group: Applications/File
595Requires: %{name} = %{version}-%{release}
632f1b5c 596Requires: sed >= 4.0
69131f1a
JB
597
598%description php-pearprov
8482995c 599Additional utilities for checking PHP PEAR provides/requires in RPM
69131f1a
JB
600packages.
601
dd85fadc 602%description php-pearprov -l pl.UTF-8
8482995c
JB
603Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
604pakietach RPM.
69131f1a
JB
605
606%package -n python-rpm
607Summary: Python interface to RPM library
4ea2ed33
ER
608Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
609Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
69131f1a
JB
610Group: Development/Languages/Python
611Requires: %{name} = %{version}-%{release}
612%pyrequires_eq python
613Obsoletes: rpm-python
614
615%description -n python-rpm
616The rpm-python package contains a module which permits applications
617written in the Python programming language to use the interface
618supplied by RPM (RPM Package Manager) libraries.
619
620This package should be installed if you want to develop Python
621programs that will manipulate RPM packages and databases.
622
dd85fadc
JR
623%description -n python-rpm -l pl.UTF-8
624Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
625Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
69131f1a 626
dd85fadc
JR
627Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
628Pythonie programy manipulujące pakietami i bazami danych rpm.
69131f1a 629
dd85fadc
JR
630%description -n python-rpm -l pt_BR.UTF-8
631O pacote rpm-python contém um módulo que permite que aplicações
69131f1a
JB
632escritas em Python utilizem a interface fornecida pelas bibliotecas
633RPM (RPM Package Manager).
634
dd85fadc 635Esse pacote deve ser instalado se você quiser desenvolver programas em
69131f1a
JB
636Python para manipular pacotes e bancos de dados RPM.
637
d6dddf74
JB
638%package apidocs
639Summary: RPM API documentation and guides
4ea2ed33 640Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
10abbd40 641Group: Documentation
b2ae427d 642
643%description apidocs
e93003df
ER
644Documentation for RPM API and guides in HTML format generated from rpm
645sources by doxygen.
31f4a5bc 646
dd85fadc 647%description apidocs -l pl.UTF-8
e93003df 648Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
dd85fadc 649źrodeł RPM-a przez doxygen.
b2ae427d 650
e2025ad1 651%prep
2065c1cd 652%setup -q
82687d05 653%patch0 -p1
db88c593 654%patch1 -p1
243e72f3 655%patch2 -p1
01d7a578 656%patch3 -p1
e2025ad1 657%patch4 -p1
c1768ce2 658%patch5 -p1
f14234e4 659%patch6 -p1
c1768ce2 660%patch7 -p1
fefe9d30
JB
661%patch8 -p1
662%patch9 -p1
663%patch10 -p1
ce32d233 664%patch11 -p1
c7def65c 665%patch12 -p1
7a9d72ce 666%patch13 -p1
9a8d811d 667%patch14 -p1
f14234e4 668%patch15 -p1
fefe9d30
JB
669%patch16 -p1
670%patch17 -p1
f14234e4 671%patch18 -p1
feb1f12e 672sed -e 's/^/@pld@/' %{SOURCE2} >>platform.in
1fcb29e9 673#cp -f platform.in macros.pld.in # what for?
8e989934 674echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
675echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
c2673e18 676echo '# obsoleted file' > macros.python
ac090b0f
ER
677echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
678echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
120d96b6 679echo '%%define __mono_provides /usr/lib/rpm/mono-find-provides' > macros.mono
680echo '%%define __mono_requires /usr/lib/rpm/mono-find-requires' >> macros.mono
80b8a1f9
JB
681install %{SOURCE5} scripts/find-lang.sh
682install %{SOURCE9} scripts/php.prov.in
683install %{SOURCE10} scripts/php.req.in
684install %{SOURCE12} scripts/perl.prov
82687d05 685%patch19 -p1
f14234e4
JB
686%patch20 -p1
687%patch21 -p1
c7def65c 688%patch22 -p1
689%patch23 -p1
82687d05 690%patch24 -p1
496e35d1 691%patch25 -p1
fefe9d30 692%patch26 -p1
24123ddd 693%patch27 -p1
8432f0c5 694%patch28 -p1
c7def65c 695%patch31 -p1
e24da480 696%patch32 -p1
ce32d233 697%patch33 -p1
f14234e4
JB
698%patch34 -p1
699%patch35 -p0
5f7fdcd9 700%patch36 -p1
e24da480 701%patch37 -p1
65f4f2e2 702%patch41 -p1
bb98669b 703%patch42 -p1
374b40ea 704%{!?with_neon:%patch44 -p1}
e24da480 705%patch45 -p1
5790b583 706%patch46 -p1
8482995c 707%patch47 -p1
5faf69a1 708%patch49 -p1
b02ce76b 709%patch50 -p1
bc8eaf36 710%patch51 -p1
a05b34dc 711#%patch52 -p1
d6080f70 712%patch55 -p1
2748102f 713%patch57 -p1
a245b6ce 714%patch58 -p1
59a562c2 715%patch59 -p1
99ad19f2 716%patch60 -p1
7ffa7946 717%ifarch sparc64
718%patch61 -p1
719%endif
d36cb682 720
bcdcbb03 721cd scripts
37550797 722mv -f perl.req perl.req.in
874f4c9a
MM
723mv -f perl.prov perl.prov.in
724cd ..
633d1e9e 725
4adb7d05
JB
726mv -f po/{no,nb}.po
727mv -f po/{sr,sr@Latn}.po
728
33be5db0 729rm -rf sqlite zlib db db3 popt rpmdb/db.h
633d1e9e 730
cd86db2e 731# generate Group translations to *.po
80b8a1f9 732awk -f %{SOURCE6} %{SOURCE1}
fefe9d30
JB
733
734# update macros paths
735for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
736 sed -e 's@lib/rpm/redhat@lib/rpm/pld@g' $f > ${f}.tmp
737 mv -f ${f}.tmp $f
738done
0d76071c 739
87ef0d95 740%build
a63662c4 741%if %{with system_libmagic}
742rm -rf file
743%else
87ef0d95 744cd file
ea816ea6 745%{__libtoolize}
ceaaacee
JB
746%{__aclocal}
747%{__autoheader}
0b35155a 748%{__autoconf}
edacdf8f 749%{__automake}
72be9ffe 750cd ..
a63662c4 751%endif
a998ac11 752
ea816ea6 753%{__libtoolize}
c222dedc 754%{__gettextize}
ceaaacee 755%{__aclocal}
4cd84746 756%{__autoheader}
7a9d72ce 757%{__autoconf}
7a9d72ce 758%{__automake}
7a9d72ce 759
cd86db2e 760# config.guess doesn't handle athlon, so we have to change it by hand.
761# rpm checks for CPU type at runtime, but it looks better
7c9ace12 762sed -i -e 's|@host@|%{_target_cpu}-%{_target_vendor}-linux-gnu|' -e 's|@host_cpu@|%{_target_cpu}|' macros.in
7a9d72ce 763
89427592 764# pass CC and CXX too in case of building with some older configure macro
01d7a578 765# disable perl-RPM2 build, we have it in separate spec
624f96ff 766%configure \
f9ac32aa
AM
767 CC="%{__newcc}" \
768 CXX="%{__newcxx}" \
769 CPP="%{__newcpp}" \
01d7a578 770 WITH_PERL_VERSION=no \
33be5db0 771 %{?with_autoreqdep:--enable-adding-packages-names-in-autogenerated-dependancies} \
cd86db2e 772 --enable-shared \
874f4c9a 773 --enable-static \
2e6b4088 774 %{!?with_apidocs:--without-apidocs} \
849b65cd 775 %{?with_python:--with-python=2.5} \
a6e56ce4 776 %{!?with_python:--without-python} \
c6abc173 777 %{!?with_selinux:--without-selinux} \
874f4c9a 778 --without-db
cf6faebc 779
4adb7d05 780# file_LDFLAGS, debugedit_LDADD - no need to link "file" and "debugedit" statically
874f4c9a 781%{__make} \
f9ac32aa
AM
782 CC="%{__cc}" \
783 CXX="%{__cxx}" \
784 CPP="%{__cpp}" \
e8d70bea 785 pylibdir=%{py_libdir} \
4adb7d05
JB
786 myLDFLAGS="%{rpmldflags}" \
787 file_LDFLAGS= \
01d7a578
JB
788 debugedit_LDADD="\$(WITH_LIBELF_LIB) -lpopt" \
789 staticLDFLAGS=%{?with_static:-all-static}
33be5db0 790
b064b8e6 791%install
ff7bc1e6 792rm -rf $RPM_BUILD_ROOT
66edd895 793install -d $RPM_BUILD_ROOT{/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm,/var/lib/banner}
76214164 794
a5e7fb84 795%{__make} install \
9805fd6d 796 DESTDIR=$RPM_BUILD_ROOT \
c34a847a 797 staticLDFLAGS=%{?with_static:-all-static} \
e8d70bea 798 pylibdir=%{py_libdir} \
cf6faebc 799 pkgbindir="%{_bindir}"
718426e1 800
ca076ee5 801# first platform file entry can't contain regexps
441cea0a 802echo "%{_target_cpu}-%{_target_vendor}-linux" > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
caf453d4 803
2d8ae03e
AM
804# x86_64 things
805%ifarch x86_64
61d03761 806echo "x86_64-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e
AM
807%endif
808
809%ifarch amd64
61d03761
AM
810echo "amd64-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
811echo "x86_64-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e
AM
812%endif
813
814%ifarch ia32e
61d03761
AM
815echo "ia32e-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
816echo "x86_64-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e
AM
817%endif
818
819# x86 things
06bd38df 820%ifarch athlon %{x8664}
61d03761 821echo "athlon-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e 822%endif
06bd38df 823%ifarch pentium4 athlon %{x8664}
61d03761 824echo "pentium4-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e 825%endif
06bd38df 826%ifarch pentium3 pentium4 athlon %{x8664}
61d03761 827echo "pentium3-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e 828%endif
06bd38df 829%ifarch i686 pentium3 pentium4 athlon %{x8664}
61d03761 830echo "i686-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e 831%endif
06bd38df 832%ifarch i586 i686 pentium3 pentium4 athlon %{x8664}
61d03761 833echo "i586-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e 834%endif
06bd38df 835%ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664}
61d03761 836echo "i486-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e 837%endif
06bd38df 838%ifarch %{ix86} %{x8664}
61d03761 839echo "i386-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e
AM
840%endif
841
842# ppc
843%ifarch ppc
61d03761 844echo "ppc-[^-]*-linux(-gnu)?" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
2d8ae03e
AM
845%endif
846
847# noarch
848echo "noarch-[^-]*-.*" >> $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
849
137e2891 850%ifarch %{ppc}
a05b34dc 851#sed -e '/_target_platform/s/[%]{_target_cpu}/ppc/' \
852# -i $RPM_BUILD_ROOT%{_rpmlibdir}/ppc74[05]0-linux/macros
137e2891 853%endif
854
02919de5
JK
855rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
856rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
857rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
858
644d8958
JB
859# not installed since 4.4.8 (-tools-perl subpackage)
860install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
861
d755a548
JK
862install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
863install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
864install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
5790b583 865install macros.mono $RPM_BUILD_ROOT%{_rpmlibdir}/macros.mono
1f625675 866install %{SOURCE15} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.java
7ba63f26 867
61f7e1b3 868install %{SOURCE1} doc/manual/groups
d755a548 869install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
80b8a1f9
JB
870install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
871install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
872install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
d0370fe5 873install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
7d8492bb 874install %{SOURCE16} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
d755a548
JK
875install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
876install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
d0370fe5 877install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 878
7c6dc55f 879install %{SOURCE30} $RPM_BUILD_ROOT%{_bindir}/builder
880install %{SOURCE31} $RPM_BUILD_ROOT%{_bindir}/adapter.awk
881install %{SOURCE32} $RPM_BUILD_ROOT%{_bindir}/pldnotify.awk
a4b7ef27 882install %{SOURCE33} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 883
fbc0ff35
AM
884install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
885
d23a99cc
AM
886# obsolete but still installed
887rm $RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc
720f06f0 888
e663e5ff
JB
889cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
890# customized rpm macros - global for host
891#
40c1ea77
AF
892#%%_install_langs pl_PL:en_US
893%%distribution PLD
541eacd3
JB
894#
895# remove or replace with file_contexts path if you want to use custom
896# SELinux file contexts policy instead of one stored in packages payload
31858397
JB
897%%_install_file_context_path %%{nil}
898%%_verify_file_context_path %%{nil}
627d5615
ER
899
900# If non-zero, all erasures will be automagically repackaged.
901#%%_repackage_all_erasures 1
09bb810c
AF
902EOF
903
3d9806c2 904cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
99a3012c 905# global list of files (regexps) which don't generate Provides
3d9806c2
JB
906EOF
907cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
99a3012c 908# global list of script capabilities (regexps) not to be used in Provides
3d9806c2
JB
909EOF
910cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
99a3012c 911# global list of files (regexps) which don't generate Requires
e93003df
ER
912^%{_examplesdir}/
913^%{_docdir}/
3d9806c2
JB
914EOF
915cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
99a3012c 916# global list of script capabilities (regexps) not to be used in Requires
3d9806c2
JB
917EOF
918cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
99a3012c 919# global list of capabilities (SONAME, perl(module), php(module) regexps)
3d9806c2 920# which don't generate dependencies on package NAMES
195f647c 921# -- OpenGL implementation
f694a4d9
JB
922^libGL.so.1
923^libGLU.so.1
195f647c
JB
924^libOSMesa.so
925# -- Glide
f694a4d9 926^libglide3.so.3
195f647c 927# -- mozilla
f694a4d9
JB
928^libgtkmozembed.so
929^libgtksuperwin.so
930^libxpcom.so
195f647c
JB
931# -- X11 implementation
932^libFS.so
933^libI810XvMC.so
934^libICE.so
935^libSM.so
936^libX11.so
937^libXRes.so
938^libXTrap.so
939^libXaw.so
8c3b25a7 940^libXcomposite.so
195f647c 941^libXcursor.so
8c3b25a7
JB
942^libXdamage.so
943^libXdmcp.so
944^libXevie.so
195f647c 945^libXext.so
8c3b25a7 946^libXfixes.so
195f647c
JB
947^libXfont.so
948^libXfontcache.so
949^libXft.so
950^libXi.so
951^libXinerama.so
952^libXmu.so
953^libXmuu.so
954^libXp.so
955^libXpm.so
956^libXrandr.so
957^libXrender.so
958^libXss.so
959^libXt.so
960^libXtst.so
961^libXv.so
962^libXvMC.so
963^libXxf86dga.so
964^libXxf86misc.so
965^libXxf86rush.so
966^libXxf86vm.so
37ea389a
JB
967^libdps.so
968^libdpstk.so
195f647c 969^libfontenc.so
37ea389a 970^libpsres.so
195f647c
JB
971^libxkbfile.so
972^libxkbui.so
eec3b202
JB
973# -- fam / gamin
974^libfam.so.0
3d9806c2 975EOF
a4852742
JB
976cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
977# global list of file masks not to be compressed in DOCDIR
978EOF
3d9806c2 979
f3fd387a 980# for rpm -e|-U --repackage
a11e0e27
AM
981install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
982touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
f3fd387a 983
c2673e18 984# move libs to /lib
a11e0e27 985for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
50dc9ac0
JK
986 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
987 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
c2673e18
AF
988done
989
fca52ae1 990# remove arch dependant macros which have no use on noarch
627d5615 991%{__sed} -i -e '
fca52ae1
ER
992/{__spec_install_post_strip}/d
993/{__spec_install_post_chrpath}/d
994/{__spec_install_post_compress_modules}/d
995' $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros
996
6f18cdb7
AF
997%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
998%py_comp $RPM_BUILD_ROOT%{py_sitedir}
999
01d7a578
JB
1000rm -f $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1001
1002# (currently) not used or supported in PLD
1003rm -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}
1004# wrong location, not used anyway
1005rm -f $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
644d8958
JB
1006# manuals for utils dropped in 4.4.8 (?)
1007#rm -f $RPM_BUILD_ROOT%{_mandir}/{,*/}/man8/{rpmcache,rpmgraph}.8
01d7a578 1008
90b03dd6 1009%find_lang %{name}
cf6faebc 1010
c2673e18 1011rm -rf manual
a998ac11
AF
1012cp -a doc/manual manual
1013rm -f manual/Makefile*
874f4c9a 1014
13eb5ebf 1015%clean
d7df46b8 1016rm -rf $RPM_BUILD_ROOT
76214164 1017
ceaaacee
JB
1018%post lib -p /sbin/ldconfig
1019%postun lib -p /sbin/ldconfig
76214164 1020
8f76a271 1021%pre build
d755a548 1022find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 1023
3684d90f
JB
1024%files -f %{name}.lang
1025%defattr(644,root,root,755)
644d8958 1026%doc CHANGES CREDITS README wdj/JBJ-GPG-KEY manual/*
3684d90f 1027
7a9d72ce 1028%attr(755,root,root) /bin/rpm
35a6f2f9
JB
1029#%attr(755,root,root) %{_bindir}/rpmdb
1030#%attr(755,root,root) %{_bindir}/rpmquery
1031#%attr(755,root,root) %{_bindir}/rpmsign
1032#%attr(755,root,root) %{_bindir}/rpmverify
e73478cd 1033
1034%dir %{_sysconfdir}/rpm
66edd895 1035%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
caf453d4
AM
1036# these are ok to be replaced
1037%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo
1038%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1039
e73478cd 1040
09bb810c 1041%{_mandir}/man8/rpm.8*
feb1f12e 1042%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 1043%lang(ja) %{_mandir}/ja/man8/rpm.8*
1162bdc1 1044%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 1045%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 1046%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 1047%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 1048
e2025ad1 1049%dir /var/lib/rpm
f3fd387a 1050%dir %attr(700,root,root) /var/spool/repackage
a11e0e27
AM
1051%dir /var/lock/rpm
1052/var/lock/rpm/transaction
4acac5de 1053
4acac5de 1054#%attr(755,root,root) %{_rpmlibdir}/rpmd
4adb7d05 1055#%{!?with_static:%attr(755,root,root) %{_rpmlibdir}/rpm[eiu]}
4acac5de
JB
1056#%attr(755,root,root) %{_rpmlibdir}/rpmk
1057#%attr(755,root,root) %{_rpmlibdir}/rpm[qv]
e2025ad1 1058
d755a548
JK
1059%{_rpmlibdir}/rpmpopt*
1060%{_rpmlibdir}/macros
3684d90f 1061
66edd895
JB
1062%files base
1063%defattr(644,root,root,755)
1064%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1065%dir %{_rpmlibdir}
1066%attr(755,root,root) %{_bindir}/banner.sh
1067%attr(755,root,root) %{_rpmlibdir}/user_group.sh
1068%dir /var/lib/banner
1069
874f4c9a
MM
1070%files lib
1071%defattr(644,root,root,755)
50dc9ac0 1072%attr(755,root,root) /%{_lib}/librpm*-*.so
874f4c9a
MM
1073%attr(755,root,root) %{_libdir}/librpm*-*.so
1074
69131f1a
JB
1075%files devel
1076%defattr(644,root,root,755)
1077%{_includedir}/rpm
1078%{_libdir}/librpm*.la
1079%attr(755,root,root) %{_libdir}/librpm.so
1080%attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1081%attr(755,root,root) %{_libdir}/librpmio.so
1082%attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1083%attr(755,root,root) %{_libdir}/librpmdb.so
1084%attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1085%attr(755,root,root) %{_libdir}/librpmbuild.so
1086
1087%files static
1088%defattr(644,root,root,755)
1089%{_libdir}/librpm*.a
1090
1091%files utils
1092%defattr(644,root,root,755)
1093%attr(755,root,root) %{_bindir}/debugedit
1094%attr(755,root,root) %{_bindir}/rpm2cpio
69131f1a 1095%attr(755,root,root) %{_bindir}/rpmdeps
a63662c4 1096%{!?with_system_libmagic:%attr(755,root,root) %{_bindir}/rpmfile}
69131f1a 1097%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
69131f1a
JB
1098%attr(755,root,root) %{_rpmlibdir}/tgpg
1099%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1100%{_mandir}/man8/rpm2cpio.8*
1101%{_mandir}/man8/rpmdeps.8*
644d8958
JB
1102#%{_mandir}/man8/rpmcache.8*
1103#%{_mandir}/man8/rpmgraph.8*
69131f1a 1104%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
644d8958
JB
1105#%lang(ja) %{_mandir}/ja/man8/rpmcache.8*
1106#%lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
69131f1a
JB
1107%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1108%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1109%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
644d8958
JB
1110#%lang(pl) %{_mandir}/pl/man8/rpmcache.8*
1111#%lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
69131f1a
JB
1112%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1113
1114%files utils-perl
1115%defattr(644,root,root,755)
1116%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
69131f1a
JB
1117
1118%if %{with static}
1119%files utils-static
1120%defattr(644,root,root,755)
1121%attr(755,root,root) %{_bindir}/rpm[ieu]
1122%attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1123%endif
1124
3684d90f 1125%files build
a45ae6d8 1126%defattr(644,root,root,755)
66edd895 1127%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
1128%attr(755,root,root) %{_rpmlibdir}/brp-*
1129%attr(755,root,root) %{_rpmlibdir}/check-files
374b40ea 1130# %attr(755,root,root) %{_rpmlibdir}/check-prereqs
d755a548 1131%attr(755,root,root) %{_rpmlibdir}/compress-doc
01d7a578 1132%attr(755,root,root) %{_rpmlibdir}/config.*
d755a548 1133%attr(755,root,root) %{_rpmlibdir}/cross-build
d755a548
JK
1134%attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1135%attr(755,root,root) %{_rpmlibdir}/find-lang.sh
d755a548
JK
1136%attr(755,root,root) %{_rpmlibdir}/getpo.sh
1137%attr(755,root,root) %{_rpmlibdir}/install-build-tree
01d7a578 1138%attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
d755a548 1139%attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
01d7a578 1140%attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
01d7a578
JB
1141%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1142# needs hacked pkg-config to return anything
1143%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
d755a548
JK
1144%attr(755,root,root) %{_rpmlibdir}/rpmb
1145%attr(755,root,root) %{_rpmlibdir}/rpmt
1146%{_rpmlibdir}/noarch-*
e9fe9fc5 1147%ifarch %{ix86}
d755a548 1148%{_rpmlibdir}/i?86*
e9fe9fc5 1149%{_rpmlibdir}/pentium*
d755a548
JK
1150%{_rpmlibdir}/athlon*
1151%endif
ad628734
JB
1152%ifarch alpha
1153%{_rpmlibdir}/alpha*
1154%endif
ad628734
JB
1155%ifarch ia64
1156%{_rpmlibdir}/ia64*
8f76a271 1157%endif
410dd742 1158%ifarch mips mipsel mips64 mips64el
1159%{_rpmlibdir}/mips*
1160%endif
80e9f34d 1161%ifarch %{ppc}
410dd742 1162%{_rpmlibdir}/ppc*
1163%endif
1164%ifarch sparc sparc64
1165%{_rpmlibdir}/sparc*
1166%endif
9f517079 1167%ifarch %{x8664}
206b32be
JB
1168%{_rpmlibdir}/amd64*
1169%{_rpmlibdir}/ia32e*
cedf1bfa
PS
1170%{_rpmlibdir}/x86_64*
1171%endif
410dd742 1172# must be here for "Requires: rpm-*prov" to work
7d8492bb 1173%{_rpmlibdir}/macros.java
5790b583 1174%{_rpmlibdir}/macros.mono
410dd742 1175%{_rpmlibdir}/macros.perl
1176%{_rpmlibdir}/macros.php
1177# not used yet ... these six depend on perl
1178#%attr(755,root,root) %{_rpmlibdir}/http.req
591cc005
JB
1179#%attr(755,root,root) %{_rpmlibdir}/magic.prov
1180#%attr(755,root,root) %{_rpmlibdir}/magic.req
1181#%{_rpmlibdir}/sql.prov
1182#%{_rpmlibdir}/sql.req
1183#%{_rpmlibdir}/tcl.req
7a9d72ce 1184
874f4c9a
MM
1185%attr(755,root,root) %{_bindir}/gendiff
1186%attr(755,root,root) %{_bindir}/rpmbuild
1187
a00926bc 1188%{_mandir}/man1/gendiff.1*
874f4c9a 1189%{_mandir}/man8/rpmbuild.8*
fefe9d30
JB
1190%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1191%lang(pl) %{_mandir}/pl/man1/gendiff.1*
1192%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
f3fe287f 1193
69131f1a 1194%files build-tools
a00926bc 1195%defattr(644,root,root,755)
69131f1a
JB
1196%attr(755,root,root) %{_bindir}/builder
1197%attr(755,root,root) %{_bindir}/adapter.awk
1198%attr(755,root,root) %{_bindir}/pldnotify.awk
a00926bc 1199
7d8492bb
JB
1200%files javaprov
1201%defattr(644,root,root,755)
1202%attr(755,root,root) %{_rpmlibdir}/java-find-requires
1203# needs jar (any jdk), jcf-dump (gcc-java) to work
1204%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1205
89334051
AF
1206%files perlprov
1207%defattr(644,root,root,755)
d755a548
JK
1208%attr(755,root,root) %{_rpmlibdir}/perl.*
1209#%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1210#%attr(755,root,root) %{_rpmlibdir}/find-perl-*
02919de5
JK
1211#%attr(755,root,root) %{_rpmlibdir}/find-*.perl
1212#%attr(755,root,root) %{_rpmlibdir}/find-prov.pl
1213#%attr(755,root,root) %{_rpmlibdir}/find-req.pl
374b40ea 1214#%attr(755,root,root) %{_rpmlibdir}/get_magic.pl
9805fd6d 1215
80d3b868 1216%files pythonprov
d8fcb9b0 1217%defattr(644,root,root,755)
d755a548 1218%{_rpmlibdir}/macros.python
25d296e1 1219%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
09bb810c 1220
d36cb682
PG
1221%files php-pearprov
1222%defattr(644,root,root,755)
d755a548
JK
1223%attr(755,root,root) %{_rpmlibdir}/php*
1224%attr(755,root,root) %{_rpmlibdir}/find-php*
d36cb682 1225
50dc9ac0 1226%if %{with python}
cf6faebc 1227%files -n python-rpm
42a0025c 1228%defattr(644,root,root,755)
b33910fe 1229%dir %{py_sitedir}/rpm
6f18cdb7 1230%attr(755,root,root) %{py_sitedir}/rpm/*.so
8c99b39a 1231%{py_sitedir}/rpm/*.py[co]
50dc9ac0 1232%endif
874f4c9a 1233
b2ae427d 1234%if %{with apidocs}
1235%files apidocs
1236%defattr(644,root,root,755)
1237%doc apidocs
1238%endif
This page took 1.009324 seconds and 4 git commands to generate.