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