]> git.pld-linux.org Git - packages/rpm.git/blob - rpm.spec
- package remaining missing files
[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         # don't generate documentation with doxygen
7 %bcond_without  python2         # don't build python bindings
8 %bcond_without  python3         # don't build python bindings
9 %bcond_without  plugins         # build plugins
10 %bcond_without  recommends_tags # build without Recommends tag (bootstrapping)
11 %bcond_with     db61            # use DB 6.1 instead of 5.3
12
13 # versions of required libraries
14 %if %{with db61}
15 %define         reqdb_pkg       db6.1
16 %define         reqdb_ver       6.1
17 %define         reqdb_pkgver    6.1.19
18 %else
19 %define         reqdb_pkg       db5.3
20 %define         reqdb_ver       5.3
21 %define         reqdb_pkgver    5.3.28.0
22 %endif
23 %define         reqpopt_ver     1.15
24 %define         openssl_ver     1.1.1d
25 %define         sover           9.0.1
26
27 Summary:        RPM Package Manager
28 Summary(de.UTF-8):      RPM Packet-Manager
29 Summary(es.UTF-8):      Gestor de paquetes RPM
30 Summary(pl.UTF-8):      Aplikacja do zarządzania pakietami RPM
31 Summary(pt_BR.UTF-8):   Gerenciador de pacotes RPM
32 Summary(ru.UTF-8):      Менеджер пакетов от RPM
33 Summary(uk.UTF-8):      Менеджер пакетів від RPM
34 Name:           rpm
35 Version:        4.15.1
36 Release:        0.1
37 License:        GPL v2 / LGPL v2.1
38 Group:          Base
39 Source0:        http://ftp.rpm.org/releases/rpm-4.15.x/%{name}-%{version}.tar.bz2
40 # Source0-md5:  ed72147451a5ed93b2a48e2f8f5413c3
41 Source1:        %{name}.groups
42 Source2:        macros.pld.in
43 Source3:        %{name}-install-tree
44 Source4:        %{name}-find-spec-bcond
45 Source5:        %{name}-hrmib-cache
46 Source6:        %{name}-groups-po.awk
47 Source7:        %{name}-compress-doc
48 Source8:        %{name}-php-provides
49 Source9:        %{name}-php-requires
50 Source10:       %{name}.sysinfo
51 Source11:       perl.prov
52 Source12:       %{name}-user_group.sh
53 Source13:       %{name}.sysconfig
54 Source14:       %{name}-java-requires
55 # http://svn.pld-linux.org/banner.sh/
56 Source15:       banner.sh
57 Source16:       ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
58 # Source16-md5: 23914bb49fafe7153cee87126d966461
59 Source17:       %{name}-mimetypedeps
60 Source18:       macros.local
61 Source19:       %{name}.noautocompressdoc
62 Source20:       %{name}.noautoprov
63 Source21:       %{name}.noautoprovfiles
64 Source22:       %{name}.noautoreq
65 Source24:       %{name}.noautoreqfiles
66 Source25:       %{name}-php-requires.php
67 Source26:       %{name}db_checkversion.c
68 Source27:       macros.lang
69 Source28:       %{name}db_reset.c
70 Source29:       dbupgrade.sh
71 Source30:       rubygems.rb
72 Source31:       gem_helper.rb
73 Patch0:         %{name}-man_pl.patch
74 Patch1:         %{name}-popt-aliases.patch
75 Patch2:         %{name}-perl-macros.patch
76 Patch3:         %{name}-perl-req-perlfile.patch
77 Patch4:         %{name}-scripts-closefds.patch
78 Patch5:         %{name}-php-macros.patch
79 Patch6:         %{name}-lua.patch
80 Patch7:         %{name}-perl_req-INC_dirs.patch
81 Patch8:         %{name}-debuginfo.patch
82 Patch9:         %{name}-javadeps.patch
83 Patch10:        %{name}-libtool-deps.patch
84 Patch11:        %{name}-builddir-readlink.patch
85 Patch12:        %{name}-changelog_order_check_nonfatal.patch
86 Patch13:        %{name}-postun-nofail.patch
87 Patch14:        %{name}-clean-docdir.patch
88 Patch15:        %{name}-perl-magic.patch
89 Patch16:        %{name}-ignore-missing-macro-files.patch
90 Patch17:        x32.patch
91 Patch18:        %{name}-fix-compress-doc.patch
92 Patch19:        vendor-pld.patch
93 URL:            https://rpm.org/
94 BuildRequires:  %{reqdb_pkg}-devel >= %{reqdb_pkgver}
95 BuildRequires:  %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
96 BuildRequires:  autoconf >= 2.63
97 BuildRequires:  automake >= 1.4
98 BuildRequires:  bzip2-devel >= 1.0.2-17
99 BuildRequires:  elfutils-devel >= 0.108
100 BuildRequires:  gettext-tools >= 0.19.2
101 BuildRequires:  libarchive-devel
102 BuildRequires:  libmagic-devel
103 BuildRequires:  openssl-devel >= %{openssl_ver}
104 %if %{with plugins}
105 BuildRequires:  audit-libs-devel
106 BuildRequires:  dbus-devel
107 BuildRequires:  libselinux-devel >= 2.1.0
108 %endif
109 # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
110 BuildRequires:  libstdc++-devel
111 BuildRequires:  libtool >= 1:1.4.2-9
112 BuildRequires:  lua53-devel >= 5.3.5
113 BuildRequires:  ossp-uuid-devel
114 BuildRequires:  patch >= 2.2
115 BuildRequires:  popt-devel >= %{reqpopt_ver}
116 %{?with_python2:BuildRequires:  python-devel >= 1:2.3}
117 %{?with_python3:BuildRequires:  python3-devel}
118 BuildRequires:  python-modules >= 1:2.3
119 %if %{with python2} || %{with python3}
120 BuildRequires:  rpm-pythonprov
121 %endif
122 BuildRequires:  tcl
123 BuildRequires:  xz-devel
124 BuildRequires:  zlib-devel
125 BuildRequires:  zstd-devel
126 %if %{with apidocs}
127 BuildRequires:  doxygen
128 BuildRequires:  ghostscript
129 BuildRequires:  graphviz
130 BuildRequires:  tetex-pdftex
131 %endif
132 Requires(posttrans):    coreutils
133 Requires:       %{name}-base = %{version}-%{release}
134 Requires:       %{name}-lib = %{version}-%{release}
135 Requires:       FHS >= 3.0-2
136 Requires:       openssl >= %{openssl_ver}
137 Requires:       popt >= %{reqpopt_ver}
138 %if %{with recommends_tags}
139 Recommends:     rpm-plugin-audit
140 Recommends:     rpm-plugin-prioreset
141 Recommends:     rpm-plugin-syslog
142 Recommends:     rpm-plugin-systemd-inhibit
143 %endif
144 Provides:       rpm-db-ver = %{reqdb_ver}
145 Obsoletes:      rpm-getdeps
146 Obsoletes:      rpm-utils-perl
147 Obsoletes:      rpm-utils-static
148 Conflicts:      glibc < 2.2.92
149 # db4.6 poldek needed
150 Conflicts:      poldek < 0.21-0.20070703.00.3
151 # segfaults with lzma 0.42.2
152 Conflicts:      lzma-libs < 4.999.3
153 Conflicts:      util-vserver < 0.30.216-1.pre3034.7
154 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
155
156 %define         _binary_payload         w9.gzdio
157
158 # don't require very fresh rpm.macros to build
159 %define         find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
160 %define         ix86    i386 i486 i586 i686 athlon geode pentium3 pentium4
161 %define         ppc     ppc ppc7400 ppc7450
162 %define         x8664   amd64 ia32e x86_64
163
164 %define         _rpmlibdir /usr/lib/rpm
165 %define         _noautocompressdoc      RPM-GPG-KEY
166
167 %description
168 RPM is a powerful package manager, which can be used to build,
169 install, query, verify, update, and uninstall individual software
170 packages. A package consists of an archive of files, and package
171 information, including name, version, and description.
172
173 %description -l de.UTF-8
174 RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
175 Installation, Anfrage, Verifizierung, Aktualisierung und
176 Uninstallation individueller Softwarepakete. Ein Paket besteht aus
177 einem Archiv Dateien und Paketinformation, inklusive Name, Version und
178 Beschreibung.
179
180 %description -l es.UTF-8
181 RPM es un poderoso administrador de paquetes, que puede ser usado para
182 construir, instalar, pesquisar, verificar, actualizar y desinstalar
183 paquetes individuales de software. Un paquete consiste en un
184 almacenaje de archivos, y información sobre el paquete, incluyendo
185 nombre, versión y descripción.
186
187 %description -l pl.UTF-8
188 RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
189 przebudowanie, instalację czy weryfikację dowolnego pakietu.
190 Informacje dotyczące każdego pakietu, takie jak jego opis, lista
191 plików wchodzących w skład pakietu, zależności od innych pakietów, są
192 przechowywane w bazie danych i można je uzyskać za pomocą opcji
193 odpytywania programu rpm.
194
195 %description -l pt_BR.UTF-8
196 RPM é um poderoso gerenciador de pacotes, que pode ser usado para
197 construir, instalar, pesquisar, verificar, atualizar e desinstalar
198 pacotes individuais de software. Um pacote consiste de um conjunto de
199 arquivos e informações adicionais, incluindo nome, versão e descrição
200 do pacote, permissões dos arquivos, etc.
201
202 %description -l ru.UTF-8
203 RPM - это мощный менеджер пакетов, который может быть использован для
204 создания, инсталляции, запросов (query), проверки, обновления и
205 удаления программных пакетов. Пакет состоит из файлового архива и
206 служебной информации, включающей название, версию, описание и другие
207 данные о пакете.
208
209 %description -l uk.UTF-8
210 RPM - це потужний менеджер пакетів, що може бути використаний для
211 створення, інсталяції, запитів (query), перевірки, поновлення та
212 видалення програмних пакетів. Пакет складається з файлового архіву та
213 службової інформації, що містить назву, версію, опис та іншу
214 інформацію про пакет.
215
216 %package base
217 Summary:        RPM base package - scripts used by rpm packages themselves
218 Summary(pl.UTF-8):      Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
219 Group:          Base
220 Requires:       filesystem
221 Obsoletes:      rpm-scripts
222 Obsoletes:      vserver-rpm
223
224 %description base
225 The RPM base package contains scripts used by rpm packages themselves.
226 These include:
227 - scripts for adding/removing groups and users needed for rpm
228   packages,
229 - banner.sh to display %%banner messages from rpm scriptlets.
230
231 %description base -l pl.UTF-8
232 Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
233 Zawiera on:
234 - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
235 - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
236
237 %package lib
238 Summary:        RPMs library
239 Summary(pl.UTF-8):      Biblioteki RPM-a
240 Group:          Libraries
241 Requires:       %{reqdb_pkg} >= %{reqdb_pkgver}
242 Requires:       %{reqdb_pkg}-sql >= %{reqdb_pkgver}
243 Requires:       libmagic >= 1.15-2
244 Requires:       openssl >= %{openssl_ver}
245 Requires:       popt >= %{reqpopt_ver}
246 Obsoletes:      rpm-libs
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 = %{version}-%{release}
266 Requires:       %{reqdb_pkg}-devel >= %{reqdb_pkgver}
267 Requires:       bzip2-devel
268 Requires:       elfutils-devel
269 Requires:       libmagic-devel
270 Requires:       openssl-devel >= %{openssl_ver}
271 %if %{with selinux}
272 Requires:       libselinux-devel
273 Requires:       libsemanage-devel
274 Requires:       libsepol-devel
275 %endif
276 Requires:       popt-devel >= %{reqpopt_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} = %{version}-%{release}
330 Requires:       popt >= %{reqpopt_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}-build-macros >= 1.712
357 Requires:       %{name}-utils = %{version}-%{release}
358 Requires:       /bin/id
359 Requires:       awk
360 Requires:       bzip2
361 Requires:       chrpath >= 0.10-4
362 Requires:       cpio
363 Requires:       diffutils
364 Requires:       elfutils
365 Requires:       file >= 4.17
366 Requires:       fileutils
367 Requires:       findutils
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(monoautodeps)
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 javaprov
413 Summary:        Additional utilities for checking Java provides/requires in RPM packages
414 Summary(pl.UTF-8):      Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM
415 Group:          Applications/File
416 Requires:       %{name} = %{version}-%{release}
417 Requires:       file
418 Requires:       findutils >= 1:4.2.26
419 Requires:       mktemp
420 Requires:       unzip
421
422 %description javaprov
423 Additional utilities for checking Java provides/requires in RPM
424 packages.
425
426 %description javaprov -l pl.UTF-8
427 Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach
428 RPM.
429
430 %package perlprov
431 Summary:        Additional utilities for checking Perl provides/requires in RPM packages
432 Summary(de.UTF-8):      Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
433 Summary(pl.UTF-8):      Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
434 Group:          Applications/File
435 Requires:       %{name} = %{version}-%{release}
436 Requires:       perl-Encode
437 Requires:       perl-devel
438 Requires:       perl-modules
439
440 %description perlprov
441 Additional utilities for checking Perl provides/requires in RPM
442 packages.
443
444 %description perlprov -l de.UTF-8
445 Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
446
447 %description perlprov -l pl.UTF-8
448 Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
449 pakietach RPM.
450
451 %package pythonprov
452 Summary:        Python macros, which simplifies creation of RPM packages with Python software
453 Summary(pl.UTF-8):      Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
454 Group:          Applications/File
455 Requires:       %{name} = %{version}-%{release}
456 Requires:       python
457 Requires:       python-modules
458 Requires:       python-setuptools
459
460 %description pythonprov
461 Python macros, which simplifies creation of RPM packages with Python
462 software.
463
464 %description pythonprov -l pl.UTF-8
465 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
466 Pythonie.
467
468 %package php-pearprov
469 Summary:        Additional utilities for checking PHP PEAR provides/requires in RPM packages
470 Summary(pl.UTF-8):      Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM
471 Group:          Applications/File
472 Requires:       %{name} = %{version}-%{release}
473 Requires:       sed >= 4.0
474 Suggests:       php-pear-PHP_CompatInfo
475
476 %description php-pearprov
477 Additional utilities for checking PHP PEAR provides/requires in RPM
478 packages.
479
480 %description php-pearprov -l pl.UTF-8
481 Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w
482 pakietach RPM.
483
484 %package rubyprov
485 Summary:        Ruby tools, which simplify creation of RPM packages with Ruby software
486 Summary(pl.UTF-8):      Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Ruby
487 Group:          Applications/File
488 Requires:       %{name} = %{version}-%{release}
489 Requires:       ruby
490 Requires:       ruby-modules
491 Requires:       ruby-rubygems
492
493 %description rubyprov
494 Ruby tools, which simplifies creation of RPM packages with Ruby
495 software.
496
497 %description rubyprov -l pl.UTF-8
498 Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
499 Ruby.
500
501 %package -n python-rpm
502 Summary:        Python interface to RPM library
503 Summary(pl.UTF-8):      Pythonowy interfejs do biblioteki RPM-a
504 Summary(pt_BR.UTF-8):   Módulo Python para aplicativos que manipulam pacotes RPM
505 Group:          Development/Languages/Python
506 Requires:       %{name} = %{version}-%{release}
507 Requires:       python
508 Obsoletes:      rpm-python
509
510 %description -n python-rpm
511 The python-rpm package contains a module which permits applications
512 written in the Python programming language to use the interface
513 supplied by RPM (RPM Package Manager) libraries.
514
515 This package should be installed if you want to develop Python
516 programs that will manipulate RPM packages and databases.
517
518 %description -n python-rpm -l pl.UTF-8
519 Pakiet python-rpm zawiera moduł, który pozwala aplikacjom napisanym w
520 Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
521
522 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
523 Pythonie programy manipulujące pakietami i bazami danych rpm.
524
525 %description -n python-rpm -l pt_BR.UTF-8
526 O pacote python-rpm contém um módulo que permite que aplicações
527 escritas em Python utilizem a interface fornecida pelas bibliotecas
528 RPM (RPM Package Manager).
529
530 Esse pacote deve ser instalado se você quiser desenvolver programas em
531 Python para manipular pacotes e bancos de dados RPM.
532
533 %package -n python3-rpm
534 Summary:        Python 3 interface to RPM library
535 Summary(pl.UTF-8):      Interfejs Pythona 3 do biblioteki RPM-a
536 Summary(pt_BR.UTF-8):   Módulo Python 3 para aplicativos que manipulam pacotes RPM
537 Group:          Development/Languages/Python
538 Requires:       %{name} = %{version}-%{release}
539 Requires:       python3
540
541 %description -n python3-rpm
542 The python3-rpm package contains a module which permits applications
543 written in the Python 3 programming language to use the interface
544 supplied by RPM (RPM Package Manager) libraries.
545
546 This package should be installed if you want to develop Python 3
547 programs that will manipulate RPM packages and databases.
548
549 %description -n python3-rpm -l pl.UTF-8
550 Pakiet python3-rpm zawiera moduł, który pozwala aplikacjom napisanym w
551 Pythonie 3 na używanie interfejsu dostarczanego przez biblioteki RPM-a.
552
553 Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
554 Pythonie 3 programy manipulujące pakietami i bazami danych rpm.
555
556 %description -n python3-rpm -l pt_BR.UTF-8
557 O pacote python3-rpm contém um módulo que permite que aplicações
558 escritas em Python 3 utilizem a interface fornecida pelas bibliotecas
559 RPM (RPM Package Manager).
560
561 Esse pacote deve ser instalado se você quiser desenvolver programas em
562 Python 3 para manipular pacotes e bancos de dados RPM.
563
564 %package plugin-audit
565 Summary:        Plugin for logging audit events on package operations
566 Group:          System/Base
567 Requires:       %{name}-lib = %{version}-%{release}
568
569 %description plugin-audit
570 Plugin for libaudit support
571
572 %package plugin-syslog
573 Summary:        Plugin for syslog functionality
574 Group:          System/Base
575 Requires:       %{name}-lib = %{version}-%{release}
576
577 %description plugin-syslog
578 This plugin exports RPM actions to the system log.
579
580 %package plugin-systemd-inhibit
581 Summary:        Plugin for systemd inhibit functionality
582 Group:          System/Base
583 Requires:       %{name}-lib = %{version}-%{release}
584
585 %description plugin-systemd-inhibit
586 This plugin blocks systemd from entering idle, sleep or shutdown while
587 an rpm transaction is running using the systemd-inhibit mechanism.
588
589 %package plugin-ima
590 Summary:        Plugin for IMA file signatures
591 Group:          Base
592 Requires:       %{name}-lib = %{version}-%{release}
593
594 %description plugin-ima
595 This plugin adds support for enforcing and verifying IMA file
596 signatures in an rpm.
597
598 %package plugin-prioreset
599 Summary:        Plugin for resetting scriptlet priorities for SysV init
600 Group:          Base
601 Requires:       %{name}-lib = %{version}-%{release}
602
603 %description plugin-prioreset
604 This plugin is useful on legacy SysV init systems if you run rpm
605 transactions with nice/ionice priorities. Should not be used on
606 systemd systems.
607
608 %package plugin-selinux
609 Summary:        Plugin for SELinux functionality
610 Group:          Base
611 Requires:       %{name}-lib = %{version}-%{release}
612 Requires:       libselinux >= 2.1.0
613
614 %description plugin-selinux
615 Plugin for SELinux functionality.
616
617 %package sign
618 Summary:        Package signing support
619 Group:          Base
620 Requires:       %{name}-lib = %{version}-%{release}
621
622 %description sign
623 This package contains support for digitally signing RPM packages.
624
625 %package apidocs
626 Summary:        RPM API documentation and guides
627 Summary(pl.UTF-8):      Documentacja API RPM-a i przewodniki
628 Group:          Documentation
629 BuildArch:      noarch
630
631 %description apidocs
632 Documentation for RPM API and guides in HTML format generated from rpm
633 sources by doxygen.
634
635 %description apidocs -l pl.UTF-8
636 Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
637 źrodeł RPM-a przez doxygen.
638
639 %prep
640 %setup -q -n %{name}-%{version}%{?subver}
641 %patch0 -p1
642 %patch1 -p1
643 %patch2 -p1
644 %patch3 -p1
645 %patch4 -p1
646 %patch5 -p1
647 %patch6 -p1
648 %patch7 -p0
649 %patch8 -p1
650 %patch9 -p1
651 %patch10 -p1
652 %patch11 -p1
653 %patch12 -p1
654 %patch13 -p1
655 %patch14 -p1
656 %patch15 -p1
657 %patch16 -p1
658 %patch17 -p1
659 #%patch18 -p1
660 #%patch19 -p1
661
662 install %{SOURCE2} pld.in
663 install %{SOURCE8} scripts/php.prov.in
664 install %{SOURCE9} scripts/php.req.in
665 install %{SOURCE11} scripts/perl.prov.in
666 cp -p %{SOURCE30} scripts/rubygems.rb
667 cp -p %{SOURCE31} scripts/gem_helper.rb
668
669 %{__mv} -f scripts/perl.req{,.in}
670
671 # generate Group translations to *.po
672 awk -f %{SOURCE6} %{SOURCE1}
673
674 install %{SOURCE26} tools/rpmdb_checkversion.c
675 install %{SOURCE28} tools/rpmdb_reset.c
676
677 %{__sed} -i -e '1s,/usr/bin/python,%{__python},' scripts/pythondistdeps.py
678
679 %build
680 %{__libtoolize}
681 %{__aclocal}
682 %{__autoheader}
683 %{__autoconf}
684 %{__automake}
685
686 # rpm checks for CPU type at runtime, but it looks better
687 sed -i \
688         -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
689         -e 's|@host_cpu@|%{_target_cpu}|' \
690         -e 's|@host_os@|%{_target_os}|' \
691         macros.in
692
693 CPPFLAGS="-I/usr/include/lua53 %{rpmcppflags}"
694 %configure \
695         WITH_PERL_VERSION=no \
696         __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
697         __GPG=%{_bindir}/gpg \
698         %{?with_python3:PYTHON=python3} \
699         %{!?with_python3:%{?with_python2:PYTHON=python2}} \
700         --disable-silent-rules \
701         --enable-shared \
702         --enable-bdb \
703         --enable-zstd \
704         --with-crypto=openssl \
705         --with-lua \
706         --with-cap \
707         --with-acl \
708         --with-audit \
709         --with-archive \
710 %if %{with python2} || %{with python3}
711         --enable-python \
712 %endif
713         --with-selinux=%{!?with_plugins:no}%{?with_plugins:yes} \
714         %{!?with_plugins:--disable-plugins} \
715         --with-vendor=pld
716
717 #  --enable-ndb (EXPERIMENTAL) enable the new rpm database format
718 #  --enable-lmdb=[yes/no/auto] (EXPERIMENTAL) build with LMDB rpm database format support (default=auto)
719 #  --with-imaevm           build with imaevm support
720
721 %{__make}
722
723 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
724         -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
725 %{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
726         -o tools/rpmdb_reset -ldb-%{reqdb_ver}
727
728 if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
729         echo "Error linking rpmdb tools!"
730         exit 1
731 fi
732 if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
733         echo "Error linking rpmdb tools!"
734         exit 1
735 fi
736
737 %if %{with python2}
738 cd python
739 %py_build
740 cd ..
741 %endif
742
743 %if %{with python3}
744 cd python
745 %py3_build
746 %endif
747
748 %install
749 rm -rf $RPM_BUILD_ROOT
750 install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/{rpm,pki/rpm-gpg}} \
751         $RPM_BUILD_ROOT{/var/lib/{banner,rpm},/var/cache/hrmib}
752
753 cp -p %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
754
755 %{__make} install \
756         pkgconfigdir=%{_pkgconfigdir} \
757         DESTDIR=$RPM_BUILD_ROOT
758
759 # cleanup
760 %ifnarch %{ix86} %{x8664} x32
761 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/athlon-linux/macros
762 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/geode-linux/macros
763 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i386-linux/macros
764 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i486-linux/macros
765 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i586-linux/macros
766 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i686-linux/macros
767 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium3-linux/macros
768 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium4-linux/macros
769 %endif
770
771 %ifnarch %{x8664} x32
772 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/amd64-linux/macros
773 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia32e-linux/macros
774 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x32-linux/macros
775 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x86_64-linux/macros
776 %endif
777
778 %ifnarch %{ppc}
779 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/m68k-linux/macros
780 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc32dy4-linux/macros
781 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc64*-linux/macros
782 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8260-linux/macros
783 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8560-linux/macros
784 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros
785 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros
786 %endif
787
788 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros
789 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
790 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros
791 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros
792 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros
793 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros
794 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros
795 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros
796 rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros
797
798 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
799
800 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
801 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond
802 cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc
803 cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
804 cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires
805 cp -p scripts/php.{prov,req}    $RPM_BUILD_ROOT%{_rpmlibdir}
806 cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php
807 cp -p %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh
808 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
809 cp -p %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm
810
811 cp -p %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh
812
813 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo
814
815 cp -p %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
816 cp -p %{SOURCE27} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
817 cp -p %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
818 cp -p %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
819 cp -p %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
820 cp -p %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
821 cp -p %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
822
823 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname
824 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames
825 cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos
826 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename
827 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename
828 touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename
829
830 cp -p tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/
831 cp -p tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/
832 cp -p %{SOURCE29} $RPM_BUILD_ROOT%{_rpmlibdir}/dbupgrade.sh
833
834 # move rpm to /bin
835 %{__mv} $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
836 ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmquery
837 ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmverify
838
839 # move essential libs to /lib (libs that /bin/rpm links to)
840 for a in librpm.so librpmbuild.so librpmio.so librpmsign.so; do
841         mv -f $RPM_BUILD_ROOT%{_libdir}/${a}.* $RPM_BUILD_ROOT/%{_lib}
842         ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/${a}.*.*.*) $RPM_BUILD_ROOT%{_libdir}/${a}
843 done
844
845 #./rpmdb --macros=macros --rcfile=rpmrc --dbpath=/home/users/baggins/devel/PLD/rpm/BUILD/rpm-4.15.1/x/ --initdb
846
847 %if %{with python2}
848 # Remove anything that rpm make install might put there
849 %{__rm} -rf $RPM_BUILD_ROOT%{py_sitedir}
850 cd python
851 %py_install
852 %py_postclean
853 cd ..
854 %endif
855
856 %if %{with python3}
857 # Remove anything that rpm make install might put there
858 %{__rm} -rf $RPM_BUILD_ROOT%{py3_sitedir}
859 cd python
860 %py3_install
861 cd ..
862 %endif
863
864 %{__rm} $RPM_BUILD_ROOT%{_libdir}/rpm-plugins/*.la
865
866 # wrong location, not used anyway
867 %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log}
868
869 %find_lang %{name}
870
871 %clean
872 rm -rf $RPM_BUILD_ROOT
873
874 %pretrans
875 # this needs to be a dir
876 if [ -f %{_sysconfdir}/rpm/sysinfo ]; then
877         umask 022
878         mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave}
879         mkdir %{_sysconfdir}/rpm/sysinfo
880 fi
881
882 %posttrans
883 if [ -e /var/lib/rpm/Packages ] && \
884                 ! %{_rpmlibdir}/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
885         if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
886                         /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
887                 echo
888                 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
889                 echo
890         fi
891         echo
892         echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
893         echo 'you should ignore it and restart poldek'
894         echo
895         %{_rpmlibdir}/dbupgrade.sh
896 fi
897
898 %triggerpostun -- %{name} < 4.4.9-44
899 %{_rpmlibdir}/hrmib-cache
900
901 %post   lib -p /sbin/ldconfig
902 %postun lib -p /sbin/ldconfig
903
904 %pretrans build
905 find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
906
907 %files -f %{name}.lang
908 %defattr(644,root,root,755)
909 %doc ChangeLog CREDITS README
910
911 %dir /etc/pki/rpm-gpg
912 /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
913
914 %attr(755,root,root) /bin/rpm
915 %attr(755,root,root) %{_bindir}/rpmdb
916 %attr(755,root,root) %{_bindir}/rpmkeys
917 %attr(755,root,root) %{_bindir}/rpmquery
918 %attr(755,root,root) %{_bindir}/rpmverify
919
920 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
921 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
922 %dir %{_sysconfdir}/rpm/sysinfo
923 # these are ok to be replaced
924 %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/*
925
926 %{_mandir}/man8/rpm.8*
927 %{_mandir}/man8/rpmdb.8*
928 %{_mandir}/man8/rpmkeys.8*
929 %{_mandir}/man8/rpm-misc.8*
930 %lang(fr) %{_mandir}/fr/man8/rpm.8*
931 %lang(ja) %{_mandir}/ja/man8/rpm.8*
932 %lang(ko) %{_mandir}/ko/man8/rpm.8*
933 %lang(pl) %{_mandir}/pl/man8/rpm.8*
934 %lang(ru) %{_mandir}/ru/man8/rpm.8*
935 %lang(sk) %{_mandir}/sk/man8/rpm.8*
936
937 %dir /var/lib/rpm
938
939 # exported package NVRA (stamped with install tid)
940 # net-snmp hrSWInstalledName queries, bash-completions
941 %dir /var/cache/hrmib
942
943 %{_rpmlibdir}/rpmpopt*
944 %{_rpmlibdir}/rpmrc
945 %{_rpmlibdir}/macros
946 %dir %{_rpmlibdir}/macros.d
947 #%{_rpmlibdir}/macros.d/pld
948 %{_rpmlibdir}/platform/noarch-*
949 %ifarch %{ix86} %{x8664} x32
950 %{_rpmlibdir}/platform/athlon*
951 %{_rpmlibdir}/platform/geode*
952 %{_rpmlibdir}/platform/i?86*
953 %{_rpmlibdir}/platform/pentium*
954 %endif
955 %ifarch %{x8664} x32
956 %{_rpmlibdir}/platform/amd64*
957 %{_rpmlibdir}/platform/ia32e*
958 %{_rpmlibdir}/platform/x86_64*
959 %{_rpmlibdir}/platform/x32*
960 %endif
961 %ifarch alpha
962 %{_rpmlibdir}/platform/alpha*
963 %endif
964 %ifarch ia64
965 %{_rpmlibdir}/platform/ia64*
966 %endif
967 %ifarch mips mipsel mips64 mips64el
968 %{_rpmlibdir}/platform/mips*
969 %endif
970 %ifarch %{ppc}
971 %{_rpmlibdir}/platform/ppc*
972 %endif
973 %ifarch sparc sparc64
974 %{_rpmlibdir}/platform/sparc*
975 %endif
976
977 %attr(755,root,root) %{_rpmlibdir}/hrmib-cache
978
979 %attr(755,root,root) %{_rpmlibdir}/dbupgrade.sh
980 %attr(755,root,root) %{_rpmlibdir}/rpmdb_checkversion
981 %attr(755,root,root) %{_rpmlibdir}/rpmdb_reset
982
983 # valgrind suppression file for rpm
984 %{_rpmlibdir}/rpm.supp
985
986 %files base
987 %defattr(644,root,root,755)
988 %dir %{_sysconfdir}/rpm
989 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
990 %dir %{_rpmlibdir}
991 %attr(755,root,root) %{_bindir}/banner.sh
992 %attr(755,root,root) %{_rpmlibdir}/user_group.sh
993 %dir /var/lib/banner
994
995 %files lib
996 %defattr(644,root,root,755)
997 %attr(755,root,root) /%{_lib}/librpm.so.9
998 %attr(755,root,root) /%{_lib}/librpm.so.%{sover}
999 %attr(755,root,root) /%{_lib}/librpmbuild.so.9
1000 %attr(755,root,root) /%{_lib}/librpmbuild.so.%{sover}
1001 %attr(755,root,root) /%{_lib}/librpmio.so.9
1002 %attr(755,root,root) /%{_lib}/librpmio.so.%{sover}
1003 %attr(755,root,root) /%{_lib}/librpmsign.so.9
1004 %attr(755,root,root) /%{_lib}/librpmsign.so.%{sover}
1005 %{?with_plugins:%dir %{_libdir}/rpm-plugins}
1006
1007 %files devel
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_libdir}/librpm.so
1010 %attr(755,root,root) %{_libdir}/librpmbuild.so
1011 %attr(755,root,root) %{_libdir}/librpmio.so
1012 %attr(755,root,root) %{_libdir}/librpmsign.so
1013 %{_libdir}/librpm*.la
1014 %{_includedir}/rpm
1015 %{_pkgconfigdir}/*.pc
1016
1017 %files utils
1018 %defattr(644,root,root,755)
1019 %attr(755,root,root) %{_bindir}/rpm2archive
1020 %attr(755,root,root) %{_bindir}/rpm2cpio
1021 %attr(755,root,root) %{_bindir}/rpmgraph
1022 %attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
1023 %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
1024 %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
1025 %attr(755,root,root) %{_rpmlibdir}/tgpg
1026 %attr(755,root,root) %{_rpmlibdir}/debugedit
1027 %attr(755,root,root) %{_rpmlibdir}/rpmdeps
1028 %{_mandir}/man8/rpm2cpio.8*
1029 %{_mandir}/man8/rpmdeps.8*
1030 %{_mandir}/man8/rpmgraph.8*
1031 %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
1032 %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
1033 %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
1034 %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
1035 %lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
1036 %lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
1037 %lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
1038
1039 %files build
1040 %defattr(644,root,root,755)
1041 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
1042 %attr(755,root,root) %{_rpmlibdir}/brp-*
1043 %attr(755,root,root) %{_rpmlibdir}/check-files
1044 %attr(755,root,root) %{_rpmlibdir}/compress-doc
1045 %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond
1046 %attr(755,root,root) %{_rpmlibdir}/install-build-tree
1047 %attr(755,root,root) %{_rpmlibdir}/elfdeps
1048 %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
1049 %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh
1050 # needs hacked pkg-config to return anything
1051 %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
1052 %attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
1053 # we always used scripts provided by mono-devel, maybe move them here
1054 #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides
1055 #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires
1056
1057 %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
1058 # must be here for "Requires: rpm-*prov" to work
1059 #%{_rpmlibdir}/macros.d/cmake
1060 #%{_rpmlibdir}/macros.d/gstreamer
1061 #%{_rpmlibdir}/macros.d/java
1062 #%{_rpmlibdir}/macros.d/libtool
1063 #%{_rpmlibdir}/macros.d/mono
1064 #%{_rpmlibdir}/macros.d/perl
1065 #%{_rpmlibdir}/macros.d/php
1066 #%{_rpmlibdir}/macros.d/pkgconfig
1067 #%{_rpmlibdir}/macros.d/python
1068 #%{_rpmlibdir}/macros.d/ruby
1069 #%{_rpmlibdir}/macros.d/selinux
1070 #%{_rpmlibdir}/macros.d/tcl
1071 #%{_rpmlibdir}/macros.rpmbuild
1072
1073 %attr(755,root,root) %{_rpmlibdir}/check-buildroot
1074 %attr(755,root,root) %{_rpmlibdir}/check-prereqs
1075 %attr(755,root,root) %{_rpmlibdir}/check-rpaths
1076 %attr(755,root,root) %{_rpmlibdir}/check-rpaths-worker
1077 %attr(755,root,root) %{_rpmlibdir}/debuginfo.prov
1078 %attr(755,root,root) %{_rpmlibdir}/desktop-file.prov
1079 %attr(755,root,root) %{_rpmlibdir}/find-provides
1080 %attr(755,root,root) %{_rpmlibdir}/find-requires
1081 %attr(755,root,root) %{_rpmlibdir}/metainfo.prov
1082 %attr(755,root,root) %{_rpmlibdir}/ocaml-find-provides.sh
1083 %attr(755,root,root) %{_rpmlibdir}/ocaml-find-requires.sh
1084 %attr(755,root,root) %{_rpmlibdir}/script.req
1085 %attr(755,root,root) %{_rpmlibdir}/sepdebugcrcfix
1086 # Fedora has this in -build, but shouldn't this be in -devel?
1087 %attr(755,root,root) %{_rpmlibdir}/config.guess
1088 %attr(755,root,root) %{_rpmlibdir}/config.sub
1089
1090 %dir %{_rpmlibdir}/fileattrs
1091 %{_rpmlibdir}/fileattrs/debuginfo.attr
1092 %{_rpmlibdir}/fileattrs/desktop.attr
1093 %{_rpmlibdir}/fileattrs/elf.attr
1094 %{_rpmlibdir}/fileattrs/font.attr
1095 %{_rpmlibdir}/fileattrs/libtool.attr
1096 %{_rpmlibdir}/fileattrs/metainfo.attr
1097 %{_rpmlibdir}/fileattrs/ocaml.attr
1098 %{_rpmlibdir}/fileattrs/perl.attr
1099 %{_rpmlibdir}/fileattrs/perllib.attr
1100 %{_rpmlibdir}/fileattrs/php.attr
1101 %{_rpmlibdir}/fileattrs/pkgconfig.attr
1102 %{_rpmlibdir}/fileattrs/python.attr
1103 %{_rpmlibdir}/fileattrs/pythondist.attr
1104 %{_rpmlibdir}/fileattrs/script.attr
1105
1106 %attr(755,root,root) %{_bindir}/gendiff
1107 %attr(755,root,root) %{_bindir}/rpmbuild
1108 %attr(755,root,root) %{_bindir}/rpmspec
1109
1110 %{_mandir}/man1/gendiff.1*
1111 %lang(pl) %{_mandir}/pl/man1/gendiff.1*
1112 %{_mandir}/man8/rpmbuild.8*
1113 %lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
1114 %lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
1115 %{_mandir}/man8/rpmspec.8*
1116
1117 %files javaprov
1118 %defattr(644,root,root,755)
1119 %attr(755,root,root) %{_rpmlibdir}/java-find-requires
1120 # needs jar (any jdk), jcf-dump (gcc-java) to work
1121 #%attr(755,root,root) %{_rpmlibdir}/javadeps.sh
1122
1123 %files rubyprov
1124 %defattr(644,root,root,755)
1125 #%attr(755,root,root) %{_rpmlibdir}/gem_helper.rb
1126 #%attr(755,root,root) %{_rpmlibdir}/rubygems.rb
1127
1128 %files perlprov
1129 %defattr(644,root,root,755)
1130 %attr(755,root,root) %{_rpmlibdir}/perl.*
1131
1132 %files pythonprov
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
1135 %attr(755,root,root) %{_rpmlibdir}/pythondistdeps.py
1136
1137 %files php-pearprov
1138 %defattr(644,root,root,755)
1139 %attr(755,root,root) %{_rpmlibdir}/php.prov
1140 %attr(755,root,root) %{_rpmlibdir}/php.req
1141 %attr(755,root,root) %{_rpmlibdir}/php.req.php
1142
1143 %if %{with python2}
1144 %files -n python-rpm
1145 %defattr(644,root,root,755)
1146 %dir %{py_sitedir}/rpm
1147 %attr(755,root,root) %{py_sitedir}/rpm/*.so
1148 %{py_sitedir}/rpm/*.py[co]
1149 %{py_sitedir}/rpm-%{version}-py*.egg-info
1150 %endif
1151
1152 %if %{with python3}
1153 %files -n python3-rpm
1154 %defattr(644,root,root,755)
1155 %dir %{py3_sitedir}/rpm
1156 %attr(755,root,root) %{py3_sitedir}/rpm/*.so
1157 %{py3_sitedir}/rpm/*.py
1158 %{py3_sitedir}/rpm-%{version}-py*.egg-info
1159 %{py3_sitedir}/rpm/__pycache__
1160 %endif
1161
1162 %if %{with plugins}
1163 %files plugin-audit
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{_libdir}/rpm-plugins/audit.so
1166
1167 %files plugin-syslog
1168 %defattr(644,root,root,755)
1169 %attr(755,root,root) %{_libdir}/rpm-plugins/syslog.so
1170
1171 %files plugin-systemd-inhibit
1172 %defattr(644,root,root,755)
1173 %attr(755,root,root) %{_libdir}/rpm-plugins/systemd_inhibit.so
1174 %{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
1175
1176 %files plugin-ima
1177 %defattr(644,root,root,755)
1178 %attr(755,root,root) %{_libdir}/rpm-plugins/ima.so
1179
1180 %files plugin-prioreset
1181 %defattr(644,root,root,755)
1182 %attr(755,root,root) %{_libdir}/rpm-plugins/prioreset.so
1183
1184 %files plugin-selinux
1185 %defattr(644,root,root,755)
1186 %attr(755,root,root) %{_libdir}/rpm-plugins/selinux.so
1187 %endif
1188
1189 %files sign
1190 %defattr(644,root,root,755)
1191 %attr(755,root,root) %{_bindir}/rpmsign
1192 %{_mandir}/man8/rpmsign.8*
1193
1194 %if %{with apidocs}
1195 %files apidocs
1196 %defattr(644,root,root,755)
1197 %doc doc/librpm/html/*
1198 %endif
This page took 0.253019 seconds and 3 git commands to generate.