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