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