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