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