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