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 db62 # use DB 6.2 instead of 5.2
17 %bcond_with neon # build with HTTP/WebDAV support (neon library)
18 %bcond_with sqlite # build with SQLite support
19 %bcond_with system_lua # use system lua
20 %bcond_without system_pcre # use system pcre
21 %bcond_with keyutils # build with keyutils support
22 # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
23 # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
24 # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
28 # Error: /lib64/librpmio-5.4.so: undefined symbol: sqlite3_enable_load_extension
29 %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
32 # versions of required libraries
34 %define reqdb_pkg db6.2
36 %define reqdb_pkgver 6.2.23
39 %define reqdb_pkg db6.1
41 %define reqdb_pkgver 6.1.26
43 %define reqdb_pkg db5.2
45 %define reqdb_pkgver 5.2.36.0-4
48 %define reqpopt_ver 1.15
49 %define beecrypt_ver 2:4.2.0
52 Summary: RPM Package Manager
53 Summary(de.UTF-8): RPM Packet-Manager
54 Summary(es.UTF-8): Gestor de paquetes RPM
55 Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
56 Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
57 Summary(ru.UTF-8): Менеджер пакетов от RPM
58 Summary(uk.UTF-8): Менеджер пакетів від RPM
64 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.17-0.20160512.src.rpm
65 Source0: %{name}-%{version}.tar.gz
66 # Source0-md5: 7783b1d49c5a4bc3789dfe1e30b5140f
67 # See README.cpu-os-macros how to update cpu-os-macros.a
68 Source100: cpu-os-macros.a
69 Source101: README.cpu-os-macros
70 Source1: %{name}.groups
71 Source2: macros.pld.in
72 Source3: %{name}-install-tree
73 Source4: %{name}-find-spec-bcond
74 Source5: %{name}-hrmib-cache
75 Source6: %{name}-groups-po.awk
76 Source7: %{name}-compress-doc
77 Source8: %{name}-php-provides
78 Source9: %{name}-php-requires
79 Source10: %{name}.sysinfo
81 Source12: %{name}-user_group.sh
82 Source13: %{name}.sysconfig
83 Source14: %{name}-java-requires
84 # http://svn.pld-linux.org/banner.sh/
86 Source16: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
87 # Source16-md5: 08b29584dd349aac9caa7610131a0a88
88 Source17: %{name}-mimetypedeps
89 Source18: macros.local
90 Source19: %{name}.noautocompressdoc
91 Source20: %{name}.noautoprov
92 Source21: %{name}.noautoprovfiles
93 Source22: %{name}.noautoreq
94 Source24: %{name}.noautoreqfiles
95 Source25: %{name}-php-requires.php
96 Source26: %{name}db_checkversion.c
98 Source28: %{name}db_reset.c
99 Source29: dbupgrade.sh
100 Source30: rubygems.rb
101 Source31: gem_helper.rb
102 Patch0: %{name}-branch.patch
103 Patch1: %{name}-man_pl.patch
104 Patch2: %{name}-popt-aliases.patch
105 Patch3: %{name}-nosetproctitle.patch
106 Patch4: %{name}-perl-macros.patch
107 Patch5: %{name}-perl-req-perlfile.patch
108 Patch6: %{name}-scripts-closefds.patch
109 Patch7: %{name}-php-macros.patch
110 Patch8: %{name}-gettext-in-header.patch
111 Patch9: %{name}-lua.patch
112 Patch10: %{name}-php-deps.patch
113 Patch11: %{name}-notsc.patch
114 Patch12: %{name}-hack-norpmlibdep.patch
115 Patch13: %{name}-dont-copy-descriptive-tags.patch
116 Patch14: %{name}-perl_req-INC_dirs.patch
117 Patch15: %{name}-debuginfo.patch
118 Patch16: vendor-pld.patch
119 Patch17: %{name}-old-fileconflicts-behaviour.patch
120 Patch18: %{name}-javadeps.patch
121 Patch19: i18n-string.patch
122 Patch20: %{name}-libtool-deps.patch
123 Patch21: %{name}-mimetype.patch
124 Patch22: %{name}-sparc64.patch
125 Patch23: %{name}-gendiff.patch
126 Patch24: openmp.patch
127 Patch25: %{name}-URPM-build-fix.patch
128 Patch26: %{name}-semanage.patch
129 Patch27: %{name}-helperEVR-noassert.patch
130 Patch28: %{name}-unglobal.patch
131 Patch29: %{name}-builddir-readlink.patch
132 Patch30: %{name}-changelog_order_check_nonfatal.patch
133 Patch31: %{name}-cleanbody.patch
134 Patch32: %{name}-dirdeps-macro.patch
135 Patch33: %{name}-installbeforeerase.patch
136 Patch34: %{name}-libmagic-locale.patch
137 Patch35: %{name}-namespace-compare.patch
138 Patch36: %{name}-popt-coreutils.patch
139 Patch37: %{name}-postun-nofail.patch
140 Patch38: %{name}-DB_RDONLY.patch
141 Patch39: %{name}-fix-missing-types-in-headers.patch
142 Patch40: %{name}-fix--p-interpreter-and-empty-script.patch
143 Patch41: %{name}-db_buffer_small.patch
144 Patch42: %{name}-pattern_Release.patch
145 Patch43: %{name}-fix-___build_pre-macro.patch
146 Patch44: %{name}-missing-patch-file-fails-build.patch
147 Patch45: %{name}-remove-misleading-missing-patch-message.patch
148 Patch46: %{name}-file-magic-can-be-mixed-case.patch
149 Patch47: %{name}-query-always-noisy.patch
150 Patch48: %{name}-verify-ghosts-broken-logic.patch
151 Patch49: %{name}-python-enable-compat-RPMSENSE.patch
152 Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
153 Patch51: %{name}-gst-inspect-typo.patch
154 Patch52: %{name}-null-term-ascii-digest.patch
155 Patch53: %{name}-lua-enable-extra-libs.patch
156 Patch54: %{name}-fix-filedigests-verify.patch
157 Patch55: %{name}-disable-hmac-verify.patch
158 Patch56: %{name}-macros.patch
159 Patch57: %{name}-headerChecks.patch
160 Patch58: %{name}-preserve-iterator.patch
161 Patch60: %{name}-python-sitescriptdir.patch
162 Patch61: %{name}-clean-docdir.patch
163 Patch62: %{name}-DB_CONFIG.patch
164 Patch63: %{name}-pythoneggs.patch
165 Patch64: %{name}-fix-compress-doc.patch
166 Patch65: %{name}-parseSpec-skip-empty-tags.patch
167 Patch66: %{name}-rpm4compat-update.patch
168 Patch67: %{name}-repackage-dont-force-max-compression.patch
169 Patch70: python-%{name}sense-missingok.patch
170 Patch71: %{name}-changelog-encoding.patch
171 Patch74: %{name}-fix-internal-lua-build.patch
172 Patch75: %{name}-double_check_file_deps.patch
173 Patch77: %{name}-lua-expat.patch
174 Patch78: %{name}-double_check_unpackaged_subdirs.patch
175 Patch79: %{name}-rpmspec.patch
177 Patch81: %{name}-perl-magic.patch
178 Patch82: %{name}-5.4.15-use-DSA-sig.patch
179 Patch83: %{name}-ignore-missing-macro-files.patch
181 Patch85: rpm-CVE-2013-6435.patch
182 Patch86: rpm-CVE-2014-8118.patch
183 Patch87: %{name}-file-output-for-ELF.patch
184 Patch88: %{name}-rpmtdnext.patch
185 Patch89: disable-header-verification.patch
186 Patch90: %{name}-cppcompat.patch
187 Patch91: py-disable-fetch.patch
188 Patch92: fast_python_deps.patch
189 Patch93: python2_explicit.patch
191 Patch98: extension-based-compression-detection.patch
193 # Patches imported from Mandriva
195 # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
196 # would basically just mean backporting it..
197 Patch1000: %{name}-5.4.4-add-_specfile-macro.patch
198 # status: needs to be cleaned up and properly reviewed together with rest
199 # of the patches related to dependency generation
200 Patch1001: %{name}-5.4.9-avoid-dependencies-on-self.patch
201 # status: probably ready to merge
202 Patch1002: %{name}-5.4.4-pkgconfigdeps-check-path.patch
203 # status: probably okay to merge, but discuss on rpm-devel first
204 Patch1003: %{name}-5.4.4-glob-wildcards-for-loading-macro-files.patch
205 # status: needs to be discussed
206 Patch1004: %{name}-5.4.4-allow-installation-of-repackaged-rpms.patch
207 # status: ready to merge
208 Patch1005: %{name}-5.4.8-dont-show-suggests-with-requires.patch
209 # status: ready for merge
210 Patch1006: %{name}-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
211 # status: probably okay to merge, but discuss on rpm-devel first
212 Patch1007: %{name}-5.4.10-duplicate_files_terminate_build.patch
213 # status: same as above
214 Patch1008: %{name}-5.4.10-unpackaged_subdirs_terminate_build.patch
216 # status: uncertain, might be okay to merge, discuss on rpm-devel first
217 Patch1009: %{name}-5.4.4-rpmbuild-withoutclean.patch
218 # no sense in having an additional dependency on 'pkgconfig' on all packages that
219 # have a pkgconfig file, it's not needed for them to be made useful and anything
220 # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
221 # status: might be okay to merge, but discuss on rpm-devel first
222 Patch1010: %{name}-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
223 # status: ready for merge
224 Patch1011: %{name}-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
225 # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
226 # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
227 # status: needs to be discussed and investigated a bit better..
228 Patch1012: %{name}-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
229 # status: probably okay to merge, but discuss on rpm-devel first
230 Patch1013: %{name}-5.4.10-files-listed-twice-terminates-build.patch
231 # status: probably okay to merge
232 Patch1014: %{name}-5.4.9-ruby1.9-fixes.patch
233 # status: keep locally
234 Patch1015: %{name}-5.4.9-keep-loading-script-macros.patch
235 # status: same as for other dep gen patches
236 Patch1016: %{name}-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
238 Patch1017: %{name}-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
239 # status: probably okay to merge
240 Patch1019: %{name}-5.4.5-python-export-spec-macros.patch
242 Patch1020: %{name}-5.4.9-font-provides.patch
244 Patch1021: %{name}-5.4.7-kmod-dependencies.patch
245 # status: probably okay to merge, discuss on rpm-devel first
246 Patch1022: %{name}-5.4.5-skip-dependencies-for-character-devices.patch
247 # status: probably okay to merge
248 Patch1024: %{name}-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
250 Patch1027: %{name}-5.4.7-fix-generation-of-ruby-abi-provides.patch
251 # crash reproducable with 'rpm -qa --triggers'
253 Patch1028: %{name}-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
254 # status: same as for other dep gen patches
255 Patch1029: %{name}-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
257 Patch1030: %{name}-5.4.7-fix-minor-memleaks.patch
259 Patch1031: %{name}-5.4.9-mire-fix-strings-lacking-null-terminator.patch
261 Patch1032: %{name}-5.4.9-rpmpython-fix-input.patch
263 Patch1033: %{name}-5.4.7-no-seqid_init-on-rdonly-database.patch
264 # status: probably ready to merge, discuss on rpm-devel first
265 Patch1035: %{name}-5.4.9-fix-verify-segfault.patch
266 # Due to rpmdav/neon being written in a different fashion than other rpmio clients,
267 # the inconsistent behaviour affects code elsewhere which expects consistent behaviour,
268 # with the result being that when unable to download files, neon will save error
269 # page as the target file.
270 # status: should go upstream, but uncertain about "correct" fix, ie. this is
271 # more of a workaround, while rewriting rpmdav code to behave consistently
272 # would be "the right thing to do". Yet I'm not fully able to grasp all of the
273 # code and don't want to spend more time just to get the API..
274 Patch1037: %{name}-5.4.10-fix-neon-saving-error-pages-as-target-file.patch
275 # As the transaction flags for ignoring arch & os are no longer used, there's
276 # currently no way to ignore arch & os of packages anymore. This patch adds
277 # support for doing this again by defining rpm variables and overriding
278 # --ignorearch & --ignoreos to set these.
279 # status: needs to be discussed upstream before thinking about merging
280 Patch1038: %{name}-5.4.10-support-ignore-arch-and-os-again.patch
281 # status: ready for merge
282 Patch1039: %{name}-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch
283 # we want that patch too, a bit of builder infrastructure relies on NOSIGNATURES
284 Patch1040: %{name}-5.4.9-support-signatures-and-digest-disablers.patch
285 # lack insight on actual functionality, which anyways seems broken, so let's
286 # disable it to avoid errors from berkeley db..
287 # status: keep locally
288 Patch1041: %{name}-5.4.9-disable-l10ndir.patch
289 # status: ready for merge
290 Patch1042: %{name}-5.4.9-fix-rpm_qa-pattern.patch
291 Patch1044: %{name}-5.4.12-fix-rpmlua-print.patch
292 Patch1045: %{name}-5.4.12-fix-rpmpython-module-import-init.patch
295 # there's a rpmdbchk tool I wrote a while back, which might help you. although
296 # the incidents it's able to deal with is rather limited ATM... it might help
297 # you out, if not and you'll be able to solve yer problem, you could take a
298 # stab at adding support for fixing your specific problem to the util ;)
299 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-rpmdbchk.patch
300 Patch1048: %{name}-5.4.14-rpmdbchk.patch
302 Patch1050: python-libx32.patch
304 URL: http://rpm5.org/
305 BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
307 BuildRequires: sqlite3-devel
309 BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
311 BuildRequires: autoconf >= 2.63
312 BuildRequires: automake >= 1.4
313 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
314 BuildRequires: bzip2-devel >= 1.0.2-17
315 BuildRequires: elfutils-devel >= 0.108
316 BuildRequires: gettext-tools >= 0.19.2
317 %{?with_keyutils:BuildRequires: keyutils-devel}
318 BuildRequires: libmagic-devel
320 BuildRequires: libselinux-devel >= 2.1.0
321 BuildRequires: libsemanage-devel >= 2.1.0
322 BuildRequires: libsepol-devel >= 2.1.0
324 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
325 BuildRequires: libstdc++-devel
326 BuildRequires: libtool >= 1:1.4.2-9
328 BuildRequires: libxml2-devel
329 BuildRequires: neon-devel >= 0.25.5
331 %{?with_system_lua:BuildRequires: lua52-devel >= 5.2.2}
332 BuildRequires: ossp-uuid-devel
333 BuildRequires: patch >= 2.2
334 BuildRequires: popt-devel >= %{reqpopt_ver}
335 %{?with_python:BuildRequires: python-devel >= 1:2.3}
336 BuildRequires: python-modules >= 1:2.3
337 %{?with_python:BuildRequires: rpm-pythonprov}
339 BuildRequires: xz-devel
340 BuildRequires: zlib-devel
342 BuildRequires: doxygen
343 BuildRequires: ghostscript
344 BuildRequires: graphviz
345 BuildRequires: tetex-pdftex
348 # Require static library only for static build
349 BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
350 BuildRequires: beecrypt-static >= %{beecrypt_ver}
351 BuildRequires: bzip2-static >= 1.0.2-17
352 BuildRequires: elfutils-static
353 BuildRequires: glibc-static >= 2.2.94
354 BuildRequires: libmagic-static
356 BuildRequires: libselinux-static >= 2.1.0
357 BuildRequires: libsemanage-static >= 2.1.0
358 BuildRequires: libsepol-static >= 2.1.0
360 BuildRequires: popt-static >= %{reqpopt_ver}
361 BuildRequires: zlib-static
363 Requires(posttrans): coreutils
364 Requires: %{name}-base = %{version}-%{release}
365 Requires: %{name}-lib = %{version}-%{release}
366 Requires: beecrypt >= %{beecrypt_ver}
367 Requires: popt >= %{reqpopt_ver}
368 Provides: rpm-db-ver = %{reqdb_ver}
369 Obsoletes: rpm-getdeps
370 %{!?with_static:Obsoletes: rpm-utils-static}
371 Conflicts: glibc < 2.2.92
372 # db4.6 poldek needed
373 Conflicts: poldek < 0.21-0.20070703.00.3
374 # segfaults with lzma 0.42.2
375 Conflicts: lzma-libs < 4.999.3
376 Conflicts: util-vserver < 0.30.216-1.pre3034.7
377 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
379 %define _binary_payload w9.gzdio
381 # don't require very fresh rpm.macros to build
382 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
383 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
384 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
385 %define ppc ppc ppc7400 ppc7450
386 %define x8664 amd64 ia32e x86_64
388 # stabilize new build environment
390 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
391 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
392 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
394 # x32 is a very special case
395 %define __newcc %{?force_cc}%{!?force_cc:x86_64-pld-linux-gnux32-gcc}
396 %define __newcxx %{?force_cxx}%{!?force_cxx:x86_64-pld-linux-gnux32-g++}
397 %define __newcpp %{?force_cpp}%{!?force_cpp:x86_64-pld-linux-gnux32-gcc -E}
400 %define _rpmlibdir /usr/lib/rpm
401 %define _noautocompressdoc RPM-GPG-KEY
404 RPM is a powerful package manager, which can be used to build,
405 install, query, verify, update, and uninstall individual software
406 packages. A package consists of an archive of files, and package
407 information, including name, version, and description.
409 %description -l de.UTF-8
410 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
411 Installation, Anfrage, Verifizierung, Aktualisierung und
412 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
413 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
416 %description -l es.UTF-8
417 RPM es un poderoso administrador de paquetes, que puede ser usado para
418 construir, instalar, pesquisar, verificar, actualizar y desinstalar
419 paquetes individuales de software. Un paquete consiste en un
420 almacenaje de archivos, y información sobre el paquete, incluyendo
421 nombre, versión y descripción.
423 %description -l pl.UTF-8
424 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
425 przebudowanie, instalację czy weryfikację dowolnego pakietu.
426 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
427 plików wchodzących w skład pakietu, zależności od innych pakietów, są
428 przechowywane w bazie danych i można je uzyskać za pomocą opcji
429 odpytywania programu rpm.
431 %description -l pt_BR.UTF-8
432 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
433 construir, instalar, pesquisar, verificar, atualizar e desinstalar
434 pacotes individuais de software. Um pacote consiste de um conjunto de
435 arquivos e informações adicionais, incluindo nome, versão e descrição
436 do pacote, permissões dos arquivos, etc.
438 %description -l ru.UTF-8
439 RPM - это мощный менеджер пакетов, который может быть использован для
440 создания, инсталляции, запросов (query), проверки, обновления и
441 удаления программных пакетов. Пакет состоит из файлового архива и
442 служебной информации, включающей название, версию, описание и другие
445 %description -l uk.UTF-8
446 RPM - це потужний менеджер пакетів, що може бути використаний для
447 створення, інсталяції, запитів (query), перевірки, поновлення та
448 видалення програмних пакетів. Пакет складається з файлового архіву та
449 службової інформації, що містить назву, версію, опис та іншу
450 інформацію про пакет.
453 Summary: RPM base package - scripts used by rpm packages themselves
454 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
457 Obsoletes: rpm-scripts
458 Obsoletes: vserver-rpm
461 The RPM base package contains scripts used by rpm packages themselves.
463 - scripts for adding/removing groups and users needed for rpm
465 - banner.sh to display %%banner messages from rpm scriptlets.
467 %description base -l pl.UTF-8
468 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
470 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
471 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
474 Summary: RPMs library
475 Summary(pl.UTF-8): Biblioteki RPM-a
477 Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
479 Requires: sqlite3 >= %{sqlite_build_version}
481 Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
483 Requires: beecrypt >= %{beecrypt_ver}
484 Requires: libmagic >= 1.15-2
485 %{?with_selinux:Requires: libselinux >= 2.1.0}
486 Requires: popt >= %{reqpopt_ver}
488 # avoid SEGV caused by mixed db versions
489 Conflicts: poldek < 0.18.1-16
494 %description lib -l pl.UTF-8
498 Summary: Header files for rpm libraries
499 Summary(de.UTF-8): Header-Dateien für rpm Libraries
500 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
501 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
502 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
503 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
504 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
505 Group: Development/Libraries
506 Requires: %{name}-lib = %{version}-%{release}
507 Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
508 Requires: beecrypt-devel >= %{beecrypt_ver}
509 Requires: bzip2-devel
510 Requires: elfutils-devel
511 %{?with_keyutils:Requires: keyutils-devel}
512 Requires: libmagic-devel
514 Requires: libselinux-devel
515 Requires: libsemanage-devel
516 Requires: libsepol-devel
518 Requires: popt-devel >= %{reqpopt_ver}
522 The RPM packaging system includes C libraries that make it easy to
523 manipulate RPM packages and databases. They are intended to ease the
524 creation of graphical package managers and other tools that need
525 intimate knowledge of RPM packages. This package contains header files
528 %description devel -l de.UTF-8
529 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
530 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
531 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
532 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
534 %description devel -l es.UTF-8
535 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
536 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
537 facilitar la creación de administradores gráficos de paquetes y otras
538 herramientas que necesiten un conocimiento profundo de paquetes RPM.
540 %description devel -l pl.UTF-8
541 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
542 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
543 graficznych programów zarządzających pakietami oraz innych narzędzi,
544 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
545 zawiera pliki nagłówkowe wspomnianych bibliotek.
547 %description devel -l pt_BR.UTF-8
548 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
549 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
550 facilitar a criação de gerenciadores gráficos de pacotes e outras
551 ferramentas que precisem de conhecimento profundo de pacotes RPM.
553 %description devel -l ru.UTF-8
554 Система управления пакетами RPM содержит библиотеку C, которая
555 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
556 Эта библиотека предназначена для облегчения создания графических
557 пакетных менеджеров и других утилит, которым необходимо работать с
560 %description devel -l uk.UTF-8
561 Система керування пакетами RPM містить бібліотеку C, котра спрощує
562 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
563 призначена для полегшення створення графічних пакетних менеджерів та
564 інших утиліт, що працюють з пакетами RPM.
567 Summary: RPM static libraries
568 Summary(de.UTF-8): RPMs statische Libraries
569 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
570 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
571 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
572 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
573 Group: Development/Libraries
574 Requires: %{name}-devel = %{version}-%{release}
575 Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
576 Requires: beecrypt-static >= %{beecrypt_ver}
577 Requires: bzip2-static
578 Requires: elfutils-static
579 %{?with_keyutils:Requires: keyutils-static}
580 Requires: libmagic-static
582 Requires: libselinux-static
583 Requires: libsemanage-static
584 Requires: libsepol-static
586 Requires: popt-static >= %{reqpopt_ver}
587 Requires: zlib-static
590 RPM static libraries.
592 %description static -l de.UTF-8
593 RPMs statische Libraries.
595 %description static -l pl.UTF-8
596 Biblioteki statyczne RPM-a.
598 %description static -l pt_BR.UTF-8
599 Bibliotecas estáticas para desenvolvimento.
601 %description static -l ru.UTF-8
602 Система управления пакетами RPM содержит библиотеку C, которая
603 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
604 Это статическая библиотека RPM.
606 %description static -l uk.UTF-8
607 Система керування пакетами RPM містить бібліотеку C, котра спрощує
608 роботу з пакетами RPM та відповідними базами даних. Це статична
612 Summary: Additional utilities for managing RPM packages and database
613 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
614 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
615 Group: Applications/File
616 Requires: %{name} = %{version}-%{release}
617 Requires: popt >= %{reqpopt_ver}
618 %if %{with suggest_tags}
622 Conflicts: filesystem-debuginfo < 3.0-16
625 Additional utilities for managing RPM packages and database.
627 %description utils -l de.UTF-8
628 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
630 %description utils -l pl.UTF-8
631 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
634 Summary: Additional utilities for managing RPM packages and database
635 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
636 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
637 Group: Applications/File
638 Requires: %{name}-utils = %{version}-%{release}
639 Requires: popt >= %{reqpopt_ver}
641 %description utils-perl
642 Additional utilities for managing RPM packages and database.
644 %description utils-perl -l de.UTF-8
645 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
647 %description utils-perl -l pl.UTF-8
648 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
650 %package utils-static
651 Summary: Static rpm utilities
652 Summary(pl.UTF-8): Statyczne narzędzia rpm
653 Group: Applications/System
654 Requires: %{name} = %{version}-%{release}
656 %description utils-static
657 Static rpm utilities for repairing system in case something with
658 shared libraries used by rpm become broken. Currently it contains rpmi
659 binary, which can be used to install/upgrade/remove packages without
660 using shared libraries (well, in fact with exception of NSS modules).
662 %description utils-static -l pl.UTF-8
663 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
664 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
665 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
666 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
667 (z wyjątkiem modułów NSS).
670 Summary: Scripts for building binary RPM packages
671 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
672 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
673 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
674 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
675 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
676 Group: Applications/File
677 Requires(pretrans): coreutils
678 Requires(pretrans): findutils
679 Requires: %{name}-build-macros >= 1.712
680 Requires: %{name}-utils = %{version}-%{release}
684 Requires: chrpath >= 0.10-4
688 Requires: file >= 4.17
692 Requires: gcc >= 3.0.3
696 Requires: glibc-devel
703 Requires: tar >= 1:1.22
707 Provides: rpmbuild(monoautodeps)
708 Provides: rpmbuild(noauto) = 3
710 Conflicts: automake < 1:1.7.9-2
711 Conflicts: libtool < 2:1.5-13
715 Scripts for building binary RPM packages.
717 %description build -l de.UTF-8
718 Scripts fürs Bauen binärer RPM-Pakete.
720 %description build -l pl.UTF-8
721 Skrypty pomocnicze do budowania binarnych RPM-ów.
723 %description build -l pt_BR.UTF-8
724 Este pacote contém scripts e programas executáveis que são usados para
725 construir pacotes usando o RPM.
727 %description build -l ru.UTF-8
728 Различные вспомогательные скрипты и исполняемые программы, которые
729 используются для сборки RPM'ов.
731 %description build -l uk.UTF-8
732 Різноманітні допоміжні скрипти та утиліти, які використовуються для
736 Summary: Additional utilities for checking Java provides/requires in RPM packages
737 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
738 Group: Applications/File
739 Requires: %{name} = %{version}-%{release}
741 Requires: findutils >= 1:4.2.26
745 %description javaprov
746 Additional utilities for checking Java provides/requires in RPM
749 %description javaprov -l pl.UTF-8
750 Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
754 Summary: Additional utilities for checking Perl provides/requires in RPM packages
755 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
756 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
757 Group: Applications/File
758 Requires: %{name} = %{version}-%{release}
759 Requires: perl-Encode
761 Requires: perl-modules
763 %description perlprov
764 Additional utilities for checking Perl provides/requires in RPM
767 %description perlprov -l de.UTF-8
768 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
770 %description perlprov -l pl.UTF-8
771 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
775 Summary: Python macros, which simplifies creation of RPM packages with Python software
776 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
777 Group: Applications/File
778 Requires: %{name} = %{version}-%{release}
780 Requires: python-setuptools
781 Requires: python-modules
783 %description pythonprov
784 Python macros, which simplifies creation of RPM packages with Python
787 %description pythonprov -l pl.UTF-8
788 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
791 %package php-pearprov
792 Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
793 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
794 Group: Applications/File
795 Requires: %{name} = %{version}-%{release}
797 Suggests: php-pear-PHP_CompatInfo
799 %description php-pearprov
800 Additional utilities for checking PHP PEAR provides/requires in RPM
803 %description php-pearprov -l pl.UTF-8
804 Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
808 Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
809 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
810 Group: Applications/File
811 Requires: %{name} = %{version}-%{release}
813 Requires: ruby-modules
814 Requires: ruby-rubygems
816 %description rubyprov
817 Ruby tools, which simplifies creation of RPM packages with Ruby
820 %description rubyprov -l pl.UTF-8
821 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
824 %package -n python-rpm
825 Summary: Python interface to RPM library
826 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
827 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
828 Group: Development/Languages/Python
829 Requires: %{name} = %{version}-%{release}
831 Obsoletes: rpm-python
833 %description -n python-rpm
834 The rpm-python package contains a module which permits applications
835 written in the Python programming language to use the interface
836 supplied by RPM (RPM Package Manager) libraries.
838 This package should be installed if you want to develop Python
839 programs that will manipulate RPM packages and databases.
841 %description -n python-rpm -l pl.UTF-8
842 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
843 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
845 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
846 Pythonie programy manipulujące pakietami i bazami danych rpm.
848 %description -n python-rpm -l pt_BR.UTF-8
849 O pacote rpm-python contém um módulo que permite que aplicações
850 escritas em Python utilizem a interface fornecida pelas bibliotecas
851 RPM (RPM Package Manager).
853 Esse pacote deve ser instalado se você quiser desenvolver programas em
854 Python para manipular pacotes e bancos de dados RPM.
857 Summary: RPM API documentation and guides
858 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
860 %if "%{_rpmversion}" >= "5"
865 Documentation for RPM API and guides in HTML format generated from rpm
868 %description apidocs -l pl.UTF-8
869 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
870 źrodeł RPM-a przez doxygen.
873 %setup -q -n %{name}-%{version}%{?subver}
888 %{?with_system_lua:%patch9 -p1}
891 # enable TSC for capable archs
895 # http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2016-March/024760.html
896 #%patch13 -p1 POSSIBLY SOLVED, decrypt what jbj said on SUPPORT_I18NSTRING_TYPE in ml
926 %if %{with db61} || %{with db62}
1009 # don't delete, may be useful if jbj decides to enable this again
1013 #%patch1044 -p1 SOLVED? need testcase to test
1026 install %{SOURCE2} macros/pld.in
1027 install %{SOURCE8} scripts/php.prov.in
1028 install %{SOURCE9} scripts/php.req.in
1029 install %{SOURCE11} scripts/perl.prov.in
1030 cp -p %{SOURCE30} scripts/rubygems.rb
1031 cp -p %{SOURCE31} scripts/gem_helper.rb
1033 %{__rm} scripts/find-php*
1035 %{__mv} -f scripts/perl.req{,.in}
1037 # generate Group translations to *.po
1038 awk -f %{SOURCE6} %{SOURCE1}
1040 install %{SOURCE26} tools/rpmdb_checkversion.c
1041 install %{SOURCE28} tools/rpmdb_reset.c
1043 for extlib in beecrypt neon %{?with_system_pcre:pcre} popt libtpm; do
1044 [ -d $extlib ] && %{__rm} -r $extlib
1048 %{__sed} -e 's/^DBXY=db62$/DBXY=db%{reqdb_ver}/' \
1049 -e 's/db-6\.2/db-%{reqdb_ver}/' \
1050 -e 's/db_sql-6\.2/db_sql-%{reqdb_ver}/' -i configure.ac
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-usecrypto=beecrypt \
1081 --with-beecrypt=external \
1082 --with-tomcrypt=no \
1083 --with-bugreport="http://bugs.pld-linux.org/" \
1084 --with-bzip2=external \
1085 --with-db=external \
1088 --with-file=external \
1089 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
1091 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
1092 --with-lzma=external \
1093 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
1094 --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' \
1095 --without-path-versioned \
1096 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
1097 --with-popt=external \
1098 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
1099 %{!?with_python:--without-python} \
1100 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
1101 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
1102 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
1103 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
1104 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
1107 --with-xz=external \
1108 --with-zlib=external
1115 %{?with_apidocs:%{__make} apidocs}
1117 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
1118 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
1119 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
1120 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
1122 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
1123 echo "Error linking rpmdb tools!"
1126 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
1127 echo "Error linking rpmdb tools!"
1132 rm -rf $RPM_BUILD_ROOT
1133 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
1134 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
1136 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1138 %{__make} -j1 install \
1139 pkgconfigdir=%{_pkgconfigdir} \
1140 DESTDIR=$RPM_BUILD_ROOT
1142 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ht
1143 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/no
1144 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/pt_PT
1146 # install platform macros
1147 for f in platform/*macros; do
1149 fn=${bn%.macros}/macros
1150 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
1154 %ifnarch %{ix86} %{x8664} x32
1155 rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
1156 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
1157 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
1158 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
1159 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
1160 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
1161 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
1164 %ifnarch %{x8664} x32
1165 rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
1166 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
1167 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
1168 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
1172 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
1175 rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
1176 rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
1177 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
1178 rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
1179 rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
1180 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
1181 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
1182 rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
1183 rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
1185 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1186 # first platform file entry can't contain regexps
1188 %{_target_cpu}-%{_target_vendor}-linux-gnux32
1190 %{_target_cpu}-%{_target_vendor}-linux
1194 x86_64-[^-]*-[Ll]inux(-gnu)?
1195 amd64-[^-]*-[Ll]inux(-gnu)?
1196 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1199 amd64-[^-]*-[Ll]inux(-gnu)?
1200 x86_64-[^-]*-[Ll]inux(-gnu)?
1201 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1204 ia32e-[^-]*-[Ll]inux(-gnu)?
1205 x86_64-[^-]*-[Ll]inux(-gnu)?
1208 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1209 x86_64-[^-]*-[Ll]inux(-gnu)?
1210 amd64-[^-]*-[Ll]inux(-gnu)?
1213 %ifarch athlon %{x8664} x32
1214 athlon-[^-]*-[Ll]inux(-gnu)?
1216 %ifarch pentium4 athlon %{x8664} x32
1217 pentium4-[^-]*-[Ll]inux(-gnu)?
1219 %ifarch pentium3 pentium4 athlon %{x8664} x32
1220 pentium3-[^-]*-[Ll]inux(-gnu)?
1222 %ifarch i686 pentium3 pentium4 athlon %{x8664} x32
1223 i686-[^-]*-[Ll]inux(-gnu)?
1225 %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
1226 i586-[^-]*-[Ll]inux(-gnu)?
1228 %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
1229 i486-[^-]*-[Ll]inux(-gnu)?
1231 %ifarch %{ix86} %{x8664} x32
1232 i386-[^-]*-[Ll]inux(-gnu)?
1236 alpha-[^-]*-[Ll]inux(-gnu)?
1240 ia64-[^-]*-[Ll]inux(-gnu)?
1244 powerpc64-[^-]*-[Ll]inux(-gnu)?
1245 ppc64-[^-]*-[Ll]inux(-gnu)?
1247 %ifarch %{ppc} ppc64
1248 powerpc-[^-]*-[Ll]inux(-gnu)?
1249 ppc-[^-]*-[Ll]inux(-gnu)?
1253 s390x-[^-]*-[Ll]inux(-gnu)?
1256 s390-[^-]*-[Ll]inux(-gnu)?
1260 sparc64-[^-]*-[Ll]inux(-gnu)?
1261 sparcv8-[^-]*-[Ll]inux(-gnu)?
1262 sparcv9-[^-]*-[Ll]inux(-gnu)?
1265 sparcv8-[^-]*-[Ll]inux(-gnu)?
1266 sparcv9-[^-]*-[Ll]inux(-gnu)?
1268 %ifarch sparc sparcv9 sparc64
1269 sparc-[^-]*-[Ll]inux(-gnu)?
1275 # Squash Extra Blank Lines
1276 %{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1278 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1279 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1280 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1281 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1282 %if %{without system_lua} && 0
1283 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1284 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1286 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1287 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
1289 # not installed since 4.4.8 (-tools-perl subpackage)
1290 install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1292 install %{SOURCE1} doc/manual/groups
1293 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
1294 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1295 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
1296 install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1297 install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
1298 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
1299 cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
1300 install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
1301 install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
1302 install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
1304 install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
1306 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1308 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1309 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
1310 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1311 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1312 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1313 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1314 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1316 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1317 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1318 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1319 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1320 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1321 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
1323 install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1324 install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1325 install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
1327 # create macro loading wrappers for backward compatibility
1328 for m in gstreamer java mono perl php python; do
1329 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
1332 # moved to rpm-build-macros 1.699
1333 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1335 # for rpm -e|-U --repackage
1336 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1337 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1340 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1341 # move essential libs to /lib (libs that /bin/rpm links to)
1342 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
1343 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1344 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1347 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1348 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1351 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1352 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1354 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,py}
1357 # wrong location, not used anyway
1358 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1359 # utils dropped in 5.4 -- their manuals
1360 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
1361 # script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1362 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
1367 cp -a doc/manual manual
1368 %{__rm} -f manual/Makefile*
1371 rm -rf $RPM_BUILD_ROOT
1374 # this needs to be a dir
1375 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
1377 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1378 mkdir %{_sysconfdir}/rpm/sysinfo
1382 if [ -e /var/lib/rpm/Packages ] && \
1383 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
1384 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
1385 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
1387 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
1391 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1392 echo 'you should ignore it and restart poldek'
1394 %{_rpmlibdir}/bin/dbupgrade.sh
1397 %triggerpostun -- %{name} < 4.4.9-44
1398 %{_rpmlibdir}/hrmib-cache
1400 %post lib -p /sbin/ldconfig
1401 %postun lib -p /sbin/ldconfig
1404 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1406 %files -f %{name}.lang
1407 %defattr(644,root,root,755)
1408 %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
1410 %dir /etc/pki/rpm-gpg
1411 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1413 %attr(755,root,root) /bin/rpm
1415 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1416 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1417 %dir %{_sysconfdir}/rpm/sysinfo
1418 # these are ok to be replaced
1419 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1420 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1422 %{_mandir}/man8/rpm.8*
1423 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1424 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1425 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1426 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1427 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1430 %dir /var/lib/rpm/log
1431 %dir /var/lib/rpm/tmp
1432 %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
1433 %dir %attr(700,root,root) /var/spool/repackage
1435 /var/lock/rpm/transaction
1437 # exported package NVRA (stamped with install tid)
1438 # net-snmp hrSWInstalledName queries, bash-completions
1439 %dir /var/cache/hrmib
1442 %{_rpmlibdir}/rpmpopt*
1443 %{_rpmlibdir}/macros
1444 %dir %{_rpmlibdir}/macros.d
1445 %{_rpmlibdir}/macros.d/pld
1446 %{_rpmlibdir}/cpuinfo.yaml
1447 %{_rpmlibdir}/noarch-*
1448 %ifarch %{ix86} %{x8664} x32
1450 %{_rpmlibdir}/pentium*
1451 %{_rpmlibdir}/athlon*
1454 %{_rpmlibdir}/alpha*
1459 %ifarch mips mipsel mips64 mips64el
1465 %ifarch sparc sparc64
1466 %{_rpmlibdir}/sparc*
1468 %ifarch %{x8664} x32
1469 %{_rpmlibdir}/amd64*
1470 %{_rpmlibdir}/ia32e*
1471 %{_rpmlibdir}/x86_64*
1475 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1477 %dir %{_rpmlibdir}/bin
1478 %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1479 %attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
1480 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
1481 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
1482 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
1485 %defattr(644,root,root,755)
1486 %dir %{_sysconfdir}/rpm
1487 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1489 %attr(755,root,root) %{_bindir}/banner.sh
1490 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1491 %dir /var/lib/banner
1494 %defattr(644,root,root,755)
1495 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1496 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1497 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1498 %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
1499 %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
1500 %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
1503 %defattr(644,root,root,755)
1504 %attr(755,root,root) %{_libdir}/librpm.so
1505 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1506 %attr(755,root,root) %{_libdir}/librpmbuild.so
1507 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1508 %attr(755,root,root) %{_libdir}/librpmconstant.so
1509 %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
1510 %attr(755,root,root) %{_libdir}/librpmdb.so
1511 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1512 %attr(755,root,root) %{_libdir}/librpmio.so
1513 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1514 %attr(755,root,root) %{_libdir}/librpmmisc.so
1515 %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
1516 %{_libdir}/librpm*.la
1518 %{_pkgconfigdir}/*.pc
1521 %defattr(644,root,root,755)
1522 %{_libdir}/librpm*.a
1525 %defattr(644,root,root,755)
1526 %attr(755,root,root) %{_bindir}/rpm2cpio
1527 %attr(755,root,root) %{_bindir}/rpmconstant
1528 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1529 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1530 %attr(755,root,root) %{_rpmlibdir}/tgpg
1531 %attr(755,root,root) %{_rpmlibdir}/bin/chroot
1532 %attr(755,root,root) %{_rpmlibdir}/bin/cp
1533 %attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1534 %attr(755,root,root) %{_rpmlibdir}/bin/find
1535 %attr(755,root,root) %{_rpmlibdir}/bin/mgo
1536 %attr(755,root,root) %{_rpmlibdir}/bin/mtree
1537 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1538 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1539 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1540 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1542 %attr(755,root,root) %{_rpmlibdir}/bin/semodule
1543 %attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1545 %if %{without system_lua} && 0
1546 %attr(755,root,root) %{_rpmlibdir}/bin/lua
1547 %attr(755,root,root) %{_rpmlibdir}/bin/luac
1548 %attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
1549 %attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
1551 %{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
1552 %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
1553 %{_mandir}/man8/rpm2cpio.8*
1554 %{_mandir}/man8/rpmconstant.8*
1555 %{_mandir}/man8/rpmdeps.8*
1556 %{_mandir}/man8/rpmmtree.8*
1557 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1558 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1559 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1560 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1563 %defattr(644,root,root,755)
1564 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1568 %defattr(644,root,root,755)
1569 %attr(755,root,root) %{_bindir}/rpm[ieu]
1570 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1574 %defattr(644,root,root,755)
1575 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1576 %attr(755,root,root) %{_rpmlibdir}/brp-*
1577 %attr(755,root,root) %{_rpmlibdir}/check-files
1578 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1579 %attr(755,root,root) %{_rpmlibdir}/cross-build
1580 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1581 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1582 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1583 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1584 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1585 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1586 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1587 # needs hacked pkg-config to return anything
1588 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1589 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1590 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
1591 %{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
1592 %attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1593 %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1594 %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1595 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1596 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1597 %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1598 %attr(755,root,root) %{_rpmlibdir}/bin/wget
1599 %attr(755,root,root) %{_rpmlibdir}/vcheck
1600 # not used yet ... these six depend on perl
1601 %attr(755,root,root) %{_rpmlibdir}/http.req
1602 # we always used scripts provided by mono-devel, maybe move them here
1603 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1604 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1606 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1607 # must be here for "Requires: rpm-*prov" to work
1608 %{_rpmlibdir}/macros.d/cmake
1609 %{_rpmlibdir}/macros.d/gstreamer
1610 %{_rpmlibdir}/macros.d/java
1611 %{_rpmlibdir}/macros.d/libtool
1612 %{_rpmlibdir}/macros.d/mono
1613 %{_rpmlibdir}/macros.d/perl
1614 %{_rpmlibdir}/macros.d/php
1615 %{_rpmlibdir}/macros.d/pkgconfig
1616 %{_rpmlibdir}/macros.d/python
1617 %{_rpmlibdir}/macros.d/ruby
1618 %{_rpmlibdir}/macros.d/selinux
1619 %{_rpmlibdir}/macros.d/tcl
1620 %{_rpmlibdir}/macros.rpmbuild
1622 %{_rpmlibdir}/macros.gstreamer
1623 %{_rpmlibdir}/macros.java
1624 %{_rpmlibdir}/macros.mono
1625 %{_rpmlibdir}/macros.perl
1626 %{_rpmlibdir}/macros.php
1627 %{_rpmlibdir}/macros.python
1629 %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1630 %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1632 %attr(755,root,root) %{_bindir}/gendiff
1633 %attr(755,root,root) %{_bindir}/rpmbuild
1635 %dir %{_rpmlibdir}/helpers
1636 %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
1638 %{_mandir}/man1/gendiff.1*
1639 %{_mandir}/man8/rpmbuild.8*
1640 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1641 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1642 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1645 %defattr(644,root,root,755)
1646 %attr(755,root,root) %{_rpmlibdir}/java-find-requires
1647 # needs jar (any jdk), jcf-dump (gcc-java) to work
1648 %attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1651 %defattr(644,root,root,755)
1652 %attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1653 %attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1656 %defattr(644,root,root,755)
1657 %attr(755,root,root) %{_rpmlibdir}/perl.*
1658 %attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1659 %attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1662 %defattr(644,root,root,755)
1663 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1664 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1667 %defattr(644,root,root,755)
1668 %attr(755,root,root) %{_rpmlibdir}/php.prov
1669 %attr(755,root,root) %{_rpmlibdir}/php.req
1670 %attr(755,root,root) %{_rpmlibdir}/php.req.php
1673 %files -n python-rpm
1674 %defattr(644,root,root,755)
1675 %dir %{py_sitedir}/rpm
1676 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1677 %{py_sitedir}/rpm/*.py[co]
1682 %defattr(644,root,root,755)