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