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