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