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