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