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