3 # - make key infrastructure code fallback from keyutils to plain mode in case keyctl
5 # - add macros for some ppc, mipsel, alpha and sparc
7 # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
10 %bcond_with static # build static rpm+rpmi
11 %bcond_without apidocs # don't generate documentation with doxygen
12 %bcond_without python # don't build python bindings
13 %bcond_without selinux # build without selinux support
14 %bcond_without suggest_tags # build without Suggest tag (bootstrapping)
15 %bcond_with db61 # use DB 6.1 instead of 5.2
16 %bcond_with neon # build with HTTP/WebDAV support (neon library)
17 %bcond_with sqlite # build with SQLite support
18 %bcond_with system_lua # use system lua
19 %bcond_without system_pcre # use system pcre
20 %bcond_with keyutils # build with keyutils support
21 # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
22 # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
23 # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
27 # Error: /lib64/librpmio-5.4.so: undefined symbol: sqlite3_enable_load_extension
28 %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
31 # versions of required libraries
33 %define reqdb_pkg db6.1
35 %define reqdb_pkgver 6.1.19
37 %define reqdb_pkg db5.2
39 %define reqdb_pkgver 5.2.36.0-4
41 %define reqpopt_ver 1.15
42 %define beecrypt_ver 2:4.2.0
45 Summary: RPM Package Manager
46 Summary(de.UTF-8): RPM Packet-Manager
47 Summary(es.UTF-8): Gestor de paquetes RPM
48 Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
49 Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
50 Summary(ru.UTF-8): Менеджер пакетов от RPM
51 Summary(uk.UTF-8): Менеджер пакетів від RPM
57 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.15-0.20140824.src.rpm
58 Source0: %{name}-%{version}.tar.gz
59 # Source0-md5: 4067f83ca8b5bf1a21e443c0cff3efa0
60 # See README.cpu-os-macros how to update cpu-os-macros.a
61 Source100: cpu-os-macros.a
62 Source101: README.cpu-os-macros
63 Source1: %{name}.groups
64 Source2: macros.pld.in
65 Source3: %{name}-install-tree
66 Source4: %{name}-find-spec-bcond
67 Source5: %{name}-hrmib-cache
68 Source6: %{name}-groups-po.awk
69 Source7: %{name}-compress-doc
70 Source8: %{name}-php-provides
71 Source9: %{name}-php-requires
72 Source10: %{name}.sysinfo
74 Source12: %{name}-user_group.sh
75 Source13: %{name}.sysconfig
76 Source14: %{name}-java-requires
77 # http://svn.pld-linux.org/banner.sh/
79 Source16: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
80 # Source16-md5: 08b29584dd349aac9caa7610131a0a88
81 Source17: %{name}-mimetypedeps
82 Source18: macros.local
83 Source19: %{name}.noautocompressdoc
84 Source20: %{name}.noautoprov
85 Source21: %{name}.noautoprovfiles
86 Source22: %{name}.noautoreq
87 Source24: %{name}.noautoreqfiles
88 Source25: %{name}-php-requires.php
89 Source26: %{name}db_checkversion.c
91 Source28: %{name}db_reset.c
92 Source29: dbupgrade.sh
94 Source31: gem_helper.rb
95 Patch0: %{name}-branch.patch
96 Patch1: %{name}-man_pl.patch
97 Patch2: %{name}-popt-aliases.patch
98 Patch3: %{name}-nosetproctitle.patch
99 Patch4: %{name}-perl-macros.patch
100 Patch5: %{name}-perl-req-perlfile.patch
101 Patch6: %{name}-scripts-closefds.patch
102 Patch7: %{name}-php-macros.patch
103 Patch8: %{name}-gettext-in-header.patch
104 Patch9: %{name}-lua.patch
105 Patch10: %{name}-php-deps.patch
106 Patch11: %{name}-notsc.patch
107 Patch12: %{name}-hack-norpmlibdep.patch
108 Patch13: %{name}-dont-copy-descriptive-tags.patch
109 Patch14: %{name}-perl_req-INC_dirs.patch
110 Patch15: %{name}-debuginfo.patch
111 Patch16: vendor-pld.patch
112 Patch17: %{name}-old-fileconflicts-behaviour.patch
113 Patch18: %{name}-javadeps.patch
114 Patch19: %{name}-truncate-cvslog.patch
115 Patch20: %{name}-libtool-deps.patch
116 Patch21: %{name}-mimetype.patch
117 Patch22: %{name}-sparc64.patch
118 Patch23: %{name}-gendiff.patch
119 Patch24: openmp.patch
120 Patch25: %{name}-URPM-build-fix.patch
121 Patch27: %{name}-helperEVR-noassert.patch
122 Patch28: %{name}-unglobal.patch
123 Patch29: %{name}-builddir-readlink.patch
124 Patch30: %{name}-changelog_order_check_nonfatal.patch
125 Patch31: %{name}-cleanbody.patch
126 Patch32: %{name}-dirdeps-macro.patch
127 Patch33: %{name}-installbeforeerase.patch
128 Patch34: %{name}-libmagic-locale.patch
129 Patch35: %{name}-namespace-compare.patch
130 Patch36: %{name}-popt-coreutils.patch
131 Patch37: %{name}-postun-nofail.patch
132 Patch38: %{name}-silence-RPM_CHAR_TYPE.patch
133 Patch39: %{name}-fix-missing-types-in-headers.patch
134 Patch40: %{name}-fix--p-interpreter-and-empty-script.patch
135 Patch41: %{name}-db_buffer_small.patch
136 Patch42: %{name}-pattern_Release.patch
137 Patch43: %{name}-fix-___build_pre-macro.patch
138 Patch44: %{name}-missing-patch-file-fails-build.patch
139 Patch45: %{name}-remove-misleading-missing-patch-message.patch
140 Patch46: %{name}-file-magic-can-be-mixed-case.patch
141 Patch47: %{name}-query-always-noisy.patch
142 Patch48: %{name}-verify-ghosts-broken-logic.patch
143 Patch49: %{name}-python-enable-compat-RPMSENSE.patch
144 Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
145 Patch51: %{name}-gst-inspect-typo.patch
146 Patch52: %{name}-null-term-ascii-digest.patch
147 Patch53: %{name}-lua-enable-extra-libs.patch
148 Patch54: %{name}-fix-filedigests-verify.patch
149 Patch55: %{name}-disable-hmac-verify.patch
150 Patch56: %{name}-macros.patch
151 Patch57: %{name}-db5.2.patch
152 Patch58: %{name}-preserve-iterator.patch
153 Patch60: %{name}-python-sitescriptdir.patch
154 Patch61: %{name}-clean-docdir.patch
155 Patch62: %{name}-DB_CONFIG.patch
156 Patch63: %{name}-pythoneggs.patch
157 Patch64: %{name}-fix-compress-doc.patch
158 Patch65: %{name}-parseSpec-skip-empty-tags.patch
159 Patch66: %{name}-payload-use-hashed-inode.patch
160 Patch67: %{name}-repackage-dont-force-max-compression.patch
161 Patch70: python-%{name}sense-missingok.patch
162 Patch71: %{name}-changelog-encoding.patch
163 Patch72: %{name}-preserve-tag-type.patch
164 Patch74: %{name}-fix-internal-lua-build.patch
165 Patch75: %{name}-double_check_file_deps.patch
166 Patch77: %{name}-lua-expat.patch
167 Patch78: %{name}-double_check_unpackaged_subdirs.patch
168 Patch79: %{name}-rpmspec.patch
169 Patch80: %{name}-revert-gpg-argv-parsing.patch
170 Patch81: %{name}-perl-magic.patch
171 Patch82: %{name}-5.4.15-use-DSA-sig.patch
172 Patch83: %{name}-ignore-missing-macro-files.patch
174 Patch85: rpm-CVE-2013-6435.patch
175 Patch86: rpm-CVE-2014-8118.patch
176 Patch87: %{name}-file-output-for-ELF.patch
177 Patch88: %{name}-rpmtdnext.patch
178 Patch89: disable-header-verification.patch
179 Patch90: %{name}-cppcompat.patch
180 Patch91: py-disable-fetch.patch
182 # Patches imported from Mandriva
184 # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
185 # would basically just mean backporting it..
186 Patch1000: %{name}-5.4.4-add-_specfile-macro.patch
187 # status: needs to be cleaned up and properly reviewed together with rest
188 # of the patches related to dependency generation
189 Patch1001: %{name}-5.4.9-avoid-dependencies-on-self.patch
190 # status: probably ready to merge
191 Patch1002: %{name}-5.4.4-pkgconfigdeps-check-path.patch
192 # status: probably okay to merge, but discuss on rpm-devel first
193 Patch1003: %{name}-5.4.4-glob-wildcards-for-loading-macro-files.patch
194 # status: needs to be discussed
195 Patch1004: %{name}-5.4.4-allow-installation-of-repackaged-rpms.patch
196 # status: ready to merge
197 Patch1005: %{name}-5.4.8-dont-show-suggests-with-requires.patch
198 # status: ready for merge
199 Patch1006: %{name}-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
200 # status: probably okay to merge, but discuss on rpm-devel first
201 Patch1007: %{name}-5.4.10-duplicate_files_terminate_build.patch
202 # status: same as above
203 Patch1008: %{name}-5.4.10-unpackaged_subdirs_terminate_build.patch
205 # status: uncertain, might be okay to merge, discuss on rpm-devel first
206 Patch1009: %{name}-5.4.4-rpmbuild-withoutclean.patch
207 # no sense in having an additional dependency on 'pkgconfig' on all packages that
208 # have a pkgconfig file, it's not needed for them to be made useful and anything
209 # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
210 # status: might be okay to merge, but discuss on rpm-devel first
211 Patch1010: %{name}-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
212 # status: ready for merge
213 Patch1011: %{name}-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
214 # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
215 # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
216 # status: needs to be discussed and investigated a bit better..
217 Patch1012: %{name}-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
218 # status: probably okay to merge, but discuss on rpm-devel first
219 Patch1013: %{name}-5.4.10-files-listed-twice-terminates-build.patch
220 # status: probably okay to merge
221 Patch1014: %{name}-5.4.9-ruby1.9-fixes.patch
222 # status: keep locally
223 Patch1015: %{name}-5.4.9-keep-loading-script-macros.patch
224 # status: same as for other dep gen patches
225 Patch1016: %{name}-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
227 Patch1017: %{name}-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
228 # status: probably okay to merge
229 Patch1019: %{name}-5.4.5-python-export-spec-macros.patch
231 Patch1020: %{name}-5.4.9-font-provides.patch
233 Patch1021: %{name}-5.4.7-kmod-dependencies.patch
234 # status: probably okay to merge, discuss on rpm-devel first
235 Patch1022: %{name}-5.4.5-skip-dependencies-for-character-devices.patch
236 # status: probably okay to merge
237 Patch1024: %{name}-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
238 # status: probably okay to merge
239 Patch1026: %{name}-5.4.10-dont-try-generate-rpmfc-dependencies-from-doc-files.patch
241 Patch1027: %{name}-5.4.7-fix-generation-of-ruby-abi-provides.patch
242 # crash reproducable with 'rpm -qa --triggers'
244 Patch1028: %{name}-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
245 # status: same as for other dep gen patches
246 Patch1029: %{name}-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
248 Patch1030: %{name}-5.4.7-fix-minor-memleaks.patch
250 Patch1031: %{name}-5.4.9-mire-fix-strings-lacking-null-terminator.patch
252 Patch1032: %{name}-5.4.9-rpmpython-fix-input.patch
254 Patch1033: %{name}-5.4.7-no-seqid_init-on-rdonly-database.patch
255 # status: probably ready for merging
256 Patch1034: %{name}-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.patch
257 # status: probably ready to merge, discuss on rpm-devel first
258 Patch1035: %{name}-5.4.9-fix-verify-segfault.patch
259 # Due to rpmdav/neon being written in a different fashion than other rpmio clients,
260 # the inconsistent behaviour affects code elsewhere which expects consistent behaviour,
261 # with the result being that when unable to download files, neon will save error
262 # page as the target file.
263 # status: should go upstream, but uncertain about "correct" fix, ie. this is
264 # more of a workaround, while rewriting rpmdav code to behave consistently
265 # would be "the right thing to do". Yet I'm not fully able to grasp all of the
266 # code and don't want to spend more time just to get the API..
267 Patch1037: %{name}-5.4.10-fix-neon-saving-error-pages-as-target-file.patch
268 # As the transaction flags for ignoring arch & os are no longer used, there's
269 # currently no way to ignore arch & os of packages anymore. This patch adds
270 # support for doing this again by defining rpm variables and overriding
271 # --ignorearch & --ignoreos to set these.
272 # status: needs to be discussed upstream before thinking about merging
273 Patch1038: %{name}-5.4.10-support-ignore-arch-and-os-again.patch
274 # status: ready for merge
275 Patch1039: %{name}-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch
276 # we want that patch too, a bit of builder infrastructure relies on NOSIGNATURES
277 Patch1040: %{name}-5.4.9-support-signatures-and-digest-disablers.patch
278 # lack insight on actual functionality, which anyways seems broken, so let's
279 # disable it to avoid errors from berkeley db..
280 # status: keep locally
281 Patch1041: %{name}-5.4.9-disable-l10ndir.patch
282 # status: ready for merge
283 Patch1042: %{name}-5.4.9-fix-rpm_qa-pattern.patch
284 # warning: introduces memory leak
285 Patch1043: %{name}-5.4.12-copy-Value-string.patch
286 Patch1044: %{name}-5.4.12-fix-rpmlua-print.patch
287 Patch1045: %{name}-5.4.12-fix-rpmpython-module-import-init.patch
288 Patch1046: %{name}-5.4.12-truncate-output-buffer-after-use.patch
289 Patch1047: %{name}-5.4.13-perl-bindings-do-not-use-xmalloc.patch
291 # there's a rpmdbchk tool I wrote a while back, which might help you. although
292 # the incidents it's able to deal with is rather limited ATM... it might help
293 # you out, if not and you'll be able to solve yer problem, you could take a
294 # stab at adding support for fixing your specific problem to the util ;)
295 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-rpmdbchk.patch
296 Patch1048: %{name}-5.4.14-rpmdbchk.patch
297 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-no-assert-abort-with-broken-headers.patch
298 Patch1049: %{name}-5.4.14-no-assert-abort-with-broken-headers.patch
300 Patch1050: python-libx32.patch
302 URL: http://rpm5.org/
303 BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
305 BuildRequires: sqlite3-devel
307 BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
309 BuildRequires: autoconf >= 2.63
310 BuildRequires: automake >= 1.4
311 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
312 BuildRequires: bzip2-devel >= 1.0.2-17
313 BuildRequires: elfutils-devel >= 0.108
314 BuildRequires: gettext-tools >= 0.19.2
315 %{?with_keyutils:BuildRequires: keyutils-devel}
316 BuildRequires: libmagic-devel
318 BuildRequires: libselinux-devel >= 2.1.0
319 BuildRequires: libsemanage-devel >= 2.1.0
320 BuildRequires: libsepol-devel >= 2.1.0
322 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
323 BuildRequires: libstdc++-devel
324 BuildRequires: libtool >= 1:1.4.2-9
326 BuildRequires: libxml2-devel
327 BuildRequires: neon-devel >= 0.25.5
329 %{?with_system_lua:BuildRequires: lua52-devel >= 5.2.2}
330 BuildRequires: ossp-uuid-devel
331 BuildRequires: patch >= 2.2
332 BuildRequires: popt-devel >= %{reqpopt_ver}
333 %{?with_python:BuildRequires: python-devel >= 1:2.3}
334 BuildRequires: python-modules >= 1:2.3
335 %{?with_python:BuildRequires: rpm-pythonprov}
337 BuildRequires: xz-devel
338 BuildRequires: zlib-devel
340 BuildRequires: doxygen
341 BuildRequires: ghostscript
342 BuildRequires: graphviz
343 BuildRequires: tetex-pdftex
346 # Require static library only for static build
347 BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
348 BuildRequires: beecrypt-static >= %{beecrypt_ver}
349 BuildRequires: bzip2-static >= 1.0.2-17
350 BuildRequires: elfutils-static
351 BuildRequires: glibc-static >= 2.2.94
352 BuildRequires: libmagic-static
354 BuildRequires: libselinux-static >= 2.1.0
355 BuildRequires: libsemanage-static >= 2.1.0
356 BuildRequires: libsepol-static >= 2.1.0
358 BuildRequires: popt-static >= %{reqpopt_ver}
359 BuildRequires: zlib-static
361 Requires(posttrans): coreutils
362 Requires: %{name}-base = %{version}-%{release}
363 Requires: %{name}-lib = %{version}-%{release}
364 Requires: beecrypt >= %{beecrypt_ver}
365 Requires: popt >= %{reqpopt_ver}
366 Provides: rpm-db-ver = %{reqdb_ver}
367 Obsoletes: rpm-getdeps
368 %{!?with_static:Obsoletes: rpm-utils-static}
369 Conflicts: glibc < 2.2.92
370 # db4.6 poldek needed
371 Conflicts: poldek < 0.21-0.20070703.00.3
372 # segfaults with lzma 0.42.2
373 Conflicts: lzma-libs < 4.999.3
374 Conflicts: util-vserver < 0.30.216-1.pre3034.7
375 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
377 %define _binary_payload w9.gzdio
379 # don't require very fresh rpm.macros to build
380 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
381 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
382 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
383 %define ppc ppc ppc7400 ppc7450
384 %define x8664 amd64 ia32e x86_64
386 # stabilize new build environment
388 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
389 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
390 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
392 # x32 is a very special case
393 %define __newcc %{?force_cc}%{!?force_cc:x86_64-pld-linux-gnux32-gcc}
394 %define __newcxx %{?force_cxx}%{!?force_cxx:x86_64-pld-linux-gnux32-g++}
395 %define __newcpp %{?force_cpp}%{!?force_cpp:x86_64-pld-linux-gnux32-gcc -E}
398 %define _rpmlibdir /usr/lib/rpm
399 %define _noautocompressdoc RPM-GPG-KEY
402 RPM is a powerful package manager, which can be used to build,
403 install, query, verify, update, and uninstall individual software
404 packages. A package consists of an archive of files, and package
405 information, including name, version, and description.
407 %description -l de.UTF-8
408 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
409 Installation, Anfrage, Verifizierung, Aktualisierung und
410 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
411 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
414 %description -l es.UTF-8
415 RPM es un poderoso administrador de paquetes, que puede ser usado para
416 construir, instalar, pesquisar, verificar, actualizar y desinstalar
417 paquetes individuales de software. Un paquete consiste en un
418 almacenaje de archivos, y información sobre el paquete, incluyendo
419 nombre, versión y descripción.
421 %description -l pl.UTF-8
422 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
423 przebudowanie, instalację czy weryfikację dowolnego pakietu.
424 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
425 plików wchodzących w skład pakietu, zależności od innych pakietów, są
426 przechowywane w bazie danych i można je uzyskać za pomocą opcji
427 odpytywania programu rpm.
429 %description -l pt_BR.UTF-8
430 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
431 construir, instalar, pesquisar, verificar, atualizar e desinstalar
432 pacotes individuais de software. Um pacote consiste de um conjunto de
433 arquivos e informações adicionais, incluindo nome, versão e descrição
434 do pacote, permissões dos arquivos, etc.
436 %description -l ru.UTF-8
437 RPM - это мощный менеджер пакетов, который может быть использован для
438 создания, инсталляции, запросов (query), проверки, обновления и
439 удаления программных пакетов. Пакет состоит из файлового архива и
440 служебной информации, включающей название, версию, описание и другие
443 %description -l uk.UTF-8
444 RPM - це потужний менеджер пакетів, що може бути використаний для
445 створення, інсталяції, запитів (query), перевірки, поновлення та
446 видалення програмних пакетів. Пакет складається з файлового архіву та
447 службової інформації, що містить назву, версію, опис та іншу
448 інформацію про пакет.
451 Summary: RPM base package - scripts used by rpm packages themselves
452 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
455 Obsoletes: rpm-scripts
456 Obsoletes: vserver-rpm
459 The RPM base package contains scripts used by rpm packages themselves.
461 - scripts for adding/removing groups and users needed for rpm
463 - banner.sh to display %%banner messages from rpm scriptlets.
465 %description base -l pl.UTF-8
466 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
468 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
469 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
472 Summary: RPMs library
473 Summary(pl.UTF-8): Biblioteki RPM-a
475 Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
477 Requires: sqlite3 >= %{sqlite_build_version}
479 Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
481 Requires: beecrypt >= %{beecrypt_ver}
482 Requires: libmagic >= 1.15-2
483 %{?with_selinux:Requires: libselinux >= 2.1.0}
484 Requires: popt >= %{reqpopt_ver}
486 # avoid SEGV caused by mixed db versions
487 Conflicts: poldek < 0.18.1-16
492 %description lib -l pl.UTF-8
496 Summary: Header files for rpm libraries
497 Summary(de.UTF-8): Header-Dateien für rpm Libraries
498 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
499 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
500 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
501 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
502 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
503 Group: Development/Libraries
504 Requires: %{name}-lib = %{version}-%{release}
505 Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
506 Requires: beecrypt-devel >= %{beecrypt_ver}
507 Requires: bzip2-devel
508 Requires: elfutils-devel
509 %{?with_keyutils:Requires: keyutils-devel}
510 Requires: libmagic-devel
512 Requires: libselinux-devel
513 Requires: libsemanage-devel
514 Requires: libsepol-devel
516 Requires: popt-devel >= %{reqpopt_ver}
520 The RPM packaging system includes C libraries that make it easy to
521 manipulate RPM packages and databases. They are intended to ease the
522 creation of graphical package managers and other tools that need
523 intimate knowledge of RPM packages. This package contains header files
526 %description devel -l de.UTF-8
527 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
528 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
529 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
530 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
532 %description devel -l es.UTF-8
533 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
534 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
535 facilitar la creación de administradores gráficos de paquetes y otras
536 herramientas que necesiten un conocimiento profundo de paquetes RPM.
538 %description devel -l pl.UTF-8
539 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
540 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
541 graficznych programów zarządzających pakietami oraz innych narzędzi,
542 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
543 zawiera pliki nagłówkowe wspomnianych bibliotek.
545 %description devel -l pt_BR.UTF-8
546 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
547 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
548 facilitar a criação de gerenciadores gráficos de pacotes e outras
549 ferramentas que precisem de conhecimento profundo de pacotes RPM.
551 %description devel -l ru.UTF-8
552 Система управления пакетами RPM содержит библиотеку C, которая
553 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
554 Эта библиотека предназначена для облегчения создания графических
555 пакетных менеджеров и других утилит, которым необходимо работать с
558 %description devel -l uk.UTF-8
559 Система керування пакетами RPM містить бібліотеку C, котра спрощує
560 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
561 призначена для полегшення створення графічних пакетних менеджерів та
562 інших утиліт, що працюють з пакетами RPM.
565 Summary: RPM static libraries
566 Summary(de.UTF-8): RPMs statische Libraries
567 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
568 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
569 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
570 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
571 Group: Development/Libraries
572 Requires: %{name}-devel = %{version}-%{release}
573 Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
574 Requires: beecrypt-static >= %{beecrypt_ver}
575 Requires: bzip2-static
576 Requires: elfutils-static
577 %{?with_keyutils:Requires: keyutils-static}
578 Requires: libmagic-static
580 Requires: libselinux-static
581 Requires: libsemanage-static
582 Requires: libsepol-static
584 Requires: popt-static >= %{reqpopt_ver}
585 Requires: zlib-static
588 RPM static libraries.
590 %description static -l de.UTF-8
591 RPMs statische Libraries.
593 %description static -l pl.UTF-8
594 Biblioteki statyczne RPM-a.
596 %description static -l pt_BR.UTF-8
597 Bibliotecas estáticas para desenvolvimento.
599 %description static -l ru.UTF-8
600 Система управления пакетами RPM содержит библиотеку C, которая
601 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
602 Это статическая библиотека RPM.
604 %description static -l uk.UTF-8
605 Система керування пакетами RPM містить бібліотеку C, котра спрощує
606 роботу з пакетами RPM та відповідними базами даних. Це статична
610 Summary: Additional utilities for managing RPM packages and database
611 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
612 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
613 Group: Applications/File
614 Requires: %{name} = %{version}-%{release}
615 Requires: popt >= %{reqpopt_ver}
616 %if %{with suggest_tags}
620 Conflicts: filesystem-debuginfo < 3.0-16
623 Additional utilities for managing RPM packages and database.
625 %description utils -l de.UTF-8
626 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
628 %description utils -l pl.UTF-8
629 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
632 Summary: Additional utilities for managing RPM packages and database
633 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
634 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
635 Group: Applications/File
636 Requires: %{name}-utils = %{version}-%{release}
637 Requires: popt >= %{reqpopt_ver}
639 %description utils-perl
640 Additional utilities for managing RPM packages and database.
642 %description utils-perl -l de.UTF-8
643 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
645 %description utils-perl -l pl.UTF-8
646 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
648 %package utils-static
649 Summary: Static rpm utilities
650 Summary(pl.UTF-8): Statyczne narzędzia rpm
651 Group: Applications/System
652 Requires: %{name} = %{version}-%{release}
654 %description utils-static
655 Static rpm utilities for repairing system in case something with
656 shared libraries used by rpm become broken. Currently it contains rpmi
657 binary, which can be used to install/upgrade/remove packages without
658 using shared libraries (well, in fact with exception of NSS modules).
660 %description utils-static -l pl.UTF-8
661 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
662 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
663 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
664 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
665 (z wyjątkiem modułów NSS).
668 Summary: Scripts for building binary RPM packages
669 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
670 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
671 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
672 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
673 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
674 Group: Applications/File
675 Requires(pretrans): coreutils
676 Requires(pretrans): findutils
677 Requires: %{name}-build-macros >= 1.699
678 Requires: %{name}-utils = %{version}-%{release}
682 Requires: chrpath >= 0.10-4
686 Requires: file >= 4.17
690 Requires: gcc >= 3.0.3
694 Requires: glibc-devel
701 Requires: tar >= 1:1.22
705 Provides: rpmbuild(monoautodeps)
706 Provides: rpmbuild(noauto) = 3
708 Conflicts: automake < 1:1.7.9-2
709 Conflicts: libtool < 2:1.5-13
713 Scripts for building binary RPM packages.
715 %description build -l de.UTF-8
716 Scripts fürs Bauen binärer RPM-Pakete.
718 %description build -l pl.UTF-8
719 Skrypty pomocnicze do budowania binarnych RPM-ów.
721 %description build -l pt_BR.UTF-8
722 Este pacote contém scripts e programas executáveis que são usados para
723 construir pacotes usando o RPM.
725 %description build -l ru.UTF-8
726 Различные вспомогательные скрипты и исполняемые программы, которые
727 используются для сборки RPM'ов.
729 %description build -l uk.UTF-8
730 Різноманітні допоміжні скрипти та утиліти, які використовуються для
734 Summary: Additional utilities for checking Java provides/requires in RPM packages
735 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
736 Group: Applications/File
737 Requires: %{name} = %{version}-%{release}
739 Requires: findutils >= 1:4.2.26
743 %description javaprov
744 Additional utilities for checking Java provides/requires in RPM
747 %description javaprov -l pl.UTF-8
748 Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
752 Summary: Additional utilities for checking Perl provides/requires in RPM packages
753 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
754 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
755 Group: Applications/File
756 Requires: %{name} = %{version}-%{release}
757 Requires: perl-Encode
759 Requires: perl-modules
761 %description perlprov
762 Additional utilities for checking Perl provides/requires in RPM
765 %description perlprov -l de.UTF-8
766 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
768 %description perlprov -l pl.UTF-8
769 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
773 Summary: Python macros, which simplifies creation of RPM packages with Python software
774 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
775 Group: Applications/File
776 Requires: %{name} = %{version}-%{release}
778 Requires: python-setuptools
779 Requires: python-modules
781 %description pythonprov
782 Python macros, which simplifies creation of RPM packages with Python
785 %description pythonprov -l pl.UTF-8
786 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
789 %package php-pearprov
790 Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
791 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
792 Group: Applications/File
793 Requires: %{name} = %{version}-%{release}
795 Suggests: php-pear-PHP_CompatInfo
797 %description php-pearprov
798 Additional utilities for checking PHP PEAR provides/requires in RPM
801 %description php-pearprov -l pl.UTF-8
802 Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
806 Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
807 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
808 Group: Applications/File
809 Requires: %{name} = %{version}-%{release}
811 Requires: ruby-modules
812 Requires: ruby-rubygems
814 %description rubyprov
815 Ruby tools, which simplifies creation of RPM packages with Ruby
818 %description rubyprov -l pl.UTF-8
819 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
822 %package -n python-rpm
823 Summary: Python interface to RPM library
824 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
825 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
826 Group: Development/Languages/Python
827 Requires: %{name} = %{version}-%{release}
829 Obsoletes: rpm-python
831 %description -n python-rpm
832 The rpm-python package contains a module which permits applications
833 written in the Python programming language to use the interface
834 supplied by RPM (RPM Package Manager) libraries.
836 This package should be installed if you want to develop Python
837 programs that will manipulate RPM packages and databases.
839 %description -n python-rpm -l pl.UTF-8
840 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
841 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
843 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
844 Pythonie programy manipulujące pakietami i bazami danych rpm.
846 %description -n python-rpm -l pt_BR.UTF-8
847 O pacote rpm-python contém um módulo que permite que aplicações
848 escritas em Python utilizem a interface fornecida pelas bibliotecas
849 RPM (RPM Package Manager).
851 Esse pacote deve ser instalado se você quiser desenvolver programas em
852 Python para manipular pacotes e bancos de dados RPM.
855 Summary: RPM API documentation and guides
856 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
858 %if "%{_rpmversion}" >= "5"
863 Documentation for RPM API and guides in HTML format generated from rpm
866 %description apidocs -l pl.UTF-8
867 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
868 źrodeł RPM-a przez doxygen.
871 %setup -q -n %{name}-%{version}%{?subver}
886 %{?with_system_lua:%patch9 -p1}
889 # enable TSC for capable archs
922 %{?with_db61:%patch41 -p1}
938 %{!?with_db61:%patch57 -p1}
1005 # don't delete, may be usefull if jbj descides to enable this again
1020 install %{SOURCE2} macros/pld.in
1021 install %{SOURCE8} scripts/php.prov.in
1022 install %{SOURCE9} scripts/php.req.in
1023 install %{SOURCE11} scripts/perl.prov.in
1024 cp -p %{SOURCE30} scripts/rubygems.rb
1025 cp -p %{SOURCE31} scripts/gem_helper.rb
1027 rm scripts/find-php*
1029 %{__mv} -f scripts/perl.req{,.in}
1031 # generate Group translations to *.po
1032 awk -f %{SOURCE6} %{SOURCE1}
1034 install %{SOURCE26} tools/rpmdb_checkversion.c
1035 install %{SOURCE28} tools/rpmdb_reset.c
1037 for extlib in beecrypt neon %{?with_system_pcre:pcre} popt; do
1038 [ -d $extlib ] && %{__rm} -r $extlib
1049 # rpm checks for CPU type at runtime, but it looks better
1051 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
1052 -e 's|@host_cpu@|%{_target_cpu}|' \
1053 -e 's|@host_os@|%{_target_os}|' \
1056 %{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
1057 # pass CC and CXX too in case of building with some older configure macro
1062 WITH_PERL_VERSION=no \
1063 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
1064 --disable-silent-rules \
1067 %{!?with_apidocs:--without-apidocs} \
1068 --with-beecrypt=external \
1069 --with-bugreport="http://bugs.pld-linux.org/" \
1070 --with-bzip2=external \
1071 --with-db=external \
1073 --with-file=external \
1074 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
1076 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
1077 --with-lzma=external \
1078 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
1079 --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' \
1080 --without-path-versioned \
1081 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
1082 --with-popt=external \
1083 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
1084 %{!?with_python:--without-python} \
1085 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
1086 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
1087 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
1088 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
1089 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
1091 --with-xz=external \
1092 --with-zlib=external
1099 %{?with_apidocs:%{__make} apidocs}
1101 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
1102 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
1103 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
1104 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
1106 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
1107 echo "Error linking rpmdb tools!"
1110 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
1111 echo "Error linking rpmdb tools!"
1116 rm -rf $RPM_BUILD_ROOT
1117 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
1118 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
1120 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1122 %{__make} -j1 install \
1123 pkgconfigdir=%{_pkgconfigdir} \
1124 DESTDIR=$RPM_BUILD_ROOT
1126 # install platform macros
1127 for f in platform/*macros; do
1129 fn=${bn%.macros}/macros
1130 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
1134 %ifnarch %{ix86} %{x8664} x32
1135 rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
1136 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
1137 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
1138 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
1139 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
1140 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
1141 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
1144 %ifnarch %{x8664} x32
1145 rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
1146 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
1147 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
1148 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
1152 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
1155 rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
1156 rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
1157 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
1158 rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
1159 rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
1160 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
1161 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
1162 rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
1163 rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
1165 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1166 # first platform file entry can't contain regexps
1168 %{_target_cpu}-%{_target_vendor}-linux-gnux32
1170 %{_target_cpu}-%{_target_vendor}-linux
1174 x86_64-[^-]*-[Ll]inux(-gnu)?
1175 amd64-[^-]*-[Ll]inux(-gnu)?
1176 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1179 amd64-[^-]*-[Ll]inux(-gnu)?
1180 x86_64-[^-]*-[Ll]inux(-gnu)?
1181 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1184 ia32e-[^-]*-[Ll]inux(-gnu)?
1185 x86_64-[^-]*-[Ll]inux(-gnu)?
1188 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1189 x86_64-[^-]*-[Ll]inux(-gnu)?
1190 amd64-[^-]*-[Ll]inux(-gnu)?
1193 %ifarch athlon %{x8664} x32
1194 athlon-[^-]*-[Ll]inux(-gnu)?
1196 %ifarch pentium4 athlon %{x8664} x32
1197 pentium4-[^-]*-[Ll]inux(-gnu)?
1199 %ifarch pentium3 pentium4 athlon %{x8664} x32
1200 pentium3-[^-]*-[Ll]inux(-gnu)?
1202 %ifarch i686 pentium3 pentium4 athlon %{x8664} x32
1203 i686-[^-]*-[Ll]inux(-gnu)?
1205 %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
1206 i586-[^-]*-[Ll]inux(-gnu)?
1208 %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
1209 i486-[^-]*-[Ll]inux(-gnu)?
1211 %ifarch %{ix86} %{x8664} x32
1212 i386-[^-]*-[Ll]inux(-gnu)?
1216 alpha-[^-]*-[Ll]inux(-gnu)?
1220 ia64-[^-]*-[Ll]inux(-gnu)?
1224 powerpc64-[^-]*-[Ll]inux(-gnu)?
1225 ppc64-[^-]*-[Ll]inux(-gnu)?
1227 %ifarch %{ppc} ppc64
1228 powerpc-[^-]*-[Ll]inux(-gnu)?
1229 ppc-[^-]*-[Ll]inux(-gnu)?
1233 s390x-[^-]*-[Ll]inux(-gnu)?
1236 s390-[^-]*-[Ll]inux(-gnu)?
1240 sparc64-[^-]*-[Ll]inux(-gnu)?
1241 sparcv8-[^-]*-[Ll]inux(-gnu)?
1242 sparcv9-[^-]*-[Ll]inux(-gnu)?
1245 sparcv8-[^-]*-[Ll]inux(-gnu)?
1246 sparcv9-[^-]*-[Ll]inux(-gnu)?
1248 %ifarch sparc sparcv9 sparc64
1249 sparc-[^-]*-[Ll]inux(-gnu)?
1255 # Squash Extra Blank Lines
1256 %{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1258 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1259 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1260 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1261 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1262 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1263 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1264 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1265 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
1267 # not installed since 4.4.8 (-tools-perl subpackage)
1268 install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1270 install %{SOURCE1} doc/manual/groups
1271 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
1272 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1273 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
1274 install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1275 install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
1276 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
1277 cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
1278 install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
1279 install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
1280 install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
1282 install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
1284 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1286 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1287 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
1288 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1289 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1290 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1291 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1292 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1294 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1295 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1296 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1297 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1298 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1299 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
1301 install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1302 install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1303 install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
1305 # create macro loading wrappers for backward compatibility
1306 for m in gstreamer java mono perl php python; do
1307 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
1310 # moved to rpm-build-macros 1.699
1311 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1313 # for rpm -e|-U --repackage
1314 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1315 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1318 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1319 # move essential libs to /lib (libs that /bin/rpm links to)
1320 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
1321 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1322 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1325 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1326 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1329 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1330 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1332 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1335 # wrong location, not used anyway
1336 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1337 # utils dropped in 5.4 -- their manuals
1338 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
1339 # script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1340 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
1345 cp -a doc/manual manual
1346 %{__rm} -f manual/Makefile*
1349 rm -rf $RPM_BUILD_ROOT
1352 # this needs to be a dir
1353 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
1355 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1356 mkdir %{_sysconfdir}/rpm/sysinfo
1360 if [ -e /var/lib/rpm/Packages ] && \
1361 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
1362 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
1363 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
1365 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
1369 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1370 echo 'you should ignore it and restart poldek'
1372 %{_rpmlibdir}/bin/dbupgrade.sh
1375 %triggerpostun -- %{name} < 4.4.9-44
1376 %{_rpmlibdir}/hrmib-cache
1378 %post lib -p /sbin/ldconfig
1379 %postun lib -p /sbin/ldconfig
1382 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1384 %files -f %{name}.lang
1385 %defattr(644,root,root,755)
1386 %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
1388 %dir /etc/pki/rpm-gpg
1389 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1391 %attr(755,root,root) /bin/rpm
1393 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1394 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1395 %dir %{_sysconfdir}/rpm/sysinfo
1396 # these are ok to be replaced
1397 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1398 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1400 %{_mandir}/man8/rpm.8*
1401 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1402 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1403 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1404 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1405 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1408 %dir /var/lib/rpm/log
1409 %dir /var/lib/rpm/tmp
1410 %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
1411 %dir %attr(700,root,root) /var/spool/repackage
1413 /var/lock/rpm/transaction
1415 # exported package NVRA (stamped with install tid)
1416 # net-snmp hrSWInstalledName queries, bash-completions
1417 %dir /var/cache/hrmib
1420 %{_rpmlibdir}/rpmpopt*
1421 %{_rpmlibdir}/macros
1422 %dir %{_rpmlibdir}/macros.d
1423 %{_rpmlibdir}/macros.d/pld
1424 %{_rpmlibdir}/cpuinfo.yaml
1425 %{_rpmlibdir}/noarch-*
1426 %ifarch %{ix86} %{x8664} x32
1428 %{_rpmlibdir}/pentium*
1429 %{_rpmlibdir}/athlon*
1432 %{_rpmlibdir}/alpha*
1437 %ifarch mips mipsel mips64 mips64el
1443 %ifarch sparc sparc64
1444 %{_rpmlibdir}/sparc*
1446 %ifarch %{x8664} x32
1447 %{_rpmlibdir}/amd64*
1448 %{_rpmlibdir}/ia32e*
1449 %{_rpmlibdir}/x86_64*
1453 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1455 %dir %{_rpmlibdir}/bin
1456 %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1457 %attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
1458 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
1459 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
1460 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
1463 %defattr(644,root,root,755)
1464 %dir %{_sysconfdir}/rpm
1465 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1467 %attr(755,root,root) %{_bindir}/banner.sh
1468 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1469 %dir /var/lib/banner
1472 %defattr(644,root,root,755)
1473 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1474 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1475 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1476 %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
1477 %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
1478 %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
1481 %defattr(644,root,root,755)
1482 %attr(755,root,root) %{_libdir}/librpm.so
1483 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1484 %attr(755,root,root) %{_libdir}/librpmbuild.so
1485 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1486 %attr(755,root,root) %{_libdir}/librpmconstant.so
1487 %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
1488 %attr(755,root,root) %{_libdir}/librpmdb.so
1489 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1490 %attr(755,root,root) %{_libdir}/librpmio.so
1491 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1492 %attr(755,root,root) %{_libdir}/librpmmisc.so
1493 %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
1494 %{_libdir}/librpm*.la
1496 %{_pkgconfigdir}/*.pc
1499 %defattr(644,root,root,755)
1500 %{_libdir}/librpm*.a
1503 %defattr(644,root,root,755)
1504 %attr(755,root,root) %{_bindir}/rpm2cpio
1505 %attr(755,root,root) %{_bindir}/rpmconstant
1506 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1507 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1508 %attr(755,root,root) %{_rpmlibdir}/tgpg
1509 %attr(755,root,root) %{_rpmlibdir}/bin/chroot
1510 %attr(755,root,root) %{_rpmlibdir}/bin/cp
1511 %attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1512 %attr(755,root,root) %{_rpmlibdir}/bin/find
1513 %attr(755,root,root) %{_rpmlibdir}/bin/mgo
1514 %attr(755,root,root) %{_rpmlibdir}/bin/mtree
1515 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1516 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1517 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1518 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1520 %attr(755,root,root) %{_rpmlibdir}/bin/semodule
1521 %attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1523 %if %{without system_lua}
1524 %attr(755,root,root) %{_rpmlibdir}/bin/lua
1525 %attr(755,root,root) %{_rpmlibdir}/bin/luac
1526 %attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
1527 %attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
1529 %{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
1530 %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
1531 %{_mandir}/man8/rpm2cpio.8*
1532 %{_mandir}/man8/rpmconstant.8*
1533 %{_mandir}/man8/rpmdeps.8*
1534 %{_mandir}/man8/rpmmtree.8*
1535 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1536 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1537 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1538 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1541 %defattr(644,root,root,755)
1542 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1546 %defattr(644,root,root,755)
1547 %attr(755,root,root) %{_bindir}/rpm[ieu]
1548 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1552 %defattr(644,root,root,755)
1553 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1554 %attr(755,root,root) %{_rpmlibdir}/brp-*
1555 %attr(755,root,root) %{_rpmlibdir}/check-files
1556 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1557 %attr(755,root,root) %{_rpmlibdir}/cross-build
1558 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1559 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1560 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1561 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1562 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1563 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1564 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1565 # needs hacked pkg-config to return anything
1566 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1567 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1568 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
1569 %{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
1570 %attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1571 %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1572 %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1573 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1574 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1575 %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1576 %attr(755,root,root) %{_rpmlibdir}/bin/wget
1577 %attr(755,root,root) %{_rpmlibdir}/vcheck
1578 # not used yet ... these six depend on perl
1579 %attr(755,root,root) %{_rpmlibdir}/http.req
1580 # we always used scripts provided by mono-devel, maybe move them here
1581 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1582 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1584 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1585 # must be here for "Requires: rpm-*prov" to work
1586 %{_rpmlibdir}/macros.d/cmake
1587 %{_rpmlibdir}/macros.d/gstreamer
1588 %{_rpmlibdir}/macros.d/java
1589 %{_rpmlibdir}/macros.d/libtool
1590 %{_rpmlibdir}/macros.d/mono
1591 %{_rpmlibdir}/macros.d/perl
1592 %{_rpmlibdir}/macros.d/php
1593 %{_rpmlibdir}/macros.d/pkgconfig
1594 %{_rpmlibdir}/macros.d/python
1595 %{_rpmlibdir}/macros.d/ruby
1596 %{_rpmlibdir}/macros.d/selinux
1597 %{_rpmlibdir}/macros.d/tcl
1598 %{_rpmlibdir}/macros.rpmbuild
1600 %{_rpmlibdir}/macros.gstreamer
1601 %{_rpmlibdir}/macros.java
1602 %{_rpmlibdir}/macros.mono
1603 %{_rpmlibdir}/macros.perl
1604 %{_rpmlibdir}/macros.php
1605 %{_rpmlibdir}/macros.python
1607 %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1608 %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1610 %attr(755,root,root) %{_bindir}/gendiff
1611 %attr(755,root,root) %{_bindir}/rpmbuild
1613 %dir %{_rpmlibdir}/helpers
1614 %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
1616 %{_mandir}/man1/gendiff.1*
1617 %{_mandir}/man8/rpmbuild.8*
1618 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1619 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1620 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1623 %defattr(644,root,root,755)
1624 %attr(755,root,root) %{_rpmlibdir}/java-find-requires
1625 # needs jar (any jdk), jcf-dump (gcc-java) to work
1626 %attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1629 %defattr(644,root,root,755)
1630 %attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1631 %attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1634 %defattr(644,root,root,755)
1635 %attr(755,root,root) %{_rpmlibdir}/perl.*
1636 %attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1637 %attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1640 %defattr(644,root,root,755)
1641 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1642 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1645 %defattr(644,root,root,755)
1646 %attr(755,root,root) %{_rpmlibdir}/php.prov
1647 %attr(755,root,root) %{_rpmlibdir}/php.req
1648 %attr(755,root,root) %{_rpmlibdir}/php.req.php
1651 %files -n python-rpm
1652 %defattr(644,root,root,755)
1653 %dir %{py_sitedir}/rpm
1654 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1655 %{py_sitedir}/rpm/*.py[co]
1660 %defattr(644,root,root,755)