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 Source0: %{name}-%{version}.tar.gz
59 # Source0-md5: 4067f83ca8b5bf1a21e443c0cff3efa0
60 # See README.cpu-os-macros how to update cpu-os-macros.a
61 Source100: cpu-os-macros.a
62 Source101: README.cpu-os-macros
63 Source1: %{name}.groups
64 Source2: macros.pld.in
65 Source3: %{name}-install-tree
66 Source4: %{name}-find-spec-bcond
67 Source5: %{name}-hrmib-cache
68 Source6: %{name}-groups-po.awk
69 Source7: %{name}-compress-doc
70 Source8: %{name}-php-provides
71 Source9: %{name}-php-requires
72 Source10: %{name}.sysinfo
74 Source12: %{name}-user_group.sh
75 Source13: %{name}.sysconfig
76 Source14: %{name}-java-requires
77 # http://svn.pld-linux.org/banner.sh/
79 Source16: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
80 # Source16-md5: 08b29584dd349aac9caa7610131a0a88
81 Source17: %{name}-mimetypedeps
82 Source18: macros.local
83 Source19: %{name}.noautocompressdoc
84 Source20: %{name}.noautoprov
85 Source21: %{name}.noautoprovfiles
86 Source22: %{name}.noautoreq
87 Source24: %{name}.noautoreqfiles
88 Source25: %{name}-php-requires.php
89 Source26: %{name}db_checkversion.c
91 Source28: %{name}db_reset.c
92 Source29: dbupgrade.sh
94 Source31: gem_helper.rb
95 Patch0: %{name}-branch.patch
96 Patch1: %{name}-man_pl.patch
97 Patch2: %{name}-popt-aliases.patch
98 Patch3: %{name}-nosetproctitle.patch
99 Patch4: %{name}-perl-macros.patch
100 Patch5: %{name}-perl-req-perlfile.patch
101 Patch6: %{name}-scripts-closefds.patch
102 Patch7: %{name}-php-macros.patch
103 Patch8: %{name}-gettext-in-header.patch
104 Patch9: %{name}-lua.patch
105 Patch10: %{name}-php-deps.patch
106 Patch11: %{name}-notsc.patch
107 Patch12: %{name}-hack-norpmlibdep.patch
108 Patch13: %{name}-dont-copy-descriptive-tags.patch
109 Patch14: %{name}-perl_req-INC_dirs.patch
110 Patch15: %{name}-debuginfo.patch
111 Patch16: vendor-pld.patch
112 Patch17: %{name}-old-fileconflicts-behaviour.patch
113 Patch18: %{name}-javadeps.patch
114 Patch19: %{name}-truncate-cvslog.patch
115 Patch20: %{name}-libtool-deps.patch
116 Patch21: %{name}-mimetype.patch
117 Patch22: %{name}-sparc64.patch
118 Patch23: %{name}-gendiff.patch
119 Patch24: openmp.patch
120 Patch25: %{name}-URPM-build-fix.patch
121 Patch27: %{name}-helperEVR-noassert.patch
122 Patch28: %{name}-unglobal.patch
123 Patch29: %{name}-builddir-readlink.patch
124 Patch30: %{name}-changelog_order_check_nonfatal.patch
125 Patch31: %{name}-cleanbody.patch
126 Patch32: %{name}-dirdeps-macro.patch
127 Patch33: %{name}-installbeforeerase.patch
128 Patch34: %{name}-libmagic-locale.patch
129 Patch35: %{name}-namespace-compare.patch
130 Patch36: %{name}-popt-coreutils.patch
131 Patch37: %{name}-postun-nofail.patch
132 Patch38: %{name}-silence-RPM_CHAR_TYPE.patch
133 Patch39: %{name}-fix-missing-types-in-headers.patch
134 Patch40: %{name}-fix--p-interpreter-and-empty-script.patch
135 Patch41: %{name}-db_buffer_small.patch
136 Patch42: %{name}-pattern_Release.patch
137 Patch43: %{name}-fix-___build_pre-macro.patch
138 Patch44: %{name}-missing-patch-file-fails-build.patch
139 Patch45: %{name}-remove-misleading-missing-patch-message.patch
140 Patch46: %{name}-file-magic-can-be-mixed-case.patch
141 Patch47: %{name}-query-always-noisy.patch
142 Patch48: %{name}-verify-ghosts-broken-logic.patch
143 Patch49: %{name}-python-enable-compat-RPMSENSE.patch
144 Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
145 Patch51: %{name}-gst-inspect-typo.patch
146 Patch52: %{name}-null-term-ascii-digest.patch
147 Patch53: %{name}-lua-enable-extra-libs.patch
148 Patch54: %{name}-fix-filedigests-verify.patch
149 Patch55: %{name}-disable-hmac-verify.patch
150 Patch56: %{name}-macros.patch
151 Patch57: %{name}-db5.2.patch
152 Patch58: %{name}-preserve-iterator.patch
153 Patch60: %{name}-python-sitescriptdir.patch
154 Patch61: %{name}-clean-docdir.patch
155 Patch62: %{name}-DB_CONFIG.patch
156 Patch63: %{name}-pythoneggs.patch
157 Patch64: %{name}-fix-compress-doc.patch
158 Patch65: %{name}-parseSpec-skip-empty-tags.patch
159 Patch66: %{name}-payload-use-hashed-inode.patch
160 Patch67: %{name}-repackage-dont-force-max-compression.patch
161 Patch70: python-%{name}sense-missingok.patch
162 Patch71: %{name}-changelog-encoding.patch
163 Patch72: %{name}-preserve-tag-type.patch
164 Patch74: %{name}-fix-internal-lua-build.patch
165 Patch75: %{name}-double_check_file_deps.patch
166 Patch77: %{name}-lua-expat.patch
167 Patch78: %{name}-double_check_unpackaged_subdirs.patch
168 Patch79: %{name}-rpmspec.patch
169 Patch80: %{name}-revert-gpg-argv-parsing.patch
170 Patch81: %{name}-perl-magic.patch
171 Patch82: %{name}-5.4.15-use-DSA-sig.patch
172 Patch83: %{name}-ignore-missing-macro-files.patch
174 # Patches imported from Mandriva
176 # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
177 # would basically just mean backporting it..
178 Patch1000: %{name}-5.4.4-add-_specfile-macro.patch
179 # status: needs to be cleaned up and properly reviewed together with rest
180 # of the patches related to dependency generation
181 Patch1001: %{name}-5.4.9-avoid-dependencies-on-self.patch
182 # status: probably ready to merge
183 Patch1002: %{name}-5.4.4-pkgconfigdeps-check-path.patch
184 # status: probably okay to merge, but discuss on rpm-devel first
185 Patch1003: %{name}-5.4.4-glob-wildcards-for-loading-macro-files.patch
186 # status: needs to be discussed
187 Patch1004: %{name}-5.4.4-allow-installation-of-repackaged-rpms.patch
188 # status: ready to merge
189 Patch1005: %{name}-5.4.8-dont-show-suggests-with-requires.patch
190 # status: ready for merge
191 Patch1006: %{name}-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
192 # status: probably okay to merge, but discuss on rpm-devel first
193 Patch1007: %{name}-5.4.10-duplicate_files_terminate_build.patch
194 # status: same as above
195 Patch1008: %{name}-5.4.10-unpackaged_subdirs_terminate_build.patch
197 # status: uncertain, might be okay to merge, discuss on rpm-devel first
198 Patch1009: %{name}-5.4.4-rpmbuild-withoutclean.patch
199 # no sense in having an additional dependency on 'pkgconfig' on all packages that
200 # have a pkgconfig file, it's not needed for them to be made useful and anything
201 # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
202 # status: might be okay to merge, but discuss on rpm-devel first
203 Patch1010: %{name}-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
204 # status: ready for merge
205 Patch1011: %{name}-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
206 # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
207 # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
208 # status: needs to be discussed and investigated a bit better..
209 Patch1012: %{name}-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
210 # status: probably okay to merge, but discuss on rpm-devel first
211 Patch1013: %{name}-5.4.10-files-listed-twice-terminates-build.patch
212 # status: probably okay to merge
213 Patch1014: %{name}-5.4.9-ruby1.9-fixes.patch
214 # status: keep locally
215 Patch1015: %{name}-5.4.9-keep-loading-script-macros.patch
216 # status: same as for other dep gen patches
217 Patch1016: %{name}-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
219 Patch1017: %{name}-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
220 # status: probably okay to merge
221 Patch1019: %{name}-5.4.5-python-export-spec-macros.patch
223 Patch1020: %{name}-5.4.9-font-provides.patch
225 Patch1021: %{name}-5.4.7-kmod-dependencies.patch
226 # status: probably okay to merge, discuss on rpm-devel first
227 Patch1022: %{name}-5.4.5-skip-dependencies-for-character-devices.patch
228 # status: probably okay to merge
229 Patch1024: %{name}-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
230 # status: probably okay to merge
231 Patch1026: %{name}-5.4.10-dont-try-generate-rpmfc-dependencies-from-doc-files.patch
233 Patch1027: %{name}-5.4.7-fix-generation-of-ruby-abi-provides.patch
234 # crash reproducable with 'rpm -qa --triggers'
236 Patch1028: %{name}-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
237 # status: same as for other dep gen patches
238 Patch1029: %{name}-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
240 Patch1030: %{name}-5.4.7-fix-minor-memleaks.patch
242 Patch1031: %{name}-5.4.9-mire-fix-strings-lacking-null-terminator.patch
244 Patch1032: %{name}-5.4.9-rpmpython-fix-input.patch
246 Patch1033: %{name}-5.4.7-no-seqid_init-on-rdonly-database.patch
247 # status: probably ready for merging
248 Patch1034: %{name}-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.patch
249 # status: probably ready to merge, discuss on rpm-devel first
250 Patch1035: %{name}-5.4.9-fix-verify-segfault.patch
251 # Due to rpmdav/neon being written in a different fashion than other rpmio clients,
252 # the inconsistent behaviour affects code elsewhere which expects consistent behaviour,
253 # with the result being that when unable to download files, neon will save error
254 # page as the target file.
255 # status: should go upstream, but uncertain about "correct" fix, ie. this is
256 # more of a workaround, while rewriting rpmdav code to behave consistently
257 # would be "the right thing to do". Yet I'm not fully able to grasp all of the
258 # code and don't want to spend more time just to get the API..
259 Patch1037: %{name}-5.4.10-fix-neon-saving-error-pages-as-target-file.patch
260 # As the transaction flags for ignoring arch & os are no longer used, there's
261 # currently no way to ignore arch & os of packages anymore. This patch adds
262 # support for doing this again by defining rpm variables and overriding
263 # --ignorearch & --ignoreos to set these.
264 # status: needs to be discussed upstream before thinking about merging
265 Patch1038: %{name}-5.4.10-support-ignore-arch-and-os-again.patch
266 # status: ready for merge
267 Patch1039: %{name}-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch
268 # we want that patch too, a bit of builder infrastructure relies on NOSIGNATURES
269 Patch1040: %{name}-5.4.9-support-signatures-and-digest-disablers.patch
270 # lack insight on actual functionality, which anyways seems broken, so let's
271 # disable it to avoid errors from berkeley db..
272 # status: keep locally
273 Patch1041: %{name}-5.4.9-disable-l10ndir.patch
274 # status: ready for merge
275 Patch1042: %{name}-5.4.9-fix-rpm_qa-pattern.patch
276 # warning: introduces memory leak
277 Patch1043: %{name}-5.4.12-copy-Value-string.patch
278 Patch1044: %{name}-5.4.12-fix-rpmlua-print.patch
279 Patch1045: %{name}-5.4.12-fix-rpmpython-module-import-init.patch
280 Patch1046: %{name}-5.4.12-truncate-output-buffer-after-use.patch
281 Patch1047: %{name}-5.4.13-perl-bindings-do-not-use-xmalloc.patch
283 # there's a rpmdbchk tool I wrote a while back, which might help you. although
284 # the incidents it's able to deal with is rather limited ATM... it might help
285 # you out, if not and you'll be able to solve yer problem, you could take a
286 # stab at adding support for fixing your specific problem to the util ;)
287 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-rpmdbchk.patch
288 Patch1048: %{name}-5.4.14-rpmdbchk.patch
289 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-no-assert-abort-with-broken-headers.patch
290 Patch1049: %{name}-5.4.14-no-assert-abort-with-broken-headers.patch
292 URL: http://rpm5.org/
293 BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
295 BuildRequires: sqlite3-devel
297 BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
299 BuildRequires: autoconf >= 2.63
300 BuildRequires: automake >= 1.4
301 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
302 BuildRequires: bzip2-devel >= 1.0.2-17
303 BuildRequires: elfutils-devel >= 0.108
304 BuildRequires: gettext-tools >= 0.19.2
305 %{?with_keyutils:BuildRequires: keyutils-devel}
306 BuildRequires: libmagic-devel
308 BuildRequires: libselinux-devel >= 2.1.0
309 BuildRequires: libsemanage-devel >= 2.1.0
310 BuildRequires: libsepol-devel >= 2.1.0
312 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
313 BuildRequires: libstdc++-devel
314 BuildRequires: libtool >= 1:1.4.2-9
316 BuildRequires: libxml2-devel
317 BuildRequires: neon-devel >= 0.25.5
319 %{?with_system_lua:BuildRequires: lua52-devel >= 5.2.2}
320 BuildRequires: ossp-uuid-devel
321 BuildRequires: patch >= 2.2
322 BuildRequires: popt-devel >= %{reqpopt_ver}
323 %{?with_python:BuildRequires: python-devel >= 1:2.3}
324 BuildRequires: python-modules >= 1:2.3
325 %{?with_python:BuildRequires: rpm-pythonprov}
327 BuildRequires: xz-devel
328 BuildRequires: zlib-devel
330 BuildRequires: doxygen
331 BuildRequires: ghostscript
332 BuildRequires: graphviz
333 BuildRequires: tetex-pdftex
336 # Require static library only for static build
337 BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
338 BuildRequires: beecrypt-static >= %{beecrypt_ver}
339 BuildRequires: bzip2-static >= 1.0.2-17
340 BuildRequires: elfutils-static
341 BuildRequires: glibc-static >= 2.2.94
342 BuildRequires: libmagic-static
344 BuildRequires: libselinux-static >= 2.1.0
345 BuildRequires: libsemanage-static >= 2.1.0
346 BuildRequires: libsepol-static >= 2.1.0
348 BuildRequires: popt-static >= %{reqpopt_ver}
349 BuildRequires: zlib-static
351 Requires(posttrans): coreutils
352 Requires: %{name}-base = %{version}-%{release}
353 Requires: %{name}-lib = %{version}-%{release}
354 Requires: beecrypt >= %{beecrypt_ver}
355 Requires: popt >= %{reqpopt_ver}
356 Provides: rpm-db-ver = %{reqdb_ver}
357 Obsoletes: rpm-getdeps
358 %{!?with_static:Obsoletes: rpm-utils-static}
359 Conflicts: glibc < 2.2.92
360 # db4.6 poldek needed
361 Conflicts: poldek < 0.21-0.20070703.00.3
362 # segfaults with lzma 0.42.2
363 Conflicts: lzma-libs < 4.999.3
364 Conflicts: util-vserver < 0.30.216-1.pre3034.7
365 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
367 %define _binary_payload w9.gzdio
369 # don't require very fresh rpm.macros to build
370 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
371 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
372 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
373 %define ppc ppc ppc7400 ppc7450
374 %define x8664 amd64 ia32e x86_64
376 # stabilize new build environment
378 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
379 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
380 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
382 # x32 is a very special case
383 %define __newcc %{?force_cc}%{!?force_cc:x86_64-pld-linux-gnux32-gcc}
384 %define __newcxx %{?force_cxx}%{!?force_cxx:x86_64-pld-linux-gnux32-g++}
385 %define __newcpp %{?force_cpp}%{!?force_cpp:x86_64-pld-linux-gnux32-gcc -E}
388 %define _rpmlibdir /usr/lib/rpm
389 %define _noautocompressdoc RPM-GPG-KEY
392 RPM is a powerful package manager, which can be used to build,
393 install, query, verify, update, and uninstall individual software
394 packages. A package consists of an archive of files, and package
395 information, including name, version, and description.
397 %description -l de.UTF-8
398 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
399 Installation, Anfrage, Verifizierung, Aktualisierung und
400 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
401 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
404 %description -l es.UTF-8
405 RPM es un poderoso administrador de paquetes, que puede ser usado para
406 construir, instalar, pesquisar, verificar, actualizar y desinstalar
407 paquetes individuales de software. Un paquete consiste en un
408 almacenaje de archivos, y información sobre el paquete, incluyendo
409 nombre, versión y descripción.
411 %description -l pl.UTF-8
412 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
413 przebudowanie, instalację czy weryfikację dowolnego pakietu.
414 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
415 plików wchodzących w skład pakietu, zależności od innych pakietów, są
416 przechowywane w bazie danych i można je uzyskać za pomocą opcji
417 odpytywania programu rpm.
419 %description -l pt_BR.UTF-8
420 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
421 construir, instalar, pesquisar, verificar, atualizar e desinstalar
422 pacotes individuais de software. Um pacote consiste de um conjunto de
423 arquivos e informações adicionais, incluindo nome, versão e descrição
424 do pacote, permissões dos arquivos, etc.
426 %description -l ru.UTF-8
427 RPM - это мощный менеджер пакетов, который может быть использован для
428 создания, инсталляции, запросов (query), проверки, обновления и
429 удаления программных пакетов. Пакет состоит из файлового архива и
430 служебной информации, включающей название, версию, описание и другие
433 %description -l uk.UTF-8
434 RPM - це потужний менеджер пакетів, що може бути використаний для
435 створення, інсталяції, запитів (query), перевірки, поновлення та
436 видалення програмних пакетів. Пакет складається з файлового архіву та
437 службової інформації, що містить назву, версію, опис та іншу
438 інформацію про пакет.
441 Summary: RPM base package - scripts used by rpm packages themselves
442 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
445 Obsoletes: rpm-scripts
446 Obsoletes: vserver-rpm
449 The RPM base package contains scripts used by rpm packages themselves.
451 - scripts for adding/removing groups and users needed for rpm
453 - banner.sh to display %%banner messages from rpm scriptlets.
455 %description base -l pl.UTF-8
456 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
458 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
459 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
462 Summary: RPMs library
463 Summary(pl.UTF-8): Biblioteki RPM-a
465 Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
467 Requires: sqlite3 >= %{sqlite_build_version}
469 Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
471 Requires: beecrypt >= %{beecrypt_ver}
472 Requires: libmagic >= 1.15-2
473 %{?with_selinux:Requires: libselinux >= 2.1.0}
474 Requires: popt >= %{reqpopt_ver}
476 # avoid SEGV caused by mixed db versions
477 Conflicts: poldek < 0.18.1-16
482 %description lib -l pl.UTF-8
486 Summary: Header files for rpm libraries
487 Summary(de.UTF-8): Header-Dateien für rpm Libraries
488 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
489 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
490 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
491 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
492 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
493 Group: Development/Libraries
494 Requires: %{name}-lib = %{version}-%{release}
495 Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
496 Requires: beecrypt-devel >= %{beecrypt_ver}
497 Requires: bzip2-devel
498 Requires: elfutils-devel
499 %{?with_keyutils:Requires: keyutils-devel}
500 Requires: libmagic-devel
502 Requires: libselinux-devel
503 Requires: libsemanage-devel
504 Requires: libsepol-devel
506 Requires: popt-devel >= %{reqpopt_ver}
510 The RPM packaging system includes C libraries that make it easy to
511 manipulate RPM packages and databases. They are intended to ease the
512 creation of graphical package managers and other tools that need
513 intimate knowledge of RPM packages. This package contains header files
516 %description devel -l de.UTF-8
517 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
518 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
519 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
520 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
522 %description devel -l es.UTF-8
523 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
524 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
525 facilitar la creación de administradores gráficos de paquetes y otras
526 herramientas que necesiten un conocimiento profundo de paquetes RPM.
528 %description devel -l pl.UTF-8
529 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
530 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
531 graficznych programów zarządzających pakietami oraz innych narzędzi,
532 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
533 zawiera pliki nagłówkowe wspomnianych bibliotek.
535 %description devel -l pt_BR.UTF-8
536 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
537 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
538 facilitar a criação de gerenciadores gráficos de pacotes e outras
539 ferramentas que precisem de conhecimento profundo de pacotes RPM.
541 %description devel -l ru.UTF-8
542 Система управления пакетами RPM содержит библиотеку C, которая
543 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
544 Эта библиотека предназначена для облегчения создания графических
545 пакетных менеджеров и других утилит, которым необходимо работать с
548 %description devel -l uk.UTF-8
549 Система керування пакетами RPM містить бібліотеку C, котра спрощує
550 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
551 призначена для полегшення створення графічних пакетних менеджерів та
552 інших утиліт, що працюють з пакетами RPM.
555 Summary: RPM static libraries
556 Summary(de.UTF-8): RPMs statische Libraries
557 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
558 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
559 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
560 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
561 Group: Development/Libraries
562 Requires: %{name}-devel = %{version}-%{release}
563 Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
564 Requires: beecrypt-static >= %{beecrypt_ver}
565 Requires: bzip2-static
566 Requires: elfutils-static
567 %{?with_keyutils:Requires: keyutils-static}
568 Requires: libmagic-static
570 Requires: libselinux-static
571 Requires: libsemanage-static
572 Requires: libsepol-static
574 Requires: popt-static >= %{reqpopt_ver}
575 Requires: zlib-static
578 RPM static libraries.
580 %description static -l de.UTF-8
581 RPMs statische Libraries.
583 %description static -l pl.UTF-8
584 Biblioteki statyczne RPM-a.
586 %description static -l pt_BR.UTF-8
587 Bibliotecas estáticas para desenvolvimento.
589 %description static -l ru.UTF-8
590 Система управления пакетами RPM содержит библиотеку C, которая
591 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
592 Это статическая библиотека RPM.
594 %description static -l uk.UTF-8
595 Система керування пакетами RPM містить бібліотеку C, котра спрощує
596 роботу з пакетами RPM та відповідними базами даних. Це статична
600 Summary: Additional utilities for managing RPM packages and database
601 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
602 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
603 Group: Applications/File
604 Requires: %{name} = %{version}-%{release}
605 Requires: popt >= %{reqpopt_ver}
606 %if %{with suggest_tags}
610 Conflicts: filesystem-debuginfo < 3.0-16
613 Additional utilities for managing RPM packages and database.
615 %description utils -l de.UTF-8
616 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
618 %description utils -l pl.UTF-8
619 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
622 Summary: Additional utilities for managing RPM packages and database
623 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
624 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
625 Group: Applications/File
626 Requires: %{name}-utils = %{version}-%{release}
627 Requires: popt >= %{reqpopt_ver}
629 %description utils-perl
630 Additional utilities for managing RPM packages and database.
632 %description utils-perl -l de.UTF-8
633 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
635 %description utils-perl -l pl.UTF-8
636 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
638 %package utils-static
639 Summary: Static rpm utilities
640 Summary(pl.UTF-8): Statyczne narzędzia rpm
641 Group: Applications/System
642 Requires: %{name} = %{version}-%{release}
644 %description utils-static
645 Static rpm utilities for repairing system in case something with
646 shared libraries used by rpm become broken. Currently it contains rpmi
647 binary, which can be used to install/upgrade/remove packages without
648 using shared libraries (well, in fact with exception of NSS modules).
650 %description utils-static -l pl.UTF-8
651 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
652 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
653 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
654 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
655 (z wyjątkiem modułów NSS).
658 Summary: Scripts for building binary RPM packages
659 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
660 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
661 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
662 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
663 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
664 Group: Applications/File
665 Requires(pretrans): coreutils
666 Requires(pretrans): findutils
667 Requires: %{name}-build-macros >= 1.699
668 Requires: %{name}-utils = %{version}-%{release}
672 Requires: chrpath >= 0.10-4
676 Requires: file >= 4.17
680 Requires: gcc >= 3.0.3
684 Requires: glibc-devel
691 Requires: tar >= 1:1.22
695 Provides: rpmbuild(monoautodeps)
696 Provides: rpmbuild(noauto) = 3
698 Conflicts: automake < 1:1.7.9-2
699 Conflicts: libtool < 2:1.5-13
703 Scripts for building binary RPM packages.
705 %description build -l de.UTF-8
706 Scripts fürs Bauen binärer RPM-Pakete.
708 %description build -l pl.UTF-8
709 Skrypty pomocnicze do budowania binarnych RPM-ów.
711 %description build -l pt_BR.UTF-8
712 Este pacote contém scripts e programas executáveis que são usados para
713 construir pacotes usando o RPM.
715 %description build -l ru.UTF-8
716 Различные вспомогательные скрипты и исполняемые программы, которые
717 используются для сборки RPM'ов.
719 %description build -l uk.UTF-8
720 Різноманітні допоміжні скрипти та утиліти, які використовуються для
724 Summary: Additional utilities for checking Java provides/requires in RPM packages
725 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
726 Group: Applications/File
727 Requires: %{name} = %{version}-%{release}
729 Requires: findutils >= 1:4.2.26
733 %description javaprov
734 Additional utilities for checking Java provides/requires in RPM
737 %description javaprov -l pl.UTF-8
738 Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
742 Summary: Additional utilities for checking Perl provides/requires in RPM packages
743 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
744 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
745 Group: Applications/File
746 Requires: %{name} = %{version}-%{release}
747 Requires: perl-Encode
749 Requires: perl-modules
751 %description perlprov
752 Additional utilities for checking Perl provides/requires in RPM
755 %description perlprov -l de.UTF-8
756 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
758 %description perlprov -l pl.UTF-8
759 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
763 Summary: Python macros, which simplifies creation of RPM packages with Python software
764 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
765 Group: Applications/File
766 Requires: %{name} = %{version}-%{release}
768 Requires: python-distribute
769 Requires: python-modules
771 %description pythonprov
772 Python macros, which simplifies creation of RPM packages with Python
775 %description pythonprov -l pl.UTF-8
776 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
779 %package php-pearprov
780 Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
781 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
782 Group: Applications/File
783 Requires: %{name} = %{version}-%{release}
785 Suggests: php-pear-PHP_CompatInfo
787 %description php-pearprov
788 Additional utilities for checking PHP PEAR provides/requires in RPM
791 %description php-pearprov -l pl.UTF-8
792 Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
796 Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
797 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
798 Group: Applications/File
799 Requires: %{name} = %{version}-%{release}
801 Requires: ruby-modules
802 Requires: ruby-rubygems
804 %description rubyprov
805 Ruby tools, which simplifies creation of RPM packages with Ruby
808 %description rubyprov -l pl.UTF-8
809 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
812 %package -n python-rpm
813 Summary: Python interface to RPM library
814 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
815 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
816 Group: Development/Languages/Python
817 Requires: %{name} = %{version}-%{release}
819 Obsoletes: rpm-python
821 %description -n python-rpm
822 The rpm-python package contains a module which permits applications
823 written in the Python programming language to use the interface
824 supplied by RPM (RPM Package Manager) libraries.
826 This package should be installed if you want to develop Python
827 programs that will manipulate RPM packages and databases.
829 %description -n python-rpm -l pl.UTF-8
830 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
831 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
833 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
834 Pythonie programy manipulujące pakietami i bazami danych rpm.
836 %description -n python-rpm -l pt_BR.UTF-8
837 O pacote rpm-python contém um módulo que permite que aplicações
838 escritas em Python utilizem a interface fornecida pelas bibliotecas
839 RPM (RPM Package Manager).
841 Esse pacote deve ser instalado se você quiser desenvolver programas em
842 Python para manipular pacotes e bancos de dados RPM.
845 Summary: RPM API documentation and guides
846 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
848 %if "%{_rpmversion}" >= "5"
853 Documentation for RPM API and guides in HTML format generated from rpm
856 %description apidocs -l pl.UTF-8
857 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
858 źrodeł RPM-a przez doxygen.
861 %setup -q -n %{name}-%{version}%{?subver}
876 %{?with_system_lua:%patch9 -p1}
879 # enable TSC for capable archs
912 %{?with_db61:%patch41 -p1}
928 %{!?with_db61:%patch57 -p1}
987 # don't delete, may be usefull if jbj descides to enable this again
1000 install %{SOURCE2} macros/pld.in
1001 install %{SOURCE8} scripts/php.prov.in
1002 install %{SOURCE9} scripts/php.req.in
1003 install %{SOURCE11} scripts/perl.prov.in
1004 cp -p %{SOURCE30} scripts/rubygems.rb
1005 cp -p %{SOURCE31} scripts/gem_helper.rb
1007 %{__mv} -f scripts/perl.req{,.in}
1009 # generate Group translations to *.po
1010 awk -f %{SOURCE6} %{SOURCE1}
1012 install %{SOURCE26} tools/rpmdb_checkversion.c
1013 install %{SOURCE28} tools/rpmdb_reset.c
1015 for extlib in beecrypt neon %{?with_system_pcre:pcre} popt; do
1016 [ -d $extlib ] && %{__rm} -r $extlib
1027 # rpm checks for CPU type at runtime, but it looks better
1029 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
1030 -e 's|@host_cpu@|%{_target_cpu}|' \
1031 -e 's|@host_os@|%{_target_os}|' \
1034 %{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
1035 # pass CC and CXX too in case of building with some older configure macro
1040 WITH_PERL_VERSION=no \
1041 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
1042 --disable-silent-rules \
1045 %{!?with_apidocs:--without-apidocs} \
1046 --with-beecrypt=external \
1047 --with-bugreport="http://bugs.pld-linux.org/" \
1048 --with-bzip2=external \
1049 --with-db=external \
1051 --with-file=external \
1052 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
1054 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
1055 --with-lzma=external \
1056 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
1057 --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' \
1058 --without-path-versioned \
1059 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
1060 --with-popt=external \
1061 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
1062 %{!?with_python:--without-python} \
1063 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
1064 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
1065 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
1066 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
1067 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
1069 --with-xz=external \
1070 --with-zlib=external
1077 %{?with_apidocs:%{__make} apidocs}
1079 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
1080 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
1081 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
1082 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
1084 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
1085 echo "Error linking rpmdb tools!"
1088 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
1089 echo "Error linking rpmdb tools!"
1094 rm -rf $RPM_BUILD_ROOT
1095 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
1096 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
1098 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1100 %{__make} -j1 install \
1101 pkgconfigdir=%{_pkgconfigdir} \
1102 DESTDIR=$RPM_BUILD_ROOT
1104 # install platform macros
1105 for f in platform/*macros; do
1107 fn=${bn%.macros}/macros
1108 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
1112 %ifnarch %{ix86} %{x8664} x32
1113 rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
1114 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
1115 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
1116 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
1117 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
1118 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
1119 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
1122 %ifnarch %{x8664} x32
1123 rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
1124 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
1125 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
1126 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
1130 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
1133 rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
1134 rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
1135 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
1136 rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
1137 rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
1138 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
1139 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
1140 rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
1141 rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
1143 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1144 # first platform file entry can't contain regexps
1146 %{_target_cpu}-%{_target_vendor}-linux-gnux32
1148 %{_target_cpu}-%{_target_vendor}-linux
1152 x86_64-[^-]*-[Ll]inux(-gnu)?
1153 amd64-[^-]*-[Ll]inux(-gnu)?
1154 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1157 amd64-[^-]*-[Ll]inux(-gnu)?
1158 x86_64-[^-]*-[Ll]inux(-gnu)?
1159 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1162 ia32e-[^-]*-[Ll]inux(-gnu)?
1163 x86_64-[^-]*-[Ll]inux(-gnu)?
1166 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1167 x86_64-[^-]*-[Ll]inux(-gnu)?
1168 amd64-[^-]*-[Ll]inux(-gnu)?
1171 %ifarch athlon %{x8664} x32
1172 athlon-[^-]*-[Ll]inux(-gnu)?
1174 %ifarch pentium4 athlon %{x8664} x32
1175 pentium4-[^-]*-[Ll]inux(-gnu)?
1177 %ifarch pentium3 pentium4 athlon %{x8664} x32
1178 pentium3-[^-]*-[Ll]inux(-gnu)?
1180 %ifarch i686 pentium3 pentium4 athlon %{x8664} x32
1181 i686-[^-]*-[Ll]inux(-gnu)?
1183 %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
1184 i586-[^-]*-[Ll]inux(-gnu)?
1186 %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
1187 i486-[^-]*-[Ll]inux(-gnu)?
1189 %ifarch %{ix86} %{x8664} x32
1190 i386-[^-]*-[Ll]inux(-gnu)?
1194 alpha-[^-]*-[Ll]inux(-gnu)?
1198 ia64-[^-]*-[Ll]inux(-gnu)?
1202 powerpc64-[^-]*-[Ll]inux(-gnu)?
1203 ppc64-[^-]*-[Ll]inux(-gnu)?
1205 %ifarch %{ppc} ppc64
1206 powerpc-[^-]*-[Ll]inux(-gnu)?
1207 ppc-[^-]*-[Ll]inux(-gnu)?
1211 s390x-[^-]*-[Ll]inux(-gnu)?
1214 s390-[^-]*-[Ll]inux(-gnu)?
1218 sparc64-[^-]*-[Ll]inux(-gnu)?
1219 sparcv8-[^-]*-[Ll]inux(-gnu)?
1220 sparcv9-[^-]*-[Ll]inux(-gnu)?
1223 sparcv8-[^-]*-[Ll]inux(-gnu)?
1224 sparcv9-[^-]*-[Ll]inux(-gnu)?
1226 %ifarch sparc sparcv9 sparc64
1227 sparc-[^-]*-[Ll]inux(-gnu)?
1233 # Squash Extra Blank Lines
1234 %{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1236 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1237 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1238 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1239 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1240 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1241 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1242 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1243 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
1245 # not installed since 4.4.8 (-tools-perl subpackage)
1246 install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1248 install %{SOURCE1} doc/manual/groups
1249 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
1250 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1251 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
1252 install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1253 install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
1254 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
1255 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
1256 cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
1257 install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
1258 install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
1259 install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
1261 install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
1263 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1265 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1266 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
1267 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1268 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1269 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1270 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1271 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1273 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1274 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1275 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1276 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1277 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1278 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
1280 install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1281 install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1282 install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
1284 # create macro loading wrappers for backward compatibility
1285 for m in gstreamer java mono perl php python; do
1286 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
1289 # moved to rpm-build-macros 1.699
1290 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1292 # for rpm -e|-U --repackage
1293 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1294 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1297 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1298 # move essential libs to /lib (libs that /bin/rpm links to)
1299 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
1300 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1301 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1304 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1305 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1308 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1309 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1311 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1314 # wrong location, not used anyway
1315 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1316 # utils dropped in 5.4 -- their manuals
1317 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
1318 # script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1319 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
1324 cp -a doc/manual manual
1325 %{__rm} -f manual/Makefile*
1328 rm -rf $RPM_BUILD_ROOT
1331 # this needs to be a dir
1332 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
1334 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1335 mkdir %{_sysconfdir}/rpm/sysinfo
1339 if [ -e /var/lib/rpm/Packages ] && \
1340 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
1341 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
1342 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
1344 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
1348 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1349 echo 'you should ignore it and restart poldek'
1351 %{_rpmlibdir}/bin/dbupgrade.sh
1354 %triggerpostun -- %{name} < 4.4.9-44
1355 %{_rpmlibdir}/hrmib-cache
1357 %post lib -p /sbin/ldconfig
1358 %postun lib -p /sbin/ldconfig
1361 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1363 %files -f %{name}.lang
1364 %defattr(644,root,root,755)
1365 %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
1367 %dir /etc/pki/rpm-gpg
1368 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1370 %attr(755,root,root) /bin/rpm
1372 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1373 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1374 %dir %{_sysconfdir}/rpm/sysinfo
1375 # these are ok to be replaced
1376 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1377 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1379 %{_mandir}/man8/rpm.8*
1380 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1381 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1382 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1383 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1384 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1387 %dir /var/lib/rpm/log
1388 %dir /var/lib/rpm/tmp
1389 %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
1390 %dir %attr(700,root,root) /var/spool/repackage
1392 /var/lock/rpm/transaction
1394 # exported package NVRA (stamped with install tid)
1395 # net-snmp hrSWInstalledName queries, bash-completions
1396 %dir /var/cache/hrmib
1399 %{_rpmlibdir}/rpmpopt*
1400 %{_rpmlibdir}/macros
1401 %dir %{_rpmlibdir}/macros.d
1402 %{_rpmlibdir}/macros.d/pld
1403 %{_rpmlibdir}/cpuinfo.yaml
1404 %{_rpmlibdir}/noarch-*
1405 %ifarch %{ix86} %{x8664} x32
1407 %{_rpmlibdir}/pentium*
1408 %{_rpmlibdir}/athlon*
1411 %{_rpmlibdir}/alpha*
1416 %ifarch mips mipsel mips64 mips64el
1422 %ifarch sparc sparc64
1423 %{_rpmlibdir}/sparc*
1425 %ifarch %{x8664} x32
1426 %{_rpmlibdir}/amd64*
1427 %{_rpmlibdir}/ia32e*
1428 %{_rpmlibdir}/x86_64*
1432 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1434 %dir %{_rpmlibdir}/bin
1435 %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1436 %attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
1437 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
1438 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
1439 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
1442 %defattr(644,root,root,755)
1443 %dir %{_sysconfdir}/rpm
1444 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1446 %attr(755,root,root) %{_bindir}/banner.sh
1447 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1448 %dir /var/lib/banner
1451 %defattr(644,root,root,755)
1452 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1453 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1454 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1455 %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
1456 %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
1457 %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
1460 %defattr(644,root,root,755)
1461 %attr(755,root,root) %{_libdir}/librpm.so
1462 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1463 %attr(755,root,root) %{_libdir}/librpmbuild.so
1464 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1465 %attr(755,root,root) %{_libdir}/librpmconstant.so
1466 %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
1467 %attr(755,root,root) %{_libdir}/librpmdb.so
1468 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1469 %attr(755,root,root) %{_libdir}/librpmio.so
1470 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1471 %attr(755,root,root) %{_libdir}/librpmmisc.so
1472 %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
1473 %{_libdir}/librpm*.la
1475 %{_pkgconfigdir}/*.pc
1478 %defattr(644,root,root,755)
1479 %{_libdir}/librpm*.a
1482 %defattr(644,root,root,755)
1483 %attr(755,root,root) %{_bindir}/rpm2cpio
1484 %attr(755,root,root) %{_bindir}/rpmconstant
1485 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1486 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1487 %attr(755,root,root) %{_rpmlibdir}/tgpg
1488 %attr(755,root,root) %{_rpmlibdir}/bin/chroot
1489 %attr(755,root,root) %{_rpmlibdir}/bin/cp
1490 %attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1491 %attr(755,root,root) %{_rpmlibdir}/bin/find
1492 %attr(755,root,root) %{_rpmlibdir}/bin/mgo
1493 %attr(755,root,root) %{_rpmlibdir}/bin/mtree
1494 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1495 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1496 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1497 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1499 %attr(755,root,root) %{_rpmlibdir}/bin/semodule
1500 %attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1502 %if %{without system_lua}
1503 %attr(755,root,root) %{_rpmlibdir}/bin/lua
1504 %attr(755,root,root) %{_rpmlibdir}/bin/luac
1505 %attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
1506 %attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
1508 %{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
1509 %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
1510 %{_mandir}/man8/rpm2cpio.8*
1511 %{_mandir}/man8/rpmconstant.8*
1512 %{_mandir}/man8/rpmdeps.8*
1513 %{_mandir}/man8/rpmmtree.8*
1514 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1515 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1516 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1517 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1520 %defattr(644,root,root,755)
1521 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1525 %defattr(644,root,root,755)
1526 %attr(755,root,root) %{_bindir}/rpm[ieu]
1527 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1531 %defattr(644,root,root,755)
1532 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1533 %attr(755,root,root) %{_rpmlibdir}/brp-*
1534 %attr(755,root,root) %{_rpmlibdir}/check-files
1535 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1536 %attr(755,root,root) %{_rpmlibdir}/cross-build
1537 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1538 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1539 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1540 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1541 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1542 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1543 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1544 # needs hacked pkg-config to return anything
1545 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1546 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1547 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
1548 %{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
1549 %attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1550 %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1551 %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1552 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1553 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1554 %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1555 %attr(755,root,root) %{_rpmlibdir}/bin/wget
1556 %attr(755,root,root) %{_rpmlibdir}/vcheck
1557 # not used yet ... these six depend on perl
1558 %attr(755,root,root) %{_rpmlibdir}/http.req
1559 # we always used scripts provided by mono-devel, maybe move them here
1560 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1561 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1563 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1564 # must be here for "Requires: rpm-*prov" to work
1565 %{_rpmlibdir}/macros.d/cmake
1566 %{_rpmlibdir}/macros.d/gstreamer
1567 %{_rpmlibdir}/macros.d/java
1568 %{_rpmlibdir}/macros.d/libtool
1569 %{_rpmlibdir}/macros.d/mono
1570 %{_rpmlibdir}/macros.d/perl
1571 %{_rpmlibdir}/macros.d/php
1572 %{_rpmlibdir}/macros.d/pkgconfig
1573 %{_rpmlibdir}/macros.d/python
1574 %{_rpmlibdir}/macros.d/ruby
1575 %{_rpmlibdir}/macros.d/selinux
1576 %{_rpmlibdir}/macros.d/tcl
1577 %{_rpmlibdir}/macros.rpmbuild
1579 %{_rpmlibdir}/macros.gstreamer
1580 %{_rpmlibdir}/macros.java
1581 %{_rpmlibdir}/macros.mono
1582 %{_rpmlibdir}/macros.perl
1583 %{_rpmlibdir}/macros.php
1584 %{_rpmlibdir}/macros.python
1586 %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1587 %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1589 %attr(755,root,root) %{_bindir}/gendiff
1590 %attr(755,root,root) %{_bindir}/rpmbuild
1592 %dir %{_rpmlibdir}/helpers
1593 %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
1595 %{_mandir}/man1/gendiff.1*
1596 %{_mandir}/man8/rpmbuild.8*
1597 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1598 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1599 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1602 %defattr(644,root,root,755)
1603 %attr(755,root,root) %{_rpmlibdir}/java-find-requires
1604 # needs jar (any jdk), jcf-dump (gcc-java) to work
1605 %attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1608 %defattr(644,root,root,755)
1609 %attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1610 %attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1613 %defattr(644,root,root,755)
1614 %attr(755,root,root) %{_rpmlibdir}/perl.*
1615 %attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1616 %attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1619 %defattr(644,root,root,755)
1620 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1621 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1624 %defattr(644,root,root,755)
1625 %attr(755,root,root) %{_rpmlibdir}/php*
1626 %attr(755,root,root) %{_rpmlibdir}/find-php*
1629 %files -n python-rpm
1630 %defattr(644,root,root,755)
1631 %dir %{py_sitedir}/rpm
1632 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1633 %{py_sitedir}/rpm/*.py[co]
1638 %defattr(644,root,root,755)