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