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