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