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: 23914bb49fafe7153cee87126d966461
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 Patch26: %{name}-semanage.patch
122 Patch27: %{name}-helperEVR-noassert.patch
123 Patch28: %{name}-unglobal.patch
124 Patch29: %{name}-builddir-readlink.patch
125 Patch30: %{name}-changelog_order_check_nonfatal.patch
126 Patch31: %{name}-cleanbody.patch
127 Patch32: %{name}-dirdeps-macro.patch
128 Patch33: %{name}-installbeforeerase.patch
129 Patch34: %{name}-libmagic-locale.patch
130 Patch35: %{name}-namespace-compare.patch
131 Patch36: %{name}-popt-coreutils.patch
132 Patch37: %{name}-postun-nofail.patch
133 Patch38: %{name}-silence-RPM_CHAR_TYPE.patch
134 Patch39: %{name}-fix-missing-types-in-headers.patch
135 Patch40: %{name}-fix--p-interpreter-and-empty-script.patch
136 Patch41: %{name}-db_buffer_small.patch
137 Patch42: %{name}-pattern_Release.patch
138 Patch43: %{name}-fix-___build_pre-macro.patch
139 Patch44: %{name}-missing-patch-file-fails-build.patch
140 Patch45: %{name}-remove-misleading-missing-patch-message.patch
141 Patch46: %{name}-file-magic-can-be-mixed-case.patch
142 Patch47: %{name}-query-always-noisy.patch
143 Patch48: %{name}-verify-ghosts-broken-logic.patch
144 Patch49: %{name}-python-enable-compat-RPMSENSE.patch
145 Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
146 Patch51: %{name}-gst-inspect-typo.patch
147 Patch52: %{name}-null-term-ascii-digest.patch
148 Patch53: %{name}-lua-enable-extra-libs.patch
149 Patch54: %{name}-fix-filedigests-verify.patch
150 Patch55: %{name}-disable-hmac-verify.patch
151 Patch56: %{name}-macros.patch
152 Patch57: %{name}-db5.2.patch
153 Patch58: %{name}-preserve-iterator.patch
154 Patch60: %{name}-python-sitescriptdir.patch
155 Patch61: %{name}-clean-docdir.patch
156 Patch62: %{name}-DB_CONFIG.patch
157 Patch63: %{name}-pythoneggs.patch
158 Patch64: %{name}-fix-compress-doc.patch
159 Patch65: %{name}-parseSpec-skip-empty-tags.patch
160 Patch66: %{name}-payload-use-hashed-inode.patch
161 Patch67: %{name}-repackage-dont-force-max-compression.patch
162 Patch70: python-%{name}sense-missingok.patch
163 Patch71: %{name}-changelog-encoding.patch
164 Patch72: %{name}-preserve-tag-type.patch
165 Patch74: %{name}-fix-internal-lua-build.patch
166 Patch75: %{name}-double_check_file_deps.patch
167 Patch77: %{name}-lua-expat.patch
168 Patch78: %{name}-double_check_unpackaged_subdirs.patch
169 Patch79: %{name}-rpmspec.patch
170 Patch80: %{name}-revert-gpg-argv-parsing.patch
171 Patch81: %{name}-perl-magic.patch
172 Patch82: %{name}-5.4.15-use-DSA-sig.patch
173 Patch83: %{name}-ignore-missing-macro-files.patch
175 Patch85: rpm-CVE-2013-6435.patch
176 Patch86: rpm-CVE-2014-8118.patch
177 Patch87: %{name}-file-output-for-ELF.patch
178 Patch88: %{name}-rpmtdnext.patch
179 Patch89: disable-header-verification.patch
180 Patch90: %{name}-cppcompat.patch
181 Patch91: py-disable-fetch.patch
182 Patch92: fast_python_deps.patch
183 Patch93: python2_explicit.patch
184 Patch94: do_not_write_before_macro_buffer.patch
185 Patch95: rpm-python-spec-header.patch
186 Patch96: skip-ldconfig-optimization.patch
188 # Patches imported from Mandriva
190 # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
191 # would basically just mean backporting it..
192 Patch1000: %{name}-5.4.4-add-_specfile-macro.patch
193 # status: needs to be cleaned up and properly reviewed together with rest
194 # of the patches related to dependency generation
195 Patch1001: %{name}-5.4.9-avoid-dependencies-on-self.patch
196 # status: probably ready to merge
197 Patch1002: %{name}-5.4.4-pkgconfigdeps-check-path.patch
198 # status: probably okay to merge, but discuss on rpm-devel first
199 Patch1003: %{name}-5.4.4-glob-wildcards-for-loading-macro-files.patch
200 # status: needs to be discussed
201 Patch1004: %{name}-5.4.4-allow-installation-of-repackaged-rpms.patch
202 # status: ready to merge
203 Patch1005: %{name}-5.4.8-dont-show-suggests-with-requires.patch
204 # status: ready for merge
205 Patch1006: %{name}-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
206 # status: probably okay to merge, but discuss on rpm-devel first
207 Patch1007: %{name}-5.4.10-duplicate_files_terminate_build.patch
208 # status: same as above
209 Patch1008: %{name}-5.4.10-unpackaged_subdirs_terminate_build.patch
211 # status: uncertain, might be okay to merge, discuss on rpm-devel first
212 Patch1009: %{name}-5.4.4-rpmbuild-withoutclean.patch
213 # no sense in having an additional dependency on 'pkgconfig' on all packages that
214 # have a pkgconfig file, it's not needed for them to be made useful and anything
215 # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
216 # status: might be okay to merge, but discuss on rpm-devel first
217 Patch1010: %{name}-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
218 # status: ready for merge
219 Patch1011: %{name}-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
220 # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
221 # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
222 # status: needs to be discussed and investigated a bit better..
223 Patch1012: %{name}-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
224 # status: probably okay to merge, but discuss on rpm-devel first
225 Patch1013: %{name}-5.4.10-files-listed-twice-terminates-build.patch
226 # status: probably okay to merge
227 Patch1014: %{name}-5.4.9-ruby1.9-fixes.patch
228 # status: keep locally
229 Patch1015: %{name}-5.4.9-keep-loading-script-macros.patch
230 # status: same as for other dep gen patches
231 Patch1016: %{name}-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
233 Patch1017: %{name}-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
234 # status: probably okay to merge
235 Patch1019: %{name}-5.4.5-python-export-spec-macros.patch
237 Patch1020: %{name}-5.4.9-font-provides.patch
239 Patch1021: %{name}-5.4.7-kmod-dependencies.patch
240 # status: probably okay to merge, discuss on rpm-devel first
241 Patch1022: %{name}-5.4.5-skip-dependencies-for-character-devices.patch
242 # status: probably okay to merge
243 Patch1024: %{name}-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
244 # status: probably okay to merge
245 Patch1026: %{name}-5.4.10-dont-try-generate-rpmfc-dependencies-from-doc-files.patch
247 Patch1027: %{name}-5.4.7-fix-generation-of-ruby-abi-provides.patch
248 # crash reproducable with 'rpm -qa --triggers'
250 Patch1028: %{name}-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
251 # status: same as for other dep gen patches
252 Patch1029: %{name}-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
254 Patch1030: %{name}-5.4.7-fix-minor-memleaks.patch
256 Patch1031: %{name}-5.4.9-mire-fix-strings-lacking-null-terminator.patch
258 Patch1032: %{name}-5.4.9-rpmpython-fix-input.patch
260 Patch1033: %{name}-5.4.7-no-seqid_init-on-rdonly-database.patch
261 # status: probably ready for merging
262 Patch1034: %{name}-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.patch
263 # status: probably ready to merge, discuss on rpm-devel first
264 Patch1035: %{name}-5.4.9-fix-verify-segfault.patch
265 # Due to rpmdav/neon being written in a different fashion than other rpmio clients,
266 # the inconsistent behaviour affects code elsewhere which expects consistent behaviour,
267 # with the result being that when unable to download files, neon will save error
268 # page as the target file.
269 # status: should go upstream, but uncertain about "correct" fix, ie. this is
270 # more of a workaround, while rewriting rpmdav code to behave consistently
271 # would be "the right thing to do". Yet I'm not fully able to grasp all of the
272 # code and don't want to spend more time just to get the API..
273 Patch1037: %{name}-5.4.10-fix-neon-saving-error-pages-as-target-file.patch
274 # As the transaction flags for ignoring arch & os are no longer used, there's
275 # currently no way to ignore arch & os of packages anymore. This patch adds
276 # support for doing this again by defining rpm variables and overriding
277 # --ignorearch & --ignoreos to set these.
278 # status: needs to be discussed upstream before thinking about merging
279 Patch1038: %{name}-5.4.10-support-ignore-arch-and-os-again.patch
280 # status: ready for merge
281 Patch1039: %{name}-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch
282 # we want that patch too, a bit of builder infrastructure relies on NOSIGNATURES
283 Patch1040: %{name}-5.4.9-support-signatures-and-digest-disablers.patch
284 # lack insight on actual functionality, which anyways seems broken, so let's
285 # disable it to avoid errors from berkeley db..
286 # status: keep locally
287 Patch1041: %{name}-5.4.9-disable-l10ndir.patch
288 # status: ready for merge
289 Patch1042: %{name}-5.4.9-fix-rpm_qa-pattern.patch
290 # warning: introduces memory leak
291 Patch1043: %{name}-5.4.12-copy-Value-string.patch
292 Patch1044: %{name}-5.4.12-fix-rpmlua-print.patch
293 Patch1045: %{name}-5.4.12-fix-rpmpython-module-import-init.patch
294 Patch1046: %{name}-5.4.12-truncate-output-buffer-after-use.patch
295 Patch1047: %{name}-5.4.13-perl-bindings-do-not-use-xmalloc.patch
297 # there's a rpmdbchk tool I wrote a while back, which might help you. although
298 # the incidents it's able to deal with is rather limited ATM... it might help
299 # you out, if not and you'll be able to solve yer problem, you could take a
300 # stab at adding support for fixing your specific problem to the util ;)
301 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-rpmdbchk.patch
302 Patch1048: %{name}-5.4.14-rpmdbchk.patch
303 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-no-assert-abort-with-broken-headers.patch
304 Patch1049: %{name}-5.4.14-no-assert-abort-with-broken-headers.patch
306 Patch1050: python-libx32.patch
308 URL: http://rpm5.org/
309 BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
311 BuildRequires: sqlite3-devel
313 BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
315 BuildRequires: autoconf >= 2.63
316 BuildRequires: automake >= 1.4
317 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
318 BuildRequires: bzip2-devel >= 1.0.2-17
319 BuildRequires: elfutils-devel >= 0.108
320 BuildRequires: gettext-tools >= 0.19.2
321 %{?with_keyutils:BuildRequires: keyutils-devel}
322 BuildRequires: libmagic-devel
324 BuildRequires: libselinux-devel >= 2.1.0
325 BuildRequires: libsemanage-devel >= 2.1.0
326 BuildRequires: libsepol-devel >= 2.1.0
328 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
329 BuildRequires: libstdc++-devel
330 BuildRequires: libtool >= 1:1.4.2-9
332 BuildRequires: libxml2-devel
333 BuildRequires: neon-devel >= 0.25.5
335 %{?with_system_lua:BuildRequires: lua52-devel >= 5.2.2}
336 BuildRequires: ossp-uuid-devel
337 BuildRequires: patch >= 2.2
338 BuildRequires: popt-devel >= %{reqpopt_ver}
339 %{?with_python:BuildRequires: python-devel >= 1:2.3}
340 BuildRequires: python-modules >= 1:2.3
341 %{?with_python:BuildRequires: rpm-pythonprov}
343 BuildRequires: xz-devel
344 BuildRequires: zlib-devel
346 BuildRequires: doxygen
347 BuildRequires: ghostscript
348 BuildRequires: graphviz
349 BuildRequires: tetex-pdftex
352 # Require static library only for static build
353 BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
354 BuildRequires: beecrypt-static >= %{beecrypt_ver}
355 BuildRequires: bzip2-static >= 1.0.2-17
356 BuildRequires: elfutils-static
357 BuildRequires: glibc-static >= 2.2.94
358 BuildRequires: libmagic-static
360 BuildRequires: libselinux-static >= 2.1.0
361 BuildRequires: libsemanage-static >= 2.1.0
362 BuildRequires: libsepol-static >= 2.1.0
364 BuildRequires: popt-static >= %{reqpopt_ver}
365 BuildRequires: zlib-static
367 Requires(posttrans): coreutils
368 Requires: %{name}-base = %{version}-%{release}
369 Requires: %{name}-lib = %{version}-%{release}
370 Requires: beecrypt >= %{beecrypt_ver}
371 Requires: popt >= %{reqpopt_ver}
372 Provides: rpm-db-ver = %{reqdb_ver}
373 Obsoletes: rpm-getdeps
374 %{!?with_static:Obsoletes: rpm-utils-static}
375 Conflicts: glibc < 2.2.92
376 # db4.6 poldek needed
377 Conflicts: poldek < 0.21-0.20070703.00.3
378 # segfaults with lzma 0.42.2
379 Conflicts: lzma-libs < 4.999.3
380 Conflicts: util-vserver < 0.30.216-1.pre3034.7
381 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
383 %define _binary_payload w9.gzdio
385 # don't require very fresh rpm.macros to build
386 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
387 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
388 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
389 %define ppc ppc ppc7400 ppc7450
390 %define x8664 amd64 ia32e x86_64
392 # stabilize new build environment
394 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
395 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
396 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
398 # x32 is a very special case
399 %define __newcc %{?force_cc}%{!?force_cc:x86_64-pld-linux-gnux32-gcc}
400 %define __newcxx %{?force_cxx}%{!?force_cxx:x86_64-pld-linux-gnux32-g++}
401 %define __newcpp %{?force_cpp}%{!?force_cpp:x86_64-pld-linux-gnux32-gcc -E}
404 %define _rpmlibdir /usr/lib/rpm
405 %define _noautocompressdoc RPM-GPG-KEY
408 RPM is a powerful package manager, which can be used to build,
409 install, query, verify, update, and uninstall individual software
410 packages. A package consists of an archive of files, and package
411 information, including name, version, and description.
413 %description -l de.UTF-8
414 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
415 Installation, Anfrage, Verifizierung, Aktualisierung und
416 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
417 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
420 %description -l es.UTF-8
421 RPM es un poderoso administrador de paquetes, que puede ser usado para
422 construir, instalar, pesquisar, verificar, actualizar y desinstalar
423 paquetes individuales de software. Un paquete consiste en un
424 almacenaje de archivos, y información sobre el paquete, incluyendo
425 nombre, versión y descripción.
427 %description -l pl.UTF-8
428 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
429 przebudowanie, instalację czy weryfikację dowolnego pakietu.
430 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
431 plików wchodzących w skład pakietu, zależności od innych pakietów, są
432 przechowywane w bazie danych i można je uzyskać za pomocą opcji
433 odpytywania programu rpm.
435 %description -l pt_BR.UTF-8
436 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
437 construir, instalar, pesquisar, verificar, atualizar e desinstalar
438 pacotes individuais de software. Um pacote consiste de um conjunto de
439 arquivos e informações adicionais, incluindo nome, versão e descrição
440 do pacote, permissões dos arquivos, etc.
442 %description -l ru.UTF-8
443 RPM - это мощный менеджер пакетов, который может быть использован для
444 создания, инсталляции, запросов (query), проверки, обновления и
445 удаления программных пакетов. Пакет состоит из файлового архива и
446 служебной информации, включающей название, версию, описание и другие
449 %description -l uk.UTF-8
450 RPM - це потужний менеджер пакетів, що може бути використаний для
451 створення, інсталяції, запитів (query), перевірки, поновлення та
452 видалення програмних пакетів. Пакет складається з файлового архіву та
453 службової інформації, що містить назву, версію, опис та іншу
454 інформацію про пакет.
457 Summary: RPM base package - scripts used by rpm packages themselves
458 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
461 Obsoletes: rpm-scripts
462 Obsoletes: vserver-rpm
465 The RPM base package contains scripts used by rpm packages themselves.
467 - scripts for adding/removing groups and users needed for rpm
469 - banner.sh to display %%banner messages from rpm scriptlets.
471 %description base -l pl.UTF-8
472 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
474 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
475 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
478 Summary: RPMs library
479 Summary(pl.UTF-8): Biblioteki RPM-a
481 Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
483 Requires: sqlite3 >= %{sqlite_build_version}
485 Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
487 Requires: beecrypt >= %{beecrypt_ver}
488 Requires: libmagic >= 1.15-2
489 %{?with_selinux:Requires: libselinux >= 2.1.0}
490 Requires: popt >= %{reqpopt_ver}
492 # avoid SEGV caused by mixed db versions
493 Conflicts: poldek < 0.18.1-16
498 %description lib -l pl.UTF-8
502 Summary: Header files for rpm libraries
503 Summary(de.UTF-8): Header-Dateien für rpm Libraries
504 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
505 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
506 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
507 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
508 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
509 Group: Development/Libraries
510 Requires: %{name}-lib = %{version}-%{release}
511 Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
512 Requires: beecrypt-devel >= %{beecrypt_ver}
513 Requires: bzip2-devel
514 Requires: elfutils-devel
515 %{?with_keyutils:Requires: keyutils-devel}
516 Requires: libmagic-devel
518 Requires: libselinux-devel
519 Requires: libsemanage-devel
520 Requires: libsepol-devel
522 Requires: popt-devel >= %{reqpopt_ver}
526 The RPM packaging system includes C libraries that make it easy to
527 manipulate RPM packages and databases. They are intended to ease the
528 creation of graphical package managers and other tools that need
529 intimate knowledge of RPM packages. This package contains header files
532 %description devel -l de.UTF-8
533 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
534 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
535 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
536 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
538 %description devel -l es.UTF-8
539 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
540 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
541 facilitar la creación de administradores gráficos de paquetes y otras
542 herramientas que necesiten un conocimiento profundo de paquetes RPM.
544 %description devel -l pl.UTF-8
545 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
546 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
547 graficznych programów zarządzających pakietami oraz innych narzędzi,
548 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
549 zawiera pliki nagłówkowe wspomnianych bibliotek.
551 %description devel -l pt_BR.UTF-8
552 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
553 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
554 facilitar a criação de gerenciadores gráficos de pacotes e outras
555 ferramentas que precisem de conhecimento profundo de pacotes RPM.
557 %description devel -l ru.UTF-8
558 Система управления пакетами RPM содержит библиотеку C, которая
559 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
560 Эта библиотека предназначена для облегчения создания графических
561 пакетных менеджеров и других утилит, которым необходимо работать с
564 %description devel -l uk.UTF-8
565 Система керування пакетами RPM містить бібліотеку C, котра спрощує
566 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
567 призначена для полегшення створення графічних пакетних менеджерів та
568 інших утиліт, що працюють з пакетами RPM.
571 Summary: RPM static libraries
572 Summary(de.UTF-8): RPMs statische Libraries
573 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
574 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
575 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
576 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
577 Group: Development/Libraries
578 Requires: %{name}-devel = %{version}-%{release}
579 Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
580 Requires: beecrypt-static >= %{beecrypt_ver}
581 Requires: bzip2-static
582 Requires: elfutils-static
583 %{?with_keyutils:Requires: keyutils-static}
584 Requires: libmagic-static
586 Requires: libselinux-static
587 Requires: libsemanage-static
588 Requires: libsepol-static
590 Requires: popt-static >= %{reqpopt_ver}
591 Requires: zlib-static
594 RPM static libraries.
596 %description static -l de.UTF-8
597 RPMs statische Libraries.
599 %description static -l pl.UTF-8
600 Biblioteki statyczne RPM-a.
602 %description static -l pt_BR.UTF-8
603 Bibliotecas estáticas para desenvolvimento.
605 %description static -l ru.UTF-8
606 Система управления пакетами RPM содержит библиотеку C, которая
607 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
608 Это статическая библиотека RPM.
610 %description static -l uk.UTF-8
611 Система керування пакетами RPM містить бібліотеку C, котра спрощує
612 роботу з пакетами RPM та відповідними базами даних. Це статична
616 Summary: Additional utilities for managing RPM packages and database
617 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
618 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
619 Group: Applications/File
620 Requires: %{name} = %{version}-%{release}
621 Requires: popt >= %{reqpopt_ver}
622 %if %{with suggest_tags}
626 Conflicts: filesystem-debuginfo < 3.0-16
629 Additional utilities for managing RPM packages and database.
631 %description utils -l de.UTF-8
632 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
634 %description utils -l pl.UTF-8
635 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
638 Summary: Additional utilities for managing RPM packages and database
639 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
640 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
641 Group: Applications/File
642 Requires: %{name}-utils = %{version}-%{release}
643 Requires: popt >= %{reqpopt_ver}
645 %description utils-perl
646 Additional utilities for managing RPM packages and database.
648 %description utils-perl -l de.UTF-8
649 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
651 %description utils-perl -l pl.UTF-8
652 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
654 %package utils-static
655 Summary: Static rpm utilities
656 Summary(pl.UTF-8): Statyczne narzędzia rpm
657 Group: Applications/System
658 Requires: %{name} = %{version}-%{release}
660 %description utils-static
661 Static rpm utilities for repairing system in case something with
662 shared libraries used by rpm become broken. Currently it contains rpmi
663 binary, which can be used to install/upgrade/remove packages without
664 using shared libraries (well, in fact with exception of NSS modules).
666 %description utils-static -l pl.UTF-8
667 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
668 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
669 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
670 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
671 (z wyjątkiem modułów NSS).
674 Summary: Scripts for building binary RPM packages
675 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
676 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
677 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
678 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
679 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
680 Group: Applications/File
681 Requires(pretrans): coreutils
682 Requires(pretrans): findutils
683 Requires: %{name}-build-macros >= 1.712
684 Requires: %{name}-utils = %{version}-%{release}
688 Requires: chrpath >= 0.10-4
692 Requires: file >= 4.17
696 Requires: gcc >= 3.0.3
700 Requires: glibc-devel
707 Requires: tar >= 1:1.22
711 Provides: rpmbuild(monoautodeps)
712 Provides: rpmbuild(noauto) = 3
714 Conflicts: automake < 1:1.7.9-2
715 Conflicts: libtool < 2:1.5-13
719 Scripts for building binary RPM packages.
721 %description build -l de.UTF-8
722 Scripts fürs Bauen binärer RPM-Pakete.
724 %description build -l pl.UTF-8
725 Skrypty pomocnicze do budowania binarnych RPM-ów.
727 %description build -l pt_BR.UTF-8
728 Este pacote contém scripts e programas executáveis que são usados para
729 construir pacotes usando o RPM.
731 %description build -l ru.UTF-8
732 Различные вспомогательные скрипты и исполняемые программы, которые
733 используются для сборки RPM'ов.
735 %description build -l uk.UTF-8
736 Різноманітні допоміжні скрипти та утиліти, які використовуються для
740 Summary: Additional utilities for checking Java provides/requires in RPM packages
741 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
742 Group: Applications/File
743 Requires: %{name} = %{version}-%{release}
745 Requires: findutils >= 1:4.2.26
749 %description javaprov
750 Additional utilities for checking Java provides/requires in RPM
753 %description javaprov -l pl.UTF-8
754 Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
758 Summary: Additional utilities for checking Perl provides/requires in RPM packages
759 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
760 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
761 Group: Applications/File
762 Requires: %{name} = %{version}-%{release}
763 Requires: perl-Encode
765 Requires: perl-modules
767 %description perlprov
768 Additional utilities for checking Perl provides/requires in RPM
771 %description perlprov -l de.UTF-8
772 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
774 %description perlprov -l pl.UTF-8
775 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
779 Summary: Python macros, which simplifies creation of RPM packages with Python software
780 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
781 Group: Applications/File
782 Requires: %{name} = %{version}-%{release}
784 Requires: python-setuptools
785 Requires: python-modules
787 %description pythonprov
788 Python macros, which simplifies creation of RPM packages with Python
791 %description pythonprov -l pl.UTF-8
792 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
795 %package php-pearprov
796 Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
797 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
798 Group: Applications/File
799 Requires: %{name} = %{version}-%{release}
801 Suggests: php-pear-PHP_CompatInfo
803 %description php-pearprov
804 Additional utilities for checking PHP PEAR provides/requires in RPM
807 %description php-pearprov -l pl.UTF-8
808 Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
812 Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
813 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
814 Group: Applications/File
815 Requires: %{name} = %{version}-%{release}
817 Requires: ruby-modules
818 Requires: ruby-rubygems
820 %description rubyprov
821 Ruby tools, which simplifies creation of RPM packages with Ruby
824 %description rubyprov -l pl.UTF-8
825 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
828 %package -n python-rpm
829 Summary: Python interface to RPM library
830 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
831 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
832 Group: Development/Languages/Python
833 Requires: %{name} = %{version}-%{release}
835 Obsoletes: rpm-python
837 %description -n python-rpm
838 The rpm-python package contains a module which permits applications
839 written in the Python programming language to use the interface
840 supplied by RPM (RPM Package Manager) libraries.
842 This package should be installed if you want to develop Python
843 programs that will manipulate RPM packages and databases.
845 %description -n python-rpm -l pl.UTF-8
846 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
847 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
849 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
850 Pythonie programy manipulujące pakietami i bazami danych rpm.
852 %description -n python-rpm -l pt_BR.UTF-8
853 O pacote rpm-python contém um módulo que permite que aplicações
854 escritas em Python utilizem a interface fornecida pelas bibliotecas
855 RPM (RPM Package Manager).
857 Esse pacote deve ser instalado se você quiser desenvolver programas em
858 Python para manipular pacotes e bancos de dados RPM.
861 Summary: RPM API documentation and guides
862 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
864 %if "%{_rpmversion}" >= "5"
869 Documentation for RPM API and guides in HTML format generated from rpm
872 %description apidocs -l pl.UTF-8
873 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
874 źrodeł RPM-a przez doxygen.
877 %setup -q -n %{name}-%{version}%{?subver}
892 %{?with_system_lua:%patch9 -p1}
895 # enable TSC for capable archs
929 %{?with_db61:%patch41 -p1}
945 %{!?with_db61:%patch57 -p1}
1012 # don't delete, may be usefull if jbj descides to enable this again
1032 install %{SOURCE2} macros/pld.in
1033 install %{SOURCE8} scripts/php.prov.in
1034 install %{SOURCE9} scripts/php.req.in
1035 install %{SOURCE11} scripts/perl.prov.in
1036 cp -p %{SOURCE30} scripts/rubygems.rb
1037 cp -p %{SOURCE31} scripts/gem_helper.rb
1039 rm scripts/find-php*
1041 %{__mv} -f scripts/perl.req{,.in}
1043 # generate Group translations to *.po
1044 awk -f %{SOURCE6} %{SOURCE1}
1046 install %{SOURCE26} tools/rpmdb_checkversion.c
1047 install %{SOURCE28} tools/rpmdb_reset.c
1049 for extlib in beecrypt neon %{?with_system_pcre:pcre} popt; do
1050 [ -d $extlib ] && %{__rm} -r $extlib
1061 # rpm checks for CPU type at runtime, but it looks better
1063 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
1064 -e 's|@host_cpu@|%{_target_cpu}|' \
1065 -e 's|@host_os@|%{_target_os}|' \
1068 %{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
1069 # pass CC and CXX too in case of building with some older configure macro
1074 WITH_PERL_VERSION=no \
1075 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
1076 --disable-silent-rules \
1079 %{!?with_apidocs:--without-apidocs} \
1080 --with-beecrypt=external \
1081 --with-bugreport="http://bugs.pld-linux.org/" \
1082 --with-bzip2=external \
1083 --with-db=external \
1085 --with-file=external \
1086 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
1088 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
1089 --with-lzma=external \
1090 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
1091 --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' \
1092 --without-path-versioned \
1093 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
1094 --with-popt=external \
1095 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
1096 %{!?with_python:--without-python} \
1097 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
1098 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
1099 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
1100 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
1101 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
1103 --with-xz=external \
1104 --with-zlib=external
1111 %{?with_apidocs:%{__make} apidocs}
1113 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
1114 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
1115 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
1116 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
1118 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
1119 echo "Error linking rpmdb tools!"
1122 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
1123 echo "Error linking rpmdb tools!"
1128 rm -rf $RPM_BUILD_ROOT
1129 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
1130 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
1132 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1134 %{__make} -j1 install \
1135 pkgconfigdir=%{_pkgconfigdir} \
1136 DESTDIR=$RPM_BUILD_ROOT
1138 # install platform macros
1139 for f in platform/*macros; do
1141 fn=${bn%.macros}/macros
1142 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
1146 %ifnarch %{ix86} %{x8664} x32
1147 rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
1148 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
1149 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
1150 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
1151 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
1152 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
1153 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
1156 %ifnarch %{x8664} x32
1157 rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
1158 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
1159 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
1160 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
1164 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
1167 rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
1168 rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
1169 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
1170 rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
1171 rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
1172 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
1173 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
1174 rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
1175 rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
1177 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1178 # first platform file entry can't contain regexps
1180 %{_target_cpu}-%{_target_vendor}-linux-gnux32
1182 %{_target_cpu}-%{_target_vendor}-linux
1186 x86_64-[^-]*-[Ll]inux(-gnu)?
1187 amd64-[^-]*-[Ll]inux(-gnu)?
1188 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1191 amd64-[^-]*-[Ll]inux(-gnu)?
1192 x86_64-[^-]*-[Ll]inux(-gnu)?
1193 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1196 ia32e-[^-]*-[Ll]inux(-gnu)?
1197 x86_64-[^-]*-[Ll]inux(-gnu)?
1200 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1201 x86_64-[^-]*-[Ll]inux(-gnu)?
1202 amd64-[^-]*-[Ll]inux(-gnu)?
1205 %ifarch athlon %{x8664} x32
1206 athlon-[^-]*-[Ll]inux(-gnu)?
1208 %ifarch pentium4 athlon %{x8664} x32
1209 pentium4-[^-]*-[Ll]inux(-gnu)?
1211 %ifarch pentium3 pentium4 athlon %{x8664} x32
1212 pentium3-[^-]*-[Ll]inux(-gnu)?
1214 %ifarch i686 pentium3 pentium4 athlon %{x8664} x32
1215 i686-[^-]*-[Ll]inux(-gnu)?
1217 %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
1218 i586-[^-]*-[Ll]inux(-gnu)?
1220 %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
1221 i486-[^-]*-[Ll]inux(-gnu)?
1223 %ifarch %{ix86} %{x8664} x32
1224 i386-[^-]*-[Ll]inux(-gnu)?
1228 alpha-[^-]*-[Ll]inux(-gnu)?
1232 ia64-[^-]*-[Ll]inux(-gnu)?
1236 powerpc64-[^-]*-[Ll]inux(-gnu)?
1237 ppc64-[^-]*-[Ll]inux(-gnu)?
1239 %ifarch %{ppc} ppc64
1240 powerpc-[^-]*-[Ll]inux(-gnu)?
1241 ppc-[^-]*-[Ll]inux(-gnu)?
1245 s390x-[^-]*-[Ll]inux(-gnu)?
1248 s390-[^-]*-[Ll]inux(-gnu)?
1252 sparc64-[^-]*-[Ll]inux(-gnu)?
1253 sparcv8-[^-]*-[Ll]inux(-gnu)?
1254 sparcv9-[^-]*-[Ll]inux(-gnu)?
1257 sparcv8-[^-]*-[Ll]inux(-gnu)?
1258 sparcv9-[^-]*-[Ll]inux(-gnu)?
1260 %ifarch sparc sparcv9 sparc64
1261 sparc-[^-]*-[Ll]inux(-gnu)?
1267 # Squash Extra Blank Lines
1268 %{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1270 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1271 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1272 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1273 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1274 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1275 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1276 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1277 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
1279 # not installed since 4.4.8 (-tools-perl subpackage)
1280 install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1282 install %{SOURCE1} doc/manual/groups
1283 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
1284 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1285 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
1286 install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1287 install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
1288 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
1289 cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
1290 install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
1291 install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
1292 install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
1294 install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
1296 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1298 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1299 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
1300 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1301 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1302 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1303 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1304 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1306 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1307 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1308 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1309 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1310 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1311 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
1313 install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1314 install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1315 install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
1317 # create macro loading wrappers for backward compatibility
1318 for m in gstreamer java mono perl php python; do
1319 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
1322 # moved to rpm-build-macros 1.699
1323 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1325 # for rpm -e|-U --repackage
1326 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1327 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1330 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1331 # move essential libs to /lib (libs that /bin/rpm links to)
1332 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
1333 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1334 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1337 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1338 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1341 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1342 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1344 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1347 # wrong location, not used anyway
1348 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1349 # utils dropped in 5.4 -- their manuals
1350 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
1351 # script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1352 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
1357 cp -a doc/manual manual
1358 %{__rm} -f manual/Makefile*
1361 rm -rf $RPM_BUILD_ROOT
1364 # this needs to be a dir
1365 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
1367 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1368 mkdir %{_sysconfdir}/rpm/sysinfo
1372 if [ -e /var/lib/rpm/Packages ] && \
1373 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
1374 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
1375 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
1377 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
1381 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1382 echo 'you should ignore it and restart poldek'
1384 %{_rpmlibdir}/bin/dbupgrade.sh
1387 %triggerpostun -- %{name} < 4.4.9-44
1388 %{_rpmlibdir}/hrmib-cache
1390 %post lib -p /sbin/ldconfig
1391 %postun lib -p /sbin/ldconfig
1394 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1396 %files -f %{name}.lang
1397 %defattr(644,root,root,755)
1398 %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
1400 %dir /etc/pki/rpm-gpg
1401 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1403 %attr(755,root,root) /bin/rpm
1405 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1406 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1407 %dir %{_sysconfdir}/rpm/sysinfo
1408 # these are ok to be replaced
1409 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1410 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1412 %{_mandir}/man8/rpm.8*
1413 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1414 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1415 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1416 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1417 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1420 %dir /var/lib/rpm/log
1421 %dir /var/lib/rpm/tmp
1422 %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
1423 %dir %attr(700,root,root) /var/spool/repackage
1425 /var/lock/rpm/transaction
1427 # exported package NVRA (stamped with install tid)
1428 # net-snmp hrSWInstalledName queries, bash-completions
1429 %dir /var/cache/hrmib
1432 %{_rpmlibdir}/rpmpopt*
1433 %{_rpmlibdir}/macros
1434 %dir %{_rpmlibdir}/macros.d
1435 %{_rpmlibdir}/macros.d/pld
1436 %{_rpmlibdir}/cpuinfo.yaml
1437 %{_rpmlibdir}/noarch-*
1438 %ifarch %{ix86} %{x8664} x32
1440 %{_rpmlibdir}/pentium*
1441 %{_rpmlibdir}/athlon*
1444 %{_rpmlibdir}/alpha*
1449 %ifarch mips mipsel mips64 mips64el
1455 %ifarch sparc sparc64
1456 %{_rpmlibdir}/sparc*
1458 %ifarch %{x8664} x32
1459 %{_rpmlibdir}/amd64*
1460 %{_rpmlibdir}/ia32e*
1461 %{_rpmlibdir}/x86_64*
1465 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1467 %dir %{_rpmlibdir}/bin
1468 %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1469 %attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
1470 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
1471 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
1472 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
1475 %defattr(644,root,root,755)
1476 %dir %{_sysconfdir}/rpm
1477 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1479 %attr(755,root,root) %{_bindir}/banner.sh
1480 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1481 %dir /var/lib/banner
1484 %defattr(644,root,root,755)
1485 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1486 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1487 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1488 %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
1489 %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
1490 %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
1493 %defattr(644,root,root,755)
1494 %attr(755,root,root) %{_libdir}/librpm.so
1495 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1496 %attr(755,root,root) %{_libdir}/librpmbuild.so
1497 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1498 %attr(755,root,root) %{_libdir}/librpmconstant.so
1499 %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
1500 %attr(755,root,root) %{_libdir}/librpmdb.so
1501 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1502 %attr(755,root,root) %{_libdir}/librpmio.so
1503 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1504 %attr(755,root,root) %{_libdir}/librpmmisc.so
1505 %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
1506 %{_libdir}/librpm*.la
1508 %{_pkgconfigdir}/*.pc
1511 %defattr(644,root,root,755)
1512 %{_libdir}/librpm*.a
1515 %defattr(644,root,root,755)
1516 %attr(755,root,root) %{_bindir}/rpm2cpio
1517 %attr(755,root,root) %{_bindir}/rpmconstant
1518 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1519 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1520 %attr(755,root,root) %{_rpmlibdir}/tgpg
1521 %attr(755,root,root) %{_rpmlibdir}/bin/chroot
1522 %attr(755,root,root) %{_rpmlibdir}/bin/cp
1523 %attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1524 %attr(755,root,root) %{_rpmlibdir}/bin/find
1525 %attr(755,root,root) %{_rpmlibdir}/bin/mgo
1526 %attr(755,root,root) %{_rpmlibdir}/bin/mtree
1527 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1528 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1529 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1530 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1532 %attr(755,root,root) %{_rpmlibdir}/bin/semodule
1533 %attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1535 %if %{without system_lua}
1536 %attr(755,root,root) %{_rpmlibdir}/bin/lua
1537 %attr(755,root,root) %{_rpmlibdir}/bin/luac
1538 %attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
1539 %attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
1541 %{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
1542 %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
1543 %{_mandir}/man8/rpm2cpio.8*
1544 %{_mandir}/man8/rpmconstant.8*
1545 %{_mandir}/man8/rpmdeps.8*
1546 %{_mandir}/man8/rpmmtree.8*
1547 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1548 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1549 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1550 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1553 %defattr(644,root,root,755)
1554 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1558 %defattr(644,root,root,755)
1559 %attr(755,root,root) %{_bindir}/rpm[ieu]
1560 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1564 %defattr(644,root,root,755)
1565 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1566 %attr(755,root,root) %{_rpmlibdir}/brp-*
1567 %attr(755,root,root) %{_rpmlibdir}/check-files
1568 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1569 %attr(755,root,root) %{_rpmlibdir}/cross-build
1570 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1571 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1572 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1573 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1574 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1575 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1576 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1577 # needs hacked pkg-config to return anything
1578 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1579 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1580 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
1581 %{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
1582 %attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1583 %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1584 %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1585 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1586 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1587 %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1588 %attr(755,root,root) %{_rpmlibdir}/bin/wget
1589 %attr(755,root,root) %{_rpmlibdir}/vcheck
1590 # not used yet ... these six depend on perl
1591 %attr(755,root,root) %{_rpmlibdir}/http.req
1592 # we always used scripts provided by mono-devel, maybe move them here
1593 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1594 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1596 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1597 # must be here for "Requires: rpm-*prov" to work
1598 %{_rpmlibdir}/macros.d/cmake
1599 %{_rpmlibdir}/macros.d/gstreamer
1600 %{_rpmlibdir}/macros.d/java
1601 %{_rpmlibdir}/macros.d/libtool
1602 %{_rpmlibdir}/macros.d/mono
1603 %{_rpmlibdir}/macros.d/perl
1604 %{_rpmlibdir}/macros.d/php
1605 %{_rpmlibdir}/macros.d/pkgconfig
1606 %{_rpmlibdir}/macros.d/python
1607 %{_rpmlibdir}/macros.d/ruby
1608 %{_rpmlibdir}/macros.d/selinux
1609 %{_rpmlibdir}/macros.d/tcl
1610 %{_rpmlibdir}/macros.rpmbuild
1612 %{_rpmlibdir}/macros.gstreamer
1613 %{_rpmlibdir}/macros.java
1614 %{_rpmlibdir}/macros.mono
1615 %{_rpmlibdir}/macros.perl
1616 %{_rpmlibdir}/macros.php
1617 %{_rpmlibdir}/macros.python
1619 %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1620 %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1622 %attr(755,root,root) %{_bindir}/gendiff
1623 %attr(755,root,root) %{_bindir}/rpmbuild
1625 %dir %{_rpmlibdir}/helpers
1626 %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
1628 %{_mandir}/man1/gendiff.1*
1629 %{_mandir}/man8/rpmbuild.8*
1630 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1631 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1632 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1635 %defattr(644,root,root,755)
1636 %attr(755,root,root) %{_rpmlibdir}/java-find-requires
1637 # needs jar (any jdk), jcf-dump (gcc-java) to work
1638 %attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1641 %defattr(644,root,root,755)
1642 %attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1643 %attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1646 %defattr(644,root,root,755)
1647 %attr(755,root,root) %{_rpmlibdir}/perl.*
1648 %attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1649 %attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1652 %defattr(644,root,root,755)
1653 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1654 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1657 %defattr(644,root,root,755)
1658 %attr(755,root,root) %{_rpmlibdir}/php.prov
1659 %attr(755,root,root) %{_rpmlibdir}/php.req
1660 %attr(755,root,root) %{_rpmlibdir}/php.req.php
1663 %files -n python-rpm
1664 %defattr(644,root,root,755)
1665 %dir %{py_sitedir}/rpm
1666 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1667 %{py_sitedir}/rpm/*.py[co]
1672 %defattr(644,root,root,755)