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