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 Patch85: rpm-CVE-2013-6435.patch
175 Patch86: rpm-CVE-2014-8118.patch
177 # Patches imported from Mandriva
179 # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
180 # would basically just mean backporting it..
181 Patch1000: %{name}-5.4.4-add-_specfile-macro.patch
182 # status: needs to be cleaned up and properly reviewed together with rest
183 # of the patches related to dependency generation
184 Patch1001: %{name}-5.4.9-avoid-dependencies-on-self.patch
185 # status: probably ready to merge
186 Patch1002: %{name}-5.4.4-pkgconfigdeps-check-path.patch
187 # status: probably okay to merge, but discuss on rpm-devel first
188 Patch1003: %{name}-5.4.4-glob-wildcards-for-loading-macro-files.patch
189 # status: needs to be discussed
190 Patch1004: %{name}-5.4.4-allow-installation-of-repackaged-rpms.patch
191 # status: ready to merge
192 Patch1005: %{name}-5.4.8-dont-show-suggests-with-requires.patch
193 # status: ready for merge
194 Patch1006: %{name}-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
195 # status: probably okay to merge, but discuss on rpm-devel first
196 Patch1007: %{name}-5.4.10-duplicate_files_terminate_build.patch
197 # status: same as above
198 Patch1008: %{name}-5.4.10-unpackaged_subdirs_terminate_build.patch
200 # status: uncertain, might be okay to merge, discuss on rpm-devel first
201 Patch1009: %{name}-5.4.4-rpmbuild-withoutclean.patch
202 # no sense in having an additional dependency on 'pkgconfig' on all packages that
203 # have a pkgconfig file, it's not needed for them to be made useful and anything
204 # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
205 # status: might be okay to merge, but discuss on rpm-devel first
206 Patch1010: %{name}-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
207 # status: ready for merge
208 Patch1011: %{name}-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
209 # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
210 # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
211 # status: needs to be discussed and investigated a bit better..
212 Patch1012: %{name}-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
213 # status: probably okay to merge, but discuss on rpm-devel first
214 Patch1013: %{name}-5.4.10-files-listed-twice-terminates-build.patch
215 # status: probably okay to merge
216 Patch1014: %{name}-5.4.9-ruby1.9-fixes.patch
217 # status: keep locally
218 Patch1015: %{name}-5.4.9-keep-loading-script-macros.patch
219 # status: same as for other dep gen patches
220 Patch1016: %{name}-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
222 Patch1017: %{name}-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
223 # status: probably okay to merge
224 Patch1019: %{name}-5.4.5-python-export-spec-macros.patch
226 Patch1020: %{name}-5.4.9-font-provides.patch
228 Patch1021: %{name}-5.4.7-kmod-dependencies.patch
229 # status: probably okay to merge, discuss on rpm-devel first
230 Patch1022: %{name}-5.4.5-skip-dependencies-for-character-devices.patch
231 # status: probably okay to merge
232 Patch1024: %{name}-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
233 # status: probably okay to merge
234 Patch1026: %{name}-5.4.10-dont-try-generate-rpmfc-dependencies-from-doc-files.patch
236 Patch1027: %{name}-5.4.7-fix-generation-of-ruby-abi-provides.patch
237 # crash reproducable with 'rpm -qa --triggers'
239 Patch1028: %{name}-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
240 # status: same as for other dep gen patches
241 Patch1029: %{name}-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
243 Patch1030: %{name}-5.4.7-fix-minor-memleaks.patch
245 Patch1031: %{name}-5.4.9-mire-fix-strings-lacking-null-terminator.patch
247 Patch1032: %{name}-5.4.9-rpmpython-fix-input.patch
249 Patch1033: %{name}-5.4.7-no-seqid_init-on-rdonly-database.patch
250 # status: probably ready for merging
251 Patch1034: %{name}-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.patch
252 # status: probably ready to merge, discuss on rpm-devel first
253 Patch1035: %{name}-5.4.9-fix-verify-segfault.patch
254 # Due to rpmdav/neon being written in a different fashion than other rpmio clients,
255 # the inconsistent behaviour affects code elsewhere which expects consistent behaviour,
256 # with the result being that when unable to download files, neon will save error
257 # page as the target file.
258 # status: should go upstream, but uncertain about "correct" fix, ie. this is
259 # more of a workaround, while rewriting rpmdav code to behave consistently
260 # would be "the right thing to do". Yet I'm not fully able to grasp all of the
261 # code and don't want to spend more time just to get the API..
262 Patch1037: %{name}-5.4.10-fix-neon-saving-error-pages-as-target-file.patch
263 # As the transaction flags for ignoring arch & os are no longer used, there's
264 # currently no way to ignore arch & os of packages anymore. This patch adds
265 # support for doing this again by defining rpm variables and overriding
266 # --ignorearch & --ignoreos to set these.
267 # status: needs to be discussed upstream before thinking about merging
268 Patch1038: %{name}-5.4.10-support-ignore-arch-and-os-again.patch
269 # status: ready for merge
270 Patch1039: %{name}-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch
271 # we want that patch too, a bit of builder infrastructure relies on NOSIGNATURES
272 Patch1040: %{name}-5.4.9-support-signatures-and-digest-disablers.patch
273 # lack insight on actual functionality, which anyways seems broken, so let's
274 # disable it to avoid errors from berkeley db..
275 # status: keep locally
276 Patch1041: %{name}-5.4.9-disable-l10ndir.patch
277 # status: ready for merge
278 Patch1042: %{name}-5.4.9-fix-rpm_qa-pattern.patch
279 # warning: introduces memory leak
280 Patch1043: %{name}-5.4.12-copy-Value-string.patch
281 Patch1044: %{name}-5.4.12-fix-rpmlua-print.patch
282 Patch1045: %{name}-5.4.12-fix-rpmpython-module-import-init.patch
283 Patch1046: %{name}-5.4.12-truncate-output-buffer-after-use.patch
284 Patch1047: %{name}-5.4.13-perl-bindings-do-not-use-xmalloc.patch
286 # there's a rpmdbchk tool I wrote a while back, which might help you. although
287 # the incidents it's able to deal with is rather limited ATM... it might help
288 # you out, if not and you'll be able to solve yer problem, you could take a
289 # stab at adding support for fixing your specific problem to the util ;)
290 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-rpmdbchk.patch
291 Patch1048: %{name}-5.4.14-rpmdbchk.patch
292 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-no-assert-abort-with-broken-headers.patch
293 Patch1049: %{name}-5.4.14-no-assert-abort-with-broken-headers.patch
295 URL: http://rpm5.org/
296 BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
298 BuildRequires: sqlite3-devel
300 BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
302 BuildRequires: autoconf >= 2.63
303 BuildRequires: automake >= 1.4
304 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
305 BuildRequires: bzip2-devel >= 1.0.2-17
306 BuildRequires: elfutils-devel >= 0.108
307 BuildRequires: gettext-tools >= 0.19.2
308 %{?with_keyutils:BuildRequires: keyutils-devel}
309 BuildRequires: libmagic-devel
311 BuildRequires: libselinux-devel >= 2.1.0
312 BuildRequires: libsemanage-devel >= 2.1.0
313 BuildRequires: libsepol-devel >= 2.1.0
315 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
316 BuildRequires: libstdc++-devel
317 BuildRequires: libtool >= 1:1.4.2-9
319 BuildRequires: libxml2-devel
320 BuildRequires: neon-devel >= 0.25.5
322 %{?with_system_lua:BuildRequires: lua52-devel >= 5.2.2}
323 BuildRequires: ossp-uuid-devel
324 BuildRequires: patch >= 2.2
325 BuildRequires: popt-devel >= %{reqpopt_ver}
326 %{?with_python:BuildRequires: python-devel >= 1:2.3}
327 BuildRequires: python-modules >= 1:2.3
328 %{?with_python:BuildRequires: rpm-pythonprov}
330 BuildRequires: xz-devel
331 BuildRequires: zlib-devel
333 BuildRequires: doxygen
334 BuildRequires: ghostscript
335 BuildRequires: graphviz
336 BuildRequires: tetex-pdftex
339 # Require static library only for static build
340 BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
341 BuildRequires: beecrypt-static >= %{beecrypt_ver}
342 BuildRequires: bzip2-static >= 1.0.2-17
343 BuildRequires: elfutils-static
344 BuildRequires: glibc-static >= 2.2.94
345 BuildRequires: libmagic-static
347 BuildRequires: libselinux-static >= 2.1.0
348 BuildRequires: libsemanage-static >= 2.1.0
349 BuildRequires: libsepol-static >= 2.1.0
351 BuildRequires: popt-static >= %{reqpopt_ver}
352 BuildRequires: zlib-static
354 Requires(posttrans): coreutils
355 Requires: %{name}-base = %{version}-%{release}
356 Requires: %{name}-lib = %{version}-%{release}
357 Requires: beecrypt >= %{beecrypt_ver}
358 Requires: popt >= %{reqpopt_ver}
359 Provides: rpm-db-ver = %{reqdb_ver}
360 Obsoletes: rpm-getdeps
361 %{!?with_static:Obsoletes: rpm-utils-static}
362 Conflicts: glibc < 2.2.92
363 # db4.6 poldek needed
364 Conflicts: poldek < 0.21-0.20070703.00.3
365 # segfaults with lzma 0.42.2
366 Conflicts: lzma-libs < 4.999.3
367 Conflicts: util-vserver < 0.30.216-1.pre3034.7
368 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
370 %define _binary_payload w9.gzdio
372 # don't require very fresh rpm.macros to build
373 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
374 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
375 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
376 %define ppc ppc ppc7400 ppc7450
377 %define x8664 amd64 ia32e x86_64
379 # stabilize new build environment
381 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
382 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
383 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
385 # x32 is a very special case
386 %define __newcc %{?force_cc}%{!?force_cc:x86_64-pld-linux-gnux32-gcc}
387 %define __newcxx %{?force_cxx}%{!?force_cxx:x86_64-pld-linux-gnux32-g++}
388 %define __newcpp %{?force_cpp}%{!?force_cpp:x86_64-pld-linux-gnux32-gcc -E}
391 %define _rpmlibdir /usr/lib/rpm
392 %define _noautocompressdoc RPM-GPG-KEY
395 RPM is a powerful package manager, which can be used to build,
396 install, query, verify, update, and uninstall individual software
397 packages. A package consists of an archive of files, and package
398 information, including name, version, and description.
400 %description -l de.UTF-8
401 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
402 Installation, Anfrage, Verifizierung, Aktualisierung und
403 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
404 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
407 %description -l es.UTF-8
408 RPM es un poderoso administrador de paquetes, que puede ser usado para
409 construir, instalar, pesquisar, verificar, actualizar y desinstalar
410 paquetes individuales de software. Un paquete consiste en un
411 almacenaje de archivos, y información sobre el paquete, incluyendo
412 nombre, versión y descripción.
414 %description -l pl.UTF-8
415 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
416 przebudowanie, instalację czy weryfikację dowolnego pakietu.
417 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
418 plików wchodzących w skład pakietu, zależności od innych pakietów, są
419 przechowywane w bazie danych i można je uzyskać za pomocą opcji
420 odpytywania programu rpm.
422 %description -l pt_BR.UTF-8
423 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
424 construir, instalar, pesquisar, verificar, atualizar e desinstalar
425 pacotes individuais de software. Um pacote consiste de um conjunto de
426 arquivos e informações adicionais, incluindo nome, versão e descrição
427 do pacote, permissões dos arquivos, etc.
429 %description -l ru.UTF-8
430 RPM - это мощный менеджер пакетов, который может быть использован для
431 создания, инсталляции, запросов (query), проверки, обновления и
432 удаления программных пакетов. Пакет состоит из файлового архива и
433 служебной информации, включающей название, версию, описание и другие
436 %description -l uk.UTF-8
437 RPM - це потужний менеджер пакетів, що може бути використаний для
438 створення, інсталяції, запитів (query), перевірки, поновлення та
439 видалення програмних пакетів. Пакет складається з файлового архіву та
440 службової інформації, що містить назву, версію, опис та іншу
441 інформацію про пакет.
444 Summary: RPM base package - scripts used by rpm packages themselves
445 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
448 Obsoletes: rpm-scripts
449 Obsoletes: vserver-rpm
452 The RPM base package contains scripts used by rpm packages themselves.
454 - scripts for adding/removing groups and users needed for rpm
456 - banner.sh to display %%banner messages from rpm scriptlets.
458 %description base -l pl.UTF-8
459 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
461 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
462 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
465 Summary: RPMs library
466 Summary(pl.UTF-8): Biblioteki RPM-a
468 Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
470 Requires: sqlite3 >= %{sqlite_build_version}
472 Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
474 Requires: beecrypt >= %{beecrypt_ver}
475 Requires: libmagic >= 1.15-2
476 %{?with_selinux:Requires: libselinux >= 2.1.0}
477 Requires: popt >= %{reqpopt_ver}
479 # avoid SEGV caused by mixed db versions
480 Conflicts: poldek < 0.18.1-16
485 %description lib -l pl.UTF-8
489 Summary: Header files for rpm libraries
490 Summary(de.UTF-8): Header-Dateien für rpm Libraries
491 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
492 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
493 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
494 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
495 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
496 Group: Development/Libraries
497 Requires: %{name}-lib = %{version}-%{release}
498 Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
499 Requires: beecrypt-devel >= %{beecrypt_ver}
500 Requires: bzip2-devel
501 Requires: elfutils-devel
502 %{?with_keyutils:Requires: keyutils-devel}
503 Requires: libmagic-devel
505 Requires: libselinux-devel
506 Requires: libsemanage-devel
507 Requires: libsepol-devel
509 Requires: popt-devel >= %{reqpopt_ver}
513 The RPM packaging system includes C libraries that make it easy to
514 manipulate RPM packages and databases. They are intended to ease the
515 creation of graphical package managers and other tools that need
516 intimate knowledge of RPM packages. This package contains header files
519 %description devel -l de.UTF-8
520 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
521 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
522 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
523 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
525 %description devel -l es.UTF-8
526 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
527 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
528 facilitar la creación de administradores gráficos de paquetes y otras
529 herramientas que necesiten un conocimiento profundo de paquetes RPM.
531 %description devel -l pl.UTF-8
532 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
533 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
534 graficznych programów zarządzających pakietami oraz innych narzędzi,
535 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
536 zawiera pliki nagłówkowe wspomnianych bibliotek.
538 %description devel -l pt_BR.UTF-8
539 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
540 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
541 facilitar a criação de gerenciadores gráficos de pacotes e outras
542 ferramentas que precisem de conhecimento profundo de pacotes RPM.
544 %description devel -l ru.UTF-8
545 Система управления пакетами RPM содержит библиотеку C, которая
546 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
547 Эта библиотека предназначена для облегчения создания графических
548 пакетных менеджеров и других утилит, которым необходимо работать с
551 %description devel -l uk.UTF-8
552 Система керування пакетами RPM містить бібліотеку C, котра спрощує
553 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
554 призначена для полегшення створення графічних пакетних менеджерів та
555 інших утиліт, що працюють з пакетами RPM.
558 Summary: RPM static libraries
559 Summary(de.UTF-8): RPMs statische Libraries
560 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
561 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
562 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
563 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
564 Group: Development/Libraries
565 Requires: %{name}-devel = %{version}-%{release}
566 Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
567 Requires: beecrypt-static >= %{beecrypt_ver}
568 Requires: bzip2-static
569 Requires: elfutils-static
570 %{?with_keyutils:Requires: keyutils-static}
571 Requires: libmagic-static
573 Requires: libselinux-static
574 Requires: libsemanage-static
575 Requires: libsepol-static
577 Requires: popt-static >= %{reqpopt_ver}
578 Requires: zlib-static
581 RPM static libraries.
583 %description static -l de.UTF-8
584 RPMs statische Libraries.
586 %description static -l pl.UTF-8
587 Biblioteki statyczne RPM-a.
589 %description static -l pt_BR.UTF-8
590 Bibliotecas estáticas para desenvolvimento.
592 %description static -l ru.UTF-8
593 Система управления пакетами RPM содержит библиотеку C, которая
594 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
595 Это статическая библиотека RPM.
597 %description static -l uk.UTF-8
598 Система керування пакетами RPM містить бібліотеку C, котра спрощує
599 роботу з пакетами RPM та відповідними базами даних. Це статична
603 Summary: Additional utilities for managing RPM packages and database
604 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
605 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
606 Group: Applications/File
607 Requires: %{name} = %{version}-%{release}
608 Requires: popt >= %{reqpopt_ver}
609 %if %{with suggest_tags}
613 Conflicts: filesystem-debuginfo < 3.0-16
616 Additional utilities for managing RPM packages and database.
618 %description utils -l de.UTF-8
619 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
621 %description utils -l pl.UTF-8
622 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
625 Summary: Additional utilities for managing RPM packages and database
626 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
627 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
628 Group: Applications/File
629 Requires: %{name}-utils = %{version}-%{release}
630 Requires: popt >= %{reqpopt_ver}
632 %description utils-perl
633 Additional utilities for managing RPM packages and database.
635 %description utils-perl -l de.UTF-8
636 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
638 %description utils-perl -l pl.UTF-8
639 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
641 %package utils-static
642 Summary: Static rpm utilities
643 Summary(pl.UTF-8): Statyczne narzędzia rpm
644 Group: Applications/System
645 Requires: %{name} = %{version}-%{release}
647 %description utils-static
648 Static rpm utilities for repairing system in case something with
649 shared libraries used by rpm become broken. Currently it contains rpmi
650 binary, which can be used to install/upgrade/remove packages without
651 using shared libraries (well, in fact with exception of NSS modules).
653 %description utils-static -l pl.UTF-8
654 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
655 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
656 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
657 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
658 (z wyjątkiem modułów NSS).
661 Summary: Scripts for building binary RPM packages
662 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
663 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
664 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
665 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
666 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
667 Group: Applications/File
668 Requires(pretrans): coreutils
669 Requires(pretrans): findutils
670 Requires: %{name}-build-macros >= 1.699
671 Requires: %{name}-utils = %{version}-%{release}
675 Requires: chrpath >= 0.10-4
679 Requires: file >= 4.17
683 Requires: gcc >= 3.0.3
687 Requires: glibc-devel
694 Requires: tar >= 1:1.22
698 Provides: rpmbuild(monoautodeps)
699 Provides: rpmbuild(noauto) = 3
701 Conflicts: automake < 1:1.7.9-2
702 Conflicts: libtool < 2:1.5-13
706 Scripts for building binary RPM packages.
708 %description build -l de.UTF-8
709 Scripts fürs Bauen binärer RPM-Pakete.
711 %description build -l pl.UTF-8
712 Skrypty pomocnicze do budowania binarnych RPM-ów.
714 %description build -l pt_BR.UTF-8
715 Este pacote contém scripts e programas executáveis que são usados para
716 construir pacotes usando o RPM.
718 %description build -l ru.UTF-8
719 Различные вспомогательные скрипты и исполняемые программы, которые
720 используются для сборки RPM'ов.
722 %description build -l uk.UTF-8
723 Різноманітні допоміжні скрипти та утиліти, які використовуються для
727 Summary: Additional utilities for checking Java provides/requires in RPM packages
728 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
729 Group: Applications/File
730 Requires: %{name} = %{version}-%{release}
732 Requires: findutils >= 1:4.2.26
736 %description javaprov
737 Additional utilities for checking Java provides/requires in RPM
740 %description javaprov -l pl.UTF-8
741 Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
745 Summary: Additional utilities for checking Perl provides/requires in RPM packages
746 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
747 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
748 Group: Applications/File
749 Requires: %{name} = %{version}-%{release}
750 Requires: perl-Encode
752 Requires: perl-modules
754 %description perlprov
755 Additional utilities for checking Perl provides/requires in RPM
758 %description perlprov -l de.UTF-8
759 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
761 %description perlprov -l pl.UTF-8
762 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
766 Summary: Python macros, which simplifies creation of RPM packages with Python software
767 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
768 Group: Applications/File
769 Requires: %{name} = %{version}-%{release}
771 Requires: python-distribute
772 Requires: python-modules
774 %description pythonprov
775 Python macros, which simplifies creation of RPM packages with Python
778 %description pythonprov -l pl.UTF-8
779 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
782 %package php-pearprov
783 Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
784 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
785 Group: Applications/File
786 Requires: %{name} = %{version}-%{release}
788 Suggests: php-pear-PHP_CompatInfo
790 %description php-pearprov
791 Additional utilities for checking PHP PEAR provides/requires in RPM
794 %description php-pearprov -l pl.UTF-8
795 Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
799 Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
800 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
801 Group: Applications/File
802 Requires: %{name} = %{version}-%{release}
804 Requires: ruby-modules
805 Requires: ruby-rubygems
807 %description rubyprov
808 Ruby tools, which simplifies creation of RPM packages with Ruby
811 %description rubyprov -l pl.UTF-8
812 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
815 %package -n python-rpm
816 Summary: Python interface to RPM library
817 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
818 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
819 Group: Development/Languages/Python
820 Requires: %{name} = %{version}-%{release}
822 Obsoletes: rpm-python
824 %description -n python-rpm
825 The rpm-python package contains a module which permits applications
826 written in the Python programming language to use the interface
827 supplied by RPM (RPM Package Manager) libraries.
829 This package should be installed if you want to develop Python
830 programs that will manipulate RPM packages and databases.
832 %description -n python-rpm -l pl.UTF-8
833 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
834 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
836 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
837 Pythonie programy manipulujące pakietami i bazami danych rpm.
839 %description -n python-rpm -l pt_BR.UTF-8
840 O pacote rpm-python contém um módulo que permite que aplicações
841 escritas em Python utilizem a interface fornecida pelas bibliotecas
842 RPM (RPM Package Manager).
844 Esse pacote deve ser instalado se você quiser desenvolver programas em
845 Python para manipular pacotes e bancos de dados RPM.
848 Summary: RPM API documentation and guides
849 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
851 %if "%{_rpmversion}" >= "5"
856 Documentation for RPM API and guides in HTML format generated from rpm
859 %description apidocs -l pl.UTF-8
860 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
861 źrodeł RPM-a przez doxygen.
864 %setup -q -n %{name}-%{version}%{?subver}
879 %{?with_system_lua:%patch9 -p1}
882 # enable TSC for capable archs
915 %{?with_db61:%patch41 -p1}
931 %{!?with_db61:%patch57 -p1}
993 # don't delete, may be usefull if jbj descides to enable this again
1006 install %{SOURCE2} macros/pld.in
1007 install %{SOURCE8} scripts/php.prov.in
1008 install %{SOURCE9} scripts/php.req.in
1009 install %{SOURCE11} scripts/perl.prov.in
1010 cp -p %{SOURCE30} scripts/rubygems.rb
1011 cp -p %{SOURCE31} scripts/gem_helper.rb
1013 %{__mv} -f scripts/perl.req{,.in}
1015 # generate Group translations to *.po
1016 awk -f %{SOURCE6} %{SOURCE1}
1018 install %{SOURCE26} tools/rpmdb_checkversion.c
1019 install %{SOURCE28} tools/rpmdb_reset.c
1021 for extlib in beecrypt neon %{?with_system_pcre:pcre} popt; do
1022 [ -d $extlib ] && %{__rm} -r $extlib
1033 # rpm checks for CPU type at runtime, but it looks better
1035 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
1036 -e 's|@host_cpu@|%{_target_cpu}|' \
1037 -e 's|@host_os@|%{_target_os}|' \
1040 %{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
1041 # pass CC and CXX too in case of building with some older configure macro
1046 WITH_PERL_VERSION=no \
1047 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
1048 --disable-silent-rules \
1051 %{!?with_apidocs:--without-apidocs} \
1052 --with-beecrypt=external \
1053 --with-bugreport="http://bugs.pld-linux.org/" \
1054 --with-bzip2=external \
1055 --with-db=external \
1057 --with-file=external \
1058 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
1060 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
1061 --with-lzma=external \
1062 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
1063 --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' \
1064 --without-path-versioned \
1065 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
1066 --with-popt=external \
1067 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
1068 %{!?with_python:--without-python} \
1069 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
1070 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
1071 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
1072 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
1073 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
1075 --with-xz=external \
1076 --with-zlib=external
1083 %{?with_apidocs:%{__make} apidocs}
1085 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
1086 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
1087 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
1088 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
1090 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
1091 echo "Error linking rpmdb tools!"
1094 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
1095 echo "Error linking rpmdb tools!"
1100 rm -rf $RPM_BUILD_ROOT
1101 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
1102 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
1104 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1106 %{__make} -j1 install \
1107 pkgconfigdir=%{_pkgconfigdir} \
1108 DESTDIR=$RPM_BUILD_ROOT
1110 # install platform macros
1111 for f in platform/*macros; do
1113 fn=${bn%.macros}/macros
1114 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
1118 %ifnarch %{ix86} %{x8664} x32
1119 rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
1120 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
1121 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
1122 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
1123 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
1124 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
1125 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
1128 %ifnarch %{x8664} x32
1129 rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
1130 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
1131 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
1132 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
1136 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
1139 rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
1140 rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
1141 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
1142 rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
1143 rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
1144 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
1145 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
1146 rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
1147 rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
1149 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1150 # first platform file entry can't contain regexps
1152 %{_target_cpu}-%{_target_vendor}-linux-gnux32
1154 %{_target_cpu}-%{_target_vendor}-linux
1158 x86_64-[^-]*-[Ll]inux(-gnu)?
1159 amd64-[^-]*-[Ll]inux(-gnu)?
1160 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1163 amd64-[^-]*-[Ll]inux(-gnu)?
1164 x86_64-[^-]*-[Ll]inux(-gnu)?
1165 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1168 ia32e-[^-]*-[Ll]inux(-gnu)?
1169 x86_64-[^-]*-[Ll]inux(-gnu)?
1172 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1173 x86_64-[^-]*-[Ll]inux(-gnu)?
1174 amd64-[^-]*-[Ll]inux(-gnu)?
1177 %ifarch athlon %{x8664} x32
1178 athlon-[^-]*-[Ll]inux(-gnu)?
1180 %ifarch pentium4 athlon %{x8664} x32
1181 pentium4-[^-]*-[Ll]inux(-gnu)?
1183 %ifarch pentium3 pentium4 athlon %{x8664} x32
1184 pentium3-[^-]*-[Ll]inux(-gnu)?
1186 %ifarch i686 pentium3 pentium4 athlon %{x8664} x32
1187 i686-[^-]*-[Ll]inux(-gnu)?
1189 %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
1190 i586-[^-]*-[Ll]inux(-gnu)?
1192 %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
1193 i486-[^-]*-[Ll]inux(-gnu)?
1195 %ifarch %{ix86} %{x8664} x32
1196 i386-[^-]*-[Ll]inux(-gnu)?
1200 alpha-[^-]*-[Ll]inux(-gnu)?
1204 ia64-[^-]*-[Ll]inux(-gnu)?
1208 powerpc64-[^-]*-[Ll]inux(-gnu)?
1209 ppc64-[^-]*-[Ll]inux(-gnu)?
1211 %ifarch %{ppc} ppc64
1212 powerpc-[^-]*-[Ll]inux(-gnu)?
1213 ppc-[^-]*-[Ll]inux(-gnu)?
1217 s390x-[^-]*-[Ll]inux(-gnu)?
1220 s390-[^-]*-[Ll]inux(-gnu)?
1224 sparc64-[^-]*-[Ll]inux(-gnu)?
1225 sparcv8-[^-]*-[Ll]inux(-gnu)?
1226 sparcv9-[^-]*-[Ll]inux(-gnu)?
1229 sparcv8-[^-]*-[Ll]inux(-gnu)?
1230 sparcv9-[^-]*-[Ll]inux(-gnu)?
1232 %ifarch sparc sparcv9 sparc64
1233 sparc-[^-]*-[Ll]inux(-gnu)?
1239 # Squash Extra Blank Lines
1240 %{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1242 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1243 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1244 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1245 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1246 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1247 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1248 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1249 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
1251 # not installed since 4.4.8 (-tools-perl subpackage)
1252 install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1254 install %{SOURCE1} doc/manual/groups
1255 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
1256 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1257 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
1258 install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1259 install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
1260 install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir}
1261 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
1262 cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
1263 install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
1264 install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
1265 install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
1267 install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
1269 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1271 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1272 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
1273 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1274 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1275 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1276 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1277 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1279 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1280 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1281 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1282 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1283 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1284 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
1286 install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1287 install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1288 install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
1290 # create macro loading wrappers for backward compatibility
1291 for m in gstreamer java mono perl php python; do
1292 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
1295 # moved to rpm-build-macros 1.699
1296 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1298 # for rpm -e|-U --repackage
1299 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1300 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1303 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1304 # move essential libs to /lib (libs that /bin/rpm links to)
1305 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
1306 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1307 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1310 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1311 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1314 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1315 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1317 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1320 # wrong location, not used anyway
1321 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1322 # utils dropped in 5.4 -- their manuals
1323 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
1324 # script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1325 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
1330 cp -a doc/manual manual
1331 %{__rm} -f manual/Makefile*
1334 rm -rf $RPM_BUILD_ROOT
1337 # this needs to be a dir
1338 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
1340 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1341 mkdir %{_sysconfdir}/rpm/sysinfo
1345 if [ -e /var/lib/rpm/Packages ] && \
1346 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
1347 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
1348 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
1350 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
1354 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1355 echo 'you should ignore it and restart poldek'
1357 %{_rpmlibdir}/bin/dbupgrade.sh
1360 %triggerpostun -- %{name} < 4.4.9-44
1361 %{_rpmlibdir}/hrmib-cache
1363 %post lib -p /sbin/ldconfig
1364 %postun lib -p /sbin/ldconfig
1367 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1369 %files -f %{name}.lang
1370 %defattr(644,root,root,755)
1371 %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
1373 %dir /etc/pki/rpm-gpg
1374 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1376 %attr(755,root,root) /bin/rpm
1378 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1379 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1380 %dir %{_sysconfdir}/rpm/sysinfo
1381 # these are ok to be replaced
1382 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1383 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1385 %{_mandir}/man8/rpm.8*
1386 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1387 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1388 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1389 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1390 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1393 %dir /var/lib/rpm/log
1394 %dir /var/lib/rpm/tmp
1395 %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
1396 %dir %attr(700,root,root) /var/spool/repackage
1398 /var/lock/rpm/transaction
1400 # exported package NVRA (stamped with install tid)
1401 # net-snmp hrSWInstalledName queries, bash-completions
1402 %dir /var/cache/hrmib
1405 %{_rpmlibdir}/rpmpopt*
1406 %{_rpmlibdir}/macros
1407 %dir %{_rpmlibdir}/macros.d
1408 %{_rpmlibdir}/macros.d/pld
1409 %{_rpmlibdir}/cpuinfo.yaml
1410 %{_rpmlibdir}/noarch-*
1411 %ifarch %{ix86} %{x8664} x32
1413 %{_rpmlibdir}/pentium*
1414 %{_rpmlibdir}/athlon*
1417 %{_rpmlibdir}/alpha*
1422 %ifarch mips mipsel mips64 mips64el
1428 %ifarch sparc sparc64
1429 %{_rpmlibdir}/sparc*
1431 %ifarch %{x8664} x32
1432 %{_rpmlibdir}/amd64*
1433 %{_rpmlibdir}/ia32e*
1434 %{_rpmlibdir}/x86_64*
1438 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1440 %dir %{_rpmlibdir}/bin
1441 %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1442 %attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
1443 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
1444 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
1445 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
1448 %defattr(644,root,root,755)
1449 %dir %{_sysconfdir}/rpm
1450 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1452 %attr(755,root,root) %{_bindir}/banner.sh
1453 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1454 %dir /var/lib/banner
1457 %defattr(644,root,root,755)
1458 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1459 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1460 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1461 %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
1462 %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
1463 %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
1466 %defattr(644,root,root,755)
1467 %attr(755,root,root) %{_libdir}/librpm.so
1468 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1469 %attr(755,root,root) %{_libdir}/librpmbuild.so
1470 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1471 %attr(755,root,root) %{_libdir}/librpmconstant.so
1472 %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
1473 %attr(755,root,root) %{_libdir}/librpmdb.so
1474 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1475 %attr(755,root,root) %{_libdir}/librpmio.so
1476 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1477 %attr(755,root,root) %{_libdir}/librpmmisc.so
1478 %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
1479 %{_libdir}/librpm*.la
1481 %{_pkgconfigdir}/*.pc
1484 %defattr(644,root,root,755)
1485 %{_libdir}/librpm*.a
1488 %defattr(644,root,root,755)
1489 %attr(755,root,root) %{_bindir}/rpm2cpio
1490 %attr(755,root,root) %{_bindir}/rpmconstant
1491 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1492 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1493 %attr(755,root,root) %{_rpmlibdir}/tgpg
1494 %attr(755,root,root) %{_rpmlibdir}/bin/chroot
1495 %attr(755,root,root) %{_rpmlibdir}/bin/cp
1496 %attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1497 %attr(755,root,root) %{_rpmlibdir}/bin/find
1498 %attr(755,root,root) %{_rpmlibdir}/bin/mgo
1499 %attr(755,root,root) %{_rpmlibdir}/bin/mtree
1500 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1501 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1502 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1503 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1505 %attr(755,root,root) %{_rpmlibdir}/bin/semodule
1506 %attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1508 %if %{without system_lua}
1509 %attr(755,root,root) %{_rpmlibdir}/bin/lua
1510 %attr(755,root,root) %{_rpmlibdir}/bin/luac
1511 %attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
1512 %attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
1514 %{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
1515 %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
1516 %{_mandir}/man8/rpm2cpio.8*
1517 %{_mandir}/man8/rpmconstant.8*
1518 %{_mandir}/man8/rpmdeps.8*
1519 %{_mandir}/man8/rpmmtree.8*
1520 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1521 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1522 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1523 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1526 %defattr(644,root,root,755)
1527 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1531 %defattr(644,root,root,755)
1532 %attr(755,root,root) %{_bindir}/rpm[ieu]
1533 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1537 %defattr(644,root,root,755)
1538 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1539 %attr(755,root,root) %{_rpmlibdir}/brp-*
1540 %attr(755,root,root) %{_rpmlibdir}/check-files
1541 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1542 %attr(755,root,root) %{_rpmlibdir}/cross-build
1543 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1544 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1545 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1546 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1547 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1548 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1549 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1550 # needs hacked pkg-config to return anything
1551 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1552 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1553 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
1554 %{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
1555 %attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1556 %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1557 %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1558 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1559 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1560 %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1561 %attr(755,root,root) %{_rpmlibdir}/bin/wget
1562 %attr(755,root,root) %{_rpmlibdir}/vcheck
1563 # not used yet ... these six depend on perl
1564 %attr(755,root,root) %{_rpmlibdir}/http.req
1565 # we always used scripts provided by mono-devel, maybe move them here
1566 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1567 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1569 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1570 # must be here for "Requires: rpm-*prov" to work
1571 %{_rpmlibdir}/macros.d/cmake
1572 %{_rpmlibdir}/macros.d/gstreamer
1573 %{_rpmlibdir}/macros.d/java
1574 %{_rpmlibdir}/macros.d/libtool
1575 %{_rpmlibdir}/macros.d/mono
1576 %{_rpmlibdir}/macros.d/perl
1577 %{_rpmlibdir}/macros.d/php
1578 %{_rpmlibdir}/macros.d/pkgconfig
1579 %{_rpmlibdir}/macros.d/python
1580 %{_rpmlibdir}/macros.d/ruby
1581 %{_rpmlibdir}/macros.d/selinux
1582 %{_rpmlibdir}/macros.d/tcl
1583 %{_rpmlibdir}/macros.rpmbuild
1585 %{_rpmlibdir}/macros.gstreamer
1586 %{_rpmlibdir}/macros.java
1587 %{_rpmlibdir}/macros.mono
1588 %{_rpmlibdir}/macros.perl
1589 %{_rpmlibdir}/macros.php
1590 %{_rpmlibdir}/macros.python
1592 %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1593 %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1595 %attr(755,root,root) %{_bindir}/gendiff
1596 %attr(755,root,root) %{_bindir}/rpmbuild
1598 %dir %{_rpmlibdir}/helpers
1599 %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
1601 %{_mandir}/man1/gendiff.1*
1602 %{_mandir}/man8/rpmbuild.8*
1603 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1604 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1605 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1608 %defattr(644,root,root,755)
1609 %attr(755,root,root) %{_rpmlibdir}/java-find-requires
1610 # needs jar (any jdk), jcf-dump (gcc-java) to work
1611 %attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1614 %defattr(644,root,root,755)
1615 %attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1616 %attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1619 %defattr(644,root,root,755)
1620 %attr(755,root,root) %{_rpmlibdir}/perl.*
1621 %attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1622 %attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1625 %defattr(644,root,root,755)
1626 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1627 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1630 %defattr(644,root,root,755)
1631 %attr(755,root,root) %{_rpmlibdir}/php*
1632 %attr(755,root,root) %{_rpmlibdir}/find-php*
1635 %files -n python-rpm
1636 %defattr(644,root,root,755)
1637 %dir %{py_sitedir}/rpm
1638 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1639 %{py_sitedir}/rpm/*.py[co]
1644 %defattr(644,root,root,755)