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