]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
Cleanup arch specific macros and {c,ld,*}flags
[packages/rpm.git] / rpm.spec
CommitLineData
52c10eff 1#
2# TODO:
317ef122 3# - check if glob() patch needs resurrecting/rewriting
9dce4e74 4# - check if we want shell autodeps: Requires: executable(ln) executable(mv)
2d806774 5# - %{_arch} = i686 not as used to be i386 (platform file thing?):
afbcf91a
ER
6# 5.0.2: rpm -E '%_target_base_arch %_arch'
7# i386 i686
8# 4.4.9: rpm -E '%_target_base_arch %_arch'
9# i386 i386
644d8958
JB
10# - python(abi) cap is not provided automatically because /usr/lib*/libpython2*.so.*
11# matches ELF first
9fb5ee9e 12# - add macros for some ppc, mipsel, alpha and sparc
f3cb8244 13# - uppackaged list:
9fb5ee9e
JR
14# /usr/bin/multiarch-dispatch
15# /usr/bin/multiarch-platform
16# /usr/include/multiarch-dispatch.h
17# /usr/lib/rpm/bin/api-sanity-autotest.pl
18# /usr/lib/rpm/bin/api-sanity-checker.pl
19# /usr/lib/rpm/bin/chroot
20# /usr/lib/rpm/bin/cp
21# /usr/lib/rpm/bin/dbconvert
22# /usr/lib/rpm/bin/find
23# /usr/lib/rpm/bin/mgo
24# /usr/lib/rpm/bin/pom2spec
25# /usr/lib/rpm/bin/sqlite3
26# /usr/lib/rpm/check-multiarch-files
27# /usr/lib/rpm/dbconvert.sh
28# /usr/lib/rpm/gem_helper.rb
29# /usr/lib/rpm/gstreamer.sh
30# /usr/lib/rpm/kmod-deps.sh
31# /usr/lib/rpm/macros.d/cmake
32# /usr/lib/rpm/macros.d/gstreamer
33# /usr/lib/rpm/macros.d/kernel
34# /usr/lib/rpm/macros.d/mandriva
35# /usr/lib/rpm/macros.d/ruby
36# /usr/lib/rpm/macros.d/tcl
37# /usr/lib/rpm/mkmultiarch
38# /usr/lib/rpm/pythoneggs.py
39# /usr/lib/rpm/rubygems.rb
10abbd40 40#
76005b82 41# - headerGet() making poldek segfault http://rpm5.org/cvs/tktview?tn=38,1
76005b82 42# - rpm doesn't exit when no sources/patches available http://rpm5.org/cvs/tktview?tn=40,1
6664e05e 43# - http://rpm5.org/cvs/tktview?tn=41&_submit=Show
c296fee0 44# - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
76005b82 45#
89427592 46# Conditional build:
01d7a578 47%bcond_with static # build static rpm+rpmi
514e0cea 48%bcond_with apidocs # don't generate documentation with doxygen
4af66a2c
JB
49%bcond_without python # don't build python bindings
50%bcond_without selinux # build without selinux support
0dc47449 51%bcond_without suggest_tags # build without Suggest tag (bootstrapping)
77fcdbf7 52%bcond_without neon # build with HTTP/WebDAV support (neon library)
858aa7d0 53%bcond_without db # BerkeleyDB
77fcdbf7 54%bcond_without sqlite # build with SQLite support
858aa7d0 55%bcond_with sqlite_dbapi # default database backend is sqlite
7564deb4 56%bcond_without system_lua # use system lua
89427592
JB
57# force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
58# force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
59# force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
858aa7d0
AM
60#
61%if %{with sqlite_dbapi}
62%define with_sqlite 1
63%endif
54bfdf99 64
858aa7d0 65%if %{without db} && %{without sqlite}
25ac75ae 66%{error:Need db or sqlite}
858aa7d0
AM
67ERROR
68%endif
69
003a039e 70# versions of required libraries
afb55538 71%define reqdb_ver 5.3
ec44785a 72%define reqpopt_ver 1.15
fc60c9f3 73%define beecrypt_ver 2:4.1.2-4
980b7379 74%define sover 5.4
fc60c9f3 75
e5f02e49 76Summary: RPM Package Manager
4ea2ed33
ER
77Summary(de.UTF-8): RPM Packet-Manager
78Summary(es.UTF-8): Gestor de paquetes RPM
79Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
80Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
81Summary(ru.UTF-8): Менеджер пакетов от RPM
82Summary(uk.UTF-8): Менеджер пакетів від RPM
76214164 83Name: rpm
afb55538 84Version: 5.4.10
9282ffe4 85Release: 0.1
b0434f77 86License: LGPL
76214164 87Group: Base
afb55538
JR
88# http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.10-0.20120706.src.rpm
89Source0: %{name}-%{version}.tar.gz
90# Source0-md5: 5d099161bdd3203265ab32ffad3360b5
d38aed81
JR
91Source100: cpu-os-macros.tar.gz
92# Source100-md5: 928034a5bdceb398881bc14b5f29973b
ff7bc1e6 93Source1: %{name}.groups
08697680 94Source2: macros.pld.in
ff7bc1e6 95Source3: %{name}-install-tree
80b8a1f9 96Source4: %{name}-find-spec-bcond
cf709a39 97Source5: %{name}-hrmib-cache
80b8a1f9
JB
98Source6: %{name}-groups-po.awk
99Source7: %{name}-compress-doc
100Source8: %{name}-check-files
101Source9: %{name}-php-provides
102Source10: %{name}-php-requires
fbc0ff35 103Source11: %{name}.sysinfo
80b8a1f9 104Source12: perl.prov
d0370fe5 105Source13: %{name}-user_group.sh
106Source14: %{name}.sysconfig
1f625675
JB
107Source15: %{name}-macros.java
108Source16: %{name}-java-requires
a4b7ef27 109# http://svn.pld-linux.org/banner.sh/
1c2e2d8e 110Source17: banner.sh
54eb1770 111Source19: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
317ef122 112# Source19-md5: 08b29584dd349aac9caa7610131a0a88
c75b3936 113Source20: %{name}-mimetypedeps
08697680
JR
114Source21: macros.local
115Source22: rpm.noautocompressdoc
116Source23: rpm.noautoprov
117Source24: rpm.noautoprovfiles
118Source25: rpm.noautoreq
119Source26: rpm.noautoreqdep
120Source27: rpm.noautoreqfiles
25ac75ae 121
f05db907 122Patch0: %{name}-branch.patch
2f0ee4ec 123Patch1: %{name}-man_pl.patch
38e53563 124Patch2: %{name}-popt-aliases.patch
b174986a 125Patch3: %{name}-rpmpopt.patch
3465efba 126Patch4: %{name}-perl-macros.patch
c1768ce2 127Patch5: %{name}-perl-req-perlfile.patch
f14234e4 128Patch7: %{name}-scripts-closefds.patch
7a3b1f24 129Patch8: %{name}-php-macros.patch
f14234e4 130Patch9: %{name}-gettext-in-header.patch
6a8612bc 131Patch11: %{name}-lua.patch
7a3b1f24 132
f14234e4 133Patch14: %{name}-etc_dir.patch
f14234e4 134Patch16: %{name}-php-deps.patch
32d103b5 135Patch19: %{name}-glob.patch
7a3b1f24 136
f14234e4
JB
137Patch26: %{name}-notsc.patch
138Patch27: %{name}-hack-norpmlibdep.patch
7a3b1f24 139
950eead3 140Patch34: %{name}-epoch0.patch
f14234e4
JB
141Patch35: %{name}-perl_req-INC_dirs.patch
142Patch36: %{name}-debuginfo.patch
143Patch37: %{name}-doxygen_hack.patch
7a3b1f24 144
9282ffe4
AF
145Patch41: vendor-pld.patch
146
bb98669b 147Patch42: %{name}-old-fileconflicts-behaviour.patch
644d8958 148
5790b583 149Patch46: %{name}-mono.patch
8482995c 150Patch47: %{name}-javadeps.patch
fbc0ff35 151
d6080f70 152Patch55: %{name}-truncate-cvslog.patch
644d8958 153
59a562c2 154Patch59: %{name}-libtool-deps.patch
c75b3936 155Patch60: %{name}-mimetype.patch
7ffa7946 156Patch61: %{name}-sparc64.patch
7f26883c 157Patch62: %{name}-gendiff.patch
71c31e2b 158Patch70: %{name}-configure-autoconf.patch
77fcdbf7 159Patch72: openmp.patch
afb55538
JR
160Patch73: rpm-URPM-build-fix.patch
161Patch74: rpm-db5.3.patch
955f2725 162URL: http://rpm5.org/
6a8612bc 163BuildRequires: autoconf >= 2.60
644d8958 164BuildRequires: automake >= 1.4
87ef0d95 165BuildRequires: beecrypt-devel >= %{beecrypt_ver}
33be5db0 166BuildRequires: bzip2-devel >= 1.0.2-17
858aa7d0 167%{?with_db:BuildRequires: db-devel >= %{reqdb_ver}}
33be5db0 168BuildRequires: elfutils-devel >= 0.108
0ef6aeae 169#BuildRequires: gettext-autopoint >= 0.11.4-2
d1795eb0 170BuildRequires: gettext-devel >= 0.11.4-2
f7100a40 171BuildRequires: keyutils-devel
241257bf 172BuildRequires: libmagic-devel
8e159d42 173%{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
84cdee7a
JB
174# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
175BuildRequires: libstdc++-devel
b60c74c3 176BuildRequires: libtool >= 1:1.4.2-9
33be5db0 177%if %{with neon}
fe861705 178BuildRequires: libxml2-devel
83d6a3fe 179BuildRequires: neon-devel >= 0.25.5
33be5db0 180%endif
7973b351 181BuildRequires: patch >= 2.2
1d49ffbc 182BuildRequires: popt-devel >= %{reqpopt_ver}
6a8612bc 183%{?with_system_lua:BuildRequires: lua51-devel >= 5.1.2}
950eead3
ER
184%{?with_python:BuildRequires: python-devel >= 1:2.3}
185BuildRequires: python-modules >= 1:2.3
2a813afe 186%{?with_python:BuildRequires: rpm-pythonprov}
241257bf 187%{?with_sqlite:BuildRequires: sqlite3-devel}
e56a10a9 188BuildRequires: tcl
874f4c9a 189BuildRequires: zlib-devel
77fcdbf7 190BuildRequires: xz-devel
5c2ab5c7
AM
191%if %{with apidocs}
192BuildRequires: doxygen
193BuildRequires: ghostscript
194BuildRequires: graphviz
195BuildRequires: tetex-pdftex
196%endif
a6e56ce4 197%if %{with static}
e6090a7b 198# Require static library only for static build
87ef0d95 199BuildRequires: beecrypt-static >= %{beecrypt_ver}
33be5db0 200BuildRequires: bzip2-static >= 1.0.2-17
858aa7d0 201%{?with_db:BuildRequires: db-static >= %{reqdb_ver}}
290c1c30 202BuildRequires: elfutils-static
10abbd40 203BuildRequires: glibc-static >= 2.2.94
241257bf 204BuildRequires: libmagic-static
8e159d42 205%{?with_selinux:BuildRequires: libselinux-static >= 1.18}
003a039e 206BuildRequires: popt-static >= %{reqpopt_ver}
1d49ffbc 207BuildRequires: zlib-static
7a9d72ce 208%endif
66edd895 209Requires: %{name}-base = %{version}-%{release}
b26a9709 210Requires: %{name}-lib = %{version}-%{release}
10abbd40
ER
211Requires: beecrypt >= %{beecrypt_ver}
212Requires: popt >= %{reqpopt_ver}
0229a8b9
AM
213Provides: rpm-db-ver = %{reqdb_ver}
214Obsoletes: rpm-getdeps
4adb7d05 215%{!?with_static:Obsoletes: rpm-utils-static}
874f4c9a 216Conflicts: glibc < 2.2.92
8ee1c72c
AM
217# db4.6 poldek needed
218Conflicts: poldek < 0.21-0.20070703.00.3
d268a169
AM
219# segfaults with lzma 0.42.2
220Conflicts: lzma-libs < 4.999.3
1d49ffbc 221BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6d82b332 222
4adb7d05
JB
223%define _binary_payload w9.gzdio
224%define _noPayloadPrefix 1
6d82b332 225
4cd84746
JB
226# don't require very fresh rpm.macros to build
227%define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
950eead3 228%define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
9f517079 229%define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
80e9f34d 230%define ppc ppc ppc7400 ppc7450
9f517079 231%define x8664 amd64 ia32e x86_64
4cd84746 232
89427592 233# stabilize new build environment
f9ac32aa
AM
234%define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
235%define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
236%define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
89427592 237
d755a548 238%define _rpmlibdir /usr/lib/rpm
950eead3 239%define _noautocompressdoc RPM-GPG-KEY
d755a548 240
573e40e1
PS
241%define specflags -fno-strict-aliasing
242
ff7bc1e6 243%description
244RPM is a powerful package manager, which can be used to build,
245install, query, verify, update, and uninstall individual software
cf6faebc 246packages. A package consists of an archive of files, and package
fed73700 247information, including name, version, and description.
248
dd85fadc
JR
249%description -l de.UTF-8
250RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
fed73700 251Installation, Anfrage, Verifizierung, Aktualisierung und
252Uninstallation individueller Softwarepakete. Ein Paket besteht aus
253einem Archiv Dateien und Paketinformation, inklusive Name, Version und
313a4d1a 254Beschreibung.
255
dd85fadc 256%description -l es.UTF-8
313a4d1a 257RPM es un poderoso administrador de paquetes, que puede ser usado para
258construir, instalar, pesquisar, verificar, actualizar y desinstalar
259paquetes individuales de software. Un paquete consiste en un
dd85fadc
JR
260almacenaje de archivos, y información sobre el paquete, incluyendo
261nombre, versión y descripción.
262
263%description -l pl.UTF-8
264RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
265przebudowanie, instalację czy weryfikację dowolnego pakietu.
266Informacje dotyczące każdego pakietu, takie jak jego opis, lista
267plików wchodzących w skład pakietu, zależności od innych pakietów, są
268przechowywane w bazie danych i można je uzyskać za pomocą opcji
313a4d1a 269odpytywania programu rpm.
270
dd85fadc
JR
271%description -l pt_BR.UTF-8
272RPM é um poderoso gerenciador de pacotes, que pode ser usado para
313a4d1a 273construir, instalar, pesquisar, verificar, atualizar e desinstalar
274pacotes individuais de software. Um pacote consiste de um conjunto de
dd85fadc
JR
275arquivos e informações adicionais, incluindo nome, versão e descrição
276do pacote, permissões dos arquivos, etc.
277
278%description -l ru.UTF-8
279RPM - это мощный менеджер пакетов, который может быть использован для
280создания, инсталляции, запросов (query), проверки, обновления и
281удаления программных пакетов. Пакет состоит из файлового архива и
282служебной информации, включающей название, версию, описание и другие
283данные о пакете.
284
285%description -l uk.UTF-8
286RPM - це потужний менеджер пакетів, що може бути використаний для
287створення, інсталяції, запитів (query), перевірки, поновлення та
288видалення програмних пакетів. Пакет складається з файлового архіву та
289службової інформації, що містить назву, версію, опис та іншу
290інформацію про пакет.
7c6dc55f 291
66edd895
JB
292%package base
293Summary: RPM base package - scripts used by rpm packages themselves
4ea2ed33 294Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
66edd895 295Group: Base
1d9ca0c1 296Requires: filesystem
950eead3 297Obsoletes: rpm-scripts
66edd895
JB
298Obsoletes: vserver-rpm
299
300%description base
301The RPM base package contains scripts used by rpm packages themselves.
302These include:
303- scripts for adding/removing groups and users needed for rpm
304 packages,
305- banner.sh to display %%banner messages from rpm scriptlets.
306
dd85fadc
JR
307%description base -l pl.UTF-8
308Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
66edd895 309Zawiera on:
dd85fadc
JR
310- skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
311- banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
66edd895 312
69131f1a
JB
313%package lib
314Summary: RPMs library
4ea2ed33 315Summary(pl.UTF-8): Biblioteki RPM-a
69131f1a 316Group: Libraries
33be5db0 317Requires: beecrypt >= %{beecrypt_ver}
858aa7d0 318%{?with_db:Requires: db >= %{reqdb_ver}}
241257bf 319Requires: libmagic >= 1.15-2
d1795eb0 320%{?with_selinux:Requires: libselinux >= 1.18}
69131f1a 321Requires: popt >= %{reqpopt_ver}
d1795eb0 322Obsoletes: rpm-libs
69131f1a
JB
323# avoid SEGV caused by mixed db versions
324Conflicts: poldek < 0.18.1-16
325
326%description lib
327RPMs library.
328
dd85fadc 329%description lib -l pl.UTF-8
69131f1a
JB
330Biblioteki RPM-a.
331
fed73700 332%package devel
3f2d796a 333Summary: Header files for rpm libraries
4ea2ed33
ER
334Summary(de.UTF-8): Header-Dateien für rpm Libraries
335Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
336Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
337Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
338Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
339Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
89f92de0 340Group: Development/Libraries
153e5706 341Requires: %{name}-lib = %{version}-%{release}
87ef0d95 342Requires: beecrypt-devel >= %{beecrypt_ver}
fea3cb89 343Requires: bzip2-devel
858aa7d0 344%{?with_db:Requires: db-devel >= %{reqdb_ver}}
5c583f90 345Requires: elfutils-devel
f7100a40 346Requires: keyutils-devel
241257bf 347Requires: libmagic-devel
10abbd40 348%{?with_selinux:Requires: libselinux-devel}
a998ac11 349Requires: popt-devel >= %{reqpopt_ver}
fea3cb89 350Requires: zlib-devel
cf6faebc 351
352%description devel
3f2d796a
JB
353The RPM packaging system includes C libraries that make it easy to
354manipulate RPM packages and databases. They are intended to ease the
cf6faebc 355creation of graphical package managers and other tools that need
3f2d796a
JB
356intimate knowledge of RPM packages. This package contains header files
357for these libraries.
fed73700 358
dd85fadc
JR
359%description devel -l de.UTF-8
360Der RPM-Packensystem enthält eine C-Library, die macht es einfach
361RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
fed73700 362Vereinfachung des Schaffens grafischer Paket-Manager und anderer
313a4d1a 363Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
364
dd85fadc 365%description devel -l es.UTF-8
313a4d1a 366El sistema de empaquetado RPM incluye una biblioteca C que vuelve
dd85fadc
JR
367fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
368facilitar la creación de administradores gráficos de paquetes y otras
20f89981 369herramientas que necesiten un conocimiento profundo de paquetes RPM.
9e42d68a 370
dd85fadc
JR
371%description devel -l pl.UTF-8
372System RPM zawiera biblioteki C, które ułatwiają manipulowanie
373pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
374graficznych programów zarządzających pakietami oraz innych narzędzi,
375które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
376zawiera pliki nagłówkowe wspomnianych bibliotek.
377
378%description devel -l pt_BR.UTF-8
379O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
380a manipulação de pacotes e bases de dados RPM. Seu objetivo é
381facilitar a criação de gerenciadores gráficos de pacotes e outras
edacdf8f 382ferramentas que precisem de conhecimento profundo de pacotes RPM.
383
dd85fadc
JR
384%description devel -l ru.UTF-8
385Система управления пакетами RPM содержит библиотеку C, которая
386упрощает манипуляцию пакетами RPM и соответствующими базами данных.
387Эта библиотека предназначена для облегчения создания графических
388пакетных менеджеров и других утилит, которым необходимо работать с
389пакетами RPM.
7c6dc55f 390
dd85fadc
JR
391%description devel -l uk.UTF-8
392Система керування пакетами RPM містить бібліотеку C, котра спрощує
393роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
394призначена для полегшення створення графічних пакетних менеджерів та
395інших утиліт, що працюють з пакетами RPM.
7c6dc55f 396
fed73700 397%package static
9e42d68a 398Summary: RPM static libraries
4ea2ed33
ER
399Summary(de.UTF-8): RPMs statische Libraries
400Summary(pl.UTF-8): Biblioteki statyczne RPM-a
401Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
402Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
403Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
edacdf8f 404Group: Development/Libraries
153e5706 405Requires: %{name}-devel = %{version}-%{release}
87ef0d95 406Requires: beecrypt-static >= %{beecrypt_ver}
df76dbd9 407Requires: bzip2-static
858aa7d0 408%{?with_db:Requires: db-static >= %{reqdb_ver}}
ff03e01a 409Requires: elfutils-static
f7100a40 410Requires: keyutils-static
241257bf 411Requires: libmagic-static
a998ac11 412Requires: popt-static >= %{reqpopt_ver}
df76dbd9 413Requires: zlib-static
edacdf8f 414
415%description static
20f89981 416RPM static libraries.
fed73700 417
dd85fadc 418%description static -l de.UTF-8
20f89981 419RPMs statische Libraries.
9e42d68a 420
dd85fadc 421%description static -l pl.UTF-8
0a7ae9bc 422Biblioteki statyczne RPM-a.
313a4d1a 423
dd85fadc
JR
424%description static -l pt_BR.UTF-8
425Bibliotecas estáticas para desenvolvimento.
edacdf8f 426
dd85fadc
JR
427%description static -l ru.UTF-8
428Система управления пакетами RPM содержит библиотеку C, которая
429упрощает манипуляцию пакетами RPM и соответствующими базами данных.
430Это статическая библиотека RPM.
7c6dc55f 431
dd85fadc
JR
432%description static -l uk.UTF-8
433Система керування пакетами RPM містить бібліотеку C, котра спрощує
434роботу з пакетами RPM та відповідними базами даних. Це статична
435бібліотека RPM.
7c6dc55f 436
fed73700 437%package utils
8482995c 438Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
439Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
440Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
edacdf8f 441Group: Applications/File
153e5706 442Requires: %{name} = %{version}-%{release}
a998ac11 443Requires: popt >= %{reqpopt_ver}
86b85368
AG
444%if %{with suggest_tags}
445Suggests: bzip2
446Suggests: gzip
86b85368 447%endif
695e60ad 448Conflicts: filesystem-debuginfo < 3.0-16
edacdf8f 449
450%description utils
8482995c 451Additional utilities for managing RPM packages and database.
fed73700 452
dd85fadc
JR
453%description utils -l de.UTF-8
454Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
9e42d68a 455
dd85fadc
JR
456%description utils -l pl.UTF-8
457Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
fed73700 458
92b3f576 459%package utils-perl
8482995c 460Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
461Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
462Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
92b3f576 463Group: Applications/File
153e5706 464Requires: %{name}-utils = %{version}-%{release}
92b3f576 465Requires: popt >= %{reqpopt_ver}
466
467%description utils-perl
8482995c 468Additional utilities for managing RPM packages and database.
92b3f576 469
dd85fadc
JR
470%description utils-perl -l de.UTF-8
471Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
92b3f576 472
dd85fadc
JR
473%description utils-perl -l pl.UTF-8
474Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
92b3f576 475
a00926bc
JB
476%package utils-static
477Summary: Static rpm utilities
4ea2ed33 478Summary(pl.UTF-8): Statyczne narzędzia rpm
a00926bc 479Group: Applications/System
153e5706 480Requires: %{name} = %{version}-%{release}
a00926bc
JB
481
482%description utils-static
483Static rpm utilities for repairing system in case something with
484shared libraries used by rpm become broken. Currently it contains rpmi
485binary, which can be used to install/upgrade/remove packages without
486using shared libraries (well, in fact with exception of NSS modules).
487
dd85fadc
JR
488%description utils-static -l pl.UTF-8
489Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
490związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
491Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
492uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
493(z wyjątkiem modułów NSS).
a00926bc 494
fed73700 495%package build
e191287c 496Summary: Scripts for building binary RPM packages
4ea2ed33
ER
497Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
498Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
499Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
500Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
501Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
e191287c 502Group: Applications/File
8f76a271 503Requires(pre): findutils
950eead3 504Requires: %{name}-build-macros >= 1.433-2
153e5706 505Requires: %{name}-utils = %{version}-%{release}
e191287c 506Requires: /bin/id
507Requires: awk
cfa7898a 508Requires: bzip2
e950a6d7 509Requires: chrpath >= 0.10-4
b6547e10 510Requires: cpio
e191287c 511Requires: diffutils
195f647c 512Requires: elfutils
583135b4 513Requires: file >= 4.17
e191287c 514Requires: fileutils
515Requires: findutils
950eead3
ER
516%ifarch athlon
517Requires: gcc >= 3.0.3
518%else
519Requires: gcc
520%endif
e191287c 521Requires: glibc-devel
522Requires: grep
523Requires: gzip
524Requires: make
525Requires: patch
e191287c 526Requires: sed
527Requires: sh-utils
528Requires: tar
529Requires: textutils
ca3648b1 530Provides: rpmbuild(monoautodeps)
37ea389a 531Provides: rpmbuild(noauto) = 3
02d17bf9 532%ifarch %{x8664}
195f647c
JB
533Conflicts: automake < 1:1.7.9-2
534Conflicts: libtool < 2:1.5-13
535%endif
0096c5cd 536
e2025ad1 537%description build
58399c37 538Scripts for building binary RPM packages.
fed73700 539
dd85fadc
JR
540%description build -l de.UTF-8
541Scripts fürs Bauen binärer RPM-Pakete.
9e42d68a 542
dd85fadc
JR
543%description build -l pl.UTF-8
544Skrypty pomocnicze do budowania binarnych RPM-ów.
313a4d1a 545
dd85fadc
JR
546%description build -l pt_BR.UTF-8
547Este pacote contém scripts e programas executáveis que são usados para
cf6faebc 548construir pacotes usando o RPM.
e73478cd 549
dd85fadc
JR
550%description build -l ru.UTF-8
551Различные вспомогательные скрипты и исполняемые программы, которые
552используются для сборки RPM'ов.
7c6dc55f 553
dd85fadc
JR
554%description build -l uk.UTF-8
555Різноманітні допоміжні скрипти та утиліти, які використовуються для
556побудови RPM'ів.
7c6dc55f 557
8482995c
JB
558%package javaprov
559Summary: Additional utilities for checking Java provides/requires in RPM packages
560Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
561Group: Applications/File
562Requires: %{name} = %{version}-%{release}
563Requires: file
564Requires: findutils >= 1:4.2.26
565Requires: mktemp
566Requires: unzip
567
568%description javaprov
569Additional utilities for checking Java provides/requires in RPM
570packages.
571
572%description javaprov -l pl.UTF-8
573Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
574RPM.
575
69131f1a 576%package perlprov
8482995c 577Summary: Additional utilities for checking Perl provides/requires in RPM packages
4ea2ed33 578Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
8482995c 579Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
69131f1a
JB
580Group: Applications/File
581Requires: %{name} = %{version}-%{release}
582Requires: perl-devel
583Requires: perl-modules
584
585%description perlprov
8482995c 586Additional utilities for checking Perl provides/requires in RPM
69131f1a
JB
587packages.
588
dd85fadc
JR
589%description perlprov -l de.UTF-8
590Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
69131f1a 591
dd85fadc 592%description perlprov -l pl.UTF-8
8482995c
JB
593Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
594pakietach RPM.
69131f1a
JB
595
596%package pythonprov
8482995c
JB
597Summary: Python macros, which simplifies creation of RPM packages with Python software
598Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
69131f1a
JB
599Group: Applications/File
600Requires: %{name} = %{version}-%{release}
cd800b3c 601Requires: python
243c6264 602Requires: python-modules
69131f1a
JB
603
604%description pythonprov
8482995c 605Python macros, which simplifies creation of RPM packages with Python
69131f1a
JB
606software.
607
dd85fadc 608%description pythonprov -l pl.UTF-8
8482995c 609Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
69131f1a
JB
610Pythonie.
611
612%package php-pearprov
8482995c
JB
613Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
614Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
69131f1a
JB
615Group: Applications/File
616Requires: %{name} = %{version}-%{release}
632f1b5c 617Requires: sed >= 4.0
69131f1a
JB
618
619%description php-pearprov
8482995c 620Additional utilities for checking PHP PEAR provides/requires in RPM
69131f1a
JB
621packages.
622
dd85fadc 623%description php-pearprov -l pl.UTF-8
8482995c
JB
624Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
625pakietach RPM.
69131f1a
JB
626
627%package -n python-rpm
628Summary: Python interface to RPM library
4ea2ed33
ER
629Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
630Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
69131f1a
JB
631Group: Development/Languages/Python
632Requires: %{name} = %{version}-%{release}
633%pyrequires_eq python
634Obsoletes: rpm-python
635
636%description -n python-rpm
637The rpm-python package contains a module which permits applications
638written in the Python programming language to use the interface
639supplied by RPM (RPM Package Manager) libraries.
640
641This package should be installed if you want to develop Python
642programs that will manipulate RPM packages and databases.
643
dd85fadc
JR
644%description -n python-rpm -l pl.UTF-8
645Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
646Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
69131f1a 647
dd85fadc
JR
648Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
649Pythonie programy manipulujące pakietami i bazami danych rpm.
69131f1a 650
dd85fadc
JR
651%description -n python-rpm -l pt_BR.UTF-8
652O pacote rpm-python contém um módulo que permite que aplicações
69131f1a
JB
653escritas em Python utilizem a interface fornecida pelas bibliotecas
654RPM (RPM Package Manager).
655
dd85fadc 656Esse pacote deve ser instalado se você quiser desenvolver programas em
69131f1a
JB
657Python para manipular pacotes e bancos de dados RPM.
658
5c2ab5c7
AM
659%package apidocs
660Summary: RPM API documentation and guides
661Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
662Group: Documentation
663
664%description apidocs
665Documentation for RPM API and guides in HTML format generated from rpm
666sources by doxygen.
667
668%description apidocs -l pl.UTF-8
669Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
670źrodeł RPM-a przez doxygen.
671
e2025ad1 672%prep
d38aed81 673%setup -q -n %{name}-%{version}%{?subver} -a100
317ef122 674#patch0 -p1
2f0ee4ec 675%patch1 -p1
4d5b8e4c 676%patch2 -p1
ece43ea2 677%patch3 -p1
7a3b1f24
AM
678%patch4 -p1
679%patch5 -p1
c1768ce2 680%patch7 -p1
7a3b1f24 681%patch8 -p1
fefe9d30 682%patch9 -p1
6a8612bc 683%{?with_system_lua:%patch11 -p1}
2a321171 684# CHECK ME - macrofiles: ~/etc could be used
98a21402 685#%%patch14 -p1
fefe9d30 686%patch16 -p1
8e989934 687echo '%%define __perl_provides %%{__perl} /usr/lib/rpm/perl.prov' > macros.perl
688echo '%%define __perl_requires %%{__perl} /usr/lib/rpm/perl.req' >> macros.perl
c2673e18 689echo '# obsoleted file' > macros.python
ac090b0f
ER
690echo '%%define __php_provides /usr/lib/rpm/php.prov' > macros.php
691echo '%%define __php_requires /usr/lib/rpm/php.req' >> macros.php
120d96b6 692echo '%%define __mono_provides /usr/lib/rpm/mono-find-provides' > macros.mono
693echo '%%define __mono_requires /usr/lib/rpm/mono-find-requires' >> macros.mono
80b8a1f9
JB
694install %{SOURCE9} scripts/php.prov.in
695install %{SOURCE10} scripts/php.req.in
696install %{SOURCE12} scripts/perl.prov
169dcb39 697
a736a97d 698%ifarch i386 i486
0bf2c47b 699# disable TSC
f5afdd6c 700%patch26 -p1
0bf2c47b 701%endif
24123ddd 702%patch27 -p1
950eead3 703%patch34 -p1
7a3b1f24 704%patch35 -p0
148c9957 705%patch36 -p1
e24da480 706%patch37 -p1
9282ffe4 707%patch41 -p1
ece43ea2 708%patch42 -p1
2a321171 709%patch46 -p1
775829eb 710%patch47 -p1
d6080f70 711%patch55 -p1
59a562c2 712%patch59 -p1
317ef122
JR
713# Maybe, at last we can remove this?
714#patch19 -p1
c50e9031 715%patch60 -p1
7ffa7946 716%ifarch sparc64
717%patch61 -p1
718%endif
7f26883c 719%patch62 -p1
77fcdbf7 720%patch70 -p1
77fcdbf7 721%patch72 -p1 -b .wiget
afb55538
JR
722%patch73 -p1
723%patch74 -p1
765b7c41 724
08697680
JR
725cp -p %{SOURCE2} macros/pld.in
726
7a3b1f24
AM
727cd scripts
728mv -f perl.req perl.req.in
729mv -f perl.prov perl.prov.in
730cd ..
633d1e9e 731
cd86db2e 732# generate Group translations to *.po
80b8a1f9 733awk -f %{SOURCE6} %{SOURCE1}
fefe9d30 734
87ef0d95 735%build
ea816ea6 736%{__libtoolize}
c0a9be8f 737#%{__autopoint}
ceaaacee 738%{__aclocal}
4cd84746 739%{__autoheader}
7a9d72ce 740%{__autoconf}
7a9d72ce 741%{__automake}
7a9d72ce 742
d268a169 743%{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
89427592 744# pass CC and CXX too in case of building with some older configure macro
624f96ff 745%configure \
f9ac32aa
AM
746 CC="%{__newcc}" \
747 CXX="%{__newcxx}" \
748 CPP="%{__newcpp}" \
01d7a578 749 WITH_PERL_VERSION=no \
cd86db2e 750 --enable-shared \
874f4c9a 751 --enable-static \
5c2ab5c7 752 %{!?with_apidocs:--without-apidocs} \
f3cb8244 753 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
a6e56ce4 754 %{!?with_python:--without-python} \
241257bf
AM
755 --with%{!?with_selinux:out}-selinux \
756 --with-libelf \
757 --with-zlib=external \
758 --with-bzip2=external \
759 --with-beecrypt=external \
1afa05ce 760 --with-lzma=external \
77fcdbf7 761 --with-xz=external \
241257bf
AM
762 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
763 --with-file=external \
764 --with-popt=external \
afb55538 765 --with-db=%{?with_db:external}%{!?with_db:no} \
77fcdbf7 766 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
950eead3 767 --with-dbapi=%{!?with_sqlite_dbapi:db}%{?with_sqlite_dbapi:sqlite} \
6a8612bc 768 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
77fcdbf7 769 --with-pcre=external \
241257bf
AM
770 --with-keyutils=none \
771 --without-path-versioned \
08697680
JR
772 --with-path-macros='%{_rpmlibdir}/macros:%{_rpmlibdir}/macros.d/pld:%{_rpmlibdir}/macros.build:%{_rpmlibdir}/%%{_target}/macros:%{_sysconfdir}/rpm/macros.*:%{_sysconfdir}/rpm/macros:%{_sysconfdir}/rpm/%%{_target}/macros:~/etc/rpmmacros:~/etc/.rpmmacros:~/.rpmmacros' \
773 --with-extra-path-macros=%{_rpmlibdir}/platform/%%{_target}/macros:%{_sysconfdir}/rpm/macros.d/*.macros:%{_rpmlibdir}/macros.d/pld \
774 --with-bugreport="http://bugs.pld-linux.org/" \
775 --with-vendor=pld
cf6faebc 776
25e974c7 777%{__make} -j1 \
f9ac32aa
AM
778 CC="%{__cc}" \
779 CXX="%{__cxx}" \
241257bf 780 CPP="%{__cpp}"
33be5db0 781
5c2ab5c7
AM
782%{?with_apidocs:%{__make} apidocs}
783
b064b8e6 784%install
ff7bc1e6 785rm -rf $RPM_BUILD_ROOT
54eb1770
AM
786install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm,/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
787
788install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 789
a5e7fb84 790%{__make} install \
241257bf
AM
791 pkgconfigdir=%{_pkgconfigdir} \
792 DESTDIR=$RPM_BUILD_ROOT
718426e1 793
25ac75ae
AM
794# install ARCH macros
795install -d $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux
d38aed81 796install cpu-os-macros/noarch-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros
25ac75ae
AM
797
798%ifarch %{ix86}
799install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{i386,i486,i586,i686,athlon,pentium3,pentium4}-linux
d38aed81
JR
800install cpu-os-macros/athlon-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
801install cpu-os-macros/i386-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
802install cpu-os-macros/i486-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
803install cpu-os-macros/i586-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
804install cpu-os-macros/i686-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
805install cpu-os-macros/pentium3-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
806install cpu-os-macros/pentium4-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
25ac75ae
AM
807%endif
808
809%ifarch %{x8664}
810install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{x86_64,ia32e,amd64}-linux
d38aed81
JR
811install cpu-os-macros/x86_64-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
812install cpu-os-macros/ia32e-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
813install cpu-os-macros/amd64-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
25ac75ae
AM
814%endif
815
816%ifarch %{ppc}
817install -d $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux
d38aed81 818install cpu-os-macros/ppc-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
25ac75ae
AM
819%endif
820
2eb9303e 821cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
ca076ee5 822# first platform file entry can't contain regexps
2eb9303e 823%{_target_cpu}-%{_target_vendor}-linux
caf453d4 824
2d8ae03e
AM
825# x86_64 things
826%ifarch x86_64
53fd58bc 827x86_64-[^-]*-[Ll]inux(-gnu)?
9cfcb6c8 828amd64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 829%endif
2d8ae03e 830%ifarch amd64
53fd58bc
AM
831amd64-[^-]*-[Ll]inux(-gnu)?
832x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 833%endif
2d8ae03e 834%ifarch ia32e
53fd58bc
AM
835ia32e-[^-]*-[Ll]inux(-gnu)?
836x86_64-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
837%endif
838
839# x86 things
06bd38df 840%ifarch athlon %{x8664}
53fd58bc 841athlon-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 842%endif
06bd38df 843%ifarch pentium4 athlon %{x8664}
53fd58bc 844pentium4-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 845%endif
06bd38df 846%ifarch pentium3 pentium4 athlon %{x8664}
53fd58bc 847pentium3-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 848%endif
06bd38df 849%ifarch i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 850i686-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 851%endif
06bd38df 852%ifarch i586 i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 853i586-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 854%endif
06bd38df 855%ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664}
53fd58bc 856i486-[^-]*-[Ll]inux(-gnu)?
2d8ae03e 857%endif
06bd38df 858%ifarch %{ix86} %{x8664}
53fd58bc 859i386-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
860%endif
861
5074eba9 862%ifarch alpha
53fd58bc 863alpha-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
864%endif
865
866%ifarch ia64
53fd58bc 867ia64-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
868%endif
869
870%ifarch ppc64
53fd58bc
AM
871powerpc64-[^-]*-[Ll]inux(-gnu)?
872ppc64-[^-]*-[Ll]inux(-gnu)?
5074eba9 873%endif
950eead3 874%ifarch %{ppc} ppc64
53fd58bc
AM
875powerpc-[^-]*-[Ll]inux(-gnu)?
876ppc-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
877%endif
878
879%ifarch s390x
53fd58bc 880s390x-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
881%endif
882%ifarch s390 s390x
53fd58bc 883s390-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
884%endif
885
886%ifarch sparc64
53fd58bc
AM
887sparc64-[^-]*-[Ll]inux(-gnu)?
888sparcv8-[^-]*-[Ll]inux(-gnu)?
889sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
890%endif
891%ifarch sparcv9
53fd58bc
AM
892sparcv8-[^-]*-[Ll]inux(-gnu)?
893sparcv9-[^-]*-[Ll]inux(-gnu)?
5074eba9
JB
894%endif
895%ifarch sparc sparcv9 sparc64
53fd58bc 896sparc-[^-]*-[Ll]inux(-gnu)?
2d8ae03e
AM
897%endif
898
899# noarch
2eb9303e
ER
900noarch-[^-]*-.*
901EOF
2d8ae03e 902
02919de5
JK
903rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
904rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
905rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
950eead3 906rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
02919de5 907
644d8958
JB
908# not installed since 4.4.8 (-tools-perl subpackage)
909install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
910
d755a548
JK
911install macros.perl $RPM_BUILD_ROOT%{_rpmlibdir}/macros.perl
912install macros.python $RPM_BUILD_ROOT%{_rpmlibdir}/macros.python
913install macros.php $RPM_BUILD_ROOT%{_rpmlibdir}/macros.php
5790b583 914install macros.mono $RPM_BUILD_ROOT%{_rpmlibdir}/macros.mono
1f625675 915install %{SOURCE15} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.java
7ba63f26 916
61f7e1b3 917install %{SOURCE1} doc/manual/groups
d755a548 918install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
80b8a1f9
JB
919install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
920install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
921install %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/check-files
d0370fe5 922install %{SOURCE13} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
7d8492bb 923install %{SOURCE16} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
d755a548
JK
924install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
925install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
c75b3936 926install %{SOURCE20} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
cf709a39 927install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
d0370fe5 928install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 929
1c2e2d8e 930install %{SOURCE17} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 931
950eead3
ER
932install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
933
08697680
JR
934install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
935install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
936install %{SOURCE23} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
937install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
938install %{SOURCE25} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
939install %{SOURCE26} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep
940install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
941
950eead3
ER
942touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
943touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
944install %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
945touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
946touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
947touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
fbc0ff35 948
f3fd387a 949# for rpm -e|-U --repackage
a11e0e27
AM
950install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
951touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
f3fd387a 952
950eead3
ER
953# move rpm to /bin
954mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
955# move essential libs to /lib (libs that /bin/rpm links to)
ece880e2 956for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
50dc9ac0
JK
957 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
958 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
c2673e18
AF
959done
960
950eead3
ER
961# Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
962mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
963
6f18cdb7
AF
964%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
965%py_comp $RPM_BUILD_ROOT%{py_sitedir}
966
08697680 967%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
01d7a578 968
01d7a578 969# wrong location, not used anyway
08697680 970%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
950eead3 971# utils dropped in 4.4.8 -- their manuals
08697680 972%{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/rpmgraph.8
01d7a578 973
90b03dd6 974%find_lang %{name}
cf6faebc 975
08697680 976%{__rm} -rf manual
a998ac11 977cp -a doc/manual manual
08697680 978%{__rm} -f manual/Makefile*
874f4c9a 979
13eb5ebf 980%clean
d7df46b8 981rm -rf $RPM_BUILD_ROOT
76214164 982
cc1a4992
ER
983%triggerpostun lib -- %{name}-lib < %{version}
984rm -f /var/lib/rpm/__db*
985
986%pretrans
987# this needs to be a dir
988if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
c1097150 989 umask 022
cc1a4992
ER
990 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
991 mkdir %{_sysconfdir}/rpm/sysinfo
992fi
993
cf709a39
ER
994%triggerpostun -- %{name} < 4.4.9-44
995%{_rpmlibdir}/hrmib-cache
996
ceaaacee
JB
997%post lib -p /sbin/ldconfig
998%postun lib -p /sbin/ldconfig
76214164 999
37a5a2fc 1000%pretrans build
d755a548 1001find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 1002
3684d90f
JB
1003%files -f %{name}.lang
1004%defattr(644,root,root,755)
241257bf 1005%doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
3684d90f 1006
54eb1770
AM
1007%dir %{_sysconfdir}/pki/rpm-gpg
1008%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1009
7a9d72ce 1010%attr(755,root,root) /bin/rpm
e73478cd 1011
66edd895 1012%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
950eead3 1013%dir %{_sysconfdir}/rpm/sysinfo
caf453d4 1014# these are ok to be replaced
950eead3 1015%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
caf453d4
AM
1016%config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1017
09bb810c 1018%{_mandir}/man8/rpm.8*
feb1f12e 1019%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 1020%lang(ja) %{_mandir}/ja/man8/rpm.8*
1162bdc1 1021%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 1022%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 1023%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 1024%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 1025
e2025ad1 1026%dir /var/lib/rpm
74a997bd
JR
1027%dir /var/lib/rpm/log
1028%dir /var/lib/rpm/tmp
1029%config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
f3fd387a 1030%dir %attr(700,root,root) /var/spool/repackage
a11e0e27
AM
1031%dir /var/lock/rpm
1032/var/lock/rpm/transaction
4acac5de 1033
cf709a39
ER
1034# exported package NVRA (stamped with install tid)
1035# net-snmp hrSWInstalledName queries, bash-completions
1036%dir /var/cache/hrmib
1037
ec44785a 1038%{_rpmlibdir}/qf
d755a548
JK
1039%{_rpmlibdir}/rpmpopt*
1040%{_rpmlibdir}/macros
08697680
JR
1041%dir %{_rpmlibdir}/macros.d
1042%{_rpmlibdir}/macros.d/pld
9282ffe4 1043%{_rpmlibdir}/cpuinfo.yaml
3684d90f 1044
cf709a39
ER
1045%attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1046
66edd895
JB
1047%files base
1048%defattr(644,root,root,755)
492a2bd4 1049%dir %{_sysconfdir}/rpm
66edd895
JB
1050%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1051%dir %{_rpmlibdir}
1052%attr(755,root,root) %{_bindir}/banner.sh
1053%attr(755,root,root) %{_rpmlibdir}/user_group.sh
1054%dir /var/lib/banner
1055
874f4c9a
MM
1056%files lib
1057%defattr(644,root,root,755)
950eead3
ER
1058%attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1059%attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1060%attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1061%attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
a434679c 1062%attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
ece880e2 1063%attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
874f4c9a 1064
69131f1a
JB
1065%files devel
1066%defattr(644,root,root,755)
69131f1a
JB
1067%attr(755,root,root) %{_libdir}/librpm.so
1068%attr(755,root,root) %{_libdir}/librpm-%{sover}.so
950eead3
ER
1069%attr(755,root,root) %{_libdir}/librpmbuild.so
1070%attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
02510ee8
AM
1071%attr(755,root,root) %{_libdir}/librpmconstant.so
1072%attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
950eead3
ER
1073%attr(755,root,root) %{_libdir}/librpmdb.so
1074%attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
69131f1a
JB
1075%attr(755,root,root) %{_libdir}/librpmio.so
1076%attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
02510ee8
AM
1077%attr(755,root,root) %{_libdir}/librpmmisc.so
1078%attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
950eead3
ER
1079%{_libdir}/librpm*.la
1080%{_includedir}/rpm
1081%{_pkgconfigdir}/*.pc
69131f1a
JB
1082
1083%files static
1084%defattr(644,root,root,755)
1085%{_libdir}/librpm*.a
1086
1087%files utils
1088%defattr(644,root,root,755)
69131f1a 1089%attr(755,root,root) %{_bindir}/rpm2cpio
25e974c7 1090%attr(755,root,root) %{_bindir}/rpmconstant
69131f1a 1091%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
69131f1a 1092%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
25e974c7 1093%attr(755,root,root) %{_rpmlibdir}/tgpg
9282ffe4
AF
1094%dir %{_rpmlibdir}/bin
1095%attr(755,root,root) %{_rpmlibdir}/bin/debugedit
9282ffe4
AF
1096%attr(755,root,root) %{_rpmlibdir}/bin/mtree
1097%attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1098%attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1099%attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1100%attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1101%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey
1102%attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
69131f1a 1103%{_mandir}/man8/rpm2cpio.8*
950eead3 1104%{_mandir}/man8/rpmcache.8*
ec44785a 1105%{_mandir}/man8/rpmconstant.8*
69131f1a 1106%{_mandir}/man8/rpmdeps.8*
c0a9be8f 1107%{_mandir}/man8/rpmmtree.8*
69131f1a 1108%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
950eead3 1109%lang(ja) %{_mandir}/ja/man8/rpmcache.8*
69131f1a
JB
1110%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1111%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
950eead3 1112%lang(pl) %{_mandir}/pl/man8/rpmcache.8*
69131f1a 1113%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
69131f1a
JB
1114%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1115
1116%files utils-perl
1117%defattr(644,root,root,755)
1118%attr(755,root,root) %{_rpmlibdir}/rpmdiff*
69131f1a
JB
1119
1120%if %{with static}
1121%files utils-static
1122%defattr(644,root,root,755)
1123%attr(755,root,root) %{_bindir}/rpm[ieu]
1124%attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1125%endif
1126
3684d90f 1127%files build
a45ae6d8 1128%defattr(644,root,root,755)
66edd895 1129%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
1130%attr(755,root,root) %{_rpmlibdir}/brp-*
1131%attr(755,root,root) %{_rpmlibdir}/check-files
d755a548
JK
1132%attr(755,root,root) %{_rpmlibdir}/compress-doc
1133%attr(755,root,root) %{_rpmlibdir}/cross-build
d755a548 1134%attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
d755a548
JK
1135%attr(755,root,root) %{_rpmlibdir}/getpo.sh
1136%attr(755,root,root) %{_rpmlibdir}/install-build-tree
d755a548 1137%attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
01d7a578 1138%attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
01d7a578 1139%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
c75b3936 1140%attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
01d7a578
JB
1141# needs hacked pkg-config to return anything
1142%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
77fcdbf7
AF
1143%dir %{_rpmlibdir}/bin
1144%attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1145%attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
ec44785a 1146%attr(755,root,root) %{_rpmlibdir}/vcheck
d755a548 1147%{_rpmlibdir}/noarch-*
e9fe9fc5 1148%ifarch %{ix86}
d755a548 1149%{_rpmlibdir}/i?86*
e9fe9fc5 1150%{_rpmlibdir}/pentium*
d755a548
JK
1151%{_rpmlibdir}/athlon*
1152%endif
ad628734
JB
1153%ifarch alpha
1154%{_rpmlibdir}/alpha*
1155%endif
ad628734
JB
1156%ifarch ia64
1157%{_rpmlibdir}/ia64*
8f76a271 1158%endif
410dd742 1159%ifarch mips mipsel mips64 mips64el
1160%{_rpmlibdir}/mips*
1161%endif
80e9f34d 1162%ifarch %{ppc}
410dd742 1163%{_rpmlibdir}/ppc*
1164%endif
1165%ifarch sparc sparc64
1166%{_rpmlibdir}/sparc*
1167%endif
9f517079 1168%ifarch %{x8664}
206b32be
JB
1169%{_rpmlibdir}/amd64*
1170%{_rpmlibdir}/ia32e*
cedf1bfa
PS
1171%{_rpmlibdir}/x86_64*
1172%endif
410dd742 1173# must be here for "Requires: rpm-*prov" to work
7d8492bb 1174%{_rpmlibdir}/macros.java
5790b583 1175%{_rpmlibdir}/macros.mono
410dd742 1176%{_rpmlibdir}/macros.perl
1177%{_rpmlibdir}/macros.php
1178# not used yet ... these six depend on perl
ec44785a 1179%attr(755,root,root) %{_rpmlibdir}/http.req
ec44785a 1180%attr(755,root,root) %{_rpmlibdir}/mono*
77fcdbf7
AF
1181%{_rpmlibdir}/macros.d/java
1182%{_rpmlibdir}/macros.d/libtool
1183%{_rpmlibdir}/macros.d/mono
1184%{_rpmlibdir}/macros.d/perl
1185%{_rpmlibdir}/macros.d/php
1186%{_rpmlibdir}/macros.d/pkgconfig
1187%{_rpmlibdir}/macros.d/python
1188%{_rpmlibdir}/macros.d/selinux
1189%{_rpmlibdir}/macros.rpmbuild
1190
874f4c9a
MM
1191%attr(755,root,root) %{_bindir}/gendiff
1192%attr(755,root,root) %{_bindir}/rpmbuild
9282ffe4
AF
1193%attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1194%attr(755,root,root) %{_rpmlibdir}/bin/wget
ec44785a
BZ
1195
1196%dir %{_rpmlibdir}/helpers
1197%attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
874f4c9a 1198
a00926bc 1199%{_mandir}/man1/gendiff.1*
874f4c9a 1200%{_mandir}/man8/rpmbuild.8*
fefe9d30
JB
1201%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1202%lang(pl) %{_mandir}/pl/man1/gendiff.1*
1203%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
f3fe287f 1204
7d8492bb
JB
1205%files javaprov
1206%defattr(644,root,root,755)
1207%attr(755,root,root) %{_rpmlibdir}/java-find-requires
1208# needs jar (any jdk), jcf-dump (gcc-java) to work
1209%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1210
89334051
AF
1211%files perlprov
1212%defattr(644,root,root,755)
d755a548 1213%attr(755,root,root) %{_rpmlibdir}/perl.*
ec44785a
BZ
1214%attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1215%attr(755,root,root) %{_rpmlibdir}/perldeps.pl
9805fd6d 1216
80d3b868 1217%files pythonprov
d8fcb9b0 1218%defattr(644,root,root,755)
d755a548 1219%{_rpmlibdir}/macros.python
25d296e1 1220%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
09bb810c 1221
d36cb682
PG
1222%files php-pearprov
1223%defattr(644,root,root,755)
d755a548
JK
1224%attr(755,root,root) %{_rpmlibdir}/php*
1225%attr(755,root,root) %{_rpmlibdir}/find-php*
d36cb682 1226
50dc9ac0 1227%if %{with python}
cf6faebc 1228%files -n python-rpm
42a0025c 1229%defattr(644,root,root,755)
b33910fe 1230%dir %{py_sitedir}/rpm
6f18cdb7 1231%attr(755,root,root) %{py_sitedir}/rpm/*.so
8c99b39a 1232%{py_sitedir}/rpm/*.py[co]
50dc9ac0 1233%endif
5c2ab5c7
AM
1234
1235%if %{with apidocs}
1236%files apidocs
1237%defattr(644,root,root,755)
1238%doc apidocs
1239%endif
This page took 0.921877 seconds and 4 git commands to generate.