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