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