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