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