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