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