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