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