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