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