]> git.pld-linux.org Git - packages/rpm.git/blame - rpm.spec
- try checking and creating build dirs after spec parse (PLD _specdir dir contains...
[packages/rpm.git] / rpm.spec
CommitLineData
52c10eff 1#
2# TODO:
e8836e1f 3# - rebuild database after upgrading from rpm5
c296fee0 4# - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985
76005b82 5#
89427592 6# Conditional build:
0a1ccab0 7%bcond_without apidocs # don't generate documentation with doxygen
f9d0e5f6
JR
8%bcond_without python2 # don't build python bindings
9%bcond_without python3 # don't build python bindings
b0333243 10%bcond_without plugins # build plugins
af0cc499 11%bcond_without recommends_tags # build without Recommends tag (bootstrapping)
fb35e2d9 12%bcond_with db61 # use DB 6.1 instead of 5.3
858aa7d0 13
003a039e 14# versions of required libraries
7f47af9c
JB
15%if %{with db61}
16%define reqdb_pkg db6.1
17%define reqdb_ver 6.1
18%define reqdb_pkgver 6.1.19
5f3f5bd6 19%else
fb35e2d9
JR
20%define reqdb_pkg db5.3
21%define reqdb_ver 5.3
22%define reqdb_pkgver 5.3.28.0
5f3f5bd6 23%endif
ec44785a 24%define reqpopt_ver 1.15
fb35e2d9 25%define openssl_ver 1.1.1d
2f409bb7 26%define sover 9.0.1
fc60c9f3 27
e5f02e49 28Summary: RPM Package Manager
4ea2ed33
ER
29Summary(de.UTF-8): RPM Packet-Manager
30Summary(es.UTF-8): Gestor de paquetes RPM
31Summary(pl.UTF-8): Aplikacja do zarządzania pakietami RPM
32Summary(pt_BR.UTF-8): Gerenciador de pacotes RPM
33Summary(ru.UTF-8): Менеджер пакетов от RPM
34Summary(uk.UTF-8): Менеджер пакетів від RPM
76214164 35Name: rpm
6ecfe7c2 36Version: 4.15.1
98d9fc8e 37Release: 0.1
9fe07969 38Epoch: 1
98d9fc8e 39License: GPL v2 / LGPL v2.1
76214164 40Group: Base
6ecfe7c2
JR
41Source0: http://ftp.rpm.org/releases/rpm-4.15.x/%{name}-%{version}.tar.bz2
42# Source0-md5: ed72147451a5ed93b2a48e2f8f5413c3
faba01eb
JR
43Source1: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
44# Source1-md5: 23914bb49fafe7153cee87126d966461
45Source2: macros.local
46Source3: macros.lang
47Source4: %{name}.sysconfig
48Source5: %{name}.groups
80b8a1f9 49Source6: %{name}-groups-po.awk
faba01eb
JR
50Source7: %{name}-install-tree
51Source8: %{name}-hrmib-cache
52Source9: %{name}-user_group.sh
a4b7ef27 53# http://svn.pld-linux.org/banner.sh/
faba01eb
JR
54Source10: banner.sh
55Source11: %{name}.noautocompressdoc
56Source12: %{name}.noautoprov
57Source13: %{name}.noautoprovfiles
58Source14: %{name}.noautoreq
59Source15: %{name}.noautoreqfiles
60Source16: perl.prov
61Source17: %{name}db_checkversion.c
62Source18: %{name}db_reset.c
63Source19: dbupgrade.sh
af0cc499
JR
64Patch0: %{name}-man_pl.patch
65Patch1: %{name}-popt-aliases.patch
66Patch2: %{name}-perl-macros.patch
67Patch3: %{name}-perl-req-perlfile.patch
68Patch4: %{name}-scripts-closefds.patch
cbab0cbf
JR
69Patch5: %{name}-lua.patch
70Patch6: %{name}-perl_req-INC_dirs.patch
71Patch7: %{name}-debuginfo.patch
72Patch8: %{name}-libtool-deps.patch
73Patch9: %{name}-builddir-readlink.patch
74Patch10: %{name}-changelog_order_check_nonfatal.patch
75Patch11: %{name}-postun-nofail.patch
76Patch12: %{name}-clean-docdir.patch
77Patch13: %{name}-perl-magic.patch
78Patch14: %{name}-ignore-missing-macro-files.patch
79Patch15: x32.patch
80Patch16: %{name}-add-compress-doc.patch
81Patch17: rpm5-db-compat.patch
82Patch18: python-internal-build.patch
b7aed470 83Patch19: create-build-tree-after-parse.patch
681ee2f6 84URL: https://rpm.org/
cf169f7c 85BuildRequires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
cf169f7c 86BuildRequires: %{reqdb_pkg}-sql-devel >= %{reqdb_pkgver}
29855fc2 87BuildRequires: autoconf >= 2.63
644d8958 88BuildRequires: automake >= 1.4
33be5db0 89BuildRequires: bzip2-devel >= 1.0.2-17
33be5db0 90BuildRequires: elfutils-devel >= 0.108
3e70c06e 91BuildRequires: gettext-tools >= 0.19.2
af0cc499 92BuildRequires: libarchive-devel
241257bf 93BuildRequires: libmagic-devel
d1f5e279 94BuildRequires: openssl-devel >= %{openssl_ver}
b0333243
JR
95%if %{with plugins}
96BuildRequires: audit-libs-devel
97BuildRequires: dbus-devel
6e115b23 98BuildRequires: libselinux-devel >= 2.1.0
6e115b23 99%endif
84cdee7a
JB
100# needed only for AM_PROG_CXX used for CXX substitution in rpm.macros
101BuildRequires: libstdc++-devel
b60c74c3 102BuildRequires: libtool >= 1:1.4.2-9
5c767dc1 103BuildRequires: lua53-devel >= 5.3.5
127a0b3c 104BuildRequires: ossp-uuid-devel
7973b351 105BuildRequires: patch >= 2.2
1d49ffbc 106BuildRequires: popt-devel >= %{reqpopt_ver}
f9d0e5f6
JR
107%{?with_python2:BuildRequires: python-devel >= 1:2.3}
108%{?with_python3:BuildRequires: python3-devel}
950eead3 109BuildRequires: python-modules >= 1:2.3
f9d0e5f6
JR
110%if %{with python2} || %{with python3}
111BuildRequires: rpm-pythonprov
112%endif
e56a10a9 113BuildRequires: tcl
77fcdbf7 114BuildRequires: xz-devel
3acb62f3 115BuildRequires: zlib-devel
34865f27 116BuildRequires: zstd-devel
5c2ab5c7
AM
117%if %{with apidocs}
118BuildRequires: doxygen
119BuildRequires: ghostscript
120BuildRequires: graphviz
121BuildRequires: tetex-pdftex
122%endif
d25ec6ea 123Requires(posttrans): coreutils
9fe07969
JR
124Requires: %{name}-base = %{epoch}:%{version}-%{release}
125Requires: %{name}-lib = %{epoch}:%{version}-%{release}
3de8e4a9 126Requires: rpm-pld-macros >= 1.744
d1f5e279 127Requires: FHS >= 3.0-2
fb35e2d9 128Requires: openssl >= %{openssl_ver}
10abbd40 129Requires: popt >= %{reqpopt_ver}
b0333243
JR
130%if %{with recommends_tags}
131Recommends: rpm-plugin-audit
132Recommends: rpm-plugin-prioreset
133Recommends: rpm-plugin-syslog
134Recommends: rpm-plugin-systemd-inhibit
135%endif
0229a8b9
AM
136Provides: rpm-db-ver = %{reqdb_ver}
137Obsoletes: rpm-getdeps
d1f5e279 138Obsoletes: rpm-utils-perl
f57f030d 139Obsoletes: rpm-utils-static
874f4c9a 140Conflicts: glibc < 2.2.92
8ee1c72c
AM
141# db4.6 poldek needed
142Conflicts: poldek < 0.21-0.20070703.00.3
d268a169
AM
143# segfaults with lzma 0.42.2
144Conflicts: lzma-libs < 4.999.3
e4084afd 145Conflicts: util-vserver < 0.30.216-1.pre3034.7
1d49ffbc 146BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6d82b332 147
4adb7d05 148%define _binary_payload w9.gzdio
6d82b332 149
4cd84746 150# don't require very fresh rpm.macros to build
950eead3 151%define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT
af0cc499 152%define ix86 i386 i486 i586 i686 athlon geode pentium3 pentium4
80e9f34d 153%define ppc ppc ppc7400 ppc7450
9f517079 154%define x8664 amd64 ia32e x86_64
4cd84746 155
d755a548 156%define _rpmlibdir /usr/lib/rpm
950eead3 157%define _noautocompressdoc RPM-GPG-KEY
d755a548 158
ff7bc1e6 159%description
160RPM is a powerful package manager, which can be used to build,
161install, query, verify, update, and uninstall individual software
cf6faebc 162packages. A package consists of an archive of files, and package
fed73700 163information, including name, version, and description.
164
dd85fadc
JR
165%description -l de.UTF-8
166RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur
fed73700 167Installation, Anfrage, Verifizierung, Aktualisierung und
168Uninstallation individueller Softwarepakete. Ein Paket besteht aus
169einem Archiv Dateien und Paketinformation, inklusive Name, Version und
313a4d1a 170Beschreibung.
171
dd85fadc 172%description -l es.UTF-8
313a4d1a 173RPM es un poderoso administrador de paquetes, que puede ser usado para
174construir, instalar, pesquisar, verificar, actualizar y desinstalar
175paquetes individuales de software. Un paquete consiste en un
dd85fadc
JR
176almacenaje de archivos, y información sobre el paquete, incluyendo
177nombre, versión y descripción.
178
179%description -l pl.UTF-8
180RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on
181przebudowanie, instalację czy weryfikację dowolnego pakietu.
182Informacje dotyczące każdego pakietu, takie jak jego opis, lista
183plików wchodzących w skład pakietu, zależności od innych pakietów, są
184przechowywane w bazie danych i można je uzyskać za pomocą opcji
313a4d1a 185odpytywania programu rpm.
186
dd85fadc
JR
187%description -l pt_BR.UTF-8
188RPM é um poderoso gerenciador de pacotes, que pode ser usado para
313a4d1a 189construir, instalar, pesquisar, verificar, atualizar e desinstalar
190pacotes individuais de software. Um pacote consiste de um conjunto de
dd85fadc
JR
191arquivos e informações adicionais, incluindo nome, versão e descrição
192do pacote, permissões dos arquivos, etc.
193
194%description -l ru.UTF-8
195RPM - это мощный менеджер пакетов, который может быть использован для
196создания, инсталляции, запросов (query), проверки, обновления и
197удаления программных пакетов. Пакет состоит из файлового архива и
198служебной информации, включающей название, версию, описание и другие
199данные о пакете.
200
201%description -l uk.UTF-8
202RPM - це потужний менеджер пакетів, що може бути використаний для
203створення, інсталяції, запитів (query), перевірки, поновлення та
204видалення програмних пакетів. Пакет складається з файлового архіву та
205службової інформації, що містить назву, версію, опис та іншу
206інформацію про пакет.
7c6dc55f 207
66edd895
JB
208%package base
209Summary: RPM base package - scripts used by rpm packages themselves
4ea2ed33 210Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm
66edd895 211Group: Base
1d9ca0c1 212Requires: filesystem
950eead3 213Obsoletes: rpm-scripts
66edd895
JB
214Obsoletes: vserver-rpm
215
216%description base
217The RPM base package contains scripts used by rpm packages themselves.
218These include:
219- scripts for adding/removing groups and users needed for rpm
220 packages,
221- banner.sh to display %%banner messages from rpm scriptlets.
222
dd85fadc
JR
223%description base -l pl.UTF-8
224Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm.
66edd895 225Zawiera on:
dd85fadc
JR
226- skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm,
227- banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm.
66edd895 228
69131f1a
JB
229%package lib
230Summary: RPMs library
4ea2ed33 231Summary(pl.UTF-8): Biblioteki RPM-a
69131f1a 232Group: Libraries
cf169f7c 233Requires: %{reqdb_pkg} >= %{reqdb_pkgver}
cf169f7c 234Requires: %{reqdb_pkg}-sql >= %{reqdb_pkgver}
241257bf 235Requires: libmagic >= 1.15-2
d1f5e279 236Requires: openssl >= %{openssl_ver}
69131f1a 237Requires: popt >= %{reqpopt_ver}
d1795eb0 238Obsoletes: rpm-libs
69131f1a
JB
239# avoid SEGV caused by mixed db versions
240Conflicts: poldek < 0.18.1-16
241
242%description lib
243RPMs library.
244
dd85fadc 245%description lib -l pl.UTF-8
69131f1a
JB
246Biblioteki RPM-a.
247
fed73700 248%package devel
3f2d796a 249Summary: Header files for rpm libraries
4ea2ed33
ER
250Summary(de.UTF-8): Header-Dateien für rpm Libraries
251Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm
252Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm
253Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM
254Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами
255Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm
89f92de0 256Group: Development/Libraries
9fe07969 257Requires: %{name}-lib = %{epoch}:%{version}-%{release}
cf169f7c 258Requires: %{reqdb_pkg}-devel >= %{reqdb_pkgver}
fea3cb89 259Requires: bzip2-devel
5c583f90 260Requires: elfutils-devel
241257bf 261Requires: libmagic-devel
d1f5e279 262Requires: openssl-devel >= %{openssl_ver}
c7b2d5f9
KK
263%if %{with selinux}
264Requires: libselinux-devel
265Requires: libsemanage-devel
266Requires: libsepol-devel
267%endif
a998ac11 268Requires: popt-devel >= %{reqpopt_ver}
fea3cb89 269Requires: zlib-devel
cf6faebc 270
271%description devel
3f2d796a
JB
272The RPM packaging system includes C libraries that make it easy to
273manipulate RPM packages and databases. They are intended to ease the
cf6faebc 274creation of graphical package managers and other tools that need
3f2d796a
JB
275intimate knowledge of RPM packages. This package contains header files
276for these libraries.
fed73700 277
dd85fadc
JR
278%description devel -l de.UTF-8
279Der RPM-Packensystem enthält eine C-Library, die macht es einfach
280RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für
fed73700 281Vereinfachung des Schaffens grafischer Paket-Manager und anderer
313a4d1a 282Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen.
283
dd85fadc 284%description devel -l es.UTF-8
313a4d1a 285El sistema de empaquetado RPM incluye una biblioteca C que vuelve
dd85fadc
JR
286fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es
287facilitar la creación de administradores gráficos de paquetes y otras
20f89981 288herramientas que necesiten un conocimiento profundo de paquetes RPM.
9e42d68a 289
dd85fadc
JR
290%description devel -l pl.UTF-8
291System RPM zawiera biblioteki C, które ułatwiają manipulowanie
292pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie
293graficznych programów zarządzających pakietami oraz innych narzędzi,
294które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet
295zawiera pliki nagłówkowe wspomnianych bibliotek.
296
297%description devel -l pt_BR.UTF-8
298O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil
299a manipulação de pacotes e bases de dados RPM. Seu objetivo é
300facilitar a criação de gerenciadores gráficos de pacotes e outras
edacdf8f 301ferramentas que precisem de conhecimento profundo de pacotes RPM.
302
dd85fadc
JR
303%description devel -l ru.UTF-8
304Система управления пакетами RPM содержит библиотеку C, которая
305упрощает манипуляцию пакетами RPM и соответствующими базами данных.
306Эта библиотека предназначена для облегчения создания графических
307пакетных менеджеров и других утилит, которым необходимо работать с
308пакетами RPM.
7c6dc55f 309
dd85fadc
JR
310%description devel -l uk.UTF-8
311Система керування пакетами RPM містить бібліотеку C, котра спрощує
312роботу з пакетами RPM та відповідними базами даних. Ця бібліотека
313призначена для полегшення створення графічних пакетних менеджерів та
314інших утиліт, що працюють з пакетами RPM.
7c6dc55f 315
fed73700 316%package utils
8482995c 317Summary: Additional utilities for managing RPM packages and database
4ea2ed33
ER
318Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken
319Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami
edacdf8f 320Group: Applications/File
9fe07969 321Requires: %{name} = %{epoch}:%{version}-%{release}
a998ac11 322Requires: popt >= %{reqpopt_ver}
af0cc499
JR
323%if %{with recommends_tags}
324Recommends: bzip2
325Recommends: gzip
86b85368 326%endif
695e60ad 327Conflicts: filesystem-debuginfo < 3.0-16
edacdf8f 328
329%description utils
8482995c 330Additional utilities for managing RPM packages and database.
fed73700 331
dd85fadc
JR
332%description utils -l de.UTF-8
333Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken.
9e42d68a 334
dd85fadc
JR
335%description utils -l pl.UTF-8
336Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami.
fed73700 337
fed73700 338%package build
e191287c 339Summary: Scripts for building binary RPM packages
4ea2ed33
ER
340Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete
341Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów
342Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes
343Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов
344Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів
e191287c 345Group: Applications/File
f15ca8ca
ER
346Requires(pretrans): coreutils
347Requires(pretrans): findutils
9fe07969 348Requires: %{name}-utils = %{epoch}:%{version}-%{release}
3de8e4a9 349Requires: rpm-pld-macros-build >= 1.744
e191287c 350Requires: /bin/id
351Requires: awk
cfa7898a 352Requires: bzip2
e950a6d7 353Requires: chrpath >= 0.10-4
b6547e10 354Requires: cpio
e191287c 355Requires: diffutils
195f647c 356Requires: elfutils
583135b4 357Requires: file >= 4.17
e191287c 358Requires: fileutils
359Requires: findutils
950eead3
ER
360%ifarch athlon
361Requires: gcc >= 3.0.3
362%else
363Requires: gcc
364%endif
e191287c 365Requires: glibc-devel
366Requires: grep
367Requires: gzip
368Requires: make
369Requires: patch
adbd4815 370Requires: sed >= 4.0
e191287c 371Requires: sh-utils
adbd4815 372Requires: tar >= 1:1.22
e191287c 373Requires: textutils
3acb62f3 374Requires: which
adbd4815 375Requires: xz
37ea389a 376Provides: rpmbuild(noauto) = 3
02d17bf9 377%ifarch %{x8664}
195f647c
JB
378Conflicts: automake < 1:1.7.9-2
379Conflicts: libtool < 2:1.5-13
380%endif
0096c5cd 381
e2025ad1 382%description build
58399c37 383Scripts for building binary RPM packages.
fed73700 384
dd85fadc
JR
385%description build -l de.UTF-8
386Scripts fürs Bauen binärer RPM-Pakete.
9e42d68a 387
dd85fadc
JR
388%description build -l pl.UTF-8
389Skrypty pomocnicze do budowania binarnych RPM-ów.
313a4d1a 390
dd85fadc
JR
391%description build -l pt_BR.UTF-8
392Este pacote contém scripts e programas executáveis que são usados para
cf6faebc 393construir pacotes usando o RPM.
e73478cd 394
dd85fadc
JR
395%description build -l ru.UTF-8
396Различные вспомогательные скрипты и исполняемые программы, которые
397используются для сборки RPM'ов.
7c6dc55f 398
dd85fadc
JR
399%description build -l uk.UTF-8
400Різноманітні допоміжні скрипти та утиліти, які використовуються для
401побудови RPM'ів.
7c6dc55f 402
69131f1a 403%package perlprov
8482995c 404Summary: Additional utilities for checking Perl provides/requires in RPM packages
4ea2ed33 405Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen
8482995c 406Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM
69131f1a 407Group: Applications/File
9fe07969 408Requires: %{name} = %{epoch}:%{version}-%{release}
b82853ee 409Requires: perl-Encode
69131f1a
JB
410Requires: perl-devel
411Requires: perl-modules
412
413%description perlprov
8482995c 414Additional utilities for checking Perl provides/requires in RPM
69131f1a
JB
415packages.
416
dd85fadc
JR
417%description perlprov -l de.UTF-8
418Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen.
69131f1a 419
dd85fadc 420%description perlprov -l pl.UTF-8
8482995c
JB
421Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w
422pakietach RPM.
69131f1a
JB
423
424%package pythonprov
8482995c
JB
425Summary: Python macros, which simplifies creation of RPM packages with Python software
426Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie
69131f1a 427Group: Applications/File
9fe07969 428Requires: %{name} = %{epoch}:%{version}-%{release}
cd800b3c 429Requires: python
3acb62f3 430Requires: python-modules
d1f5e279 431Requires: python-setuptools
69131f1a
JB
432
433%description pythonprov
8482995c 434Python macros, which simplifies creation of RPM packages with Python
69131f1a
JB
435software.
436
dd85fadc 437%description pythonprov -l pl.UTF-8
8482995c 438Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w
69131f1a
JB
439Pythonie.
440
69131f1a
JB
441%package -n python-rpm
442Summary: Python interface to RPM library
4ea2ed33
ER
443Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a
444Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM
69131f1a 445Group: Development/Languages/Python
9fe07969 446Requires: %{name} = %{epoch}:%{version}-%{release}
3acb62f3 447Requires: python
69131f1a
JB
448Obsoletes: rpm-python
449
450%description -n python-rpm
f9d0e5f6 451The python-rpm package contains a module which permits applications
69131f1a
JB
452written in the Python programming language to use the interface
453supplied by RPM (RPM Package Manager) libraries.
454
455This package should be installed if you want to develop Python
456programs that will manipulate RPM packages and databases.
457
dd85fadc 458%description -n python-rpm -l pl.UTF-8
f9d0e5f6 459Pakiet python-rpm zawiera moduł, który pozwala aplikacjom napisanym w
dd85fadc 460Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a.
69131f1a 461
dd85fadc
JR
462Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
463Pythonie programy manipulujące pakietami i bazami danych rpm.
69131f1a 464
dd85fadc 465%description -n python-rpm -l pt_BR.UTF-8
f9d0e5f6 466O pacote python-rpm contém um módulo que permite que aplicações
69131f1a
JB
467escritas em Python utilizem a interface fornecida pelas bibliotecas
468RPM (RPM Package Manager).
469
dd85fadc 470Esse pacote deve ser instalado se você quiser desenvolver programas em
69131f1a
JB
471Python para manipular pacotes e bancos de dados RPM.
472
f9d0e5f6
JR
473%package -n python3-rpm
474Summary: Python 3 interface to RPM library
475Summary(pl.UTF-8): Interfejs Pythona 3 do biblioteki RPM-a
476Summary(pt_BR.UTF-8): Módulo Python 3 para aplicativos que manipulam pacotes RPM
477Group: Development/Languages/Python
9fe07969 478Requires: %{name} = %{epoch}:%{version}-%{release}
f9d0e5f6
JR
479Requires: python3
480
481%description -n python3-rpm
482The python3-rpm package contains a module which permits applications
483written in the Python 3 programming language to use the interface
484supplied by RPM (RPM Package Manager) libraries.
485
486This package should be installed if you want to develop Python 3
487programs that will manipulate RPM packages and databases.
488
489%description -n python3-rpm -l pl.UTF-8
490Pakiet python3-rpm zawiera moduł, który pozwala aplikacjom napisanym w
491Pythonie 3 na używanie interfejsu dostarczanego przez biblioteki RPM-a.
492
493Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w
494Pythonie 3 programy manipulujące pakietami i bazami danych rpm.
495
496%description -n python3-rpm -l pt_BR.UTF-8
497O pacote python3-rpm contém um módulo que permite que aplicações
498escritas em Python 3 utilizem a interface fornecida pelas bibliotecas
499RPM (RPM Package Manager).
500
501Esse pacote deve ser instalado se você quiser desenvolver programas em
502Python 3 para manipular pacotes e bancos de dados RPM.
503
b0333243
JR
504%package plugin-audit
505Summary: Plugin for logging audit events on package operations
506Group: System/Base
9fe07969 507Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
508
509%description plugin-audit
510Plugin for libaudit support
511
512%package plugin-syslog
513Summary: Plugin for syslog functionality
514Group: System/Base
9fe07969 515Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
516
517%description plugin-syslog
518This plugin exports RPM actions to the system log.
519
520%package plugin-systemd-inhibit
521Summary: Plugin for systemd inhibit functionality
522Group: System/Base
9fe07969 523Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
524
525%description plugin-systemd-inhibit
526This plugin blocks systemd from entering idle, sleep or shutdown while
527an rpm transaction is running using the systemd-inhibit mechanism.
528
529%package plugin-ima
530Summary: Plugin for IMA file signatures
531Group: Base
9fe07969 532Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
533
534%description plugin-ima
535This plugin adds support for enforcing and verifying IMA file
536signatures in an rpm.
537
538%package plugin-prioreset
539Summary: Plugin for resetting scriptlet priorities for SysV init
540Group: Base
9fe07969 541Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
542
543%description plugin-prioreset
544This plugin is useful on legacy SysV init systems if you run rpm
545transactions with nice/ionice priorities. Should not be used on
546systemd systems.
547
548%package plugin-selinux
549Summary: Plugin for SELinux functionality
8191f3c5 550Group: Base
9fe07969 551Requires: %{name}-lib = %{epoch}:%{version}-%{release}
b0333243
JR
552Requires: libselinux >= 2.1.0
553
554%description plugin-selinux
555Plugin for SELinux functionality.
556
8191f3c5
JR
557%package sign
558Summary: Package signing support
559Group: Base
9fe07969 560Requires: %{name}-lib = %{epoch}:%{version}-%{release}
8191f3c5
JR
561
562%description sign
563This package contains support for digitally signing RPM packages.
564
5c2ab5c7
AM
565%package apidocs
566Summary: RPM API documentation and guides
567Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki
568Group: Documentation
d308de4c 569BuildArch: noarch
5c2ab5c7
AM
570
571%description apidocs
572Documentation for RPM API and guides in HTML format generated from rpm
573sources by doxygen.
574
575%description apidocs -l pl.UTF-8
576Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze
577źrodeł RPM-a przez doxygen.
578
e2025ad1 579%prep
c546a4d6 580%setup -q -n %{name}-%{version}%{?subver}
af0cc499 581%patch0 -p1
2f0ee4ec 582%patch1 -p1
4d5b8e4c 583%patch2 -p1
af0cc499 584%patch3 -p1
7a3b1f24 585%patch4 -p1
cbab0cbf
JR
586%patch5 -p1
587%patch6 -p0
588%patch7 -p1
af0cc499 589%patch8 -p1
cbab0cbf 590%patch9 -p1
af0cc499
JR
591%patch10 -p1
592%patch11 -p1
593%patch12 -p1
594%patch13 -p1
595%patch14 -p1
7033e976 596%patch15 -p1
af0cc499
JR
597%patch16 -p1
598%patch17 -p1
79191ca9 599%patch18 -p1
b7aed470 600%patch19 -p1
883e0fac 601
faba01eb 602install %{SOURCE16} scripts/perl.prov.in
08697680 603
70f8787d 604%{__mv} -f scripts/perl.req{,.in}
633d1e9e 605
cd86db2e 606# generate Group translations to *.po
faba01eb 607awk -f %{SOURCE6} %{SOURCE5}
fefe9d30 608
faba01eb
JR
609install %{SOURCE17} tools/rpmdb_checkversion.c
610install %{SOURCE18} tools/rpmdb_reset.c
91ee86a9 611
40675133
JR
612%{__sed} -i -e '1s,/usr/bin/python,%{__python},' scripts/pythondistdeps.py
613
87ef0d95 614%build
ea816ea6 615%{__libtoolize}
ceaaacee 616%{__aclocal}
4cd84746 617%{__autoheader}
7a9d72ce 618%{__autoconf}
7a9d72ce 619%{__automake}
7a9d72ce 620
048d06f8
JR
621# rpm checks for CPU type at runtime, but it looks better
622sed -i \
623 -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \
624 -e 's|@host_cpu@|%{_target_cpu}|' \
625 -e 's|@host_os@|%{_target_os}|' \
fb35e2d9 626 macros.in
048d06f8 627
5c767dc1 628CPPFLAGS="-I/usr/include/lua53 %{rpmcppflags}"
624f96ff 629%configure \
01d7a578 630 WITH_PERL_VERSION=no \
bba1059c 631 __GST_INSPECT=%{_bindir}/gst-inspect-1.0 \
dcf91c25 632 __GPG=%{_bindir}/gpg \
f9d0e5f6
JR
633 %{?with_python3:PYTHON=python3} \
634 %{!?with_python3:%{?with_python2:PYTHON=python2}} \
3a3e476f 635 --disable-silent-rules \
cd86db2e 636 --enable-shared \
34865f27 637 --enable-bdb \
af0cc499 638 --enable-zstd \
fb35e2d9 639 --with-crypto=openssl \
c38bf1df 640 --with-lua \
34865f27
JR
641 --with-cap \
642 --with-acl \
643 --with-audit \
af0cc499 644 --with-archive \
f9d0e5f6
JR
645%if %{with python2} || %{with python3}
646 --enable-python \
647%endif
b0333243
JR
648 --with-selinux=%{!?with_plugins:no}%{?with_plugins:yes} \
649 %{!?with_plugins:--disable-plugins} \
34865f27
JR
650 --with-vendor=pld
651
34865f27
JR
652# --enable-ndb (EXPERIMENTAL) enable the new rpm database format
653# --enable-lmdb=[yes/no/auto] (EXPERIMENTAL) build with LMDB rpm database format support (default=auto)
34865f27 654# --with-imaevm build with imaevm support
cf6faebc 655
5c767dc1 656%{__make}
5c2ab5c7 657
fb95de52
JR
658%{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_checkversion.c \
659 -o tools/rpmdb_checkversion -ldb-%{reqdb_ver}
8e8746c0
JR
660%{__cc} %{rpmcflags} -I/usr/include/db%{reqdb_ver} tools/rpmdb_reset.c \
661 -o tools/rpmdb_reset -ldb-%{reqdb_ver}
fb95de52
JR
662
663if tools/rpmdb_checkversion -V 2>&1 | grep "t match library version"; then
664 echo "Error linking rpmdb tools!"
665 exit 1
666fi
8e8746c0
JR
667if tools/rpmdb_reset -V 2>&1 | grep "t match library version"; then
668 echo "Error linking rpmdb tools!"
669 exit 1
670fi
91ee86a9 671
f9d0e5f6
JR
672%if %{with python2}
673cd python
674%py_build
675cd ..
676%endif
677
678%if %{with python3}
679cd python
680%py3_build
681%endif
682
b064b8e6 683%install
ff7bc1e6 684rm -rf $RPM_BUILD_ROOT
d1f5e279 685install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/{rpm,pki/rpm-gpg}} \
7d12560f 686 $RPM_BUILD_ROOT{/var/lib/{banner,rpm},/var/cache/hrmib}
54eb1770 687
faba01eb 688cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
76214164 689
d1f5e279 690%{__make} install \
241257bf
AM
691 pkgconfigdir=%{_pkgconfigdir} \
692 DESTDIR=$RPM_BUILD_ROOT
718426e1 693
c546a4d6 694# cleanup
c2683840 695%ifnarch %{ix86} %{x8664} x32
2f409bb7 696rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/athlon-linux/macros
34865f27 697rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/geode-linux/macros
2f409bb7
JR
698rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i386-linux/macros
699rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i486-linux/macros
700rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i586-linux/macros
701rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/i686-linux/macros
702rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium3-linux/macros
703rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/pentium4-linux/macros
25ac75ae
AM
704%endif
705
c2683840 706%ifnarch %{x8664} x32
2f409bb7
JR
707rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/amd64-linux/macros
708rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia32e-linux/macros
709rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x32-linux/macros
710rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/x86_64-linux/macros
25ac75ae
AM
711%endif
712
c546a4d6 713%ifnarch %{ppc}
34865f27
JR
714rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/m68k-linux/macros
715rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc32dy4-linux/macros
716rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc64*-linux/macros
717rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8260-linux/macros
718rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc8560-linux/macros
2f409bb7 719rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc-linux/macros
34865f27 720rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ppc*series-linux/macros
25ac75ae
AM
721%endif
722
34865f27 723rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/aarch64-linux/macros
2f409bb7
JR
724rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/alpha*-linux/macros
725rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/arm*-linux/macros
726rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/ia64-linux/macros
727rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/mips*-linux/macros
34865f27 728rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/riscv64-linux/macros
2f409bb7 729rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/s390*-linux/macros
34865f27 730rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sh*-linux/macros
2f409bb7 731rm $RPM_BUILD_ROOT%{_rpmlibdir}/platform/sparc*-linux/macros
c546a4d6 732
3a3e476f 733%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh
644d8958 734
396a7387 735install -d $RPM_BUILD_ROOT%{_rpmlibdir}/pld
396a7387 736
faba01eb
JR
737cp -p %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree
738cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh
739cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache
740cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/rpm
e663e5ff 741
faba01eb 742cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/banner.sh
7c6dc55f 743
faba01eb
JR
744cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros
745cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.lang
746cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc
747cp -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov
748cp -p %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles
749cp -p %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq
750cp -p %{SOURCE15} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles
08697680 751
f9d0e5f6
JR
752cp -p tools/rpmdb_checkversion $RPM_BUILD_ROOT%{_rpmlibdir}/
753cp -p tools/rpmdb_reset $RPM_BUILD_ROOT%{_rpmlibdir}/
faba01eb 754cp -p %{SOURCE19} $RPM_BUILD_ROOT%{_rpmlibdir}/dbupgrade.sh
9776a251 755
950eead3 756# move rpm to /bin
8191f3c5
JR
757%{__mv} $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin
758ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmquery
759ln -sf /bin/rpm $RPM_BUILD_ROOT%{_bindir}/rpmverify
760
950eead3 761# move essential libs to /lib (libs that /bin/rpm links to)
40675133
JR
762for a in librpm.so librpmbuild.so librpmio.so librpmsign.so; do
763 mv -f $RPM_BUILD_ROOT%{_libdir}/${a}.* $RPM_BUILD_ROOT/%{_lib}
764 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/${a}.*.*.*) $RPM_BUILD_ROOT%{_libdir}/${a}
c2673e18
AF
765done
766
7d12560f
JR
767#./rpmdb --macros=macros --rcfile=rpmrc --dbpath=/home/users/baggins/devel/PLD/rpm/BUILD/rpm-4.15.1/x/ --initdb
768
f9d0e5f6
JR
769%if %{with python2}
770# Remove anything that rpm make install might put there
771%{__rm} -rf $RPM_BUILD_ROOT%{py_sitedir}
772cd python
773%py_install
774%py_postclean
775cd ..
776%endif
6f18cdb7 777
f9d0e5f6
JR
778%if %{with python3}
779# Remove anything that rpm make install might put there
780%{__rm} -rf $RPM_BUILD_ROOT%{py3_sitedir}
781cd python
782%py3_install
783cd ..
dae5e1a8 784%endif
01d7a578 785
d1f5e279
JR
786%{__rm} $RPM_BUILD_ROOT%{_libdir}/rpm-plugins/*.la
787
01d7a578 788# wrong location, not used anyway
2f409bb7 789%{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log}
01d7a578 790
90b03dd6 791%find_lang %{name}
cf6faebc 792
13eb5ebf 793%clean
d7df46b8 794rm -rf $RPM_BUILD_ROOT
76214164 795
be4d3036 796%posttrans
d25ec6ea 797if [ -e /var/lib/rpm/Packages ] && \
f9d0e5f6 798 ! %{_rpmlibdir}/rpmdb_checkversion -h /var/lib/rpm -d /var/lib/rpm; then
d25ec6ea 799 if [ ! -e /var/lib/rpm.rpmbackup-%{version}-%{release} ] && \
6a934782 800 /bin/cp -a /var/lib/rpm /var/lib/rpm.rpmbackup-%{version}-%{release}; then
8383afc3 801 echo
e4dd6a34 802 echo "Backup of the rpm database has been created in /var/lib/rpm.rpmbackup-%{version}-%{release}"
8383afc3
JR
803 echo
804 fi
3ca91ccd
JR
805 echo
806 echo 'If poldek aborts after migration with rpmdb error, this is expected behaviour,'
807 echo 'you should ignore it and restart poldek'
808 echo
f9d0e5f6 809 %{_rpmlibdir}/dbupgrade.sh
be4d3036 810fi
f7779567 811
b7ee97ef
JR
812%triggerpostun -- %{name} < 4.4.9-44
813%{_rpmlibdir}/hrmib-cache
814
ceaaacee
JB
815%post lib -p /sbin/ldconfig
816%postun lib -p /sbin/ldconfig
76214164 817
37a5a2fc 818%pretrans build
d755a548 819find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f
8f76a271 820
3684d90f
JB
821%files -f %{name}.lang
822%defattr(644,root,root,755)
d1f5e279 823%doc ChangeLog CREDITS README
3684d90f 824
3acb62f3
ER
825%dir /etc/pki/rpm-gpg
826/etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
54eb1770 827
7a9d72ce 828%attr(755,root,root) /bin/rpm
8191f3c5
JR
829%attr(755,root,root) %{_bindir}/rpmdb
830%attr(755,root,root) %{_bindir}/rpmkeys
831%attr(755,root,root) %{_bindir}/rpmquery
832%attr(755,root,root) %{_bindir}/rpmverify
e73478cd 833
66edd895 834%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros
b1541d4c 835%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros.lang
caf453d4 836
09bb810c 837%{_mandir}/man8/rpm.8*
8191f3c5
JR
838%{_mandir}/man8/rpmdb.8*
839%{_mandir}/man8/rpmkeys.8*
840%{_mandir}/man8/rpm-misc.8*
feb1f12e 841%lang(fr) %{_mandir}/fr/man8/rpm.8*
e2025ad1 842%lang(ja) %{_mandir}/ja/man8/rpm.8*
d1f5e279 843%lang(ko) %{_mandir}/ko/man8/rpm.8*
ff7bc1e6 844%lang(pl) %{_mandir}/pl/man8/rpm.8*
cf6faebc 845%lang(ru) %{_mandir}/ru/man8/rpm.8*
740f105d 846%lang(sk) %{_mandir}/sk/man8/rpm.8*
76214164 847
7d12560f 848%dir /var/lib/rpm
4acac5de 849
cf709a39
ER
850# exported package NVRA (stamped with install tid)
851# net-snmp hrSWInstalledName queries, bash-completions
852%dir /var/cache/hrmib
853
d755a548 854%{_rpmlibdir}/rpmpopt*
8191f3c5 855%{_rpmlibdir}/rpmrc
d755a548 856%{_rpmlibdir}/macros
08697680 857%dir %{_rpmlibdir}/macros.d
e8836e1f 858%dir %{_rpmlibdir}/platform
40675133 859%{_rpmlibdir}/platform/noarch-*
c2683840 860%ifarch %{ix86} %{x8664} x32
34865f27
JR
861%{_rpmlibdir}/platform/athlon*
862%{_rpmlibdir}/platform/geode*
40675133
JR
863%{_rpmlibdir}/platform/i?86*
864%{_rpmlibdir}/platform/pentium*
34865f27
JR
865%endif
866%ifarch %{x8664} x32
867%{_rpmlibdir}/platform/amd64*
868%{_rpmlibdir}/platform/ia32e*
869%{_rpmlibdir}/platform/x86_64*
83a0601a 870%{_rpmlibdir}/platform/x32*
e23edf35
JR
871%endif
872%ifarch alpha
40675133 873%{_rpmlibdir}/platform/alpha*
e23edf35
JR
874%endif
875%ifarch ia64
40675133 876%{_rpmlibdir}/platform/ia64*
e23edf35
JR
877%endif
878%ifarch mips mipsel mips64 mips64el
40675133 879%{_rpmlibdir}/platform/mips*
e23edf35
JR
880%endif
881%ifarch %{ppc}
40675133 882%{_rpmlibdir}/platform/ppc*
e23edf35
JR
883%endif
884%ifarch sparc sparc64
40675133 885%{_rpmlibdir}/platform/sparc*
e23edf35 886%endif
3684d90f 887
3de8e4a9 888%dir %{_rpmlibdir}/pld
396a7387 889
cf709a39
ER
890%attr(755,root,root) %{_rpmlibdir}/hrmib-cache
891
f9d0e5f6
JR
892%attr(755,root,root) %{_rpmlibdir}/dbupgrade.sh
893%attr(755,root,root) %{_rpmlibdir}/rpmdb_checkversion
894%attr(755,root,root) %{_rpmlibdir}/rpmdb_reset
df50421f 895
7d12560f
JR
896# valgrind suppression file for rpm
897%{_rpmlibdir}/rpm.supp
898
66edd895
JB
899%files base
900%defattr(644,root,root,755)
492a2bd4 901%dir %{_sysconfdir}/rpm
66edd895
JB
902%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm
903%dir %{_rpmlibdir}
904%attr(755,root,root) %{_bindir}/banner.sh
905%attr(755,root,root) %{_rpmlibdir}/user_group.sh
906%dir /var/lib/banner
907
874f4c9a
MM
908%files lib
909%defattr(644,root,root,755)
40675133
JR
910%attr(755,root,root) /%{_lib}/librpm.so.9
911%attr(755,root,root) /%{_lib}/librpm.so.%{sover}
912%attr(755,root,root) /%{_lib}/librpmbuild.so.9
913%attr(755,root,root) /%{_lib}/librpmbuild.so.%{sover}
914%attr(755,root,root) /%{_lib}/librpmio.so.9
915%attr(755,root,root) /%{_lib}/librpmio.so.%{sover}
916%attr(755,root,root) /%{_lib}/librpmsign.so.9
917%attr(755,root,root) /%{_lib}/librpmsign.so.%{sover}
b0333243 918%{?with_plugins:%dir %{_libdir}/rpm-plugins}
874f4c9a 919
69131f1a
JB
920%files devel
921%defattr(644,root,root,755)
69131f1a 922%attr(755,root,root) %{_libdir}/librpm.so
950eead3 923%attr(755,root,root) %{_libdir}/librpmbuild.so
69131f1a 924%attr(755,root,root) %{_libdir}/librpmio.so
40675133 925%attr(755,root,root) %{_libdir}/librpmsign.so
950eead3
ER
926%{_libdir}/librpm*.la
927%{_includedir}/rpm
928%{_pkgconfigdir}/*.pc
69131f1a 929
69131f1a
JB
930%files utils
931%defattr(644,root,root,755)
d1f5e279 932%attr(755,root,root) %{_bindir}/rpm2archive
69131f1a 933%attr(755,root,root) %{_bindir}/rpm2cpio
fc36dfd5 934%attr(755,root,root) %{_bindir}/rpmgraph
d1f5e279 935%attr(755,root,root) %{_rpmlibdir}/rpm2cpio.sh
69131f1a 936%attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh
69131f1a 937%attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt
25e974c7 938%attr(755,root,root) %{_rpmlibdir}/tgpg
d1f5e279
JR
939%attr(755,root,root) %{_rpmlibdir}/debugedit
940%attr(755,root,root) %{_rpmlibdir}/rpmdeps
69131f1a
JB
941%{_mandir}/man8/rpm2cpio.8*
942%{_mandir}/man8/rpmdeps.8*
fc36dfd5 943%{_mandir}/man8/rpmgraph.8*
69131f1a 944%lang(ja) %{_mandir}/ja/man8/rpm2cpio.8*
d1f5e279 945%lang(ko) %{_mandir}/ko/man8/rpm2cpio.8*
69131f1a 946%lang(pl) %{_mandir}/pl/man8/rpm2cpio.8*
69131f1a 947%lang(ru) %{_mandir}/ru/man8/rpm2cpio.8*
d1f5e279 948%lang(pl) %{_mandir}/pl/man8/rpmdeps.8*
fc36dfd5
JR
949%lang(ja) %{_mandir}/ja/man8/rpmgraph.8*
950%lang(pl) %{_mandir}/pl/man8/rpmgraph.8*
69131f1a 951
3684d90f 952%files build
a45ae6d8 953%defattr(644,root,root,755)
66edd895 954%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto*
01d7a578
JB
955%attr(755,root,root) %{_rpmlibdir}/brp-*
956%attr(755,root,root) %{_rpmlibdir}/check-files
d755a548 957%attr(755,root,root) %{_rpmlibdir}/install-build-tree
d1f5e279 958%attr(755,root,root) %{_rpmlibdir}/elfdeps
01d7a578
JB
959%attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh
960# needs hacked pkg-config to return anything
961%attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh
d1f5e279 962%attr(755,root,root) %{_rpmlibdir}/mkinstalldirs
37e965e8 963
70f8787d 964%attr(755,root,root) %{_rpmlibdir}/fontconfig.prov
37e965e8 965# must be here for "Requires: rpm-*prov" to work
40675133
JR
966#%{_rpmlibdir}/macros.d/cmake
967#%{_rpmlibdir}/macros.d/gstreamer
40675133 968#%{_rpmlibdir}/macros.d/libtool
40675133 969#%{_rpmlibdir}/macros.d/perl
40675133
JR
970#%{_rpmlibdir}/macros.d/pkgconfig
971#%{_rpmlibdir}/macros.d/python
40675133
JR
972#%{_rpmlibdir}/macros.d/selinux
973#%{_rpmlibdir}/macros.d/tcl
974#%{_rpmlibdir}/macros.rpmbuild
f9d0e5f6 975
7d12560f
JR
976%attr(755,root,root) %{_rpmlibdir}/check-buildroot
977%attr(755,root,root) %{_rpmlibdir}/check-prereqs
978%attr(755,root,root) %{_rpmlibdir}/check-rpaths
979%attr(755,root,root) %{_rpmlibdir}/check-rpaths-worker
980%attr(755,root,root) %{_rpmlibdir}/debuginfo.prov
981%attr(755,root,root) %{_rpmlibdir}/desktop-file.prov
982%attr(755,root,root) %{_rpmlibdir}/find-provides
983%attr(755,root,root) %{_rpmlibdir}/find-requires
984%attr(755,root,root) %{_rpmlibdir}/metainfo.prov
985%attr(755,root,root) %{_rpmlibdir}/ocaml-find-provides.sh
986%attr(755,root,root) %{_rpmlibdir}/ocaml-find-requires.sh
987%attr(755,root,root) %{_rpmlibdir}/script.req
988%attr(755,root,root) %{_rpmlibdir}/sepdebugcrcfix
989# Fedora has this in -build, but shouldn't this be in -devel?
990%attr(755,root,root) %{_rpmlibdir}/config.guess
991%attr(755,root,root) %{_rpmlibdir}/config.sub
992
f9d0e5f6
JR
993%dir %{_rpmlibdir}/fileattrs
994%{_rpmlibdir}/fileattrs/debuginfo.attr
995%{_rpmlibdir}/fileattrs/desktop.attr
996%{_rpmlibdir}/fileattrs/elf.attr
997%{_rpmlibdir}/fileattrs/font.attr
998%{_rpmlibdir}/fileattrs/libtool.attr
999%{_rpmlibdir}/fileattrs/metainfo.attr
1000%{_rpmlibdir}/fileattrs/ocaml.attr
1001%{_rpmlibdir}/fileattrs/perl.attr
1002%{_rpmlibdir}/fileattrs/perllib.attr
f9d0e5f6
JR
1003%{_rpmlibdir}/fileattrs/pkgconfig.attr
1004%{_rpmlibdir}/fileattrs/python.attr
1005%{_rpmlibdir}/fileattrs/pythondist.attr
1006%{_rpmlibdir}/fileattrs/script.attr
77fcdbf7 1007
874f4c9a
MM
1008%attr(755,root,root) %{_bindir}/gendiff
1009%attr(755,root,root) %{_bindir}/rpmbuild
d1f5e279 1010%attr(755,root,root) %{_bindir}/rpmspec
874f4c9a 1011
a00926bc 1012%{_mandir}/man1/gendiff.1*
d1f5e279 1013%lang(pl) %{_mandir}/pl/man1/gendiff.1*
874f4c9a 1014%{_mandir}/man8/rpmbuild.8*
fefe9d30 1015%lang(ja) %{_mandir}/ja/man8/rpmbuild.8*
fefe9d30 1016%lang(pl) %{_mandir}/pl/man8/rpmbuild.8*
d1f5e279 1017%{_mandir}/man8/rpmspec.8*
f3fe287f 1018
89334051
AF
1019%files perlprov
1020%defattr(644,root,root,755)
d755a548 1021%attr(755,root,root) %{_rpmlibdir}/perl.*
9805fd6d 1022
80d3b868 1023%files pythonprov
d8fcb9b0 1024%defattr(644,root,root,755)
25d296e1 1025%attr(755,root,root) %{_rpmlibdir}/pythondeps.sh
d1f5e279 1026%attr(755,root,root) %{_rpmlibdir}/pythondistdeps.py
09bb810c 1027
f9d0e5f6 1028%if %{with python2}
cf6faebc 1029%files -n python-rpm
42a0025c 1030%defattr(644,root,root,755)
34865f27
JR
1031%dir %{py_sitedir}/rpm
1032%attr(755,root,root) %{py_sitedir}/rpm/*.so
1033%{py_sitedir}/rpm/*.py[co]
f9d0e5f6
JR
1034%{py_sitedir}/rpm-%{version}-py*.egg-info
1035%endif
1036
1037%if %{with python3}
1038%files -n python3-rpm
1039%defattr(644,root,root,755)
1040%dir %{py3_sitedir}/rpm
1041%attr(755,root,root) %{py3_sitedir}/rpm/*.so
1042%{py3_sitedir}/rpm/*.py
1043%{py3_sitedir}/rpm-%{version}-py*.egg-info
1044%{py3_sitedir}/rpm/__pycache__
50dc9ac0 1045%endif
5c2ab5c7 1046
b0333243
JR
1047%if %{with plugins}
1048%files plugin-audit
1049%defattr(644,root,root,755)
1050%attr(755,root,root) %{_libdir}/rpm-plugins/audit.so
1051
1052%files plugin-syslog
1053%defattr(644,root,root,755)
1054%attr(755,root,root) %{_libdir}/rpm-plugins/syslog.so
1055
1056%files plugin-systemd-inhibit
1057%defattr(644,root,root,755)
1058%attr(755,root,root) %{_libdir}/rpm-plugins/systemd_inhibit.so
1059%{_mandir}/man8/rpm-plugin-systemd-inhibit.8*
1060
1061%files plugin-ima
1062%defattr(644,root,root,755)
1063%attr(755,root,root) %{_libdir}/rpm-plugins/ima.so
1064
1065%files plugin-prioreset
1066%defattr(644,root,root,755)
1067%attr(755,root,root) %{_libdir}/rpm-plugins/prioreset.so
1068
1069%files plugin-selinux
1070%defattr(644,root,root,755)
1071%attr(755,root,root) %{_libdir}/rpm-plugins/selinux.so
1072%endif
1073
8191f3c5
JR
1074%files sign
1075%defattr(644,root,root,755)
1076%attr(755,root,root) %{_bindir}/rpmsign
1077%{_mandir}/man8/rpmsign.8*
1078
5c2ab5c7
AM
1079%if %{with apidocs}
1080%files apidocs
1081%defattr(644,root,root,755)
d1f5e279
JR
1082%doc doc/librpm/html/*
1083%endif
This page took 0.86904 seconds and 4 git commands to generate.