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
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"
27 # Error: /lib64/librpmio-5.4.so: undefined symbol: sqlite3_enable_load_extension
28 %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
31 # versions of required libraries
33 %define reqdb_pkg db6.1
35 %define reqdb_pkgver 6.1.19
37 %define reqdb_pkg db5.2
39 %define reqdb_pkgver 5.2.36.0-4
41 %define reqpopt_ver 1.15
42 %define beecrypt_ver 2:4.2.0
45 Summary: RPM Package Manager
46 Summary(de.UTF-8): RPM Packet-Manager
47 Summary(es.UTF-8): Gestor de paquetes RPM
48 Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
49 Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
50 Summary(ru.UTF-8): Менеджер пакетов от RPM
51 Summary(uk.UTF-8): Менеджер пакетів від RPM
57 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.15-0.20140824.src.rpm
58 # http://rpm5.org/files/rpm/rpm-5.4/SNAPSHOT/rpm-5.4.16-0.20160315.src.rpm
59 Source0: %{name}-%{version}.tar.gz
60 # Source0-md5: f96fa6d4d418b2ec6df8ba4b7cb2985a
61 # See README.cpu-os-macros how to update cpu-os-macros.a
62 Source100: cpu-os-macros.a
63 Source101: README.cpu-os-macros
64 Source1: %{name}.groups
65 Source2: macros.pld.in
66 Source3: %{name}-install-tree
67 Source4: %{name}-find-spec-bcond
68 Source5: %{name}-hrmib-cache
69 Source6: %{name}-groups-po.awk
70 Source7: %{name}-compress-doc
71 Source8: %{name}-php-provides
72 Source9: %{name}-php-requires
73 Source10: %{name}.sysinfo
75 Source12: %{name}-user_group.sh
76 Source13: %{name}.sysconfig
77 Source14: %{name}-java-requires
78 # http://svn.pld-linux.org/banner.sh/
80 Source16: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
81 # Source16-md5: 08b29584dd349aac9caa7610131a0a88
82 Source17: %{name}-mimetypedeps
83 Source18: macros.local
84 Source19: %{name}.noautocompressdoc
85 Source20: %{name}.noautoprov
86 Source21: %{name}.noautoprovfiles
87 Source22: %{name}.noautoreq
88 Source24: %{name}.noautoreqfiles
89 Source25: %{name}-php-requires.php
90 Source26: %{name}db_checkversion.c
92 Source28: %{name}db_reset.c
93 Source29: dbupgrade.sh
95 Source31: gem_helper.rb
96 Patch0: %{name}-branch.patch
97 Patch1: %{name}-man_pl.patch
98 Patch2: %{name}-popt-aliases.patch
99 Patch3: %{name}-nosetproctitle.patch
100 Patch4: %{name}-perl-macros.patch
101 Patch5: %{name}-perl-req-perlfile.patch
102 Patch6: %{name}-scripts-closefds.patch
103 Patch7: %{name}-php-macros.patch
104 Patch8: %{name}-gettext-in-header.patch
105 Patch9: %{name}-lua.patch
106 Patch10: %{name}-php-deps.patch
107 Patch11: %{name}-notsc.patch
108 Patch12: %{name}-hack-norpmlibdep.patch
109 Patch13: %{name}-dont-copy-descriptive-tags.patch
110 Patch14: %{name}-perl_req-INC_dirs.patch
111 Patch15: %{name}-debuginfo.patch
112 Patch16: vendor-pld.patch
113 Patch17: %{name}-old-fileconflicts-behaviour.patch
114 Patch18: %{name}-javadeps.patch
115 Patch19: %{name}-truncate-cvslog.patch
116 Patch20: %{name}-libtool-deps.patch
117 Patch21: %{name}-mimetype.patch
118 Patch22: %{name}-sparc64.patch
119 Patch23: %{name}-gendiff.patch
120 Patch24: openmp.patch
121 Patch25: %{name}-URPM-build-fix.patch
122 Patch27: %{name}-helperEVR-noassert.patch
123 Patch28: %{name}-unglobal.patch
124 Patch29: %{name}-builddir-readlink.patch
125 Patch30: %{name}-changelog_order_check_nonfatal.patch
126 Patch31: %{name}-cleanbody.patch
127 Patch32: %{name}-dirdeps-macro.patch
128 Patch33: %{name}-installbeforeerase.patch
129 Patch34: %{name}-libmagic-locale.patch
130 Patch35: %{name}-namespace-compare.patch
131 Patch36: %{name}-popt-coreutils.patch
132 Patch37: %{name}-postun-nofail.patch
134 Patch39: %{name}-fix-missing-types-in-headers.patch
135 Patch40: %{name}-fix--p-interpreter-and-empty-script.patch
136 Patch41: %{name}-db_buffer_small.patch
137 Patch42: %{name}-pattern_Release.patch
138 Patch43: %{name}-fix-___build_pre-macro.patch
139 Patch44: %{name}-missing-patch-file-fails-build.patch
140 Patch45: %{name}-remove-misleading-missing-patch-message.patch
141 Patch46: %{name}-file-magic-can-be-mixed-case.patch
142 Patch47: %{name}-query-always-noisy.patch
143 Patch48: %{name}-verify-ghosts-broken-logic.patch
144 Patch49: %{name}-python-enable-compat-RPMSENSE.patch
145 Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
146 Patch51: %{name}-gst-inspect-typo.patch
147 Patch52: %{name}-null-term-ascii-digest.patch
148 Patch53: %{name}-lua-enable-extra-libs.patch
149 Patch54: %{name}-fix-filedigests-verify.patch
150 Patch55: %{name}-disable-hmac-verify.patch
151 Patch56: %{name}-macros.patch
152 Patch57: %{name}-db5.2.patch
153 Patch58: %{name}-preserve-iterator.patch
154 Patch60: %{name}-python-sitescriptdir.patch
155 Patch61: %{name}-clean-docdir.patch
156 Patch62: %{name}-DB_CONFIG.patch
157 Patch63: %{name}-pythoneggs.patch
158 Patch64: %{name}-fix-compress-doc.patch
159 Patch65: %{name}-parseSpec-skip-empty-tags.patch
161 Patch67: %{name}-repackage-dont-force-max-compression.patch
162 Patch70: python-%{name}sense-missingok.patch
163 Patch71: %{name}-changelog-encoding.patch
164 Patch72: %{name}-preserve-tag-type.patch
165 Patch74: %{name}-fix-internal-lua-build.patch
166 Patch75: %{name}-double_check_file_deps.patch
167 Patch77: %{name}-lua-expat.patch
168 Patch78: %{name}-double_check_unpackaged_subdirs.patch
169 Patch79: %{name}-rpmspec.patch
171 Patch81: %{name}-perl-magic.patch
172 Patch82: %{name}-5.4.15-use-DSA-sig.patch
173 Patch83: %{name}-ignore-missing-macro-files.patch
175 Patch85: rpm-CVE-2013-6435.patch
176 Patch86: rpm-CVE-2014-8118.patch
177 Patch87: %{name}-file-output-for-ELF.patch
178 Patch88: %{name}-rpmtdnext.patch
179 Patch89: disable-header-verification.patch
180 Patch90: %{name}-cppcompat.patch
181 Patch91: py-disable-fetch.patch
182 Patch92: fast_python_deps.patch
183 Patch93: python2_explicit.patch
184 Patch94: do_not_write_before_macro_buffer.patch
186 # Patches imported from Mandriva
188 # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
189 # would basically just mean backporting it..
190 Patch1000: %{name}-5.4.4-add-_specfile-macro.patch
191 # status: needs to be cleaned up and properly reviewed together with rest
192 # of the patches related to dependency generation
193 Patch1001: %{name}-5.4.9-avoid-dependencies-on-self.patch
194 # status: probably ready to merge
195 Patch1002: %{name}-5.4.4-pkgconfigdeps-check-path.patch
196 # status: probably okay to merge, but discuss on rpm-devel first
197 Patch1003: %{name}-5.4.4-glob-wildcards-for-loading-macro-files.patch
198 # status: needs to be discussed
199 Patch1004: %{name}-5.4.4-allow-installation-of-repackaged-rpms.patch
200 # status: ready to merge
201 Patch1005: %{name}-5.4.8-dont-show-suggests-with-requires.patch
202 # status: ready for merge
203 Patch1006: %{name}-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
204 # status: probably okay to merge, but discuss on rpm-devel first
205 Patch1007: %{name}-5.4.10-duplicate_files_terminate_build.patch
206 # status: same as above
207 Patch1008: %{name}-5.4.10-unpackaged_subdirs_terminate_build.patch
209 # status: uncertain, might be okay to merge, discuss on rpm-devel first
210 Patch1009: %{name}-5.4.4-rpmbuild-withoutclean.patch
211 # no sense in having an additional dependency on 'pkgconfig' on all packages that
212 # have a pkgconfig file, it's not needed for them to be made useful and anything
213 # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
214 # status: might be okay to merge, but discuss on rpm-devel first
215 Patch1010: %{name}-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
216 # status: ready for merge
217 Patch1011: %{name}-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
218 # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
219 # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
220 # status: needs to be discussed and investigated a bit better..
221 Patch1012: %{name}-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
222 # status: probably okay to merge, but discuss on rpm-devel first
223 Patch1013: %{name}-5.4.10-files-listed-twice-terminates-build.patch
224 # status: probably okay to merge
225 Patch1014: %{name}-5.4.9-ruby1.9-fixes.patch
226 # status: keep locally
227 Patch1015: %{name}-5.4.9-keep-loading-script-macros.patch
228 # status: same as for other dep gen patches
229 Patch1016: %{name}-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
231 Patch1017: %{name}-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
232 # status: probably okay to merge
233 Patch1019: %{name}-5.4.5-python-export-spec-macros.patch
235 Patch1020: %{name}-5.4.9-font-provides.patch
237 Patch1021: %{name}-5.4.7-kmod-dependencies.patch
238 # status: probably okay to merge, discuss on rpm-devel first
239 Patch1022: %{name}-5.4.5-skip-dependencies-for-character-devices.patch
240 # status: probably okay to merge
241 Patch1024: %{name}-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
243 Patch1027: %{name}-5.4.7-fix-generation-of-ruby-abi-provides.patch
244 # crash reproducable with 'rpm -qa --triggers'
246 Patch1028: %{name}-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
247 # status: same as for other dep gen patches
248 Patch1029: %{name}-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
250 Patch1030: %{name}-5.4.7-fix-minor-memleaks.patch
252 Patch1031: %{name}-5.4.9-mire-fix-strings-lacking-null-terminator.patch
254 Patch1032: %{name}-5.4.9-rpmpython-fix-input.patch
256 Patch1033: %{name}-5.4.7-no-seqid_init-on-rdonly-database.patch
257 # status: probably ready to merge, discuss on rpm-devel first
258 Patch1035: %{name}-5.4.9-fix-verify-segfault.patch
259 # Due to rpmdav/neon being written in a different fashion than other rpmio clients,
260 # the inconsistent behaviour affects code elsewhere which expects consistent behaviour,
261 # with the result being that when unable to download files, neon will save error
262 # page as the target file.
263 # status: should go upstream, but uncertain about "correct" fix, ie. this is
264 # more of a workaround, while rewriting rpmdav code to behave consistently
265 # would be "the right thing to do". Yet I'm not fully able to grasp all of the
266 # code and don't want to spend more time just to get the API..
267 Patch1037: %{name}-5.4.10-fix-neon-saving-error-pages-as-target-file.patch
268 # As the transaction flags for ignoring arch & os are no longer used, there's
269 # currently no way to ignore arch & os of packages anymore. This patch adds
270 # support for doing this again by defining rpm variables and overriding
271 # --ignorearch & --ignoreos to set these.
272 # status: needs to be discussed upstream before thinking about merging
273 Patch1038: %{name}-5.4.10-support-ignore-arch-and-os-again.patch
274 # status: ready for merge
275 Patch1039: %{name}-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch
276 # we want that patch too, a bit of builder infrastructure relies on NOSIGNATURES
277 Patch1040: %{name}-5.4.9-support-signatures-and-digest-disablers.patch
278 # lack insight on actual functionality, which anyways seems broken, so let's
279 # disable it to avoid errors from berkeley db..
280 # status: keep locally
281 Patch1041: %{name}-5.4.9-disable-l10ndir.patch
282 # status: ready for merge
283 Patch1042: %{name}-5.4.9-fix-rpm_qa-pattern.patch
284 Patch1044: %{name}-5.4.12-fix-rpmlua-print.patch
285 Patch1045: %{name}-5.4.12-fix-rpmpython-module-import-init.patch
288 # there's a rpmdbchk tool I wrote a while back, which might help you. although
289 # the incidents it's able to deal with is rather limited ATM... it might help
290 # you out, if not and you'll be able to solve yer problem, you could take a
291 # stab at adding support for fixing your specific problem to the util ;)
292 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-rpmdbchk.patch
293 Patch1048: %{name}-5.4.14-rpmdbchk.patch
294 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-no-assert-abort-with-broken-headers.patch
295 Patch1049: %{name}-5.4.14-no-assert-abort-with-broken-headers.patch
297 Patch1050: python-libx32.patch
299 URL: http://rpm5.org/
300 BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
302 BuildRequires: sqlite3-devel
304 BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
306 BuildRequires: autoconf >= 2.63
307 BuildRequires: automake >= 1.4
308 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
309 BuildRequires: bzip2-devel >= 1.0.2-17
310 BuildRequires: elfutils-devel >= 0.108
311 BuildRequires: gettext-tools >= 0.19.2
312 %{?with_keyutils:BuildRequires: keyutils-devel}
313 BuildRequires: libmagic-devel
315 BuildRequires: libselinux-devel >= 2.1.0
316 BuildRequires: libsemanage-devel >= 2.1.0
317 BuildRequires: libsepol-devel >= 2.1.0
319 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
320 BuildRequires: libstdc++-devel
321 BuildRequires: libtool >= 1:1.4.2-9
323 BuildRequires: libxml2-devel
324 BuildRequires: neon-devel >= 0.25.5
326 %{?with_system_lua:BuildRequires: lua52-devel >= 5.2.2}
327 BuildRequires: ossp-uuid-devel
328 BuildRequires: patch >= 2.2
329 BuildRequires: popt-devel >= %{reqpopt_ver}
330 %{?with_python:BuildRequires: python-devel >= 1:2.3}
331 BuildRequires: python-modules >= 1:2.3
332 %{?with_python:BuildRequires: rpm-pythonprov}
334 BuildRequires: xz-devel
335 BuildRequires: zlib-devel
337 BuildRequires: doxygen
338 BuildRequires: ghostscript
339 BuildRequires: graphviz
340 BuildRequires: tetex-pdftex
343 # Require static library only for static build
344 BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
345 BuildRequires: beecrypt-static >= %{beecrypt_ver}
346 BuildRequires: bzip2-static >= 1.0.2-17
347 BuildRequires: elfutils-static
348 BuildRequires: glibc-static >= 2.2.94
349 BuildRequires: libmagic-static
351 BuildRequires: libselinux-static >= 2.1.0
352 BuildRequires: libsemanage-static >= 2.1.0
353 BuildRequires: libsepol-static >= 2.1.0
355 BuildRequires: popt-static >= %{reqpopt_ver}
356 BuildRequires: zlib-static
358 Requires(posttrans): coreutils
359 Requires: %{name}-base = %{version}-%{release}
360 Requires: %{name}-lib = %{version}-%{release}
361 Requires: beecrypt >= %{beecrypt_ver}
362 Requires: popt >= %{reqpopt_ver}
363 Provides: rpm-db-ver = %{reqdb_ver}
364 Obsoletes: rpm-getdeps
365 %{!?with_static:Obsoletes: rpm-utils-static}
366 Conflicts: glibc < 2.2.92
367 # db4.6 poldek needed
368 Conflicts: poldek < 0.21-0.20070703.00.3
369 # segfaults with lzma 0.42.2
370 Conflicts: lzma-libs < 4.999.3
371 Conflicts: util-vserver < 0.30.216-1.pre3034.7
372 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
374 %define _binary_payload w9.gzdio
376 # don't require very fresh rpm.macros to build
377 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
378 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
379 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
380 %define ppc ppc ppc7400 ppc7450
381 %define x8664 amd64 ia32e x86_64
383 # stabilize new build environment
385 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
386 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
387 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
389 # x32 is a very special case
390 %define __newcc %{?force_cc}%{!?force_cc:x86_64-pld-linux-gnux32-gcc}
391 %define __newcxx %{?force_cxx}%{!?force_cxx:x86_64-pld-linux-gnux32-g++}
392 %define __newcpp %{?force_cpp}%{!?force_cpp:x86_64-pld-linux-gnux32-gcc -E}
395 %define _rpmlibdir /usr/lib/rpm
396 %define _noautocompressdoc RPM-GPG-KEY
399 RPM is a powerful package manager, which can be used to build,
400 install, query, verify, update, and uninstall individual software
401 packages. A package consists of an archive of files, and package
402 information, including name, version, and description.
404 %description -l de.UTF-8
405 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
406 Installation, Anfrage, Verifizierung, Aktualisierung und
407 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
408 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
411 %description -l es.UTF-8
412 RPM es un poderoso administrador de paquetes, que puede ser usado para
413 construir, instalar, pesquisar, verificar, actualizar y desinstalar
414 paquetes individuales de software. Un paquete consiste en un
415 almacenaje de archivos, y información sobre el paquete, incluyendo
416 nombre, versión y descripción.
418 %description -l pl.UTF-8
419 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
420 przebudowanie, instalację czy weryfikację dowolnego pakietu.
421 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
422 plików wchodzących w skład pakietu, zależności od innych pakietów, są
423 przechowywane w bazie danych i można je uzyskać za pomocą opcji
424 odpytywania programu rpm.
426 %description -l pt_BR.UTF-8
427 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
428 construir, instalar, pesquisar, verificar, atualizar e desinstalar
429 pacotes individuais de software. Um pacote consiste de um conjunto de
430 arquivos e informações adicionais, incluindo nome, versão e descrição
431 do pacote, permissões dos arquivos, etc.
433 %description -l ru.UTF-8
434 RPM - это мощный менеджер пакетов, который может быть использован для
435 создания, инсталляции, запросов (query), проверки, обновления и
436 удаления программных пакетов. Пакет состоит из файлового архива и
437 служебной информации, включающей название, версию, описание и другие
440 %description -l uk.UTF-8
441 RPM - це потужний менеджер пакетів, що може бути використаний для
442 створення, інсталяції, запитів (query), перевірки, поновлення та
443 видалення програмних пакетів. Пакет складається з файлового архіву та
444 службової інформації, що містить назву, версію, опис та іншу
445 інформацію про пакет.
448 Summary: RPM base package - scripts used by rpm packages themselves
449 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
452 Obsoletes: rpm-scripts
453 Obsoletes: vserver-rpm
456 The RPM base package contains scripts used by rpm packages themselves.
458 - scripts for adding/removing groups and users needed for rpm
460 - banner.sh to display %%banner messages from rpm scriptlets.
462 %description base -l pl.UTF-8
463 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
465 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
466 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
469 Summary: RPMs library
470 Summary(pl.UTF-8): Biblioteki RPM-a
472 Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
474 Requires: sqlite3 >= %{sqlite_build_version}
476 Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
478 Requires: beecrypt >= %{beecrypt_ver}
479 Requires: libmagic >= 1.15-2
480 %{?with_selinux:Requires: libselinux >= 2.1.0}
481 Requires: popt >= %{reqpopt_ver}
483 # avoid SEGV caused by mixed db versions
484 Conflicts: poldek < 0.18.1-16
489 %description lib -l pl.UTF-8
493 Summary: Header files for rpm libraries
494 Summary(de.UTF-8): Header-Dateien für rpm Libraries
495 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
496 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
497 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
498 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
499 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
500 Group: Development/Libraries
501 Requires: %{name}-lib = %{version}-%{release}
502 Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
503 Requires: beecrypt-devel >= %{beecrypt_ver}
504 Requires: bzip2-devel
505 Requires: elfutils-devel
506 %{?with_keyutils:Requires: keyutils-devel}
507 Requires: libmagic-devel
509 Requires: libselinux-devel
510 Requires: libsemanage-devel
511 Requires: libsepol-devel
513 Requires: popt-devel >= %{reqpopt_ver}
517 The RPM packaging system includes C libraries that make it easy to
518 manipulate RPM packages and databases. They are intended to ease the
519 creation of graphical package managers and other tools that need
520 intimate knowledge of RPM packages. This package contains header files
523 %description devel -l de.UTF-8
524 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
525 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
526 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
527 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
529 %description devel -l es.UTF-8
530 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
531 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
532 facilitar la creación de administradores gráficos de paquetes y otras
533 herramientas que necesiten un conocimiento profundo de paquetes RPM.
535 %description devel -l pl.UTF-8
536 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
537 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
538 graficznych programów zarządzających pakietami oraz innych narzędzi,
539 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
540 zawiera pliki nagłówkowe wspomnianych bibliotek.
542 %description devel -l pt_BR.UTF-8
543 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
544 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
545 facilitar a criação de gerenciadores gráficos de pacotes e outras
546 ferramentas que precisem de conhecimento profundo de pacotes RPM.
548 %description devel -l ru.UTF-8
549 Система управления пакетами RPM содержит библиотеку C, которая
550 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
551 Эта библиотека предназначена для облегчения создания графических
552 пакетных менеджеров и других утилит, которым необходимо работать с
555 %description devel -l uk.UTF-8
556 Система керування пакетами RPM містить бібліотеку C, котра спрощує
557 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
558 призначена для полегшення створення графічних пакетних менеджерів та
559 інших утиліт, що працюють з пакетами RPM.
562 Summary: RPM static libraries
563 Summary(de.UTF-8): RPMs statische Libraries
564 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
565 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
566 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
567 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
568 Group: Development/Libraries
569 Requires: %{name}-devel = %{version}-%{release}
570 Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
571 Requires: beecrypt-static >= %{beecrypt_ver}
572 Requires: bzip2-static
573 Requires: elfutils-static
574 %{?with_keyutils:Requires: keyutils-static}
575 Requires: libmagic-static
577 Requires: libselinux-static
578 Requires: libsemanage-static
579 Requires: libsepol-static
581 Requires: popt-static >= %{reqpopt_ver}
582 Requires: zlib-static
585 RPM static libraries.
587 %description static -l de.UTF-8
588 RPMs statische Libraries.
590 %description static -l pl.UTF-8
591 Biblioteki statyczne RPM-a.
593 %description static -l pt_BR.UTF-8
594 Bibliotecas estáticas para desenvolvimento.
596 %description static -l ru.UTF-8
597 Система управления пакетами RPM содержит библиотеку C, которая
598 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
599 Это статическая библиотека RPM.
601 %description static -l uk.UTF-8
602 Система керування пакетами RPM містить бібліотеку C, котра спрощує
603 роботу з пакетами RPM та відповідними базами даних. Це статична
607 Summary: Additional utilities for managing RPM packages and database
608 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
609 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
610 Group: Applications/File
611 Requires: %{name} = %{version}-%{release}
612 Requires: popt >= %{reqpopt_ver}
613 %if %{with suggest_tags}
617 Conflicts: filesystem-debuginfo < 3.0-16
620 Additional utilities for managing RPM packages and database.
622 %description utils -l de.UTF-8
623 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
625 %description utils -l pl.UTF-8
626 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
629 Summary: Additional utilities for managing RPM packages and database
630 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
631 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
632 Group: Applications/File
633 Requires: %{name}-utils = %{version}-%{release}
634 Requires: popt >= %{reqpopt_ver}
636 %description utils-perl
637 Additional utilities for managing RPM packages and database.
639 %description utils-perl -l de.UTF-8
640 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
642 %description utils-perl -l pl.UTF-8
643 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
645 %package utils-static
646 Summary: Static rpm utilities
647 Summary(pl.UTF-8): Statyczne narzędzia rpm
648 Group: Applications/System
649 Requires: %{name} = %{version}-%{release}
651 %description utils-static
652 Static rpm utilities for repairing system in case something with
653 shared libraries used by rpm become broken. Currently it contains rpmi
654 binary, which can be used to install/upgrade/remove packages without
655 using shared libraries (well, in fact with exception of NSS modules).
657 %description utils-static -l pl.UTF-8
658 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
659 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
660 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
661 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
662 (z wyjątkiem modułów NSS).
665 Summary: Scripts for building binary RPM packages
666 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
667 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
668 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
669 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
670 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
671 Group: Applications/File
672 Requires(pretrans): coreutils
673 Requires(pretrans): findutils
674 Requires: %{name}-build-macros >= 1.712
675 Requires: %{name}-utils = %{version}-%{release}
679 Requires: chrpath >= 0.10-4
683 Requires: file >= 4.17
687 Requires: gcc >= 3.0.3
691 Requires: glibc-devel
698 Requires: tar >= 1:1.22
702 Provides: rpmbuild(monoautodeps)
703 Provides: rpmbuild(noauto) = 3
705 Conflicts: automake < 1:1.7.9-2
706 Conflicts: libtool < 2:1.5-13
710 Scripts for building binary RPM packages.
712 %description build -l de.UTF-8
713 Scripts fürs Bauen binärer RPM-Pakete.
715 %description build -l pl.UTF-8
716 Skrypty pomocnicze do budowania binarnych RPM-ów.
718 %description build -l pt_BR.UTF-8
719 Este pacote contém scripts e programas executáveis que são usados para
720 construir pacotes usando o RPM.
722 %description build -l ru.UTF-8
723 Различные вспомогательные скрипты и исполняемые программы, которые
724 используются для сборки RPM'ов.
726 %description build -l uk.UTF-8
727 Різноманітні допоміжні скрипти та утиліти, які використовуються для
731 Summary: Additional utilities for checking Java provides/requires in RPM packages
732 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
733 Group: Applications/File
734 Requires: %{name} = %{version}-%{release}
736 Requires: findutils >= 1:4.2.26
740 %description javaprov
741 Additional utilities for checking Java provides/requires in RPM
744 %description javaprov -l pl.UTF-8
745 Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
749 Summary: Additional utilities for checking Perl provides/requires in RPM packages
750 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
751 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
752 Group: Applications/File
753 Requires: %{name} = %{version}-%{release}
754 Requires: perl-Encode
756 Requires: perl-modules
758 %description perlprov
759 Additional utilities for checking Perl provides/requires in RPM
762 %description perlprov -l de.UTF-8
763 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
765 %description perlprov -l pl.UTF-8
766 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
770 Summary: Python macros, which simplifies creation of RPM packages with Python software
771 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
772 Group: Applications/File
773 Requires: %{name} = %{version}-%{release}
775 Requires: python-setuptools
776 Requires: python-modules
778 %description pythonprov
779 Python macros, which simplifies creation of RPM packages with Python
782 %description pythonprov -l pl.UTF-8
783 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
786 %package php-pearprov
787 Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
788 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
789 Group: Applications/File
790 Requires: %{name} = %{version}-%{release}
792 Suggests: php-pear-PHP_CompatInfo
794 %description php-pearprov
795 Additional utilities for checking PHP PEAR provides/requires in RPM
798 %description php-pearprov -l pl.UTF-8
799 Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
803 Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
804 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
805 Group: Applications/File
806 Requires: %{name} = %{version}-%{release}
808 Requires: ruby-modules
809 Requires: ruby-rubygems
811 %description rubyprov
812 Ruby tools, which simplifies creation of RPM packages with Ruby
815 %description rubyprov -l pl.UTF-8
816 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
819 %package -n python-rpm
820 Summary: Python interface to RPM library
821 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
822 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
823 Group: Development/Languages/Python
824 Requires: %{name} = %{version}-%{release}
826 Obsoletes: rpm-python
828 %description -n python-rpm
829 The rpm-python package contains a module which permits applications
830 written in the Python programming language to use the interface
831 supplied by RPM (RPM Package Manager) libraries.
833 This package should be installed if you want to develop Python
834 programs that will manipulate RPM packages and databases.
836 %description -n python-rpm -l pl.UTF-8
837 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
838 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
840 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
841 Pythonie programy manipulujące pakietami i bazami danych rpm.
843 %description -n python-rpm -l pt_BR.UTF-8
844 O pacote rpm-python contém um módulo que permite que aplicações
845 escritas em Python utilizem a interface fornecida pelas bibliotecas
846 RPM (RPM Package Manager).
848 Esse pacote deve ser instalado se você quiser desenvolver programas em
849 Python para manipular pacotes e bancos de dados RPM.
852 Summary: RPM API documentation and guides
853 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
855 %if "%{_rpmversion}" >= "5"
860 Documentation for RPM API and guides in HTML format generated from rpm
863 %description apidocs -l pl.UTF-8
864 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
865 źrodeł RPM-a przez doxygen.
868 %setup -q -n %{name}-%{version}%{?subver}
883 %{?with_system_lua:%patch9 -p1}
886 # enable TSC for capable archs
919 %{?with_db61:%patch41 -p1}
935 %{!?with_db61:%patch57 -p1}
1001 # don't delete, may be useful if jbj decides to enable this again
1005 #%patch1044 -p1 RECHECK
1018 install %{SOURCE2} macros/pld.in
1019 install %{SOURCE8} scripts/php.prov.in
1020 install %{SOURCE9} scripts/php.req.in
1021 install %{SOURCE11} scripts/perl.prov.in
1022 cp -p %{SOURCE30} scripts/rubygems.rb
1023 cp -p %{SOURCE31} scripts/gem_helper.rb
1025 rm scripts/find-php*
1027 %{__mv} -f scripts/perl.req{,.in}
1029 # generate Group translations to *.po
1030 awk -f %{SOURCE6} %{SOURCE1}
1032 install %{SOURCE26} tools/rpmdb_checkversion.c
1033 install %{SOURCE28} tools/rpmdb_reset.c
1035 for extlib in beecrypt neon %{?with_system_pcre:pcre} popt; do
1036 [ -d $extlib ] && %{__rm} -r $extlib
1047 # rpm checks for CPU type at runtime, but it looks better
1049 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
1050 -e 's|@host_cpu@|%{_target_cpu}|' \
1051 -e 's|@host_os@|%{_target_os}|' \
1054 %{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
1055 # pass CC and CXX too in case of building with some older configure macro
1060 WITH_PERL_VERSION=no \
1061 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
1062 --disable-silent-rules \
1065 %{!?with_apidocs:--without-apidocs} \
1066 --with-beecrypt=external \
1067 --with-bugreport="http://bugs.pld-linux.org/" \
1068 --with-bzip2=external \
1069 --with-db=external \
1071 --with-file=external \
1072 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
1074 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
1075 --with-lzma=external \
1076 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
1077 --with-path-macros='%{_rpmlibdir}/macros:%{_rpmlibdir}/macros.d/pld:%{_rpmlibdir}/%%{_target}/macros:%{_rpmlibdir}/macros.build:%{_sysconfdir}/rpm/macros.*:%{_sysconfdir}/rpm/macros:%{_sysconfdir}/rpm/%%{_target}/macros:%{_sysconfdir}/rpm/macros.d/*.macros:~/etc/.rpmmacros:~/.rpmmacros' \
1078 --without-path-versioned \
1079 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
1080 --with-popt=external \
1081 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
1082 %{!?with_python:--without-python} \
1083 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
1084 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
1085 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
1086 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
1087 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
1089 --with-xz=external \
1090 --with-zlib=external
1097 %{?with_apidocs:%{__make} apidocs}
1099 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
1100 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
1101 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
1102 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
1104 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
1105 echo "Error linking rpmdb tools!"
1108 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
1109 echo "Error linking rpmdb tools!"
1114 rm -rf $RPM_BUILD_ROOT
1115 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
1116 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
1118 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1120 %{__make} -j1 install \
1121 pkgconfigdir=%{_pkgconfigdir} \
1122 DESTDIR=$RPM_BUILD_ROOT
1124 # install platform macros
1125 for f in platform/*macros; do
1127 fn=${bn%.macros}/macros
1128 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
1132 %ifnarch %{ix86} %{x8664} x32
1133 rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
1134 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
1135 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
1136 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
1137 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
1138 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
1139 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
1142 %ifnarch %{x8664} x32
1143 rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
1144 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
1145 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
1146 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
1150 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
1153 rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
1154 rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
1155 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
1156 rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
1157 rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
1158 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
1159 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
1160 rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
1161 rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
1163 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1164 # first platform file entry can't contain regexps
1166 %{_target_cpu}-%{_target_vendor}-linux-gnux32
1168 %{_target_cpu}-%{_target_vendor}-linux
1172 x86_64-[^-]*-[Ll]inux(-gnu)?
1173 amd64-[^-]*-[Ll]inux(-gnu)?
1174 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1177 amd64-[^-]*-[Ll]inux(-gnu)?
1178 x86_64-[^-]*-[Ll]inux(-gnu)?
1179 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1182 ia32e-[^-]*-[Ll]inux(-gnu)?
1183 x86_64-[^-]*-[Ll]inux(-gnu)?
1186 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1187 x86_64-[^-]*-[Ll]inux(-gnu)?
1188 amd64-[^-]*-[Ll]inux(-gnu)?
1191 %ifarch athlon %{x8664} x32
1192 athlon-[^-]*-[Ll]inux(-gnu)?
1194 %ifarch pentium4 athlon %{x8664} x32
1195 pentium4-[^-]*-[Ll]inux(-gnu)?
1197 %ifarch pentium3 pentium4 athlon %{x8664} x32
1198 pentium3-[^-]*-[Ll]inux(-gnu)?
1200 %ifarch i686 pentium3 pentium4 athlon %{x8664} x32
1201 i686-[^-]*-[Ll]inux(-gnu)?
1203 %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
1204 i586-[^-]*-[Ll]inux(-gnu)?
1206 %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
1207 i486-[^-]*-[Ll]inux(-gnu)?
1209 %ifarch %{ix86} %{x8664} x32
1210 i386-[^-]*-[Ll]inux(-gnu)?
1214 alpha-[^-]*-[Ll]inux(-gnu)?
1218 ia64-[^-]*-[Ll]inux(-gnu)?
1222 powerpc64-[^-]*-[Ll]inux(-gnu)?
1223 ppc64-[^-]*-[Ll]inux(-gnu)?
1225 %ifarch %{ppc} ppc64
1226 powerpc-[^-]*-[Ll]inux(-gnu)?
1227 ppc-[^-]*-[Ll]inux(-gnu)?
1231 s390x-[^-]*-[Ll]inux(-gnu)?
1234 s390-[^-]*-[Ll]inux(-gnu)?
1238 sparc64-[^-]*-[Ll]inux(-gnu)?
1239 sparcv8-[^-]*-[Ll]inux(-gnu)?
1240 sparcv9-[^-]*-[Ll]inux(-gnu)?
1243 sparcv8-[^-]*-[Ll]inux(-gnu)?
1244 sparcv9-[^-]*-[Ll]inux(-gnu)?
1246 %ifarch sparc sparcv9 sparc64
1247 sparc-[^-]*-[Ll]inux(-gnu)?
1253 # Squash Extra Blank Lines
1254 %{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1256 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1257 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1258 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1259 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1260 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1261 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1262 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1263 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
1265 # not installed since 4.4.8 (-tools-perl subpackage)
1266 install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1268 install %{SOURCE1} doc/manual/groups
1269 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
1270 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1271 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
1272 install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1273 install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
1274 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
1275 cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
1276 install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
1277 install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
1278 install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
1280 install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
1282 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1284 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1285 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
1286 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1287 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1288 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1289 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1290 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1292 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1293 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1294 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1295 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1296 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1297 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
1299 install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1300 install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1301 install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
1303 # create macro loading wrappers for backward compatibility
1304 for m in gstreamer java mono perl php python; do
1305 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
1308 # moved to rpm-build-macros 1.699
1309 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1311 # for rpm -e|-U --repackage
1312 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1313 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1316 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1317 # move essential libs to /lib (libs that /bin/rpm links to)
1318 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
1319 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1320 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1323 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1324 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1327 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1328 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1330 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1333 # wrong location, not used anyway
1334 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1335 # utils dropped in 5.4 -- their manuals
1336 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
1337 # script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1338 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
1343 cp -a doc/manual manual
1344 %{__rm} -f manual/Makefile*
1347 rm -rf $RPM_BUILD_ROOT
1350 # this needs to be a dir
1351 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
1353 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1354 mkdir %{_sysconfdir}/rpm/sysinfo
1358 if [ -e /var/lib/rpm/Packages ] && \
1359 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
1360 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
1361 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
1363 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
1367 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1368 echo 'you should ignore it and restart poldek'
1370 %{_rpmlibdir}/bin/dbupgrade.sh
1373 %triggerpostun -- %{name} < 4.4.9-44
1374 %{_rpmlibdir}/hrmib-cache
1376 %post lib -p /sbin/ldconfig
1377 %postun lib -p /sbin/ldconfig
1380 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1382 %files -f %{name}.lang
1383 %defattr(644,root,root,755)
1384 %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
1386 %dir /etc/pki/rpm-gpg
1387 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1389 %attr(755,root,root) /bin/rpm
1391 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1392 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1393 %dir %{_sysconfdir}/rpm/sysinfo
1394 # these are ok to be replaced
1395 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1396 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1398 %{_mandir}/man8/rpm.8*
1399 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1400 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1401 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1402 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1403 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1406 %dir /var/lib/rpm/log
1407 %dir /var/lib/rpm/tmp
1408 %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
1409 %dir %attr(700,root,root) /var/spool/repackage
1411 /var/lock/rpm/transaction
1413 # exported package NVRA (stamped with install tid)
1414 # net-snmp hrSWInstalledName queries, bash-completions
1415 %dir /var/cache/hrmib
1418 %{_rpmlibdir}/rpmpopt*
1419 %{_rpmlibdir}/macros
1420 %dir %{_rpmlibdir}/macros.d
1421 %{_rpmlibdir}/macros.d/pld
1422 %{_rpmlibdir}/cpuinfo.yaml
1423 %{_rpmlibdir}/noarch-*
1424 %ifarch %{ix86} %{x8664} x32
1426 %{_rpmlibdir}/pentium*
1427 %{_rpmlibdir}/athlon*
1430 %{_rpmlibdir}/alpha*
1435 %ifarch mips mipsel mips64 mips64el
1441 %ifarch sparc sparc64
1442 %{_rpmlibdir}/sparc*
1444 %ifarch %{x8664} x32
1445 %{_rpmlibdir}/amd64*
1446 %{_rpmlibdir}/ia32e*
1447 %{_rpmlibdir}/x86_64*
1451 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1453 %dir %{_rpmlibdir}/bin
1454 %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1455 %attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
1456 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
1457 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
1458 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
1461 %defattr(644,root,root,755)
1462 %dir %{_sysconfdir}/rpm
1463 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1465 %attr(755,root,root) %{_bindir}/banner.sh
1466 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1467 %dir /var/lib/banner
1470 %defattr(644,root,root,755)
1471 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1472 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1473 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1474 %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
1475 %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
1476 %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
1479 %defattr(644,root,root,755)
1480 %attr(755,root,root) %{_libdir}/librpm.so
1481 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1482 %attr(755,root,root) %{_libdir}/librpmbuild.so
1483 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1484 %attr(755,root,root) %{_libdir}/librpmconstant.so
1485 %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
1486 %attr(755,root,root) %{_libdir}/librpmdb.so
1487 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1488 %attr(755,root,root) %{_libdir}/librpmio.so
1489 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1490 %attr(755,root,root) %{_libdir}/librpmmisc.so
1491 %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
1492 %{_libdir}/librpm*.la
1494 %{_pkgconfigdir}/*.pc
1497 %defattr(644,root,root,755)
1498 %{_libdir}/librpm*.a
1501 %defattr(644,root,root,755)
1502 %attr(755,root,root) %{_bindir}/rpm2cpio
1503 %attr(755,root,root) %{_bindir}/rpmconstant
1504 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1505 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1506 %attr(755,root,root) %{_rpmlibdir}/tgpg
1507 %attr(755,root,root) %{_rpmlibdir}/bin/chroot
1508 %attr(755,root,root) %{_rpmlibdir}/bin/cp
1509 %attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1510 %attr(755,root,root) %{_rpmlibdir}/bin/find
1511 %attr(755,root,root) %{_rpmlibdir}/bin/mgo
1512 %attr(755,root,root) %{_rpmlibdir}/bin/mtree
1513 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1514 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1515 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1516 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1518 %attr(755,root,root) %{_rpmlibdir}/bin/semodule
1519 %attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1521 %if %{without system_lua}
1522 %attr(755,root,root) %{_rpmlibdir}/bin/lua
1523 %attr(755,root,root) %{_rpmlibdir}/bin/luac
1524 %attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
1525 %attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
1527 %{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
1528 %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
1529 %{_mandir}/man8/rpm2cpio.8*
1530 %{_mandir}/man8/rpmconstant.8*
1531 %{_mandir}/man8/rpmdeps.8*
1532 %{_mandir}/man8/rpmmtree.8*
1533 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1534 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1535 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1536 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1539 %defattr(644,root,root,755)
1540 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1544 %defattr(644,root,root,755)
1545 %attr(755,root,root) %{_bindir}/rpm[ieu]
1546 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1550 %defattr(644,root,root,755)
1551 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1552 %attr(755,root,root) %{_rpmlibdir}/brp-*
1553 %attr(755,root,root) %{_rpmlibdir}/check-files
1554 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1555 %attr(755,root,root) %{_rpmlibdir}/cross-build
1556 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1557 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1558 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1559 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1560 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1561 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1562 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1563 # needs hacked pkg-config to return anything
1564 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1565 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1566 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
1567 %{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
1568 %attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1569 %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1570 %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1571 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1572 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1573 %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1574 %attr(755,root,root) %{_rpmlibdir}/bin/wget
1575 %attr(755,root,root) %{_rpmlibdir}/vcheck
1576 # not used yet ... these six depend on perl
1577 %attr(755,root,root) %{_rpmlibdir}/http.req
1578 # we always used scripts provided by mono-devel, maybe move them here
1579 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1580 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1582 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1583 # must be here for "Requires: rpm-*prov" to work
1584 %{_rpmlibdir}/macros.d/cmake
1585 %{_rpmlibdir}/macros.d/gstreamer
1586 %{_rpmlibdir}/macros.d/java
1587 %{_rpmlibdir}/macros.d/libtool
1588 %{_rpmlibdir}/macros.d/mono
1589 %{_rpmlibdir}/macros.d/perl
1590 %{_rpmlibdir}/macros.d/php
1591 %{_rpmlibdir}/macros.d/pkgconfig
1592 %{_rpmlibdir}/macros.d/python
1593 %{_rpmlibdir}/macros.d/ruby
1594 %{_rpmlibdir}/macros.d/selinux
1595 %{_rpmlibdir}/macros.d/tcl
1596 %{_rpmlibdir}/macros.rpmbuild
1598 %{_rpmlibdir}/macros.gstreamer
1599 %{_rpmlibdir}/macros.java
1600 %{_rpmlibdir}/macros.mono
1601 %{_rpmlibdir}/macros.perl
1602 %{_rpmlibdir}/macros.php
1603 %{_rpmlibdir}/macros.python
1605 %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1606 %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1608 %attr(755,root,root) %{_bindir}/gendiff
1609 %attr(755,root,root) %{_bindir}/rpmbuild
1611 %dir %{_rpmlibdir}/helpers
1612 %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
1614 %{_mandir}/man1/gendiff.1*
1615 %{_mandir}/man8/rpmbuild.8*
1616 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1617 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1618 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1621 %defattr(644,root,root,755)
1622 %attr(755,root,root) %{_rpmlibdir}/java-find-requires
1623 # needs jar (any jdk), jcf-dump (gcc-java) to work
1624 %attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1627 %defattr(644,root,root,755)
1628 %attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1629 %attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1632 %defattr(644,root,root,755)
1633 %attr(755,root,root) %{_rpmlibdir}/perl.*
1634 %attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1635 %attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1638 %defattr(644,root,root,755)
1639 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1640 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1643 %defattr(644,root,root,755)
1644 %attr(755,root,root) %{_rpmlibdir}/php.prov
1645 %attr(755,root,root) %{_rpmlibdir}/php.req
1646 %attr(755,root,root) %{_rpmlibdir}/php.req.php
1649 %files -n python-rpm
1650 %defattr(644,root,root,755)
1651 %dir %{py_sitedir}/rpm
1652 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1653 %{py_sitedir}/rpm/*.py[co]
1658 %defattr(644,root,root,755)