3 # - make key infrastructure code fallback from keyutils to plain mode in case keyctl
5 # - add macros for some ppc, mipsel, alpha and sparc
7 # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
10 %bcond_with static # build static rpm+rpmi
11 %bcond_without apidocs # don't generate documentation with doxygen
12 %bcond_without python # don't build python bindings
13 %bcond_without selinux # build without selinux support
14 %bcond_without suggest_tags # build without Suggest tag (bootstrapping)
15 %bcond_with db61 # use DB 6.1 instead of 5.2
16 %bcond_with neon # build with HTTP/WebDAV support (neon library)
17 %bcond_with sqlite # build with SQLite support
18 %bcond_with system_lua # use system lua
19 %bcond_without system_pcre # use system pcre
20 %bcond_with keyutils # build with keyutils support
23 # Error: /lib64/librpmio-5.4.so: undefined symbol: sqlite3_enable_load_extension
24 %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
27 # versions of required libraries
29 %define reqdb_pkg db6.1
31 %define reqdb_pkgver 6.1.19
33 %define reqdb_pkg db5.2
35 %define reqdb_pkgver 5.2.36.0-4
37 %define reqpopt_ver 1.15
38 %define beecrypt_ver 2:4.2.0
41 Summary: RPM Package Manager
42 Summary(de.UTF-8): RPM Packet-Manager
43 Summary(es.UTF-8): Gestor de paquetes RPM
44 Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
45 Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
46 Summary(ru.UTF-8): Менеджер пакетов от RPM
47 Summary(uk.UTF-8): Менеджер пакетів від RPM
53 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.15-0.20140824.src.rpm
54 Source0: %{name}-%{version}.tar.gz
55 # Source0-md5: 4067f83ca8b5bf1a21e443c0cff3efa0
56 # See README.cpu-os-macros how to update cpu-os-macros.a
57 Source100: cpu-os-macros.a
58 Source101: README.cpu-os-macros
59 Source1: %{name}.groups
60 Source2: macros.pld.in
61 Source3: %{name}-install-tree
62 Source4: %{name}-find-spec-bcond
63 Source5: %{name}-hrmib-cache
64 Source6: %{name}-groups-po.awk
65 Source7: %{name}-compress-doc
66 Source10: %{name}.sysinfo
68 Source12: %{name}-user_group.sh
69 Source13: %{name}.sysconfig
70 # http://svn.pld-linux.org/banner.sh/
72 Source16: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
73 # Source16-md5: 23914bb49fafe7153cee87126d966461
74 Source17: %{name}-mimetypedeps
75 Source18: macros.local
76 Source19: %{name}.noautocompressdoc
77 Source20: %{name}.noautoprov
78 Source21: %{name}.noautoprovfiles
79 Source22: %{name}.noautoreq
80 Source24: %{name}.noautoreqfiles
81 Source26: %{name}db_checkversion.c
83 Source28: %{name}db_reset.c
84 Source29: dbupgrade.sh
85 Source30: prov-req-macros
86 Patch0: %{name}-branch.patch
87 Patch1: %{name}-man_pl.patch
88 Patch2: %{name}-popt-aliases.patch
89 Patch3: %{name}-nosetproctitle.patch
90 Patch4: %{name}-perl-macros.patch
91 Patch5: %{name}-perl-req-perlfile.patch
92 Patch6: %{name}-scripts-closefds.patch
93 Patch8: %{name}-gettext-in-header.patch
94 Patch9: %{name}-lua.patch
95 Patch10: %{name}-php-deps.patch
96 Patch11: %{name}-notsc.patch
97 Patch12: %{name}-hack-norpmlibdep.patch
98 Patch13: %{name}-dont-copy-descriptive-tags.patch
99 Patch14: %{name}-perl_req-INC_dirs.patch
100 Patch15: %{name}-debuginfo.patch
101 Patch16: vendor-pld.patch
102 Patch17: %{name}-old-fileconflicts-behaviour.patch
103 Patch18: %{name}-javadeps.patch
104 Patch19: %{name}-truncate-cvslog.patch
105 Patch20: %{name}-libtool-deps.patch
106 Patch21: %{name}-mimetype.patch
107 Patch22: %{name}-sparc64.patch
108 Patch23: %{name}-gendiff.patch
109 Patch24: openmp.patch
110 Patch25: %{name}-URPM-build-fix.patch
111 Patch26: %{name}-semanage.patch
112 Patch27: %{name}-helperEVR-noassert.patch
113 Patch28: %{name}-unglobal.patch
114 Patch29: %{name}-builddir-readlink.patch
115 Patch30: %{name}-changelog_order_check_nonfatal.patch
116 Patch31: %{name}-cleanbody.patch
117 Patch32: %{name}-dirdeps-macro.patch
118 Patch33: %{name}-installbeforeerase.patch
119 Patch34: %{name}-libmagic-locale.patch
120 Patch35: %{name}-namespace-compare.patch
121 Patch36: %{name}-popt-coreutils.patch
122 Patch37: %{name}-postun-nofail.patch
123 Patch38: %{name}-silence-RPM_CHAR_TYPE.patch
124 Patch39: %{name}-fix-missing-types-in-headers.patch
125 Patch40: %{name}-fix--p-interpreter-and-empty-script.patch
126 Patch41: %{name}-db_buffer_small.patch
127 Patch42: %{name}-pattern_Release.patch
128 Patch43: %{name}-fix-___build_pre-macro.patch
129 Patch44: %{name}-missing-patch-file-fails-build.patch
130 Patch45: %{name}-remove-misleading-missing-patch-message.patch
131 Patch46: %{name}-file-magic-can-be-mixed-case.patch
132 Patch47: %{name}-query-always-noisy.patch
133 Patch48: %{name}-verify-ghosts-broken-logic.patch
134 Patch49: %{name}-python-enable-compat-RPMSENSE.patch
135 Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
136 Patch51: %{name}-gst-inspect-typo.patch
137 Patch52: %{name}-null-term-ascii-digest.patch
138 Patch53: %{name}-lua-enable-extra-libs.patch
139 Patch54: %{name}-fix-filedigests-verify.patch
140 Patch55: %{name}-disable-hmac-verify.patch
141 Patch56: %{name}-macros.patch
142 Patch57: %{name}-db5.2.patch
143 Patch58: %{name}-preserve-iterator.patch
144 Patch59: gcc6-stdlib.patch
145 Patch60: %{name}-python-sitescriptdir.patch
146 Patch61: %{name}-clean-docdir.patch
147 Patch62: %{name}-DB_CONFIG.patch
148 Patch63: %{name}-pythoneggs.patch
149 Patch64: %{name}-fix-compress-doc.patch
150 Patch65: %{name}-parseSpec-skip-empty-tags.patch
151 Patch66: %{name}-payload-use-hashed-inode.patch
152 Patch67: %{name}-repackage-dont-force-max-compression.patch
153 Patch68: rpm-bug-420.patch
154 Patch70: python-%{name}sense-missingok.patch
155 Patch71: %{name}-changelog-encoding.patch
156 Patch72: %{name}-preserve-tag-type.patch
157 Patch74: %{name}-fix-internal-lua-build.patch
158 Patch75: %{name}-double_check_file_deps.patch
159 Patch77: %{name}-lua-expat.patch
160 Patch78: %{name}-double_check_unpackaged_subdirs.patch
161 Patch79: %{name}-rpmspec.patch
162 Patch80: %{name}-revert-gpg-argv-parsing.patch
163 Patch81: %{name}-perl-magic.patch
164 Patch82: %{name}-5.4.15-use-DSA-sig.patch
165 Patch83: %{name}-ignore-missing-macro-files.patch
167 Patch85: rpm-CVE-2013-6435.patch
168 Patch86: rpm-CVE-2014-8118.patch
169 Patch87: %{name}-file-output-for-ELF.patch
170 Patch88: %{name}-rpmtdnext.patch
171 Patch89: disable-header-verification.patch
172 Patch90: %{name}-cppcompat.patch
173 Patch91: py-disable-fetch.patch
174 Patch92: fast_python_deps.patch
175 Patch93: python2_explicit.patch
176 Patch94: do_not_write_before_macro_buffer.patch
177 Patch95: rpm-python-spec-header.patch
178 Patch96: skip-ldconfig-optimization.patch
180 Patch98: extension-based-compression-detection.patch
181 Patch99: %{name}-gpg-pinentry.patch
183 # Patches imported from Mandriva
185 # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
186 # would basically just mean backporting it..
187 Patch1000: %{name}-5.4.4-add-_specfile-macro.patch
188 # status: needs to be cleaned up and properly reviewed together with rest
189 # of the patches related to dependency generation
190 Patch1001: %{name}-5.4.9-avoid-dependencies-on-self.patch
191 # status: probably ready to merge
192 Patch1002: %{name}-5.4.4-pkgconfigdeps-check-path.patch
193 # status: probably okay to merge, but discuss on rpm-devel first
194 Patch1003: %{name}-5.4.4-glob-wildcards-for-loading-macro-files.patch
195 # status: needs to be discussed
196 Patch1004: %{name}-5.4.4-allow-installation-of-repackaged-rpms.patch
197 # status: ready to merge
198 Patch1005: %{name}-5.4.8-dont-show-suggests-with-requires.patch
199 # status: ready for merge
200 Patch1006: %{name}-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
201 # status: probably okay to merge, but discuss on rpm-devel first
202 Patch1007: %{name}-5.4.10-duplicate_files_terminate_build.patch
203 # status: same as above
204 Patch1008: %{name}-5.4.10-unpackaged_subdirs_terminate_build.patch
206 # status: uncertain, might be okay to merge, discuss on rpm-devel first
207 Patch1009: %{name}-5.4.4-rpmbuild-withoutclean.patch
208 # no sense in having an additional dependency on 'pkgconfig' on all packages that
209 # have a pkgconfig file, it's not needed for them to be made useful and anything
210 # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
211 # status: might be okay to merge, but discuss on rpm-devel first
212 Patch1010: %{name}-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
213 # status: ready for merge
214 Patch1011: %{name}-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
215 # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
216 # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
217 # status: needs to be discussed and investigated a bit better..
218 Patch1012: %{name}-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
219 # status: probably okay to merge, but discuss on rpm-devel first
220 Patch1013: %{name}-5.4.10-files-listed-twice-terminates-build.patch
221 # status: keep locally
222 Patch1015: %{name}-5.4.9-keep-loading-script-macros.patch
223 # status: same as for other dep gen patches
224 Patch1016: %{name}-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
226 Patch1017: %{name}-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
227 # status: probably okay to merge
228 Patch1019: %{name}-5.4.5-python-export-spec-macros.patch
230 Patch1020: %{name}-5.4.9-font-provides.patch
232 Patch1021: %{name}-5.4.7-kmod-dependencies.patch
233 # status: probably okay to merge, discuss on rpm-devel first
234 Patch1022: %{name}-5.4.5-skip-dependencies-for-character-devices.patch
235 # status: probably okay to merge
236 Patch1024: %{name}-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
237 # status: probably okay to merge
238 Patch1026: %{name}-5.4.10-dont-try-generate-rpmfc-dependencies-from-doc-files.patch
240 Patch1027: %{name}-5.4.7-fix-generation-of-ruby-abi-provides.patch
241 # crash reproducable with 'rpm -qa --triggers'
243 Patch1028: %{name}-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
244 # status: same as for other dep gen patches
245 Patch1029: %{name}-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
247 Patch1030: %{name}-5.4.7-fix-minor-memleaks.patch
249 Patch1031: %{name}-5.4.9-mire-fix-strings-lacking-null-terminator.patch
251 Patch1032: %{name}-5.4.9-rpmpython-fix-input.patch
253 Patch1033: %{name}-5.4.7-no-seqid_init-on-rdonly-database.patch
254 # status: probably ready for merging
255 Patch1034: %{name}-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.patch
256 # status: probably ready to merge, discuss on rpm-devel first
257 Patch1035: %{name}-5.4.9-fix-verify-segfault.patch
258 # Due to rpmdav/neon being written in a different fashion than other rpmio clients,
259 # the inconsistent behaviour affects code elsewhere which expects consistent behaviour,
260 # with the result being that when unable to download files, neon will save error
261 # page as the target file.
262 # status: should go upstream, but uncertain about "correct" fix, ie. this is
263 # more of a workaround, while rewriting rpmdav code to behave consistently
264 # would be "the right thing to do". Yet I'm not fully able to grasp all of the
265 # code and don't want to spend more time just to get the API..
266 Patch1037: %{name}-5.4.10-fix-neon-saving-error-pages-as-target-file.patch
267 # As the transaction flags for ignoring arch & os are no longer used, there's
268 # currently no way to ignore arch & os of packages anymore. This patch adds
269 # support for doing this again by defining rpm variables and overriding
270 # --ignorearch & --ignoreos to set these.
271 # status: needs to be discussed upstream before thinking about merging
272 Patch1038: %{name}-5.4.10-support-ignore-arch-and-os-again.patch
273 # status: ready for merge
274 Patch1039: %{name}-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch
275 # we want that patch too, a bit of builder infrastructure relies on NOSIGNATURES
276 Patch1040: %{name}-5.4.9-support-signatures-and-digest-disablers.patch
277 # lack insight on actual functionality, which anyways seems broken, so let's
278 # disable it to avoid errors from berkeley db..
279 # status: keep locally
280 Patch1041: %{name}-5.4.9-disable-l10ndir.patch
281 # status: ready for merge
282 Patch1042: %{name}-5.4.9-fix-rpm_qa-pattern.patch
283 # warning: introduces memory leak
284 Patch1043: %{name}-5.4.12-copy-Value-string.patch
285 Patch1044: %{name}-5.4.12-fix-rpmlua-print.patch
286 Patch1045: %{name}-5.4.12-fix-rpmpython-module-import-init.patch
287 Patch1046: %{name}-5.4.12-truncate-output-buffer-after-use.patch
288 Patch1047: %{name}-5.4.13-perl-bindings-do-not-use-xmalloc.patch
290 # there's a rpmdbchk tool I wrote a while back, which might help you. although
291 # the incidents it's able to deal with is rather limited ATM... it might help
292 # you out, if not and you'll be able to solve yer problem, you could take a
293 # stab at adding support for fixing your specific problem to the util ;)
294 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-rpmdbchk.patch
295 Patch1048: %{name}-5.4.14-rpmdbchk.patch
296 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-no-assert-abort-with-broken-headers.patch
297 Patch1049: %{name}-5.4.14-no-assert-abort-with-broken-headers.patch
299 Patch1050: python-libx32.patch
301 URL: http://rpm5.org/
302 BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
304 BuildRequires: sqlite3-devel
306 BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
308 BuildRequires: autoconf >= 2.63
309 BuildRequires: automake >= 1.4
310 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
311 BuildRequires: bzip2-devel >= 1.0.2-17
312 BuildRequires: elfutils-devel >= 0.108
313 BuildRequires: gettext-tools >= 0.19.2
314 %{?with_keyutils:BuildRequires: keyutils-devel}
315 BuildRequires: libmagic-devel
317 BuildRequires: libselinux-devel >= 2.1.0
318 BuildRequires: libsemanage-devel >= 2.1.0
319 BuildRequires: libsepol-devel >= 2.1.0
321 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
322 BuildRequires: libstdc++-devel
323 BuildRequires: libtool >= 1:1.4.2-9
325 BuildRequires: libxml2-devel
326 BuildRequires: neon-devel >= 0.25.5
328 %{?with_system_lua:BuildRequires: lua52-devel >= 5.2.2}
329 BuildRequires: ossp-uuid-devel
330 BuildRequires: patch >= 2.2
331 BuildRequires: popt-devel >= %{reqpopt_ver}
332 %{?with_python:BuildRequires: python-devel >= 1:2.3}
333 BuildRequires: python-modules >= 1:2.3
334 %{?with_python:BuildRequires: rpm-pythonprov}
336 BuildRequires: xz-devel
337 BuildRequires: zlib-devel
339 BuildRequires: doxygen
340 BuildRequires: ghostscript
341 BuildRequires: graphviz
342 BuildRequires: tetex-pdftex
345 # Require static library only for static build
346 BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
347 BuildRequires: beecrypt-static >= %{beecrypt_ver}
348 BuildRequires: bzip2-static >= 1.0.2-17
349 BuildRequires: elfutils-static
350 BuildRequires: glibc-static >= 2.2.94
351 BuildRequires: libmagic-static
353 BuildRequires: libselinux-static >= 2.1.0
354 BuildRequires: libsemanage-static >= 2.1.0
355 BuildRequires: libsepol-static >= 2.1.0
357 BuildRequires: popt-static >= %{reqpopt_ver}
358 BuildRequires: zlib-static
360 Requires(posttrans): coreutils
361 Requires: FHS >= 3.0-2
362 Requires: %{name}-base = %{version}-%{release}
363 Requires: %{name}-lib = %{version}-%{release}
364 Requires: beecrypt >= %{beecrypt_ver}
365 Requires: popt >= %{reqpopt_ver}
366 Provides: rpm-db-ver = %{reqdb_ver}
367 Obsoletes: rpm-getdeps
368 %{!?with_static:Obsoletes: rpm-utils-static}
369 Conflicts: glibc < 2.2.92
370 # db4.6 poldek needed
371 Conflicts: poldek < 0.21-0.20070703.00.3
372 # segfaults with lzma 0.42.2
373 Conflicts: lzma-libs < 4.999.3
374 Conflicts: util-vserver < 0.30.216-1.pre3034.7
375 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
377 %define _binary_payload w9.gzdio
379 # don't require very fresh rpm.macros to build
380 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
381 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
382 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
383 %define ppc ppc ppc7400 ppc7450
384 %define x8664 amd64 ia32e x86_64
386 %define _rpmlibdir /usr/lib/rpm
387 %define _noautocompressdoc RPM-GPG-KEY
390 RPM is a powerful package manager, which can be used to build,
391 install, query, verify, update, and uninstall individual software
392 packages. A package consists of an archive of files, and package
393 information, including name, version, and description.
395 %description -l de.UTF-8
396 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
397 Installation, Anfrage, Verifizierung, Aktualisierung und
398 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
399 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
402 %description -l es.UTF-8
403 RPM es un poderoso administrador de paquetes, que puede ser usado para
404 construir, instalar, pesquisar, verificar, actualizar y desinstalar
405 paquetes individuales de software. Un paquete consiste en un
406 almacenaje de archivos, y información sobre el paquete, incluyendo
407 nombre, versión y descripción.
409 %description -l pl.UTF-8
410 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
411 przebudowanie, instalację czy weryfikację dowolnego pakietu.
412 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
413 plików wchodzących w skład pakietu, zależności od innych pakietów, są
414 przechowywane w bazie danych i można je uzyskać za pomocą opcji
415 odpytywania programu rpm.
417 %description -l pt_BR.UTF-8
418 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
419 construir, instalar, pesquisar, verificar, atualizar e desinstalar
420 pacotes individuais de software. Um pacote consiste de um conjunto de
421 arquivos e informações adicionais, incluindo nome, versão e descrição
422 do pacote, permissões dos arquivos, etc.
424 %description -l ru.UTF-8
425 RPM - это мощный менеджер пакетов, который может быть использован для
426 создания, инсталляции, запросов (query), проверки, обновления и
427 удаления программных пакетов. Пакет состоит из файлового архива и
428 служебной информации, включающей название, версию, описание и другие
431 %description -l uk.UTF-8
432 RPM - це потужний менеджер пакетів, що може бути використаний для
433 створення, інсталяції, запитів (query), перевірки, поновлення та
434 видалення програмних пакетів. Пакет складається з файлового архіву та
435 службової інформації, що містить назву, версію, опис та іншу
436 інформацію про пакет.
439 Summary: RPM base package - scripts used by rpm packages themselves
440 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
443 Obsoletes: rpm-scripts
444 Obsoletes: vserver-rpm
447 The RPM base package contains scripts used by rpm packages themselves.
449 - scripts for adding/removing groups and users needed for rpm
451 - banner.sh to display %%banner messages from rpm scriptlets.
453 %description base -l pl.UTF-8
454 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
456 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
457 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
460 Summary: RPMs library
461 Summary(pl.UTF-8): Biblioteki RPM-a
463 Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
465 Requires: sqlite3 >= %{sqlite_build_version}
467 Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
469 Requires: beecrypt >= %{beecrypt_ver}
470 Requires: libmagic >= 1.15-2
471 %{?with_selinux:Requires: libselinux >= 2.1.0}
472 Requires: popt >= %{reqpopt_ver}
474 # avoid SEGV caused by mixed db versions
475 Conflicts: poldek < 0.18.1-16
480 %description lib -l pl.UTF-8
484 Summary: Header files for rpm libraries
485 Summary(de.UTF-8): Header-Dateien für rpm Libraries
486 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
487 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
488 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
489 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
490 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
491 Group: Development/Libraries
492 Requires: %{name}-lib = %{version}-%{release}
493 Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
494 Requires: beecrypt-devel >= %{beecrypt_ver}
495 Requires: bzip2-devel
496 Requires: elfutils-devel
497 %{?with_keyutils:Requires: keyutils-devel}
498 Requires: libmagic-devel
500 Requires: libselinux-devel
501 Requires: libsemanage-devel
502 Requires: libsepol-devel
504 Requires: popt-devel >= %{reqpopt_ver}
508 The RPM packaging system includes C libraries that make it easy to
509 manipulate RPM packages and databases. They are intended to ease the
510 creation of graphical package managers and other tools that need
511 intimate knowledge of RPM packages. This package contains header files
514 %description devel -l de.UTF-8
515 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
516 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
517 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
518 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
520 %description devel -l es.UTF-8
521 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
522 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
523 facilitar la creación de administradores gráficos de paquetes y otras
524 herramientas que necesiten un conocimiento profundo de paquetes RPM.
526 %description devel -l pl.UTF-8
527 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
528 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
529 graficznych programów zarządzających pakietami oraz innych narzędzi,
530 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
531 zawiera pliki nagłówkowe wspomnianych bibliotek.
533 %description devel -l pt_BR.UTF-8
534 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
535 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
536 facilitar a criação de gerenciadores gráficos de pacotes e outras
537 ferramentas que precisem de conhecimento profundo de pacotes RPM.
539 %description devel -l ru.UTF-8
540 Система управления пакетами RPM содержит библиотеку C, которая
541 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
542 Эта библиотека предназначена для облегчения создания графических
543 пакетных менеджеров и других утилит, которым необходимо работать с
546 %description devel -l uk.UTF-8
547 Система керування пакетами RPM містить бібліотеку C, котра спрощує
548 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
549 призначена для полегшення створення графічних пакетних менеджерів та
550 інших утиліт, що працюють з пакетами RPM.
553 Summary: RPM static libraries
554 Summary(de.UTF-8): RPMs statische Libraries
555 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
556 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
557 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
558 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
559 Group: Development/Libraries
560 Requires: %{name}-devel = %{version}-%{release}
561 Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
562 Requires: beecrypt-static >= %{beecrypt_ver}
563 Requires: bzip2-static
564 Requires: elfutils-static
565 %{?with_keyutils:Requires: keyutils-static}
566 Requires: libmagic-static
568 Requires: libselinux-static
569 Requires: libsemanage-static
570 Requires: libsepol-static
572 Requires: popt-static >= %{reqpopt_ver}
573 Requires: zlib-static
576 RPM static libraries.
578 %description static -l de.UTF-8
579 RPMs statische Libraries.
581 %description static -l pl.UTF-8
582 Biblioteki statyczne RPM-a.
584 %description static -l pt_BR.UTF-8
585 Bibliotecas estáticas para desenvolvimento.
587 %description static -l ru.UTF-8
588 Система управления пакетами RPM содержит библиотеку C, которая
589 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
590 Это статическая библиотека RPM.
592 %description static -l uk.UTF-8
593 Система керування пакетами RPM містить бібліотеку C, котра спрощує
594 роботу з пакетами RPM та відповідними базами даних. Це статична
598 Summary: Additional utilities for managing RPM packages and database
599 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
600 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
601 Group: Applications/File
602 Requires: %{name} = %{version}-%{release}
603 Requires: popt >= %{reqpopt_ver}
604 %if %{with suggest_tags}
608 Conflicts: filesystem-debuginfo < 3.0-16
611 Additional utilities for managing RPM packages and database.
613 %description utils -l de.UTF-8
614 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
616 %description utils -l pl.UTF-8
617 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
620 Summary: Additional utilities for managing RPM packages and database
621 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
622 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
623 Group: Applications/File
624 Requires: %{name}-utils = %{version}-%{release}
625 Requires: popt >= %{reqpopt_ver}
627 %description utils-perl
628 Additional utilities for managing RPM packages and database.
630 %description utils-perl -l de.UTF-8
631 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
633 %description utils-perl -l pl.UTF-8
634 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
636 %package utils-static
637 Summary: Static rpm utilities
638 Summary(pl.UTF-8): Statyczne narzędzia rpm
639 Group: Applications/System
640 Requires: %{name} = %{version}-%{release}
642 %description utils-static
643 Static rpm utilities for repairing system in case something with
644 shared libraries used by rpm become broken. Currently it contains rpmi
645 binary, which can be used to install/upgrade/remove packages without
646 using shared libraries (well, in fact with exception of NSS modules).
648 %description utils-static -l pl.UTF-8
649 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
650 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
651 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
652 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
653 (z wyjątkiem modułów NSS).
656 Summary: Scripts for building binary RPM packages
657 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
658 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
659 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
660 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
661 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
662 Group: Applications/File
663 Requires(pretrans): coreutils
664 Requires(pretrans): findutils
665 Requires: %{name}-build-macros >= 1.744-3
666 Requires: %{name}-utils = %{version}-%{release}
670 Requires: chrpath >= 0.10-4
674 Requires: file >= 4.17
678 Requires: gcc >= 3.0.3
682 Requires: glibc-devel
689 Requires: tar >= 1:1.22
693 Provides: rpmbuild(monoautodeps)
694 Provides: rpmbuild(noauto) = 3
696 Conflicts: automake < 1:1.7.9-2
697 Conflicts: libtool < 2:1.5-13
701 Scripts for building binary RPM packages.
703 %description build -l de.UTF-8
704 Scripts fürs Bauen binärer RPM-Pakete.
706 %description build -l pl.UTF-8
707 Skrypty pomocnicze do budowania binarnych RPM-ów.
709 %description build -l pt_BR.UTF-8
710 Este pacote contém scripts e programas executáveis que são usados para
711 construir pacotes usando o RPM.
713 %description build -l ru.UTF-8
714 Различные вспомогательные скрипты и исполняемые программы, которые
715 используются для сборки RPM'ов.
717 %description build -l uk.UTF-8
718 Різноманітні допоміжні скрипти та утиліти, які використовуються для
722 Summary: Additional utilities for checking Perl provides/requires in RPM packages
723 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
724 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
725 Group: Applications/File
726 Requires: %{name} = %{version}-%{release}
727 Requires: perl-Encode
729 Requires: perl-modules
731 %description perlprov
732 Additional utilities for checking Perl provides/requires in RPM
735 %description perlprov -l de.UTF-8
736 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
738 %description perlprov -l pl.UTF-8
739 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
743 Summary: Python macros, which simplifies creation of RPM packages with Python software
744 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
745 Group: Applications/File
746 Requires: %{name} = %{version}-%{release}
748 Requires: python-setuptools
749 Requires: python-modules
751 %description pythonprov
752 Python macros, which simplifies creation of RPM packages with Python
755 %description pythonprov -l pl.UTF-8
756 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
759 %package -n python-rpm
760 Summary: Python interface to RPM library
761 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
762 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
763 Group: Development/Languages/Python
764 Requires: %{name} = %{version}-%{release}
766 Obsoletes: rpm-python
768 %description -n python-rpm
769 The rpm-python package contains a module which permits applications
770 written in the Python programming language to use the interface
771 supplied by RPM (RPM Package Manager) libraries.
773 This package should be installed if you want to develop Python
774 programs that will manipulate RPM packages and databases.
776 %description -n python-rpm -l pl.UTF-8
777 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
778 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
780 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
781 Pythonie programy manipulujące pakietami i bazami danych rpm.
783 %description -n python-rpm -l pt_BR.UTF-8
784 O pacote rpm-python contém um módulo que permite que aplicações
785 escritas em Python utilizem a interface fornecida pelas bibliotecas
786 RPM (RPM Package Manager).
788 Esse pacote deve ser instalado se você quiser desenvolver programas em
789 Python para manipular pacotes e bancos de dados RPM.
792 Summary: RPM API documentation and guides
793 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
795 %if "%{_rpmversion}" >= "5"
800 Documentation for RPM API and guides in HTML format generated from rpm
803 %description apidocs -l pl.UTF-8
804 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
805 źrodeł RPM-a przez doxygen.
808 %setup -q -n %{name}-%{version}%{?subver}
822 %{?with_system_lua:%patch9 -p1}
825 # enable TSC for capable archs
859 %{?with_db61:%patch41 -p1}
875 %{!?with_db61:%patch57 -p1}
944 # don't delete, may be usefull if jbj descides to enable this again
967 install %{SOURCE2} pld/macros.in
968 install %{SOURCE11} scripts/perl.prov.in
972 %{__mv} -f scripts/perl.req{,.in}
974 # generate Group translations to *.po
975 awk -f %{SOURCE6} %{SOURCE1}
977 install %{SOURCE26} tools/rpmdb_checkversion.c
978 install %{SOURCE28} tools/rpmdb_reset.c
980 for extlib in beecrypt neon %{?with_system_pcre:pcre} popt; do
981 [ -d $extlib ] && %{__rm} -r $extlib
992 # rpm checks for CPU type at runtime, but it looks better
994 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
995 -e 's|@host_cpu@|%{_target_cpu}|' \
996 -e 's|@host_os@|%{_target_os}|' \
999 %{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
1001 WITH_PERL_VERSION=no \
1002 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
1003 __GPG=%{_bindir}/gpg \
1004 --disable-silent-rules \
1007 %{!?with_apidocs:--without-apidocs} \
1008 --with-beecrypt=external \
1009 --with-bugreport="http://bugs.pld-linux.org/" \
1010 --with-bzip2=external \
1011 --with-db=external \
1013 --with-file=external \
1014 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
1016 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
1017 --with-lzma=external \
1018 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
1019 --with-path-macros='%{_rpmlibdir}/macros:%{_rpmlibdir}/pld/macros:%{_rpmlibdir}/%%{_target}/macros:%{_rpmlibdir}/macros.build:%{_sysconfdir}/rpm/macros.*:%{_sysconfdir}/rpm/macros:%{_sysconfdir}/rpm/%%{_target}/macros:%{_sysconfdir}/rpm/macros.d/*.macros:~/etc/.rpmmacros:~/.rpmmacros' \
1020 --without-path-versioned \
1021 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
1022 --with-popt=external \
1023 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
1024 %{!?with_python:--without-python} \
1025 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
1026 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
1027 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
1028 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
1029 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
1031 --with-xz=external \
1032 --with-zlib=external
1036 %{?with_apidocs:%{__make} apidocs}
1038 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
1039 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
1040 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
1041 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
1043 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
1044 echo "Error linking rpmdb tools!"
1047 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
1048 echo "Error linking rpmdb tools!"
1053 rm -rf $RPM_BUILD_ROOT
1054 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
1055 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg,%{_rpmlibdir}/pld}
1057 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1059 %{__make} -j1 install \
1060 pkgconfigdir=%{_pkgconfigdir} \
1061 DESTDIR=$RPM_BUILD_ROOT
1063 cp -p pld/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pld/macros
1065 # install platform macros
1066 for f in platform/*macros; do
1068 fn=${bn%.macros}/macros
1069 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
1073 %ifnarch %{ix86} %{x8664} x32
1074 rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
1075 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
1076 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
1077 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
1078 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
1079 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
1080 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
1083 %ifnarch %{x8664} x32
1084 rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
1085 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
1086 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
1087 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
1091 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
1094 rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
1095 rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
1096 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
1097 rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
1098 rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
1099 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
1100 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
1101 rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
1102 rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
1104 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1105 # first platform file entry can't contain regexps
1107 %{_target_cpu}-%{_target_vendor}-linux-gnux32
1109 %{_target_cpu}-%{_target_vendor}-linux
1113 x86_64-[^-]*-[Ll]inux(-gnu)?
1114 amd64-[^-]*-[Ll]inux(-gnu)?
1115 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1118 amd64-[^-]*-[Ll]inux(-gnu)?
1119 x86_64-[^-]*-[Ll]inux(-gnu)?
1120 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1123 ia32e-[^-]*-[Ll]inux(-gnu)?
1124 x86_64-[^-]*-[Ll]inux(-gnu)?
1127 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1128 x86_64-[^-]*-[Ll]inux(-gnu)?
1129 amd64-[^-]*-[Ll]inux(-gnu)?
1132 %ifarch athlon %{x8664} x32
1133 athlon-[^-]*-[Ll]inux(-gnu)?
1135 %ifarch pentium4 athlon %{x8664} x32
1136 pentium4-[^-]*-[Ll]inux(-gnu)?
1138 %ifarch pentium3 pentium4 athlon %{x8664} x32
1139 pentium3-[^-]*-[Ll]inux(-gnu)?
1141 %ifarch i686 pentium3 pentium4 athlon %{x8664} x32
1142 i686-[^-]*-[Ll]inux(-gnu)?
1144 %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
1145 i586-[^-]*-[Ll]inux(-gnu)?
1147 %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
1148 i486-[^-]*-[Ll]inux(-gnu)?
1150 %ifarch %{ix86} %{x8664} x32
1151 i386-[^-]*-[Ll]inux(-gnu)?
1155 alpha-[^-]*-[Ll]inux(-gnu)?
1159 ia64-[^-]*-[Ll]inux(-gnu)?
1163 powerpc64-[^-]*-[Ll]inux(-gnu)?
1164 ppc64-[^-]*-[Ll]inux(-gnu)?
1166 %ifarch %{ppc} ppc64
1167 powerpc-[^-]*-[Ll]inux(-gnu)?
1168 ppc-[^-]*-[Ll]inux(-gnu)?
1172 s390x-[^-]*-[Ll]inux(-gnu)?
1175 s390-[^-]*-[Ll]inux(-gnu)?
1179 sparc64-[^-]*-[Ll]inux(-gnu)?
1180 sparcv8-[^-]*-[Ll]inux(-gnu)?
1181 sparcv9-[^-]*-[Ll]inux(-gnu)?
1184 sparcv8-[^-]*-[Ll]inux(-gnu)?
1185 sparcv9-[^-]*-[Ll]inux(-gnu)?
1187 %ifarch sparc sparcv9 sparc64
1188 sparc-[^-]*-[Ll]inux(-gnu)?
1194 # Squash Extra Blank Lines
1195 %{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1197 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1198 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1199 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1200 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1201 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1202 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1203 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1204 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
1206 # not installed since 4.4.8 (-tools-perl subpackage)
1207 install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1209 install %{SOURCE1} doc/manual/groups
1210 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
1211 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1212 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
1213 install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1214 install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
1215 install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
1216 install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
1218 install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
1220 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1222 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1223 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
1224 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1225 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1226 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1227 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1228 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1230 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1231 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1232 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1233 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1234 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1235 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
1237 install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1238 install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1239 install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
1241 # create macro loading wrappers for backward compatibility
1242 for m in gstreamer mono; do
1243 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
1246 install %{SOURCE30} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/prov-req
1248 # moved to rpm-build-macros 1.699
1249 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1250 # moved to rpm-build-macros 1.744
1251 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/javadeps.sh
1252 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/{gem_helper,rubygems}.rb
1253 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/php.{prov,req}
1254 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/{cmake,java,perl,php,python,ruby,tcl}
1256 # for rpm -e|-U --repackage
1257 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1258 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1261 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1262 # move essential libs to /lib (libs that /bin/rpm links to)
1263 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
1264 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1265 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1268 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1269 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1272 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1273 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1275 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1278 # wrong location, not used anyway
1279 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1280 # utils dropped in 5.4 -- their manuals
1281 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
1282 # script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1283 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
1288 cp -a doc/manual manual
1289 %{__rm} -f manual/Makefile*
1292 rm -rf $RPM_BUILD_ROOT
1295 # this needs to be a dir
1296 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
1298 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1299 mkdir %{_sysconfdir}/rpm/sysinfo
1303 if [ -e /var/lib/rpm/Packages ] && \
1304 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
1305 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
1306 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
1308 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
1312 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1313 echo 'you should ignore it and restart poldek'
1315 %{_rpmlibdir}/bin/dbupgrade.sh
1318 %triggerpostun -- %{name} < 4.4.9-44
1319 %{_rpmlibdir}/hrmib-cache
1321 %post lib -p /sbin/ldconfig
1322 %postun lib -p /sbin/ldconfig
1325 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1327 %files -f %{name}.lang
1328 %defattr(644,root,root,755)
1329 %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
1331 %dir /etc/pki/rpm-gpg
1332 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1334 %attr(755,root,root) /bin/rpm
1336 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1337 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1338 %dir %{_sysconfdir}/rpm/sysinfo
1339 # these are ok to be replaced
1340 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1341 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1343 %{_mandir}/man8/rpm.8*
1344 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1345 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1346 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1347 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1348 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1351 %dir /var/lib/rpm/log
1352 %dir /var/lib/rpm/tmp
1353 %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
1354 %dir %attr(700,root,root) /var/spool/repackage
1356 /var/lock/rpm/transaction
1358 # exported package NVRA (stamped with install tid)
1359 # net-snmp hrSWInstalledName queries, bash-completions
1360 %dir /var/cache/hrmib
1363 %{_rpmlibdir}/rpmpopt*
1364 %{_rpmlibdir}/macros
1365 %dir %{_rpmlibdir}/pld
1366 %{_rpmlibdir}/pld/macros
1367 %dir %{_rpmlibdir}/macros.d
1368 %{_rpmlibdir}/cpuinfo.yaml
1369 %{_rpmlibdir}/noarch-*
1370 %ifarch %{ix86} %{x8664} x32
1372 %{_rpmlibdir}/pentium*
1373 %{_rpmlibdir}/athlon*
1376 %{_rpmlibdir}/alpha*
1381 %ifarch mips mipsel mips64 mips64el
1387 %ifarch sparc sparc64
1388 %{_rpmlibdir}/sparc*
1390 %ifarch %{x8664} x32
1391 %{_rpmlibdir}/amd64*
1392 %{_rpmlibdir}/ia32e*
1393 %{_rpmlibdir}/x86_64*
1397 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1399 %dir %{_rpmlibdir}/bin
1400 %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1401 %attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
1402 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
1403 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
1404 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
1407 %defattr(644,root,root,755)
1408 %dir %{_sysconfdir}/rpm
1409 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1411 %attr(755,root,root) %{_bindir}/banner.sh
1412 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1413 %dir /var/lib/banner
1416 %defattr(644,root,root,755)
1417 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1418 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1419 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1420 %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
1421 %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
1422 %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
1425 %defattr(644,root,root,755)
1426 %attr(755,root,root) %{_libdir}/librpm.so
1427 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1428 %attr(755,root,root) %{_libdir}/librpmbuild.so
1429 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1430 %attr(755,root,root) %{_libdir}/librpmconstant.so
1431 %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
1432 %attr(755,root,root) %{_libdir}/librpmdb.so
1433 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1434 %attr(755,root,root) %{_libdir}/librpmio.so
1435 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1436 %attr(755,root,root) %{_libdir}/librpmmisc.so
1437 %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
1438 %{_libdir}/librpm*.la
1440 %{_pkgconfigdir}/*.pc
1443 %defattr(644,root,root,755)
1444 %{_libdir}/librpm*.a
1447 %defattr(644,root,root,755)
1448 %attr(755,root,root) %{_bindir}/rpm2cpio
1449 %attr(755,root,root) %{_bindir}/rpmconstant
1450 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1451 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1452 %attr(755,root,root) %{_rpmlibdir}/tgpg
1453 %attr(755,root,root) %{_rpmlibdir}/bin/chroot
1454 %attr(755,root,root) %{_rpmlibdir}/bin/cp
1455 %attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1456 %attr(755,root,root) %{_rpmlibdir}/bin/find
1457 %attr(755,root,root) %{_rpmlibdir}/bin/mgo
1458 %attr(755,root,root) %{_rpmlibdir}/bin/mtree
1459 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1460 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1461 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1462 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1464 %attr(755,root,root) %{_rpmlibdir}/bin/semodule
1465 %attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1467 %if %{without system_lua}
1468 %attr(755,root,root) %{_rpmlibdir}/bin/lua
1469 %attr(755,root,root) %{_rpmlibdir}/bin/luac
1470 %attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
1471 %attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
1473 %{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
1474 %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
1475 %{_mandir}/man8/rpm2cpio.8*
1476 %{_mandir}/man8/rpmconstant.8*
1477 %{_mandir}/man8/rpmdeps.8*
1478 %{_mandir}/man8/rpmmtree.8*
1479 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1480 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1481 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1482 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1485 %defattr(644,root,root,755)
1486 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1490 %defattr(644,root,root,755)
1491 %attr(755,root,root) %{_bindir}/rpm[ieu]
1492 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1496 %defattr(644,root,root,755)
1497 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1498 %attr(755,root,root) %{_rpmlibdir}/brp-*
1499 %attr(755,root,root) %{_rpmlibdir}/check-files
1500 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1501 %attr(755,root,root) %{_rpmlibdir}/cross-build
1502 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1503 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1504 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1505 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1506 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1507 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1508 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1509 # needs hacked pkg-config to return anything
1510 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1511 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1512 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
1513 %{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
1514 %attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1515 %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1516 %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1517 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1518 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1519 %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1520 %attr(755,root,root) %{_rpmlibdir}/bin/wget
1521 %attr(755,root,root) %{_rpmlibdir}/vcheck
1522 # not used yet ... these six depend on perl
1523 %attr(755,root,root) %{_rpmlibdir}/http.req
1524 # we always used scripts provided by mono-devel, maybe move them here
1525 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1526 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1528 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1529 # must be here for "Requires: rpm-*prov" to work
1530 %{_rpmlibdir}/macros.d/gstreamer
1531 %{_rpmlibdir}/macros.d/libtool
1532 %{_rpmlibdir}/macros.d/mono
1533 %{_rpmlibdir}/macros.d/pkgconfig
1534 %{_rpmlibdir}/macros.d/prov-req
1535 %{_rpmlibdir}/macros.d/selinux
1536 %{_rpmlibdir}/macros.rpmbuild
1538 %{_rpmlibdir}/macros.gstreamer
1539 %{_rpmlibdir}/macros.mono
1541 %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1542 %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1544 %attr(755,root,root) %{_bindir}/gendiff
1545 %attr(755,root,root) %{_bindir}/rpmbuild
1547 %dir %{_rpmlibdir}/helpers
1548 %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
1550 %{_mandir}/man1/gendiff.1*
1551 %{_mandir}/man8/rpmbuild.8*
1552 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1553 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1554 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1557 %defattr(644,root,root,755)
1558 %attr(755,root,root) %{_rpmlibdir}/perl.*
1559 %attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1560 %attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1563 %defattr(644,root,root,755)
1564 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1565 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1568 %files -n python-rpm
1569 %defattr(644,root,root,755)
1570 %dir %{py_sitedir}/rpm
1571 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1572 %{py_sitedir}/rpm/*.py[co]
1577 %defattr(644,root,root,755)