2 %bcond_with static # build static rpm+rpmi
3 %bcond_with apidocs # don't generate documentation with doxygen
4 %bcond_with internal_db # internal db (db 4.5.20)
5 %bcond_with autoreqdep # autogenerate package name deps in addition to sonames/perl(X)
6 %bcond_without nptl # internal db: don't use process-shared POSIX mutexes (NPTL provides full interface)
7 %bcond_without python # don't build python bindings
8 %bcond_without selinux # build without selinux support
9 %bcond_without system_libmagic # don't use system libmagic
10 %bcond_without suggest_tags # build without Suggest tag (bootstrapping)
11 %bcond_with neon # build with HTTP/WebDAV support (neon library). NOTE: neon libs are in /usr!
13 # versions of required libraries
14 %define reqdb_pkg db4.7
15 %define reqdb_ver 4.7.25
16 %define reqpopt_ver 1.10.8
17 %define beecrypt_ver 2:4.1.2-4
20 Summary: RPM Package Manager
21 Summary(de.UTF-8): RPM Packet-Manager
22 Summary(es.UTF-8): Gestor de paquetes RPM
23 Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
24 Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
25 Summary(ru.UTF-8): Менеджер пакетов от RPM
26 Summary(uk.UTF-8): Менеджер пакетів від RPM
32 Source0: %{name}-%{version}.tar.gz
33 # Source0-md5: 4e69ab971f682c87625dc0f65d9e16bc
34 Source1: %{name}.groups
35 Source2: %{name}.platform
36 Source3: %{name}-install-tree
37 Source5: %{name}-hrmib-cache
38 Source6: %{name}-groups-po.awk
39 Source12: %{name}.sysinfo
41 Source14: %{name}-user_group.sh
42 Source15: %{name}.sysconfig
43 # http://svn.pld-linux.org/banner.sh/
45 Source19: %{name}-macros.gstreamer
46 Patch1000: %{name}-new-debuginfo.patch
47 Patch1: %{name}-rpmrc.patch
48 Patch2: %{name}-arch.patch
49 Patch3: %{name}-rpmpopt.patch
50 Patch4: %{name}-perl-macros.patch
51 Patch6: %{name}-noexpand.patch
52 Patch7: %{name}-scripts-closefds.patch
53 Patch8: %{name}-db.patch
54 Patch9: %{name}-gettext-in-header.patch
55 Patch10: %{name}-compress-doc.patch
56 Patch11: %{name}-rpm5-patchset-8074.patch
57 Patch12: %{name}-system_libs.patch
58 Patch13: %{name}-unglobal.patch
59 Patch14: %{name}-etc_dir.patch
60 Patch15: %{name}-system_libs-more.patch
61 Patch16: %{name}-libmagic-locale.patch
62 Patch17: %{name}-ldconfig-always.patch
63 Patch20: %{name}-macros-ti.patch
64 Patch21: %{name}-perl_req-skip_multiline.patch
65 Patch22: %{name}-provides-dont-obsolete.patch
66 Patch23: %{name}-pkgconfigdeps.patch
67 Patch24: %{name}-po.patch
68 Patch25: %{name}-link.patch
69 Patch26: %{name}-notsc.patch
70 Patch27: %{name}-hack-norpmlibdep.patch
71 Patch28: %{name}-makefile-no_myLDADD_deps.patch
72 Patch29: %{name}-perl_req-use_base.patch
73 Patch31: %{name}-missing-prototypes.patch
74 Patch32: %{name}-pld-autodep.patch
75 Patch33: %{name}-arch-x86_64.patch
76 Patch34: %{name}-epoch0.patch
77 Patch35: %{name}-disable-features-ti.patch
78 Patch36: %{name}-debuginfo.patch
79 Patch37: %{name}-doxygen_hack.patch
80 Patch39: %{name}-popt-coreutils.patch
81 Patch40: %{name}-helperEVR-noassert.patch
82 Patch42: %{name}-old-fileconflicts-behaviour.patch
83 Patch43: %{name}-rpm5-patchset-8637.patch
84 Patch44: %{name}-no-neon.patch
85 Patch45: %{name}-no-sqlite.patch
86 Patch48: %{name}-nopie.patch
87 Patch50: %{name}-macros.patch
88 Patch51: %{name}-cleanlibdirs.patch
89 Patch53: %{name}-chroot-hack.patch
90 Patch55: %{name}-truncate-cvslog.patch
91 Patch56: %{name}-rpm5-patchset-8413.patch
92 Patch57: %{name}-as_needed-fix.patch
93 Patch58: %{name}-repackage-wo-lzma.patch
94 Patch59: %{name}-libtool-deps.patch
95 Patch61: %{name}-lzma-mem.patch
96 Patch62: %{name}-lzma-size_t.patch
97 Patch63: %{name}-tar_as_secondary_source.patch
98 Patch64: %{name}-man_pl.patch
99 Patch65: %{name}-lzma-tukaani.patch
100 Patch66: %{name}-v3-support.patch
101 Patch67: %{name}-cleanbody.patch
102 Patch69: %{name}-popt-aliases.patch
103 # reverse arrows patch
104 Patch70: %{name}-rpm5-patchset-10061.patch
105 Patch71: %{name}-installbeforeerase.patch
106 Patch72: %{name}-postun-nofail.patch
107 Patch73: %{name}-namespace-probe.patch
108 Patch74: %{name}-noversiondir.patch
109 Patch75: %{name}-rpmte-segv.patch
110 Patch77: %{name}-dirdeps-macro.patch
111 Patch78: %{name}-db3-configure.patch
112 Patch79: %{name}-macros-cpp.patch
113 Patch80: %{name}-link-selinux.patch
114 Patch81: %{name}-db-configure.patch
115 Patch82: %{name}-perl-makefile.patch
116 Patch83: %{name}-nosmpflags.patch
117 Patch84: %{name}-hirmib-ts.patch
118 Patch85: %{name}-perl_req-heredocs_pod.patch
119 Patch86: %{name}-rpmv3-support.patch
120 Patch87: %{name}-mono.patch
121 Patch88: %{name}-poptexecpath.patch
122 Patch89: %{name}-lzma-compress-level.patch
123 Patch90: %{name}-gstreamer.patch
124 Patch91: %{name}-gendiff.patch
125 Patch92: %{name}-set-failed-on-reopen.patch
126 Patch93: %{name}-debugedit-workaround.patch
127 Patch94: %{name}-shescape-memfault.patch
128 Patch95: %{name}-gid-uucp.patch
129 Patch96: %{name}-disable-hkp.patch
130 Patch97: %{name}-sigpad.patch
131 Patch98: %{name}-debugdir.patch
132 Patch99: %{name}-pkgconfig.patch
133 Patch100: %{name}-rpm5-debugedit.patch
134 Patch101: %{name}-builddir-readlink.patch
135 Patch102: pythondeps-speedup.patch
136 Patch103: %{name}-lua-exit-chroot-correctly.patch
137 Patch104: %{name}-glob.patch
138 Patch105: %{name}-am.patch
139 Patch106: %{name}-automake_1.12.patch
140 Patch107: %{name}-debugedit-dwarf4.patch
141 Patch108: %{name}-changelog_order_check_nonfatal.patch
142 Patch109: %{name}-installplatform.patch
143 Patch110: %{name}-xz.patch
144 Patch111: %{name}-shrink.patch
145 Patch112: notrans.patch
146 Patch113: %{name}-rubyprov.patch
147 Patch114: %{name}-ruby-gem-build.patch
148 Patch115: %{name}-glibc.patch
149 Patch116: %{name}-trigger-flags-int-type.patch
150 Patch117: %{name}-rpm2cpio-xz.patch
151 Patch118: %{name}-noarch-subpackages.patch
152 Patch119: %{name}-div0.patch
153 Patch120: %{name}-pythondeps.patch
154 Patch121: %{name}-tld-macros.patch
155 URL: http://rpm5.org/
156 BuildRequires: autoconf >= 2.57
157 BuildRequires: automake >= 1.4
158 BuildRequires: beecrypt-devel >= %{beecrypt_ver}
159 BuildRequires: bzip2-devel >= 1.0.2-17
160 %{!?with_internal_db:BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_ver}}
161 BuildRequires: elfutils-devel >= 0.108
162 BuildRequires: gettext-devel >= 0.11.4-2
163 BuildRequires: keyutils-devel
164 %{?with_system_libmagic:BuildRequires: libmagic-devel}
165 %{?with_selinux:BuildRequires: libselinux-devel >= 1.18}
166 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
167 BuildRequires: libstdc++-devel
168 BuildRequires: libtool >= 1:1.4.2-9
170 BuildRequires: libxml2-devel
171 BuildRequires: neon-devel >= 0.25.5
173 BuildRequires: ossp-uuid-devel >= 1.6.2-8
174 BuildRequires: patch >= 2.2
175 BuildRequires: popt-devel >= %{reqpopt_ver}
176 %{?with_python:BuildRequires: python-devel >= 1:2.3}
177 BuildRequires: python-modules >= 1:2.3
178 BuildRequires: rpm-perlprov
179 %{?with_python:BuildRequires: rpm-pythonprov}
180 BuildRequires: rpmbuild(macros) >= 1.351
181 BuildRequires: tar >= 1:1.15.1
182 BuildRequires: zlib-devel >= 1.2.3.3
184 BuildRequires: doxygen
185 BuildRequires: ghostscript
186 BuildRequires: graphviz
187 BuildRequires: tetex-pdftex
190 # Require static library only for static build
191 BuildRequires: beecrypt-static >= %{beecrypt_ver}
192 BuildRequires: bzip2-static >= 1.0.2-17
193 %{!?with_internal_db:BuildRequires: %{reqdb_pkg}-static >= %{reqdb_ver}}
194 BuildRequires: elfutils-static
195 BuildRequires: glibc-static >= 2.2.94
196 %{?with_system_libmagic:BuildRequires: libmagic-static}
197 %{?with_selinux:BuildRequires: libselinux-static >= 1.18}
198 BuildRequires: ossp-uuid-static >= 1.6.2-8
199 BuildRequires: popt-static >= %{reqpopt_ver}
200 BuildRequires: zlib-static >= 1.2.3.3
202 Requires: %{name}-base = %{version}-%{release}
203 Requires: %{name}-lib = %{version}-%{release}
204 Requires: beecrypt >= %{beecrypt_ver}
205 Requires: popt >= %{reqpopt_ver}
206 Provides: rpm-db-ver = %{reqdb_ver}
207 Obsoletes: rpm-getdeps
208 %{!?with_static:Obsoletes: rpm-utils-static}
209 Obsoletes: tmpwatch-rpmrepackage
210 Conflicts: glibc < 2.2.92
211 Conflicts: poldek < 0.21-0.20070703.00.11
212 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
214 %define _binary_payload w9.gzdio
215 %define _noPayloadPrefix 1
217 # don't require very fresh rpm.macros to build
218 %define __gettextize gettextize --copy --force --no-changelog; [ -f po/Makevars ] || cp -f po/Makevars{.template,}
219 %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
220 %define ix86 i386 i486 i586 i686
221 %define x8664 amd64 x86_64
223 # stabilize new build environment
224 %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-tld-linux-gcc}
225 %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-tld-linux-g++}
226 %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-tld-linux-gcc -E}
228 %define _rpmlibdir /usr/lib/rpm
230 %define specflags -fno-strict-aliasing
233 RPM is a powerful package manager, which can be used to build,
234 install, query, verify, update, and uninstall individual software
235 packages. A package consists of an archive of files, and package
236 information, including name, version, and description.
238 %description -l de.UTF-8
239 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
240 Installation, Anfrage, Verifizierung, Aktualisierung und
241 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
242 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
245 %description -l es.UTF-8
246 RPM es un poderoso administrador de paquetes, que puede ser usado para
247 construir, instalar, pesquisar, verificar, actualizar y desinstalar
248 paquetes individuales de software. Un paquete consiste en un
249 almacenaje de archivos, y información sobre el paquete, incluyendo
250 nombre, versión y descripción.
252 %description -l pl.UTF-8
253 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
254 przebudowanie, instalację czy weryfikację dowolnego pakietu.
255 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
256 plików wchodzących w skład pakietu, zależności od innych pakietów, są
257 przechowywane w bazie danych i można je uzyskać za pomocą opcji
258 odpytywania programu rpm.
260 %description -l pt_BR.UTF-8
261 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
262 construir, instalar, pesquisar, verificar, atualizar e desinstalar
263 pacotes individuais de software. Um pacote consiste de um conjunto de
264 arquivos e informações adicionais, incluindo nome, versão e descrição
265 do pacote, permissões dos arquivos, etc.
267 %description -l ru.UTF-8
268 RPM - это мощный менеджер пакетов, который может быть использован для
269 создания, инсталляции, запросов (query), проверки, обновления и
270 удаления программных пакетов. Пакет состоит из файлового архива и
271 служебной информации, включающей название, версию, описание и другие
274 %description -l uk.UTF-8
275 RPM - це потужний менеджер пакетів, що може бути використаний для
276 створення, інсталяції, запитів (query), перевірки, поновлення та
277 видалення програмних пакетів. Пакет складається з файлового архіву та
278 службової інформації, що містить назву, версію, опис та іншу
279 інформацію про пакет.
282 Summary: RPM base package - scripts used by rpm packages themselves
283 Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
286 Obsoletes: rpm-scripts
289 The RPM base package contains scripts used by rpm packages themselves.
291 - scripts for adding/removing groups and users needed for rpm
293 - banner.sh to display %%banner messages from rpm scriptlets.
295 %description base -l pl.UTF-8
296 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
298 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
299 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
302 Summary: RPMs library
303 Summary(pl.UTF-8): Biblioteki RPM-a
305 Requires: beecrypt >= %{beecrypt_ver}
306 %{!?with_internal_db:Requires: %{reqdb_pkg} >= %{reqdb_ver}}
307 %{?with_system_libmagic:Requires: libmagic >= 1.15-2}
308 %{?with_selinux:Requires: libselinux >= 1.18}
309 Requires: ossp-uuid >= 1.6.2-4
310 Requires: popt >= %{reqpopt_ver}
311 %{?with_internal_db:%{?with_nptl:Requires: uname(release) >= 2.6.0}}
312 Requires: zlib >= 1.2.3.3
313 %{?with_suggest_tags:Suggests: xz}
315 # avoid installing with incompatible (non-tukaani) lzma
316 # avoid incompatible (-M0 not supported) lzma
317 Conflicts: lzma < 1:4.999.5-0.alpha.2
318 # avoid SEGV caused by mixed db versions
319 Conflicts: poldek < 0.18.1-16
324 %description lib -l pl.UTF-8
328 Summary: Header files for rpm libraries
329 Summary(de.UTF-8): Header-Dateien für rpm Libraries
330 Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
331 Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
332 Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
333 Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
334 Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
335 Group: Development/Libraries
336 Requires: %{name}-lib = %{version}-%{release}
337 Requires: beecrypt-devel >= %{beecrypt_ver}
338 Requires: bzip2-devel
339 %{!?with_internal_db:Requires: %{reqdb_pkg}-devel >= %{reqdb_ver}}
340 Requires: elfutils-devel
341 Requires: keyutils-devel
342 %{?with_system_libmagic:Requires: libmagic-devel}
343 %{?with_selinux:Requires: libselinux-devel}
344 Requires: ossp-uuid-devel >= 1.6.2-6
345 Requires: popt-devel >= %{reqpopt_ver}
346 Requires: zlib-devel >= 1.2.3.3
349 The RPM packaging system includes C libraries that make it easy to
350 manipulate RPM packages and databases. They are intended to ease the
351 creation of graphical package managers and other tools that need
352 intimate knowledge of RPM packages. This package contains header files
355 %description devel -l de.UTF-8
356 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
357 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
358 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
359 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
361 %description devel -l es.UTF-8
362 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
363 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
364 facilitar la creación de administradores gráficos de paquetes y otras
365 herramientas que necesiten un conocimiento profundo de paquetes RPM.
367 %description devel -l pl.UTF-8
368 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
369 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
370 graficznych programów zarządzających pakietami oraz innych narzędzi,
371 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
372 zawiera pliki nagłówkowe wspomnianych bibliotek.
374 %description devel -l pt_BR.UTF-8
375 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
376 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
377 facilitar a criação de gerenciadores gráficos de pacotes e outras
378 ferramentas que precisem de conhecimento profundo de pacotes RPM.
380 %description devel -l ru.UTF-8
381 Система управления пакетами RPM содержит библиотеку C, которая
382 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
383 Эта библиотека предназначена для облегчения создания графических
384 пакетных менеджеров и других утилит, которым необходимо работать с
387 %description devel -l uk.UTF-8
388 Система керування пакетами RPM містить бібліотеку C, котра спрощує
389 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
390 призначена для полегшення створення графічних пакетних менеджерів та
391 інших утиліт, що працюють з пакетами RPM.
394 Summary: RPM static libraries
395 Summary(de.UTF-8): RPMs statische Libraries
396 Summary(pl.UTF-8): Biblioteki statyczne RPM-a
397 Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM
398 Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами
399 Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm
400 Group: Development/Libraries
401 Requires: %{name}-devel = %{version}-%{release}
402 Requires: beecrypt-static >= %{beecrypt_ver}
403 Requires: bzip2-static
404 %{!?with_internal_db:Requires: %{reqdb_pkg}-static >= %{reqdb_ver}}
405 Requires: elfutils-static
406 Requires: keyutils-static
407 %{?with_system_libmagic:Requires: libmagic-static}
408 Requires: popt-static >= %{reqpopt_ver}
409 Requires: zlib-static >= 1.2.3.3
412 RPM static libraries.
414 %description static -l de.UTF-8
415 RPMs statische Libraries.
417 %description static -l pl.UTF-8
418 Biblioteki statyczne RPM-a.
420 %description static -l pt_BR.UTF-8
421 Bibliotecas estáticas para desenvolvimento.
423 %description static -l ru.UTF-8
424 Система управления пакетами RPM содержит библиотеку C, которая
425 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
426 Это статическая библиотека RPM.
428 %description static -l uk.UTF-8
429 Система керування пакетами RPM містить бібліотеку C, котра спрощує
430 роботу з пакетами RPM та відповідними базами даних. Це статична
434 Summary: Additional utilities for managing RPM packages and database
435 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
436 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
437 Group: Applications/File
438 Requires: %{name} = %{version}-%{release}
439 Requires: popt >= %{reqpopt_ver}
440 Conflicts: filesystem-debuginfo < 3.0-16
443 Additional utilities for managing RPM packages and database.
445 %description utils -l de.UTF-8
446 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
448 %description utils -l pl.UTF-8
449 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
452 Summary: Additional utilities for managing RPM packages and database
453 Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
454 Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
455 Group: Applications/File
456 Requires: %{name}-utils = %{version}-%{release}
457 Requires: popt >= %{reqpopt_ver}
459 %description utils-perl
460 Additional utilities for managing RPM packages and database.
462 %description utils-perl -l de.UTF-8
463 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
465 %description utils-perl -l pl.UTF-8
466 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
468 %package utils-static
469 Summary: Static rpm utilities
470 Summary(pl.UTF-8): Statyczne narzędzia rpm
471 Group: Applications/System
472 Requires: %{name} = %{version}-%{release}
474 %description utils-static
475 Static rpm utilities for repairing system in case something with
476 shared libraries used by rpm become broken. Currently it contains rpmi
477 binary, which can be used to install/upgrade/remove packages without
478 using shared libraries (well, in fact with exception of NSS modules).
480 %description utils-static -l pl.UTF-8
481 Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś
482 związanego z bibliotekami współdzielonymi używanymi przez rpm-a.
483 Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji,
484 uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych
485 (z wyjątkiem modułów NSS).
488 Summary: Scripts for building binary RPM packages
489 Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
490 Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
491 Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
492 Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
493 Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
494 Group: Applications/File
495 Requires(pretrans): findutils
496 Requires: %{name}-tld-macros-build >= 1.744-3
497 Requires: %{name}-utils = %{version}-%{release}
501 Requires: chrpath >= 0.10-4
505 Requires: file >= 4.17
508 # rpmrc patch adds flags specific to gcc >= 4.7
509 Requires: gcc >= 6:4.7.0
510 Requires: glibc-devel
520 Provides: rpmbuild(monoautodeps)
521 Provides: rpmbuild(noauto) = 3
523 Conflicts: automake < 1:1.7.9-2
524 Conflicts: libtool < 2:1.5-13
528 Scripts for building binary RPM packages.
530 %description build -l de.UTF-8
531 Scripts fürs Bauen binärer RPM-Pakete.
533 %description build -l pl.UTF-8
534 Skrypty pomocnicze do budowania binarnych RPM-ów.
536 %description build -l pt_BR.UTF-8
537 Este pacote contém scripts e programas executáveis que são usados para
538 construir pacotes usando o RPM.
540 %description build -l ru.UTF-8
541 Различные вспомогательные скрипты и исполняемые программы, которые
542 используются для сборки RPM'ов.
544 %description build -l uk.UTF-8
545 Різноманітні допоміжні скрипти та утиліти, які використовуються для
549 Summary: Additional utilities for checking Perl provides/requires in RPM packages
550 Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
551 Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
552 Group: Applications/File
553 Requires: %{name} = %{version}-%{release}
555 Requires: perl-modules
557 %description perlprov
558 Additional utilities for checking Perl provides/requires in RPM
561 %description perlprov -l de.UTF-8
562 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
564 %description perlprov -l pl.UTF-8
565 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
569 Summary: Python macros, which simplifies creation of RPM packages with Python software
570 Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
571 Group: Applications/File
572 Requires: %{name} = %{version}-%{release}
574 Requires: python-modules
576 %description pythonprov
577 Python macros, which simplifies creation of RPM packages with Python
580 %description pythonprov -l pl.UTF-8
581 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
584 %package -n python-rpm
585 Summary: Python interface to RPM library
586 Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
587 Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
588 Group: Development/Languages/Python
589 Requires: %{name} = %{version}-%{release}
590 %pyrequires_eq python
591 Obsoletes: rpm-python
593 %description -n python-rpm
594 The rpm-python package contains a module which permits applications
595 written in the Python programming language to use the interface
596 supplied by RPM (RPM Package Manager) libraries.
598 This package should be installed if you want to develop Python
599 programs that will manipulate RPM packages and databases.
601 %description -n python-rpm -l pl.UTF-8
602 Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w
603 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
605 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
606 Pythonie programy manipulujące pakietami i bazami danych rpm.
608 %description -n python-rpm -l pt_BR.UTF-8
609 O pacote rpm-python contém um módulo que permite que aplicações
610 escritas em Python utilizem a interface fornecida pelas bibliotecas
611 RPM (RPM Package Manager).
613 Esse pacote deve ser instalado se você quiser desenvolver programas em
614 Python para manipular pacotes e bancos de dados RPM.
617 Summary: RPM API documentation and guides
618 Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
622 Documentation for RPM API and guides in HTML format generated from rpm
625 %description apidocs -l pl.UTF-8
626 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
627 źrodeł RPM-a przez doxygen.
648 sed -e 's/^/@tld@/' %{SOURCE2} >>platform.in
649 echo '%%define __mono_provides /usr/lib/rpm/mono-find-provides' > macros.mono
650 echo '%%define __mono_requires /usr/lib/rpm/mono-find-requires' >> macros.mono
651 install %{SOURCE13} scripts/perl.prov
672 %{!?with_neon:%patch44 -p1}
742 mv -f po/{sr,sr@Latn}.po
743 rm -rf sqlite zlib popt
745 %if %{with internal_db}
747 sed -i -e 's,AM_PTHREADS_SHARED("POSIX/.*,:,' db/dist/aclocal/mutex.ac
753 rm -rf db3 db rpmdb/db.h
756 # generate Group translations to *.po
757 awk -f %{SOURCE6} %{SOURCE1}
759 # update macros paths
760 for f in doc{,/ja,/pl}/rpm.8 doc{,/ja,/pl}/rpmbuild.8 ; do
761 sed -e 's@lib/rpm/redhat@lib/rpm/tld@g' $f > ${f}.tmp
766 %if %{with system_libmagic}
784 %if %{with internal_db}
786 echo -e 'AC_CONFIG_AUX_DIR(.)\nAC_PROG_LIBTOOL'> configure.ac
790 cp -f /usr/share/aclocal/libtool.m4 dist/aclocal/libtool.ac
791 cp -f /usr/share/automake/config.sub dist
792 if [ -f /usr/share/libtool/config/ltmain.sh ]; then
793 cp -f /usr/share/libtool/config/ltmain.sh dist
795 cp -f /usr/share/libtool/ltmain.sh dist
800 # rpm checks for CPU type at runtime, but it looks better
802 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
803 -e 's|@host_cpu@|%{_target_cpu}|' \
804 -e 's|@host_os@|%{_target_os}|' \
807 # pass CC and CXX too in case of building with some older configure macro
808 # disable perl-RPM2 build, we have it in separate spec
809 CPPFLAGS="%{rpmcppflags} -I/usr/include/ossp-uuid -I/usr/include/%{reqdb_pkg}"
814 WITH_PERL_VERSION=no \
815 %{?with_autoreqdep:--enable-adding-packages-names-in-autogenerated-dependancies} \
818 %{!?with_apidocs:--without-apidocs} \
819 %{?with_python:--with-python=%{py_ver}} \
820 %{!?with_python:--without-python} \
821 %{!?with_selinux:--without-selinux} \
822 %{?with_internal_db:--%{?with_nptl:en}%{!?with_nptl:dis}able-posixmutexes} \
829 libdb_la=%{_libdir}/libdb-%(echo %{reqdb_pkg} | sed -e 's/^db//').la \
830 pylibdir=%{py_libdir} \
831 myLDFLAGS="%{rpmldflags}" \
832 staticLDFLAGS=%{?with_static:-all-static}
835 rm -rf $RPM_BUILD_ROOT
836 install -d $RPM_BUILD_ROOT{/%{_lib},/etc/{sysconfig,tmpwatch},%{_sysconfdir}/rpm,/var/lib/banner,/var/cache/hrmib}
837 install -d $RPM_BUILD_ROOT%{_rpmlibdir}/macros.d
840 DESTDIR=$RPM_BUILD_ROOT \
841 staticLDFLAGS=%{?with_static:-all-static} \
842 pylibdir=%{py_libdir}
844 cat <<'EOF' > $RPM_BUILD_ROOT/etc/tmpwatch/rpm.conf
845 # Cleanup 90-days old repackage files.
846 /var/spool/repackage 2160
849 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
850 # first platform file entry can't contain regexps
851 %{_target_cpu}-%{_target_vendor}-linux
854 amd64-[^-]*-[Ll]inux(-gnu)?
855 x86_64-[^-]*-[Ll]inux(-gnu)?
857 %ifarch i686 %{x8664}
858 i686-[^-]*-[Ll]inux(-gnu)?
860 %ifarch i586 i686 %{x8664}
861 i586-[^-]*-[Ll]inux(-gnu)?
863 %ifarch i486 i586 i686 %{x8664}
864 i486-[^-]*-[Ll]inux(-gnu)?
866 %ifarch %{ix86} %{x8664}
867 i386-[^-]*-[Ll]inux(-gnu)?
874 rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides*
875 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl
876 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl
877 rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
879 # not installed since 4.4.8 (-tools-perl subpackage)
880 install -p scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir}
882 cp -a macros.mono $RPM_BUILD_ROOT%{_rpmlibdir}/macros.mono
883 cp -a %{SOURCE19} $RPM_BUILD_ROOT%{_rpmlibdir}/macros.gstreamer
885 install -p %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
886 install -p %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
887 install -p %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
888 install -p %{SOURCE18} $RPM_BUILD_ROOT%{_bindir}/banner.sh
889 cp -p %{name}.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/rpm
891 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
892 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
893 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
894 cp -a %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
895 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
896 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
897 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
899 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros <<EOF
900 # customized rpm macros - global for host
904 # remove or replace with file_contexts path if you want to use custom
905 # SELinux file contexts policy instead of one stored in packages payload
906 %%_install_file_context_path %%{nil}
907 %%_verify_file_context_path %%{nil}
909 # If non-zero, all erasures will be automagically repackaged.
910 #%%_repackage_all_erasures 0
912 # If non-zero, create debuginfo packages
913 #%%_enable_debug_packages 0
915 # Boolean (i.e. 1 == "yes", 0 == "no") that controls whether files
916 # marked as %doc should be installed.
919 # For static /dev not to update perms if upgraded and tmpfs mounted
920 #%%_netsharedpath /dev/shm
923 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang <<EOF
924 # Customized rpm macros - global for host
925 # A colon separated list of desired locales to be installed;
926 # "all" means install all locale specific files.
928 #%%_install_langs pl_PL:en_US
931 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles <<EOF
932 # global list of files (regexps) which don't generate Provides
934 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov <<EOF
935 # global list of script capabilities (regexps) not to be used in Provides
937 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles <<EOF
938 # global list of files (regexps) which don't generate Requires
942 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq <<EOF
943 # global list of script capabilities (regexps) not to be used in Requires
945 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep <<EOF
946 # global list of capabilities (SONAME, perl(module), php(module) regexps)
947 # which don't generate dependencies on package NAMES
948 # -- OpenGL implementation
958 # -- X11 implementation
1002 # -- mdns-bonjour: mDNSResponder-libs / avahi-compat-libdns_sd
1005 cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc <<EOF
1006 # global list of file masks not to be compressed in DOCDIR
1009 # for rpm -e|-U --repackage
1010 install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm}
1011 touch $RPM_BUILD_ROOT/var/lock/rpm/transaction
1014 install -d $RPM_BUILD_ROOT/bin
1015 mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
1016 # move essential libs to /lib (libs that /bin/rpm links to)
1017 for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so ; do
1018 mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib}
1019 ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a
1022 # remove arch dependant macros which have no use on noarch
1024 /{__spec_install_post_strip}/d
1025 /{__spec_install_post_chrpath}/d
1026 /{__spec_install_post_compress_modules}/d
1027 ' $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros
1029 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
1030 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
1032 rm -f $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py}
1034 # (currently) not used or supported in TLD
1035 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/{http.req,perldeps.pl}
1036 # wrong location, not used anyway
1037 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd}
1039 # unpackaged in 4.4.9, reasons unknown
1040 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/symclash.{sh,py}
1041 %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
1042 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/RPM.pm
1043 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/RPM/.packlist
1044 %{__rm} -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/RPM/RPM.bs
1045 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/RPM/RPM.so
1046 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/RPM.3pm
1047 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{,ja,pl}/man8/rpm{cache,graph}.8
1052 cp -a doc/manual manual
1053 cp -a %{SOURCE1} manual/groups
1054 rm -f manual/Makefile*
1057 rm -rf $RPM_BUILD_ROOT
1059 %triggerpostun lib -- %{name}-lib < %{version}
1060 echo >&2 "rpm-lib upgrade: Removing /var/lib/rpm/__db* from older rpmdb version"
1061 rm -f /var/lib/rpm/__db*
1062 echo >&2 "You should rebuild your rpmdb: rpm --rebuilddb to avoid random rpmdb errors"
1064 %triggerpostun lib -- db4.7 < %{reqdb_ver}
1065 echo >&2 "db4.7 upgrade: Removing /var/lib/rpm/__db* from older rpmdb version"
1066 rm -f /var/lib/rpm/__db*
1067 echo >&2 "You should rebuild your rpmdb: rpm --rebuilddb to avoid random rpmdb errors"
1069 %triggerpostun -- %{name} < 4.4.9-44
1070 %{_rpmlibdir}/hrmib-cache
1072 %post lib -p /sbin/ldconfig
1073 %postun lib -p /sbin/ldconfig
1076 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
1078 %files -f %{name}.lang
1079 %defattr(644,root,root,755)
1080 %doc CHANGES CREDITS README manual/*
1082 %attr(755,root,root) /bin/rpm
1084 %config(noreplace) %verify(not md5 mtime size) /etc/tmpwatch/rpm.conf
1085 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
1086 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
1087 %dir %{_sysconfdir}/rpm/sysinfo
1088 # these are ok to be replaced
1089 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
1090 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
1093 %{_mandir}/man8/rpm.8*
1094 %lang(fr) %{_mandir}/fr/man8/rpm.8*
1095 %lang(ja) %{_mandir}/ja/man8/rpm.8*
1096 %lang(ko) %{_mandir}/ko/man8/rpm.8*
1097 %lang(pl) %{_mandir}/pl/man8/rpm.8*
1098 %lang(ru) %{_mandir}/ru/man8/rpm.8*
1099 %lang(sk) %{_mandir}/sk/man8/rpm.8*
1102 %dir %attr(700,root,root) /var/spool/repackage
1104 /var/lock/rpm/transaction
1106 # exported package NVRA (stamped with install tid)
1107 # net-snmp hrSWInstalledName queries, bash-completions
1108 %dir /var/cache/hrmib
1110 %{_rpmlibdir}/rpmpopt*
1111 %{_rpmlibdir}/macros
1112 %dir %{_rpmlibdir}/macros.d
1114 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
1117 %defattr(644,root,root,755)
1118 %dir %{_sysconfdir}/rpm
1119 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
1121 %attr(755,root,root) %{_bindir}/banner.sh
1122 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
1123 %dir /var/lib/banner
1126 %defattr(644,root,root,755)
1127 %attr(755,root,root) /%{_lib}/librpm-%{sover}.so
1128 %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so
1129 %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so
1130 %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{_libdir}/librpm.so
1135 %attr(755,root,root) %{_libdir}/librpm-%{sover}.so
1136 %attr(755,root,root) %{_libdir}/librpmio.so
1137 %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so
1138 %attr(755,root,root) %{_libdir}/librpmdb.so
1139 %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so
1140 %attr(755,root,root) %{_libdir}/librpmbuild.so
1141 %{_libdir}/librpm.la
1142 %{_libdir}/librpmbuild.la
1143 %{_libdir}/librpmdb.la
1144 %{_libdir}/librpmio.la
1146 %{_pkgconfigdir}/rpm.pc
1149 %defattr(644,root,root,755)
1151 %{_libdir}/librpmbuild.a
1152 %{_libdir}/librpmdb.a
1153 %{_libdir}/librpmio.a
1156 %defattr(644,root,root,755)
1157 %attr(755,root,root) %{_bindir}/rpm2cpio
1158 %attr(755,root,root) %{_bindir}/rpmdigest
1159 %attr(755,root,root) %{_bindir}/rpmmtree
1160 %attr(755,root,root) %{_bindir}/rpmrepo
1161 %{!?with_system_libmagic:%attr(755,root,root) %{_bindir}/rpmfile}
1162 %attr(755,root,root) %{_rpmlibdir}/debugedit
1163 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1164 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1165 %attr(755,root,root) %{_rpmlibdir}/rpmdeps
1166 %attr(755,root,root) %{_rpmlibdir}/tgpg
1167 %{_mandir}/man8/rpm2cpio.8*
1168 %{_mandir}/man8/rpmdeps.8*
1169 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1170 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1171 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1172 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1173 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1176 %defattr(644,root,root,755)
1177 %attr(755,root,root) %{_rpmlibdir}/rpmdiff*
1181 %defattr(644,root,root,755)
1182 %attr(755,root,root) %{_bindir}/rpm[ieu]
1183 %attr(755,root,root) %{_rpmlibdir}/rpm[ieu]
1187 %defattr(644,root,root,755)
1188 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1189 %attr(755,root,root) %{_rpmlibdir}/brp-*
1190 %attr(755,root,root) %{_rpmlibdir}/check-files
1191 %attr(755,root,root) %{_rpmlibdir}/cross-build
1192 %attr(755,root,root) %{_rpmlibdir}/getpo.sh
1193 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1194 %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh
1195 %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh
1196 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1197 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1198 %{_rpmlibdir}/noarch-*
1203 %{_rpmlibdir}/amd64*
1204 %{_rpmlibdir}/x86_64*
1206 # must be here for "Requires: rpm-*prov" to work
1207 %{_rpmlibdir}/macros.gstreamer
1208 %{_rpmlibdir}/macros.mono
1210 %attr(755,root,root) %{_bindir}/gendiff
1211 %attr(755,root,root) %{_bindir}/rpmbuild
1213 %{_mandir}/man1/gendiff.1*
1214 %{_mandir}/man8/rpmbuild.8*
1215 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1216 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1217 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1220 %defattr(644,root,root,755)
1221 %attr(755,root,root) %{_rpmlibdir}/perl.*
1224 %defattr(644,root,root,755)
1225 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1226 %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py
1229 %files -n python-rpm
1230 %defattr(644,root,root,755)
1231 %dir %{py_sitedir}/rpm
1232 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1233 %{py_sitedir}/rpm/*.py[co]
1238 %defattr(644,root,root,755)