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