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