]> git.pld-linux.org Git - packages/rpm.git/blob - rpm.spec
f9991adf89303924c8c745cc484c6b030ebf4a5e
[packages/rpm.git] / rpm.spec
1 #
2 # TODO:
3 # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
4 #
5 # Conditional build:
6 %bcond_without  apidocs         # Doxygen based API documentation
7 %bcond_without  python3         # Python (3) bindings
8 %bcond_without  plugins         # plugins (all, including: audit, imaevm, selinux, systemd)
9 %bcond_without  recommends_tags # use of Recommends tag (disable for bootstrapping)
10 %bcond_with     imaevm          # IMA/EVM signing support (requires libimaevm from ima-evm-utils)
11 %bcond_without  audit           # audit plugin
12 %bcond_without  selinux         # SELinux plugin
13 %bcond_without  systemd         # systemd inhibit plugin
14 %bcond_without  fsverity        # fsverity plugin
15
16 %define         popt_ver        1.15
17 %define         sover           9.2.0
18
19 %if "%{_rpmversion}" >= "4.12" && "%{_rpmversion}" < "5"
20 %define with_recommends_tags    1
21 %endif
22
23 %if %{without plugins}
24 %undefine       with_audit
25 %undefine       with_selinux
26 %undefine       with_systemd
27 %endif
28 Summary:        RPM Package Manager
29 Summary(de.UTF-8):      RPM Packet-Manager
30 Summary(es.UTF-8):      Gestor de paquetes RPM
31 Summary(pl.UTF-8):      Aplikacja do zarządzania pakietami RPM
32 Summary(pt_BR.UTF-8):   Gerenciador de pacotes RPM
33 Summary(ru.UTF-8):      Менеджер пакетов от RPM
34 Summary(uk.UTF-8):      Менеджер пакетів від RPM
35 Name:           rpm
36 Version:        4.17.0
37 Release:        0.1
38 Epoch:          1
39 License:        GPL v2 / LGPL v2.1
40 Group:          Base
41 Source0:        http://ftp.rpm.org/releases/rpm-4.17.x/%{name}-%{version}.tar.bz2
42 # Source0-md5:  ba23b5d2403fd2f9163dfd0dadce1820
43 Source1:        ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
44 # Source1-md5:  23914bb49fafe7153cee87126d966461
45 Source2:        macros.local
46 Source3:        macros.lang
47 Source4:        %{name}.sysconfig
48 Source5:        %{name}.groups
49 Source6:        %{name}-groups-po.awk
50 Source7:        %{name}-install-tree
51 Source9:        %{name}-user_group.sh
52 # http://svn.pld-linux.org/banner.sh/
53 Source10:       banner.sh
54 Source11:       %{name}.noautoprov
55 Source12:       %{name}.noautoprovfiles
56 Source13:       %{name}.noautoreq
57 Source14:       %{name}.noautoreqfiles
58 Source15:       perl.prov
59 Source16:       libtooldeps.sh
60 Source17:       libtool.attr
61 Patch0:         %{name}-man_pl.patch
62 Patch1:         %{name}-popt-aliases.patch
63 Patch2:         %{name}-perl-macros.patch
64 Patch3:         %{name}-perl-req-perlfile.patch
65 Patch4:         %{name}-scripts-closefds.patch
66 Patch5:         %{name}-dir-macros-relative.patch
67 Patch6:         %{name}-perl_req-INC_dirs.patch
68 Patch7:         %{name}-debuginfo.patch
69 Patch9:         %{name}-builddir-readlink.patch
70 Patch10:        %{name}-changelog_order_check_nonfatal.patch
71 Patch11:        %{name}-postun-nofail.patch
72 Patch12:        %{name}-clean-docdir.patch
73 Patch13:        %{name}-perl-magic.patch
74 Patch14:        %{name}-ignore-missing-macro-files.patch
75 Patch15:        x32.patch
76 Patch16:        rpm5-db-compat.patch
77 Patch17:        python-internal-build.patch
78 Patch18:        missing-macros.patch
79 Patch19:        pkgconfig.patch
80 Patch20:        uname-deps.patch
81 Patch21:        arm_abi.patch
82 Patch22:        ix86-platforms.patch
83 Patch23:        shortcircuited-deps.patch
84 Patch24:        cpuinfo-deps.patch
85 Patch25:        rpmio-read-proc-files.patch
86 Patch26:        allow-at-in-ver-rel.patch
87 Patch28:        default-patch-flags.patch
88 Patch29:        %{name}-noarch_py_prov.patch
89 Patch30:        missing-ghost-terminate-build.patch
90 Patch31:        missing-doc-terminate-build.patch
91 Patch32:        noexpand.patch
92 Patch34:        skip-symlinks.patch
93 Patch35:        pl-po.patch
94 Patch36:        build-locale.patch
95 URL:            https://rpm.org/
96 BuildRequires:  acl-devel
97 %{?with_audit:BuildRequires:    audit-libs-devel}
98 BuildRequires:  autoconf >= 2.63
99 BuildRequires:  automake >= 1:1.10
100 BuildRequires:  bzip2-devel >= 1.0.2-17
101 %{?with_plugins:BuildRequires:  dbus-devel >= 1.3}
102 BuildRequires:  elfutils-devel >= 0.108
103 %{?with_fsverity:BuildRequires: fsverity-utils-devel}
104 BuildRequires:  gettext-tools >= 0.19.2
105 %{?with_imaevm:BuildRequires:   ima-evm-utils-devel >= 1.0}
106 BuildRequires:  libarchive-devel
107 BuildRequires:  libcap-devel
108 BuildRequires:  libgcrypt-devel
109 BuildRequires:  libgomp-devel >= 6:4.5
110 BuildRequires:  libmagic-devel
111 %{?with_selinux:BuildRequires:  libselinux-devel >= 2.1.0}
112 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
113 BuildRequires:  libstdc++-devel
114 BuildRequires:  libtool >= 1:1.4.2-9
115 BuildRequires:  lua-devel >= 5.2
116 BuildRequires:  patch >= 2.2
117 BuildRequires:  pkgconfig
118 BuildRequires:  popt-devel >= %{popt_ver}
119 BuildRequires:  python3-modules >= 1:3.2
120 %if %{with python3}
121 BuildRequires:  python3-devel >= 1:3.2
122 BuildRequires:  rpm-pythonprov
123 BuildRequires:  rpmbuild(macros) >= 1.750
124 %endif
125 BuildRequires:  rpm-build >= 4.6
126 BuildRequires:  sqlite3-devel >= 3.22.0
127 BuildRequires:  tcl
128 BuildRequires:  xz-devel
129 BuildRequires:  zlib-devel
130 BuildRequires:  zstd-devel
131 %if %{with apidocs}
132 BuildRequires:  doxygen
133 BuildRequires:  ghostscript
134 BuildRequires:  graphviz
135 BuildRequires:  tetex-pdftex
136 %endif
137 Requires(posttrans):    coreutils
138 Requires:       %{name}-base = %{epoch}:%{version}-%{release}
139 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
140 Requires:       FHS >= 3.0-2
141 Requires:       libgcrypt
142 Requires:       popt >= %{popt_ver}
143 Requires:       rpm-pld-macros >= 2.002
144 %if %{with recommends_tags}
145 Recommends:     rpm-plugin-audit
146 Recommends:     rpm-plugin-prioreset
147 Recommends:     rpm-plugin-syslog
148 Recommends:     rpm-plugin-systemd-inhibit
149 %endif
150 Obsoletes:      rpm-utils-perl < 1:4.15
151 Obsoletes:      rpm-utils-static < 1:4.15
152 Conflicts:      glibc < 2.2.92
153 # db4.6 poldek needed
154 Conflicts:      poldek < 0.21-0.20070703.00.3
155 # segfaults with lzma 0.42.2
156 Conflicts:      lzma-libs < 4.999.3
157 Conflicts:      util-vserver < 0.30.216-1.pre3034.7
158 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
159
160 %define         _binary_payload         w9.gzdio
161
162 # don't require very fresh rpm.macros to build
163 %define         find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
164 %define         ix86    i386 i486 i586 i686 athlon geode pentium3 pentium4
165 %define         ppc     ppc ppc7400 ppc7450
166 %define         x8664   amd64 ia32e x86_64
167
168 %define         _rpmlibdir /usr/lib/rpm
169
170 %description
171 RPM is a powerful package manager, which can be used to build,
172 install, query, verify, update, and uninstall individual software
173 packages. A package consists of an archive of files, and package
174 information, including name, version, and description.
175
176 %description -l de.UTF-8
177 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
178 Installation, Anfrage, Verifizierung, Aktualisierung und
179 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
180 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
181 Beschreibung.
182
183 %description -l es.UTF-8
184 RPM es un poderoso administrador de paquetes, que puede ser usado para
185 construir, instalar, pesquisar, verificar, actualizar y desinstalar
186 paquetes individuales de software. Un paquete consiste en un
187 almacenaje de archivos, y información sobre el paquete, incluyendo
188 nombre, versión y descripción.
189
190 %description -l pl.UTF-8
191 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
192 przebudowanie, instalację czy weryfikację dowolnego pakietu.
193 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
194 plików wchodzących w skład pakietu, zależności od innych pakietów, są
195 przechowywane w bazie danych i można je uzyskać za pomocą opcji
196 odpytywania programu rpm.
197
198 %description -l pt_BR.UTF-8
199 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
200 construir, instalar, pesquisar, verificar, atualizar e desinstalar
201 pacotes individuais de software. Um pacote consiste de um conjunto de
202 arquivos e informações adicionais, incluindo nome, versão e descrição
203 do pacote, permissões dos arquivos, etc.
204
205 %description -l ru.UTF-8
206 RPM - это мощный менеджер пакетов, который может быть использован для
207 создания, инсталляции, запросов (query), проверки, обновления и
208 удаления программных пакетов. Пакет состоит из файлового архива и
209 служебной информации, включающей название, версию, описание и другие
210 данные о пакете.
211
212 %description -l uk.UTF-8
213 RPM - це потужний менеджер пакетів, що може бути використаний для
214 створення, інсталяції, запитів (query), перевірки, поновлення та
215 видалення програмних пакетів. Пакет складається з файлового архіву та
216 службової інформації, що містить назву, версію, опис та іншу
217 інформацію про пакет.
218
219 %package base
220 Summary:        RPM base package - scripts used by rpm packages themselves
221 Summary(pl.UTF-8):      Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
222 Group:          Base
223 Requires:       filesystem
224 Obsoletes:      rpm-scripts < 4.4
225 Obsoletes:      vserver-rpm < 1
226
227 %description base
228 The RPM base package contains scripts used by rpm packages themselves.
229 These include:
230 - scripts for adding/removing groups and users needed for rpm
231   packages,
232 - banner.sh to display %%banner messages from rpm scriptlets.
233
234 %description base -l pl.UTF-8
235 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
236 Zawiera on:
237 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
238 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
239
240 %package lib
241 Summary:        RPMs library
242 Summary(pl.UTF-8):      Biblioteki RPM-a
243 Group:          Libraries
244 Requires:       libmagic >= 1.15-2
245 Requires:       popt >= %{popt_ver}
246 Requires:       sqlite3-libs >= 3.22.0
247 Obsoletes:      rpm-libs < 4.0.2-4
248 # avoid SEGV caused by mixed db versions
249 Conflicts:      poldek < 0.18.1-16
250
251 %description lib
252 RPMs library.
253
254 %description lib -l pl.UTF-8
255 Biblioteki RPM-a.
256
257 %package devel
258 Summary:        Header files for rpm libraries
259 Summary(de.UTF-8):      Header-Dateien für rpm Libraries
260 Summary(es.UTF-8):      Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
261 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek rpm
262 Summary(pt_BR.UTF-8):   Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
263 Summary(ru.UTF-8):      Хедеры и библиотеки для программ, работающих с rpm-пакетами
264 Summary(uk.UTF-8):      Хедери та бібліотеки для програм, що працюють з пакетами rpm
265 Group:          Development/Libraries
266 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
267 Requires:       bzip2-devel
268 Requires:       elfutils-devel
269 Requires:       libgcrypt-devel
270 Requires:       libmagic-devel
271 %if %{with selinux}
272 Requires:       libselinux-devel
273 Requires:       libsemanage-devel
274 Requires:       libsepol-devel
275 %endif
276 Requires:       popt-devel >= %{popt_ver}
277 Requires:       zlib-devel
278
279 %description devel
280 The RPM packaging system includes C libraries that make it easy to
281 manipulate RPM packages and databases. They are intended to ease the
282 creation of graphical package managers and other tools that need
283 intimate knowledge of RPM packages. This package contains header files
284 for these libraries.
285
286 %description devel -l de.UTF-8
287 Der RPM-Packensystem enthält eine C-Library, die macht es einfach
288 RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
289 Vereinfachung des Schaffens grafischer Paket-Manager und anderer
290 Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
291
292 %description devel -l es.UTF-8
293 El sistema de empaquetado RPM incluye una biblioteca C que vuelve
294 fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
295 facilitar la creación de administradores gráficos de paquetes y otras
296 herramientas que necesiten un conocimiento profundo de paquetes RPM.
297
298 %description devel -l pl.UTF-8
299 System RPM zawiera biblioteki C, które ułatwiają manipulowanie
300 pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
301 graficznych programów zarządzających pakietami oraz innych narzędzi,
302 które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
303 zawiera pliki nagłówkowe wspomnianych bibliotek.
304
305 %description devel -l pt_BR.UTF-8
306 O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
307 a manipulação de pacotes e bases de dados RPM. Seu objetivo é
308 facilitar a criação de gerenciadores gráficos de pacotes e outras
309 ferramentas que precisem de conhecimento profundo de pacotes RPM.
310
311 %description devel -l ru.UTF-8
312 Система управления пакетами RPM содержит библиотеку C, которая
313 упрощает манипуляцию пакетами RPM и соответствующими базами данных.
314 Эта библиотека предназначена для облегчения создания графических
315 пакетных менеджеров и других утилит, которым необходимо работать с
316 пакетами RPM.
317
318 %description devel -l uk.UTF-8
319 Система керування пакетами RPM містить бібліотеку C, котра спрощує
320 роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
321 призначена для полегшення створення графічних пакетних менеджерів та
322 інших утиліт, що працюють з пакетами RPM.
323
324 %package utils
325 Summary:        Additional utilities for managing RPM packages and database
326 Summary(de.UTF-8):      Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
327 Summary(pl.UTF-8):      Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
328 Group:          Applications/File
329 Requires:       %{name} = %{epoch}:%{version}-%{release}
330 Requires:       popt >= %{popt_ver}
331 %if %{with recommends_tags}
332 Recommends:     bzip2
333 Recommends:     gzip
334 %endif
335 Conflicts:      filesystem-debuginfo < 3.0-16
336
337 %description utils
338 Additional utilities for managing RPM packages and database.
339
340 %description utils -l de.UTF-8
341 Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
342
343 %description utils -l pl.UTF-8
344 Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
345
346 %package build
347 Summary:        Scripts for building binary RPM packages
348 Summary(de.UTF-8):      Scripts fürs Bauen binärer RPM-Pakete
349 Summary(pl.UTF-8):      Skrypty pomocnicze do budowania binarnych RPM-ów
350 Summary(pt_BR.UTF-8):   Scripts e programas executáveis usados para construir pacotes
351 Summary(ru.UTF-8):      Скрипты и утилиты, необходимые для сборки пакетов
352 Summary(uk.UTF-8):      Скрипти та утиліти, необхідні для побудови пакетів
353 Group:          Applications/File
354 Requires(pretrans):     coreutils
355 Requires(pretrans):     findutils
356 Requires:       %{name}-utils = %{epoch}:%{version}-%{release}
357 Requires:       /bin/id
358 Requires:       awk
359 Requires:       bzip2
360 Requires:       chrpath >= 0.10-4
361 Requires:       cpio
362 Requires:       diffutils
363 Requires:       elfutils
364 Requires:       file >= 4.17
365 Requires:       fileutils
366 Requires:       findutils
367 Requires:       rpm-pld-macros-build >= 1.744
368 %ifarch athlon
369 Requires:       gcc >= 3.0.3
370 %else
371 Requires:       gcc
372 %endif
373 Requires:       glibc-devel
374 Requires:       grep
375 Requires:       gzip
376 Requires:       make
377 Requires:       patch
378 Requires:       sed >= 4.0
379 Requires:       sh-utils
380 Requires:       tar >= 1:1.22
381 Requires:       textutils
382 Requires:       which
383 Requires:       xz
384 Provides:       rpmbuild(noauto) = 3
385 %ifarch %{x8664}
386 Conflicts:      automake < 1:1.7.9-2
387 Conflicts:      libtool < 2:1.5-13
388 %endif
389
390 %description build
391 Scripts for building binary RPM packages.
392
393 %description build -l de.UTF-8
394 Scripts fürs Bauen binärer RPM-Pakete.
395
396 %description build -l pl.UTF-8
397 Skrypty pomocnicze do budowania binarnych RPM-ów.
398
399 %description build -l pt_BR.UTF-8
400 Este pacote contém scripts e programas executáveis que são usados para
401 construir pacotes usando o RPM.
402
403 %description build -l ru.UTF-8
404 Различные вспомогательные скрипты и исполняемые программы, которые
405 используются для сборки RPM'ов.
406
407 %description build -l uk.UTF-8
408 Різноманітні допоміжні скрипти та утиліти, які використовуються для
409 побудови RPM'ів.
410
411 %package perlprov
412 Summary:        Additional utilities for checking Perl provides/requires in RPM packages
413 Summary(de.UTF-8):      Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
414 Summary(pl.UTF-8):      Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
415 Group:          Applications/File
416 Requires:       %{name} = %{epoch}:%{version}-%{release}
417 Requires:       perl-Encode
418 Requires:       perl-devel
419 Requires:       perl-modules
420
421 %description perlprov
422 Additional utilities for checking Perl provides/requires in RPM
423 packages.
424
425 %description perlprov -l de.UTF-8
426 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
427
428 %description perlprov -l pl.UTF-8
429 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
430 pakietach RPM.
431
432 %package pythonprov
433 Summary:        Python macros, which simplifies creation of RPM packages with Python software
434 Summary(pl.UTF-8):      Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
435 Group:          Applications/File
436 Requires:       %{name} = %{epoch}:%{version}-%{release}
437 Requires:       python3
438 Requires:       python3-modules
439 Requires:       python3-setuptools
440
441 %description pythonprov
442 Python macros, which simplifies creation of RPM packages with Python
443 software.
444
445 %description pythonprov -l pl.UTF-8
446 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
447 Pythonie.
448
449 %package -n python3-rpm
450 Summary:        Python 3 interface to RPM library
451 Summary(pl.UTF-8):      Interfejs Pythona 3 do biblioteki RPM-a
452 Summary(pt_BR.UTF-8):   Módulo Python 3 para aplicativos que manipulam pacotes RPM
453 Group:          Development/Languages/Python
454 Requires:       %{name} = %{epoch}:%{version}-%{release}
455 Requires:       python3
456 Obsoletes:      python-rpm < 1:4.16.0
457 Obsoletes:      rpm-python < 4.0.2-50
458
459 %description -n python3-rpm
460 The python3-rpm package contains a module which permits applications
461 written in the Python 3 programming language to use the interface
462 supplied by RPM (RPM Package Manager) libraries.
463
464 This package should be installed if you want to develop Python 3
465 programs that will manipulate RPM packages and databases.
466
467 %description -n python3-rpm -l pl.UTF-8
468 Pakiet python3-rpm zawiera moduł, który pozwala aplikacjom napisanym w
469 Pythonie 3 na używanie interfejsu dostarczanego przez biblioteki
470 RPM-a.
471
472 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
473 Pythonie 3 programy manipulujące pakietami i bazami danych rpm.
474
475 %description -n python3-rpm -l pt_BR.UTF-8
476 O pacote python3-rpm contém um módulo que permite que aplicações
477 escritas em Python 3 utilizem a interface fornecida pelas bibliotecas
478 RPM (RPM Package Manager).
479
480 Esse pacote deve ser instalado se você quiser desenvolver programas em
481 Python 3 para manipular pacotes e bancos de dados RPM.
482
483 %package plugin-audit
484 Summary:        Plugin for logging audit events on package operations
485 Summary(pl.UTF-8):      Wtyczka do logowania zdarzeń audytowych przy operacjach na pakietach
486 Group:          Base
487 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
488
489 %description plugin-audit
490 Plugin for libaudit support.
491
492 %description plugin-audit -l pl.UTF-8
493 Wtyczka do obsługi libaudit.
494
495 %package plugin-syslog
496 Summary:        Plugin for syslog functionality
497 Summary(pl.UTF-8):      Wtyczka do funkcjonalności sysloga
498 Group:          Base
499 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
500
501 %description plugin-syslog
502 This plugin exports RPM actions to the system log.
503
504 %description plugin-syslog -l pl.UTF-8
505 Ta wtyczka eksportuje akcje RPM-a do logu systemowego.
506
507 %package plugin-systemd-inhibit
508 Summary:        Plugin for systemd inhibit functionality
509 Summary(pl.UTF-8):      Wtyczka do funkcjonalności systemd inhibit
510 Group:          Base
511 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
512 Requires:       dbus >= 1.3
513
514 %description plugin-systemd-inhibit
515 This plugin blocks systemd from entering idle, sleep or shutdown while
516 an rpm transaction is running using the systemd-inhibit mechanism.
517
518 %description plugin-systemd-inhibit -l pl.UTF-8
519 Ta wtyczka blokuje systemd przed wejściem w stan bezczynności (idle),
520 uśpienia (sleep) lub zamykania (shutdown) podczas trwania transakcji
521 RPM-a, korzystając z mechanizmu systemd-inhibit.
522
523 %package plugin-ima
524 Summary:        Plugin for IMA file signatures
525 Summary(pl.UTF-8):      Wtyczka do sygnatur plików IMA
526 Group:          Base
527 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
528
529 %description plugin-ima
530 This plugin adds support for enforcing and verifying IMA file
531 signatures in an rpm.
532
533 %description plugin-ima -l pl.UTF-8
534 Ta wtyczka dodaje obsługę wymuszania i weryfikacji podpisów plików IMA
535 w RPM-ie.
536
537 %package plugin-prioreset
538 Summary:        Plugin for resetting scriptlet priorities for SysV init
539 Summary(pl.UTF-8):      Wtyczka do resetowania priorytetu skryptletów przy inicie SysV
540 Group:          Base
541 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
542
543 %description plugin-prioreset
544 This plugin is useful on legacy SysV init systems if you run rpm
545 transactions with nice/ionice priorities. Should not be used on
546 systemd systems.
547
548 %description plugin-prioreset -l pl.UTF-8
549 Ta wtyczka jest przydatna w systemach ze starym procesem init w wersji
550 SysV, jeżeli transakcje RPM-a są uruchamiane z priorytetami
551 nice/ionice. Nie powinna być używana w systemach z systemd.
552
553 %package plugin-selinux
554 Summary:        Plugin for SELinux functionality
555 Summary(pl.UTF-8):      Wtyczka do funkcjonalności SELinux
556 Group:          Base
557 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
558 Requires:       libselinux >= 2.1.0
559
560 %description plugin-selinux
561 Plugin for SELinux functionality.
562
563 %description plugin-selinux -l pl.UTF-8
564 Wtyczka do funkcjonalności SELinux.
565
566 %package plugin-fsverity
567 Summary:        Plugin for fsverity file signatures
568 Group:          Base
569 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
570
571 %description plugin-fsverity
572 Plugin for fsverity file signatures.
573
574 %package plugin-fapolicyd
575 Summary:        Plugin for fapolicyd support
576 Group:          Base
577 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
578
579 %description plugin-fapolicyd
580 Plugin for fapolicyd support.
581
582 See https://people.redhat.com/sgrubb/fapolicyd/ for information about
583 the fapolicyd daemon.
584
585 %package plugin-dbus-announce
586 Summary:        Plugin for announcing transactions on the DBUS
587 Group:          Base
588 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
589
590 %description plugin-dbus-announce
591 The plugin announces basic information about rpm transactions to the
592 system DBUS - like packages installed or removed. Other programs can
593 subscribe to the signals to get notified when packages on the system
594 change.
595
596 %package sign
597 Summary:        Package signing support
598 Summary(pl.UTF-8):      Obsługa podpisywania pakietów
599 Group:          Base
600 Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
601
602 %description sign
603 This package contains support for digitally signing RPM packages.
604
605 %description sign -l pl.UTF-8
606 Ten pakiet zawiera obsługę cyfrowego podpisywania pakietów RPM.
607
608 %package apidocs
609 Summary:        RPM API documentation and guides
610 Summary(pl.UTF-8):      Documentacja API RPM-a i przewodniki
611 Group:          Documentation
612 BuildArch:      noarch
613
614 %description apidocs
615 Documentation for RPM API and guides in HTML format generated from rpm
616 sources by doxygen.
617
618 %description apidocs -l pl.UTF-8
619 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
620 źrodeł RPM-a przez doxygen.
621
622 %prep
623 %setup -q -n %{name}-%{version}%{?subver}
624 %patch0 -p1
625 %patch1 -p1
626 %patch2 -p1
627 %patch3 -p1
628 %patch4 -p1
629 %patch5 -p1
630 %patch6 -p0
631 %patch7 -p1
632 #%patch9 -p1
633 %patch10 -p1
634 %patch11 -p1
635 %patch12 -p1
636 %patch13 -p1
637 %patch14 -p1
638 %patch15 -p1
639 %patch16 -p1
640 %patch17 -p1
641 %patch18 -p1
642 %patch19 -p1
643 %patch20 -p1
644 %patch21 -p1
645 %patch22 -p1
646 %patch23 -p1
647 %patch24 -p1
648 %patch25 -p1
649 %patch26 -p1
650 %patch28 -p1
651 #%patch29 -p1
652 %patch30 -p1
653 %patch31 -p1
654 %patch32 -p1
655 %patch34 -p1
656 %patch35 -p1
657 %patch36 -p1
658
659 %{__rm} po/*.gmo
660
661 install %{SOURCE15} scripts/perl.prov.in
662
663 %{__mv} scripts/perl.req{,.in}
664
665 # generate Group translations to *.po
666 awk -f %{SOURCE6} %{SOURCE5}
667
668 #%{__sed} -i -e '1s,/usr/bin/python,%{__python3},' scripts/pythondistdeps.py
669
670 %build
671 %{__libtoolize}
672 %{__aclocal}
673 %{__autoheader}
674 %{__autoconf}
675 %{__automake}
676
677 # rpm checks for CPU type at runtime, but it looks better
678 %{__sed} -i \
679         -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
680         -e 's|@host_cpu@|%{_target_cpu}|' \
681         -e 's|@host_os@|%{_target_os}|' \
682         macros.in
683
684 %configure \
685         PYTHON=python3 \
686         WITH_PERL_VERSION=no \
687         __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
688         __GPG=%{_bindir}/gpg \
689         --enable-bdb \
690         --enable-bdb-ro \
691         --enable-ndb \
692         %{!?with_plugins:--disable-plugins} \
693         %{!?with_systemd:--disable-inhibit-plugin} \
694         --disable-silent-rules \
695         --enable-sqlite \
696         --enable-zstd \
697         --with-acl \
698         --with-archive \
699         --with-audit%{!?with_audit:=no} \
700         --with-cap \
701         --with-fapolicyd \
702         %{?with_imaevm:--with-imaevm} \
703         --with-lua \
704         %{?with_python3:--enable-python} \
705         --with-selinux%{!?with_selinux:=no} \
706         --with-vendor=pld
707
708 %{__make}
709
710 %{__make} -C po update-gmo
711
712 %if %{with python3}
713 cd python
714 %py3_build
715 %endif
716
717 %install
718 rm -rf $RPM_BUILD_ROOT
719 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/{rpm,pki/rpm-gpg}} \
720         $RPM_BUILD_ROOT{/var/lib/{banner,rpm},/usr/lib/.build-id}
721
722 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
723
724 %{__make} install \
725         pkgconfigdir=%{_pkgconfigdir} \
726         DESTDIR=$RPM_BUILD_ROOT
727
728 # cleanup
729 %ifnarch %{ix86} %{x8664} x32
730 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/athlon-linux/macros
731 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/geode-linux/macros
732 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i386-linux/macros
733 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i486-linux/macros
734 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i586-linux/macros
735 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i686-linux/macros
736 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium3-linux/macros
737 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium4-linux/macros
738 %endif
739
740 %ifnarch %{x8664} x32
741 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/amd64-linux/macros
742 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia32e-linux/macros
743 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x32-linux/macros
744 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x86_64-linux/macros
745 %endif
746
747 %ifnarch %{ppc}
748 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/m68k-linux/macros
749 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc32dy4-linux/macros
750 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc64*-linux/macros
751 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8260-linux/macros
752 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8560-linux/macros
753 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros
754 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros
755 %endif
756
757 %ifnarch aarch64
758 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros
759 %endif
760
761 %ifnarch %{arm}
762 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros
763 %endif
764
765 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
766 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros
767 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros
768 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros
769 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros
770 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros
771 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros
772
773 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform
774 %ifarch x32
775 %{_target_cpu}-%{_target_vendor}-linux-gnux32
776 %else
777 %{_target_cpu}-%{_target_vendor}-linux
778 %endif
779 EOF
780
781 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
782
783 install -d $RPM_BUILD_ROOT%{_rpmlibdir}/pld
784
785 cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
786 cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
787 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rpm
788
789 cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/banner.sh
790
791 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
792 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
793 cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
794 cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
795 cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
796 cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
797
798 cp -p %{SOURCE16} $RPM_BUILD_ROOT%{_rpmlibdir}/libtooldeps.sh
799 cp -p %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/fileattrs/libtool.attr
800
801 # move rpm to /bin
802 %{__mv} $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
803 ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmquery
804 ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmverify
805
806 # move essential libs to /lib (libs that /bin/rpm links to)
807 for a in librpm.so librpmbuild.so librpmio.so librpmsign.so; do
808         mv -f $RPM_BUILD_ROOT%{_libdir}/${a}.* $RPM_BUILD_ROOT/%{_lib}
809         ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/${a}.*.*.*) $RPM_BUILD_ROOT%{_libdir}/${a}
810 done
811
812 # init an empty database for %ghost'ing for all supported backends
813 for be in sqlite bdb ndb; do
814         ./rpmdb \
815                 --macros=$RPM_BUILD_ROOT%{_rpmlibdir}/macros \
816                 --rcfile=$RPM_BUILD_ROOT%{_rpmlibdir}/rpmrc \
817                 --dbpath=${PWD}/${be} \
818                 --define "_db_backend ${be}" \
819                 --initdb
820         cp -va ${be}/. $RPM_BUILD_ROOT/var/lib/rpm/
821 done
822
823 %if %{with python3}
824 # Remove anything that rpm make install might put there
825 %{__rm} -rf $RPM_BUILD_ROOT%{py3_sitedir}
826 cd python
827 %py3_install
828 cd ..
829 %endif
830
831 %{__rm} $RPM_BUILD_ROOT%{_libdir}/rpm-plugins/*.la
832
833 # wrong location, not used anyway
834 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log}
835
836 %find_lang %{name}
837
838 %clean
839 rm -rf $RPM_BUILD_ROOT
840
841 %posttrans
842 if [ -e /var/lib/rpm/Packages ]; then
843         if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
844                         /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
845                 echo
846                 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
847                 echo
848         fi
849         echo
850         echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
851         echo 'you should ignore it and restart poldek'
852         echo
853         %{__rm} -rf /var/lib/rpm/log >/dev/null 2>/dev/null || :
854         %{__rm} -rf /var/lib/rpm/tmp >/dev/null 2>/dev/null || :
855         # Unlock database for rebuild, safe since this is posttrans
856         %{__rm} -f /var/lib/rpm/.rpm.lock >/dev/null 2>/dev/null || :
857         if ! /usr/bin/rpmdb --rebuilddb; then
858                 echo
859                 echo "rpm database conversion failed!"
860                 echo "You have to run '/usr/bin/rpmdb --rebuilddb' manually"
861                 echo
862                 exit 1
863         fi
864 fi
865
866 %post
867 if [ -d /var/cache/hrmib ]; then
868         %{__rm} -rf /var/cache/hrmib
869         echo "HR-MIB is not supported by this rpm version."
870         echo "/var/cache/hrmib has been removed."
871 fi
872
873 %post   lib -p /sbin/ldconfig
874 %postun lib -p /sbin/ldconfig
875
876 %pretrans build
877 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
878
879 %files -f %{name}.lang
880 %defattr(644,root,root,755)
881 %doc ChangeLog CREDITS README
882
883 %dir /etc/pki/rpm-gpg
884 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
885
886 %attr(755,root,root) /bin/rpm
887 %attr(755,root,root) %{_bindir}/rpmdb
888 %attr(755,root,root) %{_bindir}/rpmkeys
889 %attr(755,root,root) %{_bindir}/rpmquery
890 %attr(755,root,root) %{_bindir}/rpmverify
891
892 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
893 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
894 # this is ok to be replaced
895 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform
896
897 %{_mandir}/man8/rpm.8*
898 %{_mandir}/man8/rpmdb.8*
899 %{_mandir}/man8/rpmkeys.8*
900 %{_mandir}/man8/rpm-misc.8*
901 %{?with_plugins:%{_mandir}/man8/rpm-plugins.8*}
902 %lang(fr) %{_mandir}/fr/man8/rpm.8*
903 %lang(ja) %{_mandir}/ja/man8/rpm.8*
904 %lang(ko) %{_mandir}/ko/man8/rpm.8*
905 %lang(pl) %{_mandir}/pl/man8/rpm.8*
906 %lang(ru) %{_mandir}/ru/man8/rpm.8*
907 %lang(sk) %{_mandir}/sk/man8/rpm.8*
908
909 %dir /var/lib/rpm
910 %ghost %config(missingok,noreplace) /var/lib/rpm/*
911 %ghost /var/lib/rpm/.*.lock
912
913 %{_rpmlibdir}/rpmpopt*
914 %{_rpmlibdir}/rpmrc
915 %{_rpmlibdir}/macros
916 %dir %{_rpmlibdir}/macros.d
917 %dir %{_rpmlibdir}/platform
918 %{_rpmlibdir}/platform/noarch-*
919 %ifarch %{ix86} %{x8664} x32
920 %{_rpmlibdir}/platform/athlon*
921 %{_rpmlibdir}/platform/geode*
922 %{_rpmlibdir}/platform/i?86*
923 %{_rpmlibdir}/platform/pentium*
924 %endif
925 %ifarch %{x8664} x32
926 %{_rpmlibdir}/platform/amd64*
927 %{_rpmlibdir}/platform/ia32e*
928 %{_rpmlibdir}/platform/x86_64*
929 %{_rpmlibdir}/platform/x32*
930 %endif
931 %ifarch alpha
932 %{_rpmlibdir}/platform/alpha*
933 %endif
934 %ifarch aarch64
935 %{_rpmlibdir}/platform/aarch64*
936 %endif
937 %ifarch %{arm}
938 %{_rpmlibdir}/platform/arm*
939 %endif
940 %ifarch ia64
941 %{_rpmlibdir}/platform/ia64*
942 %endif
943 %ifarch mips mipsel mips64 mips64el
944 %{_rpmlibdir}/platform/mips*
945 %endif
946 %ifarch %{ppc}
947 %{_rpmlibdir}/platform/ppc*
948 %endif
949 %ifarch sparc sparc64
950 %{_rpmlibdir}/platform/sparc*
951 %endif
952
953 %dir %{_rpmlibdir}/pld
954
955 %attr(755,root,root) %{_rpmlibdir}/rpmdb_dump
956 %attr(755,root,root) %{_rpmlibdir}/rpmdb_load
957
958 # valgrind suppression file for rpm
959 %{_rpmlibdir}/rpm.supp
960
961 %dir /usr/lib/.build-id
962
963 %files base
964 %defattr(644,root,root,755)
965 %dir %{_sysconfdir}/rpm
966 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
967 %dir %{_rpmlibdir}
968 %attr(755,root,root) %{_bindir}/banner.sh
969 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
970 %dir /var/lib/banner
971
972 %files lib
973 %defattr(644,root,root,755)
974 %attr(755,root,root) /%{_lib}/librpm.so.9
975 %attr(755,root,root) /%{_lib}/librpm.so.%{sover}
976 %attr(755,root,root) /%{_lib}/librpmbuild.so.9
977 %attr(755,root,root) /%{_lib}/librpmbuild.so.%{sover}
978 %attr(755,root,root) /%{_lib}/librpmio.so.9
979 %attr(755,root,root) /%{_lib}/librpmio.so.%{sover}
980 %attr(755,root,root) /%{_lib}/librpmsign.so.9
981 %attr(755,root,root) /%{_lib}/librpmsign.so.%{sover}
982 %{?with_plugins:%dir %{_libdir}/rpm-plugins}
983
984 %files devel
985 %defattr(644,root,root,755)
986 %attr(755,root,root) %{_libdir}/librpm.so
987 %attr(755,root,root) %{_libdir}/librpmbuild.so
988 %attr(755,root,root) %{_libdir}/librpmio.so
989 %attr(755,root,root) %{_libdir}/librpmsign.so
990 %{_libdir}/librpm.la
991 %{_libdir}/librpmbuild.la
992 %{_libdir}/librpmio.la
993 %{_libdir}/librpmsign.la
994 %{_includedir}/rpm
995 %{_pkgconfigdir}/rpm.pc
996
997 %files utils
998 %defattr(644,root,root,755)
999 %attr(755,root,root) %{_bindir}/rpm2archive
1000 %attr(755,root,root) %{_bindir}/rpm2cpio
1001 %attr(755,root,root) %{_bindir}/rpmgraph
1002 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
1003 %attr(755,root,root) %{_rpmlibdir}/tgpg
1004 %attr(755,root,root) %{_rpmlibdir}/rpmdeps
1005 %{_mandir}/man8/rpm2archive.8*
1006 %{_mandir}/man8/rpm2cpio.8*
1007 %{_mandir}/man8/rpmdeps.8*
1008 %{_mandir}/man8/rpmgraph.8*
1009 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1010 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1011 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1012 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1013 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1014 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
1015 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
1016
1017 %files build
1018 %defattr(644,root,root,755)
1019 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1020 %attr(755,root,root) %{_rpmlibdir}/brp-*
1021 %attr(755,root,root) %{_rpmlibdir}/check-files
1022 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1023 %attr(755,root,root) %{_rpmlibdir}/elfdeps
1024 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1025 # needs hacked pkg-config to return anything
1026 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1027 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
1028
1029 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1030 # must be here for "Requires: rpm-*prov" to work
1031 #%{_rpmlibdir}/macros.d/cmake
1032 #%{_rpmlibdir}/macros.d/gstreamer
1033 #%{_rpmlibdir}/macros.d/libtool
1034 #%{_rpmlibdir}/macros.d/perl
1035 #%{_rpmlibdir}/macros.d/pkgconfig
1036 #%{_rpmlibdir}/macros.d/python
1037 #%{_rpmlibdir}/macros.d/selinux
1038 #%{_rpmlibdir}/macros.d/tcl
1039 #%{_rpmlibdir}/macros.rpmbuild
1040
1041 %attr(755,root,root) %{_rpmlibdir}/check-buildroot
1042 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
1043 %attr(755,root,root) %{_rpmlibdir}/check-rpaths
1044 %attr(755,root,root) %{_rpmlibdir}/check-rpaths-worker
1045 %attr(755,root,root) %{_rpmlibdir}/find-provides
1046 %attr(755,root,root) %{_rpmlibdir}/find-requires
1047 %attr(755,root,root) %{_rpmlibdir}/ocamldeps.sh
1048 %attr(755,root,root) %{_rpmlibdir}/script.req
1049
1050 %dir %{_rpmlibdir}/fileattrs
1051 %{_rpmlibdir}/fileattrs/debuginfo.attr
1052 %{_rpmlibdir}/fileattrs/desktop.attr
1053 %{_rpmlibdir}/fileattrs/elf.attr
1054 %{_rpmlibdir}/fileattrs/font.attr
1055 %{_rpmlibdir}/fileattrs/libtool.attr
1056 %{_rpmlibdir}/fileattrs/metainfo.attr
1057 %{_rpmlibdir}/fileattrs/ocaml.attr
1058 %{_rpmlibdir}/fileattrs/perl.attr
1059 %{_rpmlibdir}/fileattrs/perllib.attr
1060 %{_rpmlibdir}/fileattrs/pkgconfig.attr
1061 %{_rpmlibdir}/fileattrs/script.attr
1062
1063 %attr(755,root,root) %{_bindir}/gendiff
1064 %attr(755,root,root) %{_bindir}/rpmbuild
1065 %attr(755,root,root) %{_bindir}/rpmspec
1066
1067 %{_mandir}/man1/gendiff.1*
1068 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1069 %{_mandir}/man8/rpmbuild.8*
1070 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1071 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1072 %{_mandir}/man8/rpmspec.8*
1073
1074 %files perlprov
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_rpmlibdir}/perl.*
1077
1078 %files pythonprov
1079 %defattr(644,root,root,755)
1080 #%attr(755,root,root) %{_rpmlibdir}/pythondistdeps.py
1081
1082 %if %{with python3}
1083 %files -n python3-rpm
1084 %defattr(644,root,root,755)
1085 %dir %{py3_sitedir}/rpm
1086 %attr(755,root,root) %{py3_sitedir}/rpm/*.so
1087 %{py3_sitedir}/rpm/*.py
1088 %{py3_sitedir}/rpm-%{version}-py*.egg-info
1089 %{py3_sitedir}/rpm/__pycache__
1090 %endif
1091
1092 %if %{with plugins}
1093 %files plugin-audit
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/rpm-plugins/audit.so
1096 %{_mandir}/man8/rpm-plugin-audit.8*
1097
1098 %files plugin-syslog
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_libdir}/rpm-plugins/syslog.so
1101 %{_mandir}/man8/rpm-plugin-syslog.8*
1102
1103 %if %{with systemd}
1104 %files plugin-systemd-inhibit
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{_libdir}/rpm-plugins/systemd_inhibit.so
1107 %{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
1108 %endif
1109
1110 %files plugin-ima
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{_libdir}/rpm-plugins/ima.so
1113 %{_mandir}/man8/rpm-plugin-ima.8*
1114
1115 %files plugin-prioreset
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_libdir}/rpm-plugins/prioreset.so
1118 %{_mandir}/man8/rpm-plugin-prioreset.8*
1119
1120 %files plugin-selinux
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{_libdir}/rpm-plugins/selinux.so
1123 %{_mandir}/man8/rpm-plugin-selinux.8*
1124
1125 %if %{with fsverity}
1126 %files plugin-fsverity
1127 %defattr(644,root,root,755)
1128 %attr(755,root,root) %{_libdir}/rpm-plugins/fsverity.so
1129 %endif
1130
1131 %files plugin-fapolicyd
1132 %defattr(644,root,root,755)
1133 %attr(755,root,root) %{_libdir}/rpm-plugins/fapolicyd.so
1134 %{_mandir}/man8/rpm-plugin-fapolicyd.8*
1135
1136 %files plugin-dbus-announce
1137 %defattr(644,root,root,755)
1138 %attr(755,root,root) %{_libdir}/rpm-plugins/dbus_announce.so
1139 %{_mandir}/man8/rpm-plugin-dbus-announce.8*
1140 %{_sysconfdir}/dbus-1/system.d/org.rpm.conf
1141 %endif
1142
1143 %files sign
1144 %defattr(644,root,root,755)
1145 %attr(755,root,root) %{_bindir}/rpmsign
1146 %{_mandir}/man8/rpmsign.8*
1147
1148 %if %{with apidocs}
1149 %files apidocs
1150 %defattr(644,root,root,755)
1151 %doc docs/librpm/html/*
1152 %endif
This page took 0.10119 seconds and 3 git commands to generate.