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