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