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