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