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