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