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