3 # - make key infrastructure code fallback from keyutils to plain mode in case keyctl
5 # - add macros for some ppc, mipsel, alpha and sparc
7 # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
10 %bcond_with static # build static rpm+rpmi
11 %bcond_without apidocs # don't generate documentation with doxygen
12 %bcond_without python # don't build python bindings
13 %bcond_without selinux # build without selinux support
14 %bcond_without suggest_tags # build without Suggest tag (bootstrapping)
15 %bcond_with db61 # use DB 6.1 instead of 5.2
16 %bcond_with neon # build with HTTP/WebDAV support (neon library)
17 %bcond_with sqlite # build with SQLite support
18 %bcond_with system_lua # use system lua
19 %bcond_without system_pcre # use system pcre
20 %bcond_with keyutils # build with keyutils support
21 # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc"
22 # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++"
23 # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E"
27 # Error: /lib64/librpmio-5.4.so: undefined symbol: sqlite3_enable_load_extension
28 %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR)
31 # versions of required libraries
33 %define reqdb_pkg db6.1
35 %define reqdb_pkgver 6.1.19
37 %define reqdb_pkg db5.2
39 %define reqdb_pkgver 5.2.36.0-4
41 %define reqpopt_ver 1.15
42 %define beecrypt_ver 2:4.2.0
45 Summary: RPM Package Manager
46 Summary(de.UTF-8): RPM Packet-Manager
47 Summary(es.UTF-8): Gestor de paquetes RPM
48 Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
49 Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
50 Summary(ru.UTF-8): Менеджер пакетов от RPM
51 Summary(uk.UTF-8): Менеджер пакетів від RPM
57 # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.15-0.20140824.src.rpm
58 Source0: %{name}-%{version}.tar.gz
59 # Source0-md5: 4067f83ca8b5bf1a21e443c0cff3efa0
60 # See README.cpu-os-macros how to update cpu-os-macros.a
61 Source100: cpu-os-macros.a
62 Source101: README.cpu-os-macros
63 Source1: %{name}.groups
64 Source2: macros.pld.in
65 Source3: %{name}-install-tree
66 Source4: %{name}-find-spec-bcond
67 Source5: %{name}-hrmib-cache
68 Source6: %{name}-groups-po.awk
69 Source7: %{name}-compress-doc
70 Source8: %{name}-php-provides
71 Source9: %{name}-php-requires
72 Source10: %{name}.sysinfo
74 Source12: %{name}-user_group.sh
75 Source13: %{name}.sysconfig
76 Source14: %{name}-java-requires
77 # http://svn.pld-linux.org/banner.sh/
79 Source16: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
80 # Source16-md5: 23914bb49fafe7153cee87126d966461
81 Source17: %{name}-mimetypedeps
82 Source18: macros.local
83 Source19: %{name}.noautocompressdoc
84 Source20: %{name}.noautoprov
85 Source21: %{name}.noautoprovfiles
86 Source22: %{name}.noautoreq
87 Source24: %{name}.noautoreqfiles
88 Source25: %{name}-php-requires.php
89 Source26: %{name}db_checkversion.c
91 Source28: %{name}db_reset.c
92 Source29: dbupgrade.sh
94 Source31: gem_helper.rb
95 Patch0: %{name}-branch.patch
96 Patch1: %{name}-man_pl.patch
97 Patch2: %{name}-popt-aliases.patch
98 Patch3: %{name}-nosetproctitle.patch
99 Patch4: %{name}-perl-macros.patch
100 Patch5: %{name}-perl-req-perlfile.patch
101 Patch6: %{name}-scripts-closefds.patch
102 Patch7: %{name}-php-macros.patch
103 Patch8: %{name}-gettext-in-header.patch
104 Patch9: %{name}-lua.patch
105 Patch10: %{name}-php-deps.patch
106 Patch11: %{name}-notsc.patch
107 Patch12: %{name}-hack-norpmlibdep.patch
108 Patch13: %{name}-dont-copy-descriptive-tags.patch
109 Patch14: %{name}-perl_req-INC_dirs.patch
110 Patch15: %{name}-debuginfo.patch
111 Patch16: vendor-pld.patch
112 Patch17: %{name}-old-fileconflicts-behaviour.patch
113 Patch18: %{name}-javadeps.patch
114 Patch19: %{name}-truncate-cvslog.patch
115 Patch20: %{name}-libtool-deps.patch
116 Patch21: %{name}-mimetype.patch
117 Patch22: %{name}-sparc64.patch
118 Patch23: %{name}-gendiff.patch
119 Patch24: openmp.patch
120 Patch25: %{name}-URPM-build-fix.patch
121 Patch26: %{name}-semanage.patch
122 Patch27: %{name}-helperEVR-noassert.patch
123 Patch28: %{name}-unglobal.patch
124 Patch29: %{name}-builddir-readlink.patch
125 Patch30: %{name}-changelog_order_check_nonfatal.patch
126 Patch31: %{name}-cleanbody.patch
127 Patch32: %{name}-dirdeps-macro.patch
128 Patch33: %{name}-installbeforeerase.patch
129 Patch34: %{name}-libmagic-locale.patch
130 Patch35: %{name}-namespace-compare.patch
131 Patch36: %{name}-popt-coreutils.patch
132 Patch37: %{name}-postun-nofail.patch
133 Patch38: %{name}-silence-RPM_CHAR_TYPE.patch
134 Patch39: %{name}-fix-missing-types-in-headers.patch
135 Patch40: %{name}-fix--p-interpreter-and-empty-script.patch
136 Patch41: %{name}-db_buffer_small.patch
137 Patch42: %{name}-pattern_Release.patch
138 Patch43: %{name}-fix-___build_pre-macro.patch
139 Patch44: %{name}-missing-patch-file-fails-build.patch
140 Patch45: %{name}-remove-misleading-missing-patch-message.patch
141 Patch46: %{name}-file-magic-can-be-mixed-case.patch
142 Patch47: %{name}-query-always-noisy.patch
143 Patch48: %{name}-verify-ghosts-broken-logic.patch
144 Patch49: %{name}-python-enable-compat-RPMSENSE.patch
145 Patch50: %{name}-dont-treat-gstreamer-modules-as-font.patch
146 Patch51: %{name}-gst-inspect-typo.patch
147 Patch52: %{name}-null-term-ascii-digest.patch
148 Patch53: %{name}-lua-enable-extra-libs.patch
149 Patch54: %{name}-fix-filedigests-verify.patch
150 Patch55: %{name}-disable-hmac-verify.patch
151 Patch56: %{name}-macros.patch
152 Patch57: %{name}-db5.2.patch
153 Patch58: %{name}-preserve-iterator.patch
154 Patch59: gcc6-stdlib.patch
155 Patch60: %{name}-python-sitescriptdir.patch
156 Patch61: %{name}-clean-docdir.patch
157 Patch62: %{name}-DB_CONFIG.patch
158 Patch63: %{name}-pythoneggs.patch
159 Patch64: %{name}-fix-compress-doc.patch
160 Patch65: %{name}-parseSpec-skip-empty-tags.patch
161 Patch66: %{name}-payload-use-hashed-inode.patch
162 Patch67: %{name}-repackage-dont-force-max-compression.patch
163 Patch70: python-%{name}sense-missingok.patch
164 Patch71: %{name}-changelog-encoding.patch
165 Patch72: %{name}-preserve-tag-type.patch
166 Patch74: %{name}-fix-internal-lua-build.patch
167 Patch75: %{name}-double_check_file_deps.patch
168 Patch77: %{name}-lua-expat.patch
169 Patch78: %{name}-double_check_unpackaged_subdirs.patch
170 Patch79: %{name}-rpmspec.patch
171 Patch80: %{name}-revert-gpg-argv-parsing.patch
172 Patch81: %{name}-perl-magic.patch
173 Patch82: %{name}-5.4.15-use-DSA-sig.patch
174 Patch83: %{name}-ignore-missing-macro-files.patch
176 Patch85: rpm-CVE-2013-6435.patch
177 Patch86: rpm-CVE-2014-8118.patch
178 Patch87: %{name}-file-output-for-ELF.patch
179 Patch88: %{name}-rpmtdnext.patch
180 Patch89: disable-header-verification.patch
181 Patch90: %{name}-cppcompat.patch
182 Patch91: py-disable-fetch.patch
183 Patch92: fast_python_deps.patch
184 Patch93: python2_explicit.patch
185 Patch94: do_not_write_before_macro_buffer.patch
186 Patch95: rpm-python-spec-header.patch
187 Patch96: skip-ldconfig-optimization.patch
189 # Patches imported from Mandriva
191 # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4
192 # would basically just mean backporting it..
193 Patch1000: %{name}-5.4.4-add-_specfile-macro.patch
194 # status: needs to be cleaned up and properly reviewed together with rest
195 # of the patches related to dependency generation
196 Patch1001: %{name}-5.4.9-avoid-dependencies-on-self.patch
197 # status: probably ready to merge
198 Patch1002: %{name}-5.4.4-pkgconfigdeps-check-path.patch
199 # status: probably okay to merge, but discuss on rpm-devel first
200 Patch1003: %{name}-5.4.4-glob-wildcards-for-loading-macro-files.patch
201 # status: needs to be discussed
202 Patch1004: %{name}-5.4.4-allow-installation-of-repackaged-rpms.patch
203 # status: ready to merge
204 Patch1005: %{name}-5.4.8-dont-show-suggests-with-requires.patch
205 # status: ready for merge
206 Patch1006: %{name}-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch
207 # status: probably okay to merge, but discuss on rpm-devel first
208 Patch1007: %{name}-5.4.10-duplicate_files_terminate_build.patch
209 # status: same as above
210 Patch1008: %{name}-5.4.10-unpackaged_subdirs_terminate_build.patch
212 # status: uncertain, might be okay to merge, discuss on rpm-devel first
213 Patch1009: %{name}-5.4.4-rpmbuild-withoutclean.patch
214 # no sense in having an additional dependency on 'pkgconfig' on all packages that
215 # have a pkgconfig file, it's not needed for them to be made useful and anything
216 # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways...
217 # status: might be okay to merge, but discuss on rpm-devel first
218 Patch1010: %{name}-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch
219 # status: ready for merge
220 Patch1011: %{name}-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch
221 # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not
222 # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created..
223 # status: needs to be discussed and investigated a bit better..
224 Patch1012: %{name}-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch
225 # status: probably okay to merge, but discuss on rpm-devel first
226 Patch1013: %{name}-5.4.10-files-listed-twice-terminates-build.patch
227 # status: probably okay to merge
228 Patch1014: %{name}-5.4.9-ruby1.9-fixes.patch
229 # status: keep locally
230 Patch1015: %{name}-5.4.9-keep-loading-script-macros.patch
231 # status: same as for other dep gen patches
232 Patch1016: %{name}-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch
234 Patch1017: %{name}-5.4.9-rpmfc-extract-dependencies-for-all-files.patch
235 # status: probably okay to merge
236 Patch1019: %{name}-5.4.5-python-export-spec-macros.patch
238 Patch1020: %{name}-5.4.9-font-provides.patch
240 Patch1021: %{name}-5.4.7-kmod-dependencies.patch
241 # status: probably okay to merge, discuss on rpm-devel first
242 Patch1022: %{name}-5.4.5-skip-dependencies-for-character-devices.patch
243 # status: probably okay to merge
244 Patch1024: %{name}-5.4.5-rpmfc-apply-python-coloring-from-magic.patch
245 # status: probably okay to merge
246 Patch1026: %{name}-5.4.10-dont-try-generate-rpmfc-dependencies-from-doc-files.patch
248 Patch1027: %{name}-5.4.7-fix-generation-of-ruby-abi-provides.patch
249 # crash reproducable with 'rpm -qa --triggers'
251 Patch1028: %{name}-5.4.7-hdrfmt-fix-unitialized-argv-element.patch
252 # status: same as for other dep gen patches
253 Patch1029: %{name}-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch
255 Patch1030: %{name}-5.4.7-fix-minor-memleaks.patch
257 Patch1031: %{name}-5.4.9-mire-fix-strings-lacking-null-terminator.patch
259 Patch1032: %{name}-5.4.9-rpmpython-fix-input.patch
261 Patch1033: %{name}-5.4.7-no-seqid_init-on-rdonly-database.patch
262 # status: probably ready for merging
263 Patch1034: %{name}-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.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 # warning: introduces memory leak
292 Patch1043: %{name}-5.4.12-copy-Value-string.patch
293 Patch1044: %{name}-5.4.12-fix-rpmlua-print.patch
294 Patch1045: %{name}-5.4.12-fix-rpmpython-module-import-init.patch
295 Patch1046: %{name}-5.4.12-truncate-output-buffer-after-use.patch
296 Patch1047: %{name}-5.4.13-perl-bindings-do-not-use-xmalloc.patch
298 # there's a rpmdbchk tool I wrote a while back, which might help you. although
299 # the incidents it's able to deal with is rather limited ATM... it might help
300 # you out, if not and you'll be able to solve yer problem, you could take a
301 # stab at adding support for fixing your specific problem to the util ;)
302 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-rpmdbchk.patch
303 Patch1048: %{name}-5.4.14-rpmdbchk.patch
304 # https://abf.io/openmandriva/rpm/raw/master/rpm-5.4.14-no-assert-abort-with-broken-headers.patch
305 Patch1049: %{name}-5.4.14-no-assert-abort-with-broken-headers.patch
307 Patch1050: python-libx32.patch
309 URL: http://rpm5.org/
310 BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
312 BuildRequires: sqlite3-devel
314 BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
316 BuildRequires: autoconf >= 2.63
317 BuildRequires: automake >= 1.4
318 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
319 BuildRequires: bzip2-devel >= 1.0.2-17
320 BuildRequires: elfutils-devel >= 0.108
321 BuildRequires: gettext-tools >= 0.19.2
322 %{?with_keyutils:BuildRequires: keyutils-devel}
323 BuildRequires: libmagic-devel
325 BuildRequires: libselinux-devel >= 2.1.0
326 BuildRequires: libsemanage-devel >= 2.1.0
327 BuildRequires: libsepol-devel >= 2.1.0
329 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
330 BuildRequires: libstdc++-devel
331 BuildRequires: libtool >= 1:1.4.2-9
333 BuildRequires: libxml2-devel
334 BuildRequires: neon-devel >= 0.25.5
336 %{?with_system_lua:BuildRequires: lua52-devel >= 5.2.2}
337 BuildRequires: ossp-uuid-devel
338 BuildRequires: patch >= 2.2
339 BuildRequires: popt-devel >= %{reqpopt_ver}
340 %{?with_python:BuildRequires: python-devel >= 1:2.3}
341 BuildRequires: python-modules >= 1:2.3
342 %{?with_python:BuildRequires: rpm-pythonprov}
344 BuildRequires: xz-devel
345 BuildRequires: zlib-devel
347 BuildRequires: doxygen
348 BuildRequires: ghostscript
349 BuildRequires: graphviz
350 BuildRequires: tetex-pdftex
353 # Require static library only for static build
354 BuildRequires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
355 BuildRequires: beecrypt-static >= %{beecrypt_ver}
356 BuildRequires: bzip2-static >= 1.0.2-17
357 BuildRequires: elfutils-static
358 BuildRequires: glibc-static >= 2.2.94
359 BuildRequires: libmagic-static
361 BuildRequires: libselinux-static >= 2.1.0
362 BuildRequires: libsemanage-static >= 2.1.0
363 BuildRequires: libsepol-static >= 2.1.0
365 BuildRequires: popt-static >= %{reqpopt_ver}
366 BuildRequires: zlib-static
368 Requires(posttrans): coreutils
369 Requires: %{name}-base = %{version}-%{release}
370 Requires: %{name}-lib = %{version}-%{release}
371 Requires: beecrypt >= %{beecrypt_ver}
372 Requires: popt >= %{reqpopt_ver}
373 Provides: rpm-db-ver = %{reqdb_ver}
374 Obsoletes: rpm-getdeps
375 %{!?with_static:Obsoletes: rpm-utils-static}
376 Conflicts: glibc < 2.2.92
377 # db4.6 poldek needed
378 Conflicts: poldek < 0.21-0.20070703.00.3
379 # segfaults with lzma 0.42.2
380 Conflicts: lzma-libs < 4.999.3
381 Conflicts: util-vserver < 0.30.216-1.pre3034.7
382 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
384 %define _binary_payload w9.gzdio
386 # don't require very fresh rpm.macros to build
387 %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,}
388 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
389 %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4
390 %define ppc ppc ppc7400 ppc7450
391 %define x8664 amd64 ia32e x86_64
393 # stabilize new build environment
395 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
396 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
397 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
399 # x32 is a very special case
400 %define __newcc %{?force_cc}%{!?force_cc:x86_64-pld-linux-gnux32-gcc}
401 %define __newcxx %{?force_cxx}%{!?force_cxx:x86_64-pld-linux-gnux32-g++}
402 %define __newcpp %{?force_cpp}%{!?force_cpp:x86_64-pld-linux-gnux32-gcc -E}
405 %define _rpmlibdir /usr/lib/rpm
406 %define _noautocompressdoc RPM-GPG-KEY
409 RPM is a powerful package manager, which can be used to build,
410 install, query, verify, update, and uninstall individual software
411 packages. A package consists of an archive of files, and package
412 information, including name, version, and description.
414 %description -l de.UTF-8
415 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
416 Installation, Anfrage, Verifizierung, Aktualisierung und
417 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
418 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
421 %description -l es.UTF-8
422 RPM es un poderoso administrador de paquetes, que puede ser usado para
423 construir, instalar, pesquisar, verificar, actualizar y desinstalar
424 paquetes individuales de software. Un paquete consiste en un
425 almacenaje de archivos, y información sobre el paquete, incluyendo
426 nombre, versión y descripción.
428 %description -l pl.UTF-8
429 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
430 przebudowanie, instalację czy weryfikację dowolnego pakietu.
431 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
432 plików wchodzących w skład pakietu, zależności od innych pakietów, są
433 przechowywane w bazie danych i można je uzyskać za pomocą opcji
434 odpytywania programu rpm.
436 %description -l pt_BR.UTF-8
437 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
438 construir, instalar, pesquisar, verificar, atualizar e desinstalar
439 pacotes individuais de software. Um pacote consiste de um conjunto de
440 arquivos e informações adicionais, incluindo nome, versão e descrição
441 do pacote, permissões dos arquivos, etc.
443 %description -l ru.UTF-8
444 RPM - это мощный менеджер пакетов, который может быть использован для
445 создания, инсталляции, запросов (query), проверки, обновления и
446 удаления программных пакетов. Пакет состоит из файлового архива и
447 служебной информации, включающей название, версию, описание и другие
450 %description -l uk.UTF-8
451 RPM - це потужний менеджер пакетів, що може бути використаний для
452 створення, інсталяції, запитів (query), перевірки, поновлення та
453 видалення програмних пакетів. Пакет складається з файлового архіву та
454 службової інформації, що містить назву, версію, опис та іншу
455 інформацію про пакет.
458 Summary: RPM base package - scripts used by rpm packages themselves
459 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
462 Obsoletes: rpm-scripts
463 Obsoletes: vserver-rpm
466 The RPM base package contains scripts used by rpm packages themselves.
468 - scripts for adding/removing groups and users needed for rpm
470 - banner.sh to display %%banner messages from rpm scriptlets.
472 %description base -l pl.UTF-8
473 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
475 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
476 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
479 Summary: RPMs library
480 Summary(pl.UTF-8): Biblioteki RPM-a
482 Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
484 Requires: sqlite3 >= %{sqlite_build_version}
486 Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
488 Requires: beecrypt >= %{beecrypt_ver}
489 Requires: libmagic >= 1.15-2
490 %{?with_selinux:Requires: libselinux >= 2.1.0}
491 Requires: popt >= %{reqpopt_ver}
493 # avoid SEGV caused by mixed db versions
494 Conflicts: poldek < 0.18.1-16
499 %description lib -l pl.UTF-8
503 Summary: Header files for rpm libraries
504 Summary(de.UTF-8): Header-Dateien für rpm Libraries
505 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
506 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
507 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
508 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
509 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
510 Group: Development/Libraries
511 Requires: %{name}-lib = %{version}-%{release}
512 Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
513 Requires: beecrypt-devel >= %{beecrypt_ver}
514 Requires: bzip2-devel
515 Requires: elfutils-devel
516 %{?with_keyutils:Requires: keyutils-devel}
517 Requires: libmagic-devel
519 Requires: libselinux-devel
520 Requires: libsemanage-devel
521 Requires: libsepol-devel
523 Requires: popt-devel >= %{reqpopt_ver}
527 The RPM packaging system includes C libraries that make it easy to
528 manipulate RPM packages and databases. They are intended to ease the
529 creation of graphical package managers and other tools that need
530 intimate knowledge of RPM packages. This package contains header files
533 %description devel -l de.UTF-8
534 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
535 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
536 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
537 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
539 %description devel -l es.UTF-8
540 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
541 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
542 facilitar la creación de administradores gráficos de paquetes y otras
543 herramientas que necesiten un conocimiento profundo de paquetes RPM.
545 %description devel -l pl.UTF-8
546 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
547 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
548 graficznych programów zarządzających pakietami oraz innych narzędzi,
549 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
550 zawiera pliki nagłówkowe wspomnianych bibliotek.
552 %description devel -l pt_BR.UTF-8
553 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
554 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
555 facilitar a criação de gerenciadores gráficos de pacotes e outras
556 ferramentas que precisem de conhecimento profundo de pacotes RPM.
558 %description devel -l ru.UTF-8
559 Система управления пакетами RPM содержит библиотеку C, которая
560 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
561 Эта библиотека предназначена для облегчения создания графических
562 пакетных менеджеров и других утилит, которым необходимо работать с
565 %description devel -l uk.UTF-8
566 Система керування пакетами RPM містить бібліотеку C, котра спрощує
567 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
568 призначена для полегшення створення графічних пакетних менеджерів та
569 інших утиліт, що працюють з пакетами RPM.
572 Summary: RPM static libraries
573 Summary(de.UTF-8): RPMs statische Libraries
574 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
575 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
576 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
577 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
578 Group: Development/Libraries
579 Requires: %{name}-devel = %{version}-%{release}
580 Requires: %{reqdb_pkg}-static >= %{reqdb_pkgver}
581 Requires: beecrypt-static >= %{beecrypt_ver}
582 Requires: bzip2-static
583 Requires: elfutils-static
584 %{?with_keyutils:Requires: keyutils-static}
585 Requires: libmagic-static
587 Requires: libselinux-static
588 Requires: libsemanage-static
589 Requires: libsepol-static
591 Requires: popt-static >= %{reqpopt_ver}
592 Requires: zlib-static
595 RPM static libraries.
597 %description static -l de.UTF-8
598 RPMs statische Libraries.
600 %description static -l pl.UTF-8
601 Biblioteki statyczne RPM-a.
603 %description static -l pt_BR.UTF-8
604 Bibliotecas estáticas para desenvolvimento.
606 %description static -l ru.UTF-8
607 Система управления пакетами RPM содержит библиотеку C, которая
608 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
609 Это статическая библиотека RPM.
611 %description static -l uk.UTF-8
612 Система керування пакетами RPM містить бібліотеку C, котра спрощує
613 роботу з пакетами RPM та відповідними базами даних. Це статична
617 Summary: Additional utilities for managing RPM packages and database
618 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
619 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
620 Group: Applications/File
621 Requires: %{name} = %{version}-%{release}
622 Requires: popt >= %{reqpopt_ver}
623 %if %{with suggest_tags}
627 Conflicts: filesystem-debuginfo < 3.0-16
630 Additional utilities for managing RPM packages and database.
632 %description utils -l de.UTF-8
633 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
635 %description utils -l pl.UTF-8
636 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
639 Summary: Additional utilities for managing RPM packages and database
640 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
641 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
642 Group: Applications/File
643 Requires: %{name}-utils = %{version}-%{release}
644 Requires: popt >= %{reqpopt_ver}
646 %description utils-perl
647 Additional utilities for managing RPM packages and database.
649 %description utils-perl -l de.UTF-8
650 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
652 %description utils-perl -l pl.UTF-8
653 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
655 %package utils-static
656 Summary: Static rpm utilities
657 Summary(pl.UTF-8): Statyczne narzędzia rpm
658 Group: Applications/System
659 Requires: %{name} = %{version}-%{release}
661 %description utils-static
662 Static rpm utilities for repairing system in case something with
663 shared libraries used by rpm become broken. Currently it contains rpmi
664 binary, which can be used to install/upgrade/remove packages without
665 using shared libraries (well, in fact with exception of NSS modules).
667 %description utils-static -l pl.UTF-8
668 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
669 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
670 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
671 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
672 (z wyjątkiem modułów NSS).
675 Summary: Scripts for building binary RPM packages
676 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
677 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
678 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
679 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
680 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
681 Group: Applications/File
682 Requires(pretrans): coreutils
683 Requires(pretrans): findutils
684 Requires: %{name}-build-macros >= 1.712
685 Requires: %{name}-utils = %{version}-%{release}
689 Requires: chrpath >= 0.10-4
693 Requires: file >= 4.17
697 Requires: gcc >= 3.0.3
701 Requires: glibc-devel
708 Requires: tar >= 1:1.22
712 Provides: rpmbuild(monoautodeps)
713 Provides: rpmbuild(noauto) = 3
715 Conflicts: automake < 1:1.7.9-2
716 Conflicts: libtool < 2:1.5-13
720 Scripts for building binary RPM packages.
722 %description build -l de.UTF-8
723 Scripts fürs Bauen binärer RPM-Pakete.
725 %description build -l pl.UTF-8
726 Skrypty pomocnicze do budowania binarnych RPM-ów.
728 %description build -l pt_BR.UTF-8
729 Este pacote contém scripts e programas executáveis que são usados para
730 construir pacotes usando o RPM.
732 %description build -l ru.UTF-8
733 Различные вспомогательные скрипты и исполняемые программы, которые
734 используются для сборки RPM'ов.
736 %description build -l uk.UTF-8
737 Різноманітні допоміжні скрипти та утиліти, які використовуються для
741 Summary: Additional utilities for checking Java provides/requires in RPM packages
742 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
743 Group: Applications/File
744 Requires: %{name} = %{version}-%{release}
746 Requires: findutils >= 1:4.2.26
750 %description javaprov
751 Additional utilities for checking Java provides/requires in RPM
754 %description javaprov -l pl.UTF-8
755 Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
759 Summary: Additional utilities for checking Perl provides/requires in RPM packages
760 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
761 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
762 Group: Applications/File
763 Requires: %{name} = %{version}-%{release}
764 Requires: perl-Encode
766 Requires: perl-modules
768 %description perlprov
769 Additional utilities for checking Perl provides/requires in RPM
772 %description perlprov -l de.UTF-8
773 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
775 %description perlprov -l pl.UTF-8
776 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
780 Summary: Python macros, which simplifies creation of RPM packages with Python software
781 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
782 Group: Applications/File
783 Requires: %{name} = %{version}-%{release}
785 Requires: python-setuptools
786 Requires: python-modules
788 %description pythonprov
789 Python macros, which simplifies creation of RPM packages with Python
792 %description pythonprov -l pl.UTF-8
793 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
796 %package php-pearprov
797 Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages
798 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
799 Group: Applications/File
800 Requires: %{name} = %{version}-%{release}
802 Suggests: php-pear-PHP_CompatInfo
804 %description php-pearprov
805 Additional utilities for checking PHP PEAR provides/requires in RPM
808 %description php-pearprov -l pl.UTF-8
809 Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
813 Summary: Ruby tools, which simplify creation of RPM packages with Ruby software
814 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
815 Group: Applications/File
816 Requires: %{name} = %{version}-%{release}
818 Requires: ruby-modules
819 Requires: ruby-rubygems
821 %description rubyprov
822 Ruby tools, which simplifies creation of RPM packages with Ruby
825 %description rubyprov -l pl.UTF-8
826 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
829 %package -n python-rpm
830 Summary: Python interface to RPM library
831 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
832 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
833 Group: Development/Languages/Python
834 Requires: %{name} = %{version}-%{release}
836 Obsoletes: rpm-python
838 %description -n python-rpm
839 The rpm-python package contains a module which permits applications
840 written in the Python programming language to use the interface
841 supplied by RPM (RPM Package Manager) libraries.
843 This package should be installed if you want to develop Python
844 programs that will manipulate RPM packages and databases.
846 %description -n python-rpm -l pl.UTF-8
847 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
848 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
850 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
851 Pythonie programy manipulujące pakietami i bazami danych rpm.
853 %description -n python-rpm -l pt_BR.UTF-8
854 O pacote rpm-python contém um módulo que permite que aplicações
855 escritas em Python utilizem a interface fornecida pelas bibliotecas
856 RPM (RPM Package Manager).
858 Esse pacote deve ser instalado se você quiser desenvolver programas em
859 Python para manipular pacotes e bancos de dados RPM.
862 Summary: RPM API documentation and guides
863 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
865 %if "%{_rpmversion}" >= "5"
870 Documentation for RPM API and guides in HTML format generated from rpm
873 %description apidocs -l pl.UTF-8
874 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
875 źrodeł RPM-a przez doxygen.
878 %setup -q -n %{name}-%{version}%{?subver}
893 %{?with_system_lua:%patch9 -p1}
896 # enable TSC for capable archs
930 %{?with_db61:%patch41 -p1}
946 %{!?with_db61:%patch57 -p1}
1014 # don't delete, may be usefull if jbj descides to enable this again
1034 install %{SOURCE2} macros/pld.in
1035 install %{SOURCE8} scripts/php.prov.in
1036 install %{SOURCE9} scripts/php.req.in
1037 install %{SOURCE11} scripts/perl.prov.in
1038 cp -p %{SOURCE30} scripts/rubygems.rb
1039 cp -p %{SOURCE31} scripts/gem_helper.rb
1041 rm scripts/find-php*
1043 %{__mv} -f scripts/perl.req{,.in}
1045 # generate Group translations to *.po
1046 awk -f %{SOURCE6} %{SOURCE1}
1048 install %{SOURCE26} tools/rpmdb_checkversion.c
1049 install %{SOURCE28} tools/rpmdb_reset.c
1051 for extlib in beecrypt neon %{?with_system_pcre:pcre} popt; do
1052 [ -d $extlib ] && %{__rm} -r $extlib
1063 # rpm checks for CPU type at runtime, but it looks better
1065 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
1066 -e 's|@host_cpu@|%{_target_cpu}|' \
1067 -e 's|@host_os@|%{_target_os}|' \
1070 %{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"}
1071 # pass CC and CXX too in case of building with some older configure macro
1076 WITH_PERL_VERSION=no \
1077 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
1078 --disable-silent-rules \
1081 %{!?with_apidocs:--without-apidocs} \
1082 --with-beecrypt=external \
1083 --with-bugreport="http://bugs.pld-linux.org/" \
1084 --with-bzip2=external \
1085 --with-db=external \
1087 --with-file=external \
1088 --with-keyutils=%{?with_keyutils:external}%{!?with_keyutils:no} \
1090 --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \
1091 --with-lzma=external \
1092 --with-neon=%{?with_neon:external}%{!?with_neon:no} \
1093 --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' \
1094 --without-path-versioned \
1095 --with-pcre=%{!?with_system_pcre:internal}%{?with_system_pcre:external} \
1096 --with-popt=external \
1097 %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \
1098 %{!?with_python:--without-python} \
1099 --with-selinux=%{!?with_selinux:no}%{?with_selinux:external} \
1100 --with-semanage=%{!?with_selinux:no}%{?with_selinux:external} \
1101 --with-sepol=%{!?with_selinux:no}%{?with_selinux:external} \
1102 --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \
1103 --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \
1105 --with-xz=external \
1106 --with-zlib=external
1113 %{?with_apidocs:%{__make} apidocs}
1115 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
1116 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
1117 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
1118 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
1120 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
1121 echo "Error linking rpmdb tools!"
1124 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
1125 echo "Error linking rpmdb tools!"
1130 rm -rf $RPM_BUILD_ROOT
1131 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \
1132 $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg}
1134 install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1136 %{__make} -j1 install \
1137 pkgconfigdir=%{_pkgconfigdir} \
1138 DESTDIR=$RPM_BUILD_ROOT
1140 # install platform macros
1141 for f in platform/*macros; do
1143 fn=${bn%.macros}/macros
1144 install -m644 $f -D %{buildroot}%{_rpmlibdir}/$fn
1148 %ifnarch %{ix86} %{x8664} x32
1149 rm $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros
1150 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros
1151 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros
1152 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros
1153 rm $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros
1154 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros
1155 rm $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros
1158 %ifnarch %{x8664} x32
1159 rm $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros
1160 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros
1161 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x32-linux/macros
1162 rm $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros
1166 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros
1169 rm $RPM_BUILD_ROOT%{_rpmlibdir}/alpha*-linux/macros
1170 rm $RPM_BUILD_ROOT%{_rpmlibdir}/arm*-linux/macros
1171 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ia64-linux/macros
1172 rm $RPM_BUILD_ROOT%{_rpmlibdir}/k6-linux/macros
1173 rm $RPM_BUILD_ROOT%{_rpmlibdir}/mips*-linux/macros
1174 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc*series-linux/macros
1175 rm $RPM_BUILD_ROOT%{_rpmlibdir}/ppc64*-linux/macros
1176 rm $RPM_BUILD_ROOT%{_rpmlibdir}/s390*-linux/macros
1177 rm $RPM_BUILD_ROOT%{_rpmlibdir}/sparc*-linux/macros
1179 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1180 # first platform file entry can't contain regexps
1182 %{_target_cpu}-%{_target_vendor}-linux-gnux32
1184 %{_target_cpu}-%{_target_vendor}-linux
1188 x86_64-[^-]*-[Ll]inux(-gnu)?
1189 amd64-[^-]*-[Ll]inux(-gnu)?
1190 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1193 amd64-[^-]*-[Ll]inux(-gnu)?
1194 x86_64-[^-]*-[Ll]inux(-gnu)?
1195 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1198 ia32e-[^-]*-[Ll]inux(-gnu)?
1199 x86_64-[^-]*-[Ll]inux(-gnu)?
1202 x32-[^-]*-[Ll]inux(-gnu(x32)?)?
1203 x86_64-[^-]*-[Ll]inux(-gnu)?
1204 amd64-[^-]*-[Ll]inux(-gnu)?
1207 %ifarch athlon %{x8664} x32
1208 athlon-[^-]*-[Ll]inux(-gnu)?
1210 %ifarch pentium4 athlon %{x8664} x32
1211 pentium4-[^-]*-[Ll]inux(-gnu)?
1213 %ifarch pentium3 pentium4 athlon %{x8664} x32
1214 pentium3-[^-]*-[Ll]inux(-gnu)?
1216 %ifarch i686 pentium3 pentium4 athlon %{x8664} x32
1217 i686-[^-]*-[Ll]inux(-gnu)?
1219 %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} x32
1220 i586-[^-]*-[Ll]inux(-gnu)?
1222 %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} x32
1223 i486-[^-]*-[Ll]inux(-gnu)?
1225 %ifarch %{ix86} %{x8664} x32
1226 i386-[^-]*-[Ll]inux(-gnu)?
1230 alpha-[^-]*-[Ll]inux(-gnu)?
1234 ia64-[^-]*-[Ll]inux(-gnu)?
1238 powerpc64-[^-]*-[Ll]inux(-gnu)?
1239 ppc64-[^-]*-[Ll]inux(-gnu)?
1241 %ifarch %{ppc} ppc64
1242 powerpc-[^-]*-[Ll]inux(-gnu)?
1243 ppc-[^-]*-[Ll]inux(-gnu)?
1247 s390x-[^-]*-[Ll]inux(-gnu)?
1250 s390-[^-]*-[Ll]inux(-gnu)?
1254 sparc64-[^-]*-[Ll]inux(-gnu)?
1255 sparcv8-[^-]*-[Ll]inux(-gnu)?
1256 sparcv9-[^-]*-[Ll]inux(-gnu)?
1259 sparcv8-[^-]*-[Ll]inux(-gnu)?
1260 sparcv9-[^-]*-[Ll]inux(-gnu)?
1262 %ifarch sparc sparcv9 sparc64
1263 sparc-[^-]*-[Ll]inux(-gnu)?
1269 # Squash Extra Blank Lines
1270 %{__sed} -i -e '/./,/^$/!d' $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
1272 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
1273 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
1274 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
1275 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
1276 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.a
1277 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/lib/liblua.la
1278 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-provides
1279 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/mono-find-requires
1281 # not installed since 4.4.8 (-tools-perl subpackage)
1282 install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
1284 install %{SOURCE1} doc/manual/groups
1285 install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
1286 install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
1287 install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
1288 install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
1289 install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
1290 install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir}
1291 cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
1292 install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
1293 install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
1294 install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
1296 install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
1298 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
1300 install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
1301 install %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
1302 install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
1303 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
1304 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
1305 install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
1306 install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
1308 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
1309 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
1310 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
1311 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
1312 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
1313 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
1315 install tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1316 install tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/bin
1317 install %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/bin/dbupgrade.sh
1319 # create macro loading wrappers for backward compatibility
1320 for m in gstreamer java mono perl php python; do
1321 echo "%%{load:%{_rpmlibdir}/macros.d/$m}" >$RPM_BUILD_ROOT%{_rpmlibdir}/macros.$m
1324 # moved to rpm-build-macros 1.699
1325 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d/kernel
1327 # for rpm -e|-U --repackage
1328 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1329 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1332 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1333 # move essential libs to /lib (libs that /bin/rpm links to)
1334 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do
1335 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1336 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1339 # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio
1340 mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio
1343 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1344 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1346 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1349 # wrong location, not used anyway
1350 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1351 # utils dropped in 5.4 -- their manuals
1352 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1
1353 # script obsoleted by /usr/lib/rpm/bin/dbconvert binary
1354 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh
1359 cp -a doc/manual manual
1360 %{__rm} -f manual/Makefile*
1363 rm -rf $RPM_BUILD_ROOT
1366 # this needs to be a dir
1367 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
1369 mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
1370 mkdir %{_sysconfdir}/rpm/sysinfo
1374 if [ -e /var/lib/rpm/Packages ] && \
1375 ! %{_rpmlibdir}/bin/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
1376 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
1377 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
1379 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
1383 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
1384 echo 'you should ignore it and restart poldek'
1386 %{_rpmlibdir}/bin/dbupgrade.sh
1389 %triggerpostun -- %{name} < 4.4.9-44
1390 %{_rpmlibdir}/hrmib-cache
1392 %post lib -p /sbin/ldconfig
1393 %postun lib -p /sbin/ldconfig
1396 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1398 %files -f %{name}.lang
1399 %defattr(644,root,root,755)
1400 %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/*
1402 %dir /etc/pki/rpm-gpg
1403 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
1405 %attr(755,root,root) /bin/rpm
1407 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1408 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1409 %dir %{_sysconfdir}/rpm/sysinfo
1410 # these are ok to be replaced
1411 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1412 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1414 %{_mandir}/man8/rpm.8*
1415 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1416 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1417 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1418 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1419 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1422 %dir /var/lib/rpm/log
1423 %dir /var/lib/rpm/tmp
1424 %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG
1425 %dir %attr(700,root,root) /var/spool/repackage
1427 /var/lock/rpm/transaction
1429 # exported package NVRA (stamped with install tid)
1430 # net-snmp hrSWInstalledName queries, bash-completions
1431 %dir /var/cache/hrmib
1434 %{_rpmlibdir}/rpmpopt*
1435 %{_rpmlibdir}/macros
1436 %dir %{_rpmlibdir}/macros.d
1437 %{_rpmlibdir}/macros.d/pld
1438 %{_rpmlibdir}/cpuinfo.yaml
1439 %{_rpmlibdir}/noarch-*
1440 %ifarch %{ix86} %{x8664} x32
1442 %{_rpmlibdir}/pentium*
1443 %{_rpmlibdir}/athlon*
1446 %{_rpmlibdir}/alpha*
1451 %ifarch mips mipsel mips64 mips64el
1457 %ifarch sparc sparc64
1458 %{_rpmlibdir}/sparc*
1460 %ifarch %{x8664} x32
1461 %{_rpmlibdir}/amd64*
1462 %{_rpmlibdir}/ia32e*
1463 %{_rpmlibdir}/x86_64*
1467 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1469 %dir %{_rpmlibdir}/bin
1470 %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert
1471 %attr(755,root,root) %{_rpmlibdir}/bin/dbupgrade.sh
1472 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_checkversion
1473 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdb_reset
1474 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdbchk
1477 %defattr(644,root,root,755)
1478 %dir %{_sysconfdir}/rpm
1479 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1481 %attr(755,root,root) %{_bindir}/banner.sh
1482 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1483 %dir /var/lib/banner
1486 %defattr(644,root,root,755)
1487 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1488 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1489 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1490 %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so
1491 %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so
1492 %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so
1495 %defattr(644,root,root,755)
1496 %attr(755,root,root) %{_libdir}/librpm.so
1497 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1498 %attr(755,root,root) %{_libdir}/librpmbuild.so
1499 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1500 %attr(755,root,root) %{_libdir}/librpmconstant.so
1501 %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so
1502 %attr(755,root,root) %{_libdir}/librpmdb.so
1503 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1504 %attr(755,root,root) %{_libdir}/librpmio.so
1505 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1506 %attr(755,root,root) %{_libdir}/librpmmisc.so
1507 %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so
1508 %{_libdir}/librpm*.la
1510 %{_pkgconfigdir}/*.pc
1513 %defattr(644,root,root,755)
1514 %{_libdir}/librpm*.a
1517 %defattr(644,root,root,755)
1518 %attr(755,root,root) %{_bindir}/rpm2cpio
1519 %attr(755,root,root) %{_bindir}/rpmconstant
1520 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1521 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1522 %attr(755,root,root) %{_rpmlibdir}/tgpg
1523 %attr(755,root,root) %{_rpmlibdir}/bin/chroot
1524 %attr(755,root,root) %{_rpmlibdir}/bin/cp
1525 %attr(755,root,root) %{_rpmlibdir}/bin/debugedit
1526 %attr(755,root,root) %{_rpmlibdir}/bin/find
1527 %attr(755,root,root) %{_rpmlibdir}/bin/mgo
1528 %attr(755,root,root) %{_rpmlibdir}/bin/mtree
1529 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache
1530 %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp
1531 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps
1532 %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest
1534 %attr(755,root,root) %{_rpmlibdir}/bin/semodule
1535 %attr(755,root,root) %{_rpmlibdir}/bin/spooktool
1537 %if %{without system_lua}
1538 %attr(755,root,root) %{_rpmlibdir}/bin/lua
1539 %attr(755,root,root) %{_rpmlibdir}/bin/luac
1540 %attr(755,root,root) %{_rpmlibdir}/bin/rpmlua
1541 %attr(755,root,root) %{_rpmlibdir}/bin/rpmluac
1543 %{?with_keyutils:%attr(755,root,root) %{_rpmlibdir}/bin/rpmkey}
1544 %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo
1545 %{_mandir}/man8/rpm2cpio.8*
1546 %{_mandir}/man8/rpmconstant.8*
1547 %{_mandir}/man8/rpmdeps.8*
1548 %{_mandir}/man8/rpmmtree.8*
1549 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1550 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1551 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1552 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1555 %defattr(644,root,root,755)
1556 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1560 %defattr(644,root,root,755)
1561 %attr(755,root,root) %{_bindir}/rpm[ieu]
1562 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1566 %defattr(644,root,root,755)
1567 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1568 %attr(755,root,root) %{_rpmlibdir}/brp-*
1569 %attr(755,root,root) %{_rpmlibdir}/check-files
1570 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1571 %attr(755,root,root) %{_rpmlibdir}/cross-build
1572 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1573 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1574 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1575 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1576 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1577 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1578 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1579 # needs hacked pkg-config to return anything
1580 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1581 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl
1582 %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl
1583 %{!?with_sqlite:%attr(755,root,root) %{_rpmlibdir}/bin/dbsql}
1584 %attr(755,root,root) %{_rpmlibdir}/bin/install-sh
1585 %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs
1586 %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec
1587 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspec
1588 %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump
1589 %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3
1590 %attr(755,root,root) %{_rpmlibdir}/bin/wget
1591 %attr(755,root,root) %{_rpmlibdir}/vcheck
1592 # not used yet ... these six depend on perl
1593 %attr(755,root,root) %{_rpmlibdir}/http.req
1594 # we always used scripts provided by mono-devel, maybe move them here
1595 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1596 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1598 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1599 # must be here for "Requires: rpm-*prov" to work
1600 %{_rpmlibdir}/macros.d/cmake
1601 %{_rpmlibdir}/macros.d/gstreamer
1602 %{_rpmlibdir}/macros.d/java
1603 %{_rpmlibdir}/macros.d/libtool
1604 %{_rpmlibdir}/macros.d/mono
1605 %{_rpmlibdir}/macros.d/perl
1606 %{_rpmlibdir}/macros.d/php
1607 %{_rpmlibdir}/macros.d/pkgconfig
1608 %{_rpmlibdir}/macros.d/python
1609 %{_rpmlibdir}/macros.d/ruby
1610 %{_rpmlibdir}/macros.d/selinux
1611 %{_rpmlibdir}/macros.d/tcl
1612 %{_rpmlibdir}/macros.rpmbuild
1614 %{_rpmlibdir}/macros.gstreamer
1615 %{_rpmlibdir}/macros.java
1616 %{_rpmlibdir}/macros.mono
1617 %{_rpmlibdir}/macros.perl
1618 %{_rpmlibdir}/macros.php
1619 %{_rpmlibdir}/macros.python
1621 %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh
1622 %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh
1624 %attr(755,root,root) %{_bindir}/gendiff
1625 %attr(755,root,root) %{_bindir}/rpmbuild
1627 %dir %{_rpmlibdir}/helpers
1628 %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs
1630 %{_mandir}/man1/gendiff.1*
1631 %{_mandir}/man8/rpmbuild.8*
1632 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1633 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1634 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1637 %defattr(644,root,root,755)
1638 %attr(755,root,root) %{_rpmlibdir}/java-find-requires
1639 # needs jar (any jdk), jcf-dump (gcc-java) to work
1640 %attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1643 %defattr(644,root,root,755)
1644 %attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1645 %attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1648 %defattr(644,root,root,755)
1649 %attr(755,root,root) %{_rpmlibdir}/perl.*
1650 %attr(755,root,root) %{_rpmlibdir}/osgideps.pl
1651 %attr(755,root,root) %{_rpmlibdir}/perldeps.pl
1654 %defattr(644,root,root,755)
1655 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1656 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1659 %defattr(644,root,root,755)
1660 %attr(755,root,root) %{_rpmlibdir}/php.prov
1661 %attr(755,root,root) %{_rpmlibdir}/php.req
1662 %attr(755,root,root) %{_rpmlibdir}/php.req.php
1665 %files -n python-rpm
1666 %defattr(644,root,root,755)
1667 %dir %{py_sitedir}/rpm
1668 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1669 %{py_sitedir}/rpm/*.py[co]
1674 %defattr(644,root,root,755)