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