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