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