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