]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - check if we want shell autodeps: Requires: executable(ln) executable(mv) | |
4 | # - add macros for some ppc, mipsel, alpha and sparc | |
5 | # - make %%patch not multiline, so plain comment char could still work: | |
6 | # http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/5d3a3ea257d7f88e59d0ad93c20cc8448fb42f3d | |
7 | # | |
8 | # - when adopting, use 4.5 ticket for checklist: https://bugs.launchpad.net/pld-linux/+bug/262985 | |
9 | # | |
10 | # Conditional build: | |
11 | %bcond_with static # build static rpm+rpmi | |
12 | %bcond_without apidocs # don't generate documentation with doxygen | |
13 | %bcond_without python # don't build python bindings | |
14 | %bcond_without selinux # build without selinux support | |
15 | %bcond_without suggest_tags # build without Suggest tag (bootstrapping) | |
16 | %bcond_without neon # build with HTTP/WebDAV support (neon library) | |
17 | %bcond_without db # BerkeleyDB | |
18 | %bcond_without sqlite # build with SQLite support | |
19 | %bcond_with sqlite_dbapi # default database backend is sqlite | |
20 | %bcond_without system_lua # use system lua | |
21 | # force_cc - force using __cc other than "%{_target_cpu}-pld-linux-gcc" | |
22 | # force_cxx - force using __cxx other than "%{_target_cpu}-pld-linux-g++" | |
23 | # force_cpp - force using __cpp other than "%{_target_cpu}-pld-linux-gcc -E" | |
24 | # | |
25 | %if %{with sqlite_dbapi} | |
26 | %define with_sqlite 1 | |
27 | %endif | |
28 | ||
29 | %if %{without db} && %{without sqlite} | |
30 | %{error:Need db or sqlite} | |
31 | ERROR | |
32 | %endif | |
33 | ||
34 | # versions of required libraries | |
35 | %define reqdb_ver 5.3 | |
36 | %define reqpopt_ver 1.15 | |
37 | %define beecrypt_ver 2:4.1.2-4 | |
38 | %define sover 5.4 | |
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: 5.4.10 | |
49 | Release: 0.17 | |
50 | License: LGPL | |
51 | Group: Base | |
52 | # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.10-0.20120706.src.rpm | |
53 | Source0: %{name}-%{version}.tar.gz | |
54 | # Source0-md5: 5d099161bdd3203265ab32ffad3360b5 | |
55 | Source100: cpu-os-macros.tar.gz | |
56 | # Source100-md5: 928034a5bdceb398881bc14b5f29973b | |
57 | Source1: %{name}.groups | |
58 | Source2: macros.pld.in | |
59 | Source3: %{name}-install-tree | |
60 | Source4: %{name}-find-spec-bcond | |
61 | Source5: %{name}-hrmib-cache | |
62 | Source6: %{name}-groups-po.awk | |
63 | Source7: %{name}-compress-doc | |
64 | Source8: %{name}-php-provides | |
65 | Source9: %{name}-php-requires | |
66 | Source10: %{name}.sysinfo | |
67 | Source11: perl.prov | |
68 | Source12: %{name}-user_group.sh | |
69 | Source13: %{name}.sysconfig | |
70 | Source14: %{name}-java-requires | |
71 | # http://svn.pld-linux.org/banner.sh/ | |
72 | Source15: banner.sh | |
73 | Source16: ftp://ftp.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc | |
74 | # Source16-md5: 08b29584dd349aac9caa7610131a0a88 | |
75 | Source17: %{name}-mimetypedeps | |
76 | Source18: macros.local | |
77 | Source19: rpm.noautocompressdoc | |
78 | Source20: rpm.noautoprov | |
79 | Source21: rpm.noautoprovfiles | |
80 | Source22: rpm.noautoreq | |
81 | Source23: rpm.noautoreqdep | |
82 | Source24: rpm.noautoreqfiles | |
83 | Source25: %{name}-php-requires.php | |
84 | Patch0: %{name}-branch.patch | |
85 | Patch1: %{name}-man_pl.patch | |
86 | Patch2: %{name}-popt-aliases.patch | |
87 | Patch3: %{name}-rpmpopt.patch | |
88 | Patch4: %{name}-perl-macros.patch | |
89 | Patch5: %{name}-perl-req-perlfile.patch | |
90 | Patch6: %{name}-scripts-closefds.patch | |
91 | Patch7: %{name}-php-macros.patch | |
92 | Patch8: %{name}-gettext-in-header.patch | |
93 | Patch9: %{name}-lua.patch | |
94 | Patch11: %{name}-php-deps.patch | |
95 | Patch13: %{name}-notsc.patch | |
96 | Patch14: %{name}-hack-norpmlibdep.patch | |
97 | Patch15: %{name}-epoch0.patch | |
98 | Patch16: %{name}-perl_req-INC_dirs.patch | |
99 | Patch17: %{name}-debuginfo.patch | |
100 | Patch18: vendor-pld.patch | |
101 | Patch19: %{name}-old-fileconflicts-behaviour.patch | |
102 | Patch20: %{name}-javadeps.patch | |
103 | Patch21: %{name}-truncate-cvslog.patch | |
104 | Patch22: %{name}-libtool-deps.patch | |
105 | Patch23: %{name}-mimetype.patch | |
106 | Patch24: %{name}-sparc64.patch | |
107 | Patch25: %{name}-gendiff.patch | |
108 | Patch26: openmp.patch | |
109 | Patch27: %{name}-URPM-build-fix.patch | |
110 | Patch28: %{name}-db5.3.patch | |
111 | Patch29: %{name}-helperEVR-noassert.patch | |
112 | Patch30: %{name}-unglobal.patch | |
113 | Patch31: %{name}-builddir-readlink.patch | |
114 | Patch32: %{name}-changelog_order_check_nonfatal.patch | |
115 | Patch33: %{name}-cleanbody.patch | |
116 | Patch34: %{name}-dirdeps-macro.patch | |
117 | Patch35: %{name}-installbeforeerase.patch | |
118 | Patch36: %{name}-libmagic-locale.patch | |
119 | Patch37: %{name}-namespace-compare.patch | |
120 | Patch38: %{name}-popt-coreutils.patch | |
121 | Patch39: %{name}-postun-nofail.patch | |
122 | Patch40: %{name}-silence-RPM_CHAR_TYPE.patch | |
123 | Patch41: %{name}-fix-missing-types-in-headers.patch | |
124 | Patch42: %{name}-disable-ldconfig-optimization.patch | |
125 | Patch43: %{name}-fix--p-interpreter-and-empty-script.patch | |
126 | Patch44: %{name}-db_buffer_small.patch | |
127 | Patch45: %{name}-pattern_Release.patch | |
128 | Patch46: %{name}-fix-___build_pre-macro.patch | |
129 | Patch47: %{name}-missing-patch-file-fails-build.patch | |
130 | ||
131 | # Patches imported from Mandriva | |
132 | ||
133 | # status: ready to merge, it's already been merged on HEAD, so commiting it to rpm-5_4 | |
134 | # would basically just mean backporting it.. | |
135 | Patch1000: rpm-5.4.4-add-_specfile-macro.patch | |
136 | # status: needs to be cleaned up and properly reviewed together with rest | |
137 | # of the patches related to dependency generation | |
138 | Patch1001: rpm-5.4.9-avoid-dependencies-on-self.patch | |
139 | # status: probably ready to merge | |
140 | Patch1002: rpm-5.4.4-pkgconfigdeps-check-path.patch | |
141 | # status: probably okay to merge, but discuss on rpm-devel first | |
142 | Patch1003: rpm-5.4.4-glob-wildcards-for-loading-macro-files.patch | |
143 | # status: needs to be discussed | |
144 | Patch1004: rpm-5.4.4-allow-installation-of-repackaged-rpms.patch | |
145 | # status: ready to merge | |
146 | Patch1005: rpm-5.4.8-dont-show-suggests-with-requires.patch | |
147 | # status: ready for merge | |
148 | Patch1006: rpm-5.4.9-strip-buildroot-away-from-duplicate-files-list.patch | |
149 | # status: probably okay to merge, but discuss on rpm-devel first | |
150 | Patch1007: rpm-5.4.10-duplicate_files_terminate_build.patch | |
151 | # status: same as above | |
152 | Patch1008: rpm-5.4.10-unpackaged_subdirs_terminate_build.patch | |
153 | # mdvbz#64898 | |
154 | # status: uncertain, might be okay to merge, discuss on rpm-devel first | |
155 | Patch1009: rpm-5.4.4-rpmbuild-withoutclean.patch | |
156 | # no sense in having an additional dependency on 'pkgconfig' on all packages that | |
157 | # have a pkgconfig file, it's not needed for them to be made useful and anything | |
158 | # actuallly using pkgconfig for this purpose will pull it in as a dependency anyways... | |
159 | # status: might be okay to merge, but discuss on rpm-devel first | |
160 | Patch1010: rpm-5.4.4-drop-useless-auto-generated-pkgconfig-dependency.patch | |
161 | # status: ready for merge | |
162 | Patch1011: rpm-5.4.4-fix-rpmconstant-to-always-use-LC_CTYPE-C-for-case-conversion.patch | |
163 | # $RPM_BUILD_DIR isn't necessarily the same as $PWD, it's %%{_builddir}, not | |
164 | # %%{_builddir}/%%{?buildsubdir}, messing up paths in debug packages created.. | |
165 | # status: needs to be discussed and investigated a bit better.. | |
166 | Patch1012: rpm-5.4.4-pass-_builddir-properly-to-find-debuginfo.patch | |
167 | # status: probably okay to merge, but discuss on rpm-devel first | |
168 | Patch1013: rpm-5.4.10-files-listed-twice-terminates-build.patch | |
169 | # status: probably okay to merge | |
170 | Patch1014: rpm-5.4.9-ruby1.9-fixes.patch | |
171 | # status: keep locally | |
172 | Patch1015: rpm-5.4.9-keep-loading-script-macros.patch | |
173 | # status: same as for other dep gen patches | |
174 | Patch1016: rpm-5.4.9-update-rpmfc-when-removing-dependencies-on-self.patch | |
175 | # status: idem | |
176 | Patch1017: rpm-5.4.9-rpmfc-extract-dependencies-for-all-files.patch | |
177 | # status: ready for merge | |
178 | Patch1018: rpm-5.4.5-rubygems-add-missing-newline.patch | |
179 | # status: probably okay to merge | |
180 | Patch1019: rpm-5.4.5-python-export-spec-macros.patch | |
181 | # status: idem | |
182 | Patch1020: rpm-5.4.9-font-provides.patch | |
183 | # stauus: idem | |
184 | Patch1021: rpm-5.4.7-kmod-dependencies.patch | |
185 | # status: probably okay to merge, discuss on rpm-devel first | |
186 | Patch1022: rpm-5.4.5-skip-dependencies-for-character-devices.patch | |
187 | # status: ready to merge | |
188 | Patch1023: rpm-5.4.5-rpmfc-use-strlen-not-sizeof.patch | |
189 | # status: probably okay to merge | |
190 | Patch1024: rpm-5.4.5-rpmfc-apply-python-coloring-from-magic.patch | |
191 | # status: ready to merge | |
192 | Patch1025: rpm-5.4.7-rpmfc-fix-invalid-free-if-not-_defaultdocdir-set.patch | |
193 | # status: probably okay to merge | |
194 | Patch1026: rpm-5.4.10-dont-try-generate-rpmfc-dependencies-from-doc-files.patch | |
195 | # status: ready | |
196 | Patch1027: rpm-5.4.7-fix-generation-of-ruby-abi-provides.patch | |
197 | # crash reproducable with 'rpm -qa --triggers' | |
198 | # status: ready | |
199 | Patch1028: rpm-5.4.7-hdrfmt-fix-unitialized-argv-element.patch | |
200 | # status: same as for other dep gen patches | |
201 | Patch1029: rpm-5.4.7-dont-consider-trigger-dependencies-as-overlapping.patch | |
202 | # status: ready | |
203 | Patch1030: rpm-5.4.7-fix-minor-memleaks.patch | |
204 | # status: ready | |
205 | Patch1031: rpm-5.4.9-mire-fix-strings-lacking-null-terminator.patch | |
206 | # status: ready | |
207 | Patch1032: rpm-5.4.9-rpmpython-fix-input.patch | |
208 | # status: ready | |
209 | Patch1033: rpm-5.4.7-no-seqid_init-on-rdonly-database.patch | |
210 | # status: probably ready for merging | |
211 | Patch1034: rpm-5.4.9-avoid-double-slash-in-path-for-dirname-filetrigger-matching.patch | |
212 | # status: probably ready to merge, discuss on rpm-devel first | |
213 | Patch1035: rpm-5.4.9-fix-verify-segfault.patch | |
214 | # status: ready and should be merged | |
215 | Patch1036: rpm-5.4.9-fix-typo-in-rpmtag-header.patch | |
216 | # Due to rpmdav/neon being written in a different fashion than other rpmio clients, | |
217 | # the inconsistent behaviour affects code elsewhere which expects consistent behaviour, | |
218 | # with the result being that when unable to download files, neon will save error | |
219 | # page as the target file. | |
220 | # status: should go upstream, but uncertain about "correct" fix, ie. this is | |
221 | # more of a workaround, while rewriting rpmdav code to behave consistently | |
222 | # would be "the right thing to do". Yet I'm not fully able to grasp all of the | |
223 | # code and don't want to spend more time just to get the API.. | |
224 | Patch1037: rpm-5.4.10-fix-neon-saving-error-pages-as-target-file.patch | |
225 | # As the transaction flags for ignoring arch & os are no longer used, there's | |
226 | # currently no way to ignore arch & os of packages anymore. This patch adds | |
227 | # support for doing this again by defining rpm variables and overriding | |
228 | # --ignorearch & --ignoreos to set these. | |
229 | # status: needs to be discussed upstream before thinking about merging | |
230 | Patch1038: rpm-5.4.10-support-ignore-arch-and-os-again.patch | |
231 | # status: ready for merge | |
232 | Patch1039: rpm-5.4.4-fix-same-package-with-epoch-possible-to-upgrade.patch | |
233 | ||
234 | URL: http://rpm5.org/ | |
235 | BuildRequires: autoconf >= 2.60 | |
236 | BuildRequires: automake >= 1.4 | |
237 | BuildRequires: beecrypt-devel >= %{beecrypt_ver} | |
238 | BuildRequires: bzip2-devel >= 1.0.2-17 | |
239 | %{?with_db:BuildRequires: db-devel >= %{reqdb_ver}} | |
240 | BuildRequires: elfutils-devel >= 0.108 | |
241 | #BuildRequires: gettext-autopoint >= 0.11.4-2 | |
242 | BuildRequires: gettext-devel >= 0.11.4-2 | |
243 | BuildRequires: keyutils-devel | |
244 | BuildRequires: libmagic-devel | |
245 | %{?with_selinux:BuildRequires: libselinux-devel >= 1.18} | |
246 | # needed only for AM_PROG_CXX used for CXX substitution in rpm.macros | |
247 | BuildRequires: libstdc++-devel | |
248 | BuildRequires: libtool >= 1:1.4.2-9 | |
249 | %if %{with neon} | |
250 | BuildRequires: libxml2-devel | |
251 | BuildRequires: neon-devel >= 0.25.5 | |
252 | %endif | |
253 | BuildRequires: ossp-uuid-devel | |
254 | BuildRequires: patch >= 2.2 | |
255 | BuildRequires: popt-devel >= %{reqpopt_ver} | |
256 | %{?with_system_lua:BuildRequires: lua51-devel >= 5.1.2} | |
257 | %{?with_python:BuildRequires: python-devel >= 1:2.3} | |
258 | BuildRequires: python-modules >= 1:2.3 | |
259 | %{?with_python:BuildRequires: rpm-pythonprov} | |
260 | %{?with_sqlite:BuildRequires: sqlite3-devel} | |
261 | BuildRequires: tcl | |
262 | BuildRequires: zlib-devel | |
263 | BuildRequires: xz-devel | |
264 | %if %{with apidocs} | |
265 | BuildRequires: doxygen | |
266 | BuildRequires: ghostscript | |
267 | BuildRequires: graphviz | |
268 | BuildRequires: tetex-pdftex | |
269 | %endif | |
270 | %if %{with static} | |
271 | # Require static library only for static build | |
272 | BuildRequires: beecrypt-static >= %{beecrypt_ver} | |
273 | BuildRequires: bzip2-static >= 1.0.2-17 | |
274 | %{?with_db:BuildRequires: db-static >= %{reqdb_ver}} | |
275 | BuildRequires: elfutils-static | |
276 | BuildRequires: glibc-static >= 2.2.94 | |
277 | BuildRequires: libmagic-static | |
278 | %{?with_selinux:BuildRequires: libselinux-static >= 1.18} | |
279 | BuildRequires: popt-static >= %{reqpopt_ver} | |
280 | BuildRequires: zlib-static | |
281 | %endif | |
282 | Requires: %{name}-base = %{version}-%{release} | |
283 | Requires: %{name}-lib = %{version}-%{release} | |
284 | Requires: beecrypt >= %{beecrypt_ver} | |
285 | Requires: popt >= %{reqpopt_ver} | |
286 | Provides: rpm-db-ver = %{reqdb_ver} | |
287 | Obsoletes: rpm-getdeps | |
288 | %{!?with_static:Obsoletes: rpm-utils-static} | |
289 | Conflicts: glibc < 2.2.92 | |
290 | # db4.6 poldek needed | |
291 | Conflicts: poldek < 0.21-0.20070703.00.3 | |
292 | # segfaults with lzma 0.42.2 | |
293 | Conflicts: lzma-libs < 4.999.3 | |
294 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
295 | ||
296 | %define _binary_payload w9.gzdio | |
297 | ||
298 | # don't require very fresh rpm.macros to build | |
299 | %define __gettextize gettextize --copy --force --intl ; cp -f po/Makevars{.template,} | |
300 | %define find_lang sh ./scripts/find-lang.sh $RPM_BUILD_ROOT | |
301 | %define ix86 i386 i486 i586 i686 athlon pentium3 pentium4 | |
302 | %define ppc ppc ppc7400 ppc7450 | |
303 | %define x8664 amd64 ia32e x86_64 | |
304 | ||
305 | # stabilize new build environment | |
306 | %define __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc} | |
307 | %define __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++} | |
308 | %define __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E} | |
309 | ||
310 | %define _rpmlibdir /usr/lib/rpm | |
311 | %define _noautocompressdoc RPM-GPG-KEY | |
312 | ||
313 | %define specflags -fno-strict-aliasing | |
314 | ||
315 | %description | |
316 | RPM is a powerful package manager, which can be used to build, | |
317 | install, query, verify, update, and uninstall individual software | |
318 | packages. A package consists of an archive of files, and package | |
319 | information, including name, version, and description. | |
320 | ||
321 | %description -l de.UTF-8 | |
322 | RPM ist ein kräftiger Packet-Manager, der verwendet sein kann zur | |
323 | Installation, Anfrage, Verifizierung, Aktualisierung und | |
324 | Uninstallation individueller Softwarepakete. Ein Paket besteht aus | |
325 | einem Archiv Dateien und Paketinformation, inklusive Name, Version und | |
326 | Beschreibung. | |
327 | ||
328 | %description -l es.UTF-8 | |
329 | RPM es un poderoso administrador de paquetes, que puede ser usado para | |
330 | construir, instalar, pesquisar, verificar, actualizar y desinstalar | |
331 | paquetes individuales de software. Un paquete consiste en un | |
332 | almacenaje de archivos, y información sobre el paquete, incluyendo | |
333 | nombre, versión y descripción. | |
334 | ||
335 | %description -l pl.UTF-8 | |
336 | RPM jest doskonałym programem zarządzającym pakietami. Umożliwia on | |
337 | przebudowanie, instalację czy weryfikację dowolnego pakietu. | |
338 | Informacje dotyczące każdego pakietu, takie jak jego opis, lista | |
339 | plików wchodzących w skład pakietu, zależności od innych pakietów, są | |
340 | przechowywane w bazie danych i można je uzyskać za pomocą opcji | |
341 | odpytywania programu rpm. | |
342 | ||
343 | %description -l pt_BR.UTF-8 | |
344 | RPM é um poderoso gerenciador de pacotes, que pode ser usado para | |
345 | construir, instalar, pesquisar, verificar, atualizar e desinstalar | |
346 | pacotes individuais de software. Um pacote consiste de um conjunto de | |
347 | arquivos e informações adicionais, incluindo nome, versão e descrição | |
348 | do pacote, permissões dos arquivos, etc. | |
349 | ||
350 | %description -l ru.UTF-8 | |
351 | RPM - это мощный менеджер пакетов, который может быть использован для | |
352 | создания, инсталляции, запросов (query), проверки, обновления и | |
353 | удаления программных пакетов. Пакет состоит из файлового архива и | |
354 | служебной информации, включающей название, версию, описание и другие | |
355 | данные о пакете. | |
356 | ||
357 | %description -l uk.UTF-8 | |
358 | RPM - це потужний менеджер пакетів, що може бути використаний для | |
359 | створення, інсталяції, запитів (query), перевірки, поновлення та | |
360 | видалення програмних пакетів. Пакет складається з файлового архіву та | |
361 | службової інформації, що містить назву, версію, опис та іншу | |
362 | інформацію про пакет. | |
363 | ||
364 | %package base | |
365 | Summary: RPM base package - scripts used by rpm packages themselves | |
366 | Summary(pl.UTF-8): Podstawowy pakiet RPM - skrypty używane przez same pakiety rpm | |
367 | Group: Base | |
368 | Requires: filesystem | |
369 | Obsoletes: rpm-scripts | |
370 | Obsoletes: vserver-rpm | |
371 | ||
372 | %description base | |
373 | The RPM base package contains scripts used by rpm packages themselves. | |
374 | These include: | |
375 | - scripts for adding/removing groups and users needed for rpm | |
376 | packages, | |
377 | - banner.sh to display %%banner messages from rpm scriptlets. | |
378 | ||
379 | %description base -l pl.UTF-8 | |
380 | Pakiet podstawowy RPM zwiera skrypty używane przez same pakiety rpm. | |
381 | Zawiera on: | |
382 | - skrypty dodające/usuwające grupy i użytkowników dla pakietów rpm, | |
383 | - banner.sh do pokazywania komunikatów %%banner dla skryptletów rpm. | |
384 | ||
385 | %package lib | |
386 | Summary: RPMs library | |
387 | Summary(pl.UTF-8): Biblioteki RPM-a | |
388 | Group: Libraries | |
389 | Requires: beecrypt >= %{beecrypt_ver} | |
390 | %{?with_db:Requires: db >= %{reqdb_ver}} | |
391 | Requires: libmagic >= 1.15-2 | |
392 | %{?with_selinux:Requires: libselinux >= 1.18} | |
393 | Requires: popt >= %{reqpopt_ver} | |
394 | Obsoletes: rpm-libs | |
395 | # avoid SEGV caused by mixed db versions | |
396 | Conflicts: poldek < 0.18.1-16 | |
397 | ||
398 | %description lib | |
399 | RPMs library. | |
400 | ||
401 | %description lib -l pl.UTF-8 | |
402 | Biblioteki RPM-a. | |
403 | ||
404 | %package devel | |
405 | Summary: Header files for rpm libraries | |
406 | Summary(de.UTF-8): Header-Dateien für rpm Libraries | |
407 | Summary(es.UTF-8): Archivos de inclusión y bibliotecas para programas de manipulación de paquetes rpm | |
408 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek rpm | |
409 | Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para programas de manipulação de pacotes RPM | |
410 | Summary(ru.UTF-8): Хедеры и библиотеки для программ, работающих с rpm-пакетами | |
411 | Summary(uk.UTF-8): Хедери та бібліотеки для програм, що працюють з пакетами rpm | |
412 | Group: Development/Libraries | |
413 | Requires: %{name}-lib = %{version}-%{release} | |
414 | Requires: beecrypt-devel >= %{beecrypt_ver} | |
415 | Requires: bzip2-devel | |
416 | %{?with_db:Requires: db-devel >= %{reqdb_ver}} | |
417 | Requires: elfutils-devel | |
418 | Requires: keyutils-devel | |
419 | Requires: libmagic-devel | |
420 | %{?with_selinux:Requires: libselinux-devel} | |
421 | Requires: popt-devel >= %{reqpopt_ver} | |
422 | Requires: zlib-devel | |
423 | ||
424 | %description devel | |
425 | The RPM packaging system includes C libraries that make it easy to | |
426 | manipulate RPM packages and databases. They are intended to ease the | |
427 | creation of graphical package managers and other tools that need | |
428 | intimate knowledge of RPM packages. This package contains header files | |
429 | for these libraries. | |
430 | ||
431 | %description devel -l de.UTF-8 | |
432 | Der RPM-Packensystem enthält eine C-Library, die macht es einfach | |
433 | RPM-Pakete und Dateibanken zu manipulieren. Er eignet sich für | |
434 | Vereinfachung des Schaffens grafischer Paket-Manager und anderer | |
435 | Werkzeuge, die intime Kenntnis von RPM-Paketen brauchen. | |
436 | ||
437 | %description devel -l es.UTF-8 | |
438 | El sistema de empaquetado RPM incluye una biblioteca C que vuelve | |
439 | fácil la manipulación de paquetes y bases de datos RPM. Su objetivo es | |
440 | facilitar la creación de administradores gráficos de paquetes y otras | |
441 | herramientas que necesiten un conocimiento profundo de paquetes RPM. | |
442 | ||
443 | %description devel -l pl.UTF-8 | |
444 | System RPM zawiera biblioteki C, które ułatwiają manipulowanie | |
445 | pakietami RPM oraz bazami danych. W zamiarze ma to uprościć tworzenie | |
446 | graficznych programów zarządzających pakietami oraz innych narzędzi, | |
447 | które wymagają szczegółowej wiedzy na temat pakietów RPM. Ten pakiet | |
448 | zawiera pliki nagłówkowe wspomnianych bibliotek. | |
449 | ||
450 | %description devel -l pt_BR.UTF-8 | |
451 | O sistema de empacotamento RPM inclui uma biblioteca C que torna fácil | |
452 | a manipulação de pacotes e bases de dados RPM. Seu objetivo é | |
453 | facilitar a criação de gerenciadores gráficos de pacotes e outras | |
454 | ferramentas que precisem de conhecimento profundo de pacotes RPM. | |
455 | ||
456 | %description devel -l ru.UTF-8 | |
457 | Система управления пакетами RPM содержит библиотеку C, которая | |
458 | упрощает манипуляцию пакетами RPM и соответствующими базами данных. | |
459 | Эта библиотека предназначена для облегчения создания графических | |
460 | пакетных менеджеров и других утилит, которым необходимо работать с | |
461 | пакетами RPM. | |
462 | ||
463 | %description devel -l uk.UTF-8 | |
464 | Система керування пакетами RPM містить бібліотеку C, котра спрощує | |
465 | роботу з пакетами RPM та відповідними базами даних. Ця бібліотека | |
466 | призначена для полегшення створення графічних пакетних менеджерів та | |
467 | інших утиліт, що працюють з пакетами RPM. | |
468 | ||
469 | %package static | |
470 | Summary: RPM static libraries | |
471 | Summary(de.UTF-8): RPMs statische Libraries | |
472 | Summary(pl.UTF-8): Biblioteki statyczne RPM-a | |
473 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para o desenvolvimento de aplicações RPM | |
474 | Summary(ru.UTF-8): Статическая библиотека для программ, работающих с rpm-пакетами | |
475 | Summary(uk.UTF-8): Статична бібліотека для програм, що працюють з пакетами rpm | |
476 | Group: Development/Libraries | |
477 | Requires: %{name}-devel = %{version}-%{release} | |
478 | Requires: beecrypt-static >= %{beecrypt_ver} | |
479 | Requires: bzip2-static | |
480 | %{?with_db:Requires: db-static >= %{reqdb_ver}} | |
481 | Requires: elfutils-static | |
482 | Requires: keyutils-static | |
483 | Requires: libmagic-static | |
484 | Requires: popt-static >= %{reqpopt_ver} | |
485 | Requires: zlib-static | |
486 | ||
487 | %description static | |
488 | RPM static libraries. | |
489 | ||
490 | %description static -l de.UTF-8 | |
491 | RPMs statische Libraries. | |
492 | ||
493 | %description static -l pl.UTF-8 | |
494 | Biblioteki statyczne RPM-a. | |
495 | ||
496 | %description static -l pt_BR.UTF-8 | |
497 | Bibliotecas estáticas para desenvolvimento. | |
498 | ||
499 | %description static -l ru.UTF-8 | |
500 | Система управления пакетами RPM содержит библиотеку C, которая | |
501 | упрощает манипуляцию пакетами RPM и соответствующими базами данных. | |
502 | Это статическая библиотека RPM. | |
503 | ||
504 | %description static -l uk.UTF-8 | |
505 | Система керування пакетами RPM містить бібліотеку C, котра спрощує | |
506 | роботу з пакетами RPM та відповідними базами даних. Це статична | |
507 | бібліотека RPM. | |
508 | ||
509 | %package utils | |
510 | Summary: Additional utilities for managing RPM packages and database | |
511 | Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken | |
512 | Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami | |
513 | Group: Applications/File | |
514 | Requires: %{name} = %{version}-%{release} | |
515 | Requires: popt >= %{reqpopt_ver} | |
516 | %if %{with suggest_tags} | |
517 | Suggests: bzip2 | |
518 | Suggests: gzip | |
519 | %endif | |
520 | Conflicts: filesystem-debuginfo < 3.0-16 | |
521 | ||
522 | %description utils | |
523 | Additional utilities for managing RPM packages and database. | |
524 | ||
525 | %description utils -l de.UTF-8 | |
526 | Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken. | |
527 | ||
528 | %description utils -l pl.UTF-8 | |
529 | Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami. | |
530 | ||
531 | %package utils-perl | |
532 | Summary: Additional utilities for managing RPM packages and database | |
533 | Summary(de.UTF-8): Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken | |
534 | Summary(pl.UTF-8): Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami | |
535 | Group: Applications/File | |
536 | Requires: %{name}-utils = %{version}-%{release} | |
537 | Requires: popt >= %{reqpopt_ver} | |
538 | ||
539 | %description utils-perl | |
540 | Additional utilities for managing RPM packages and database. | |
541 | ||
542 | %description utils-perl -l de.UTF-8 | |
543 | Zusatzwerkzeuge für Verwaltung RPM-Pakete und Datenbanken. | |
544 | ||
545 | %description utils-perl -l pl.UTF-8 | |
546 | Dodatkowe narzędzia do zarządzania bazą RPM-a i pakietami. | |
547 | ||
548 | %package utils-static | |
549 | Summary: Static rpm utilities | |
550 | Summary(pl.UTF-8): Statyczne narzędzia rpm | |
551 | Group: Applications/System | |
552 | Requires: %{name} = %{version}-%{release} | |
553 | ||
554 | %description utils-static | |
555 | Static rpm utilities for repairing system in case something with | |
556 | shared libraries used by rpm become broken. Currently it contains rpmi | |
557 | binary, which can be used to install/upgrade/remove packages without | |
558 | using shared libraries (well, in fact with exception of NSS modules). | |
559 | ||
560 | %description utils-static -l pl.UTF-8 | |
561 | Statyczne narzędzia rpm do naprawy systemu w przypadku zepsucia czegoś | |
562 | związanego z bibliotekami współdzielonymi używanymi przez rpm-a. | |
563 | Aktualnie pakiet zawiera binarkę rpmi, którą można użyć do instalacji, | |
564 | uaktualniania lub usuwania pakietów bez udziału bibliotek statycznych | |
565 | (z wyjątkiem modułów NSS). | |
566 | ||
567 | %package build | |
568 | Summary: Scripts for building binary RPM packages | |
569 | Summary(de.UTF-8): Scripts fürs Bauen binärer RPM-Pakete | |
570 | Summary(pl.UTF-8): Skrypty pomocnicze do budowania binarnych RPM-ów | |
571 | Summary(pt_BR.UTF-8): Scripts e programas executáveis usados para construir pacotes | |
572 | Summary(ru.UTF-8): Скрипты и утилиты, необходимые для сборки пакетов | |
573 | Summary(uk.UTF-8): Скрипти та утиліти, необхідні для побудови пакетів | |
574 | Group: Applications/File | |
575 | Requires(pre): findutils | |
576 | Requires: %{name}-build-macros >= 1.653 | |
577 | Requires: %{name}-utils = %{version}-%{release} | |
578 | Requires: /bin/id | |
579 | Requires: awk | |
580 | Requires: bzip2 | |
581 | Requires: chrpath >= 0.10-4 | |
582 | Requires: cpio | |
583 | Requires: diffutils | |
584 | Requires: elfutils | |
585 | Requires: file >= 4.17 | |
586 | Requires: fileutils | |
587 | Requires: findutils | |
588 | %ifarch athlon | |
589 | Requires: gcc >= 3.0.3 | |
590 | %else | |
591 | Requires: gcc | |
592 | %endif | |
593 | Requires: glibc-devel | |
594 | Requires: grep | |
595 | Requires: gzip | |
596 | Requires: make | |
597 | Requires: patch | |
598 | Requires: sed | |
599 | Requires: sh-utils | |
600 | Requires: tar | |
601 | Requires: textutils | |
602 | Provides: rpmbuild(monoautodeps) | |
603 | Provides: rpmbuild(noauto) = 3 | |
604 | %ifarch %{x8664} | |
605 | Conflicts: automake < 1:1.7.9-2 | |
606 | Conflicts: libtool < 2:1.5-13 | |
607 | %endif | |
608 | ||
609 | %description build | |
610 | Scripts for building binary RPM packages. | |
611 | ||
612 | %description build -l de.UTF-8 | |
613 | Scripts fürs Bauen binärer RPM-Pakete. | |
614 | ||
615 | %description build -l pl.UTF-8 | |
616 | Skrypty pomocnicze do budowania binarnych RPM-ów. | |
617 | ||
618 | %description build -l pt_BR.UTF-8 | |
619 | Este pacote contém scripts e programas executáveis que são usados para | |
620 | construir pacotes usando o RPM. | |
621 | ||
622 | %description build -l ru.UTF-8 | |
623 | Различные вспомогательные скрипты и исполняемые программы, которые | |
624 | используются для сборки RPM'ов. | |
625 | ||
626 | %description build -l uk.UTF-8 | |
627 | Різноманітні допоміжні скрипти та утиліти, які використовуються для | |
628 | побудови RPM'ів. | |
629 | ||
630 | %package javaprov | |
631 | Summary: Additional utilities for checking Java provides/requires in RPM packages | |
632 | Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach RPM | |
633 | Group: Applications/File | |
634 | Requires: %{name} = %{version}-%{release} | |
635 | Requires: file | |
636 | Requires: findutils >= 1:4.2.26 | |
637 | Requires: mktemp | |
638 | Requires: unzip | |
639 | ||
640 | %description javaprov | |
641 | Additional utilities for checking Java provides/requires in RPM | |
642 | packages. | |
643 | ||
644 | %description javaprov -l pl.UTF-8 | |
645 | Dodatkowe narzędzia do sprawdzania zależności kodu w Javie w pakietach | |
646 | RPM. | |
647 | ||
648 | %package perlprov | |
649 | Summary: Additional utilities for checking Perl provides/requires in RPM packages | |
650 | Summary(de.UTF-8): Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen | |
651 | Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w pakietach RPM | |
652 | Group: Applications/File | |
653 | Requires: %{name} = %{version}-%{release} | |
654 | Requires: perl-devel | |
655 | Requires: perl-modules | |
656 | ||
657 | %description perlprov | |
658 | Additional utilities for checking Perl provides/requires in RPM | |
659 | packages. | |
660 | ||
661 | %description perlprov -l de.UTF-8 | |
662 | Zusatzwerkzeuge fürs Nachsehen Perl-Abhängigkeiten in RPM-Paketen. | |
663 | ||
664 | %description perlprov -l pl.UTF-8 | |
665 | Dodatkowe narzędzia do sprawdzenia zależności skryptów Perla w | |
666 | pakietach RPM. | |
667 | ||
668 | %package pythonprov | |
669 | Summary: Python macros, which simplifies creation of RPM packages with Python software | |
670 | Summary(pl.UTF-8): Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w Pythonie | |
671 | Group: Applications/File | |
672 | Requires: %{name} = %{version}-%{release} | |
673 | Requires: python | |
674 | Requires: python-modules | |
675 | Requires: python-distribute | |
676 | ||
677 | %description pythonprov | |
678 | Python macros, which simplifies creation of RPM packages with Python | |
679 | software. | |
680 | ||
681 | %description pythonprov -l pl.UTF-8 | |
682 | Makra ułatwiające tworzenie pakietów RPM z programami napisanymi w | |
683 | Pythonie. | |
684 | ||
685 | %package php-pearprov | |
686 | Summary: Additional utilities for checking PHP PEAR provides/requires in RPM packages | |
687 | Summary(pl.UTF-8): Dodatkowe narzędzia do sprawdzania zależności skryptów php w RPM | |
688 | Group: Applications/File | |
689 | Requires: %{name} = %{version}-%{release} | |
690 | Requires: sed >= 4.0 | |
691 | ||
692 | %description php-pearprov | |
693 | Additional utilities for checking PHP PEAR provides/requires in RPM | |
694 | packages. | |
695 | ||
696 | %description php-pearprov -l pl.UTF-8 | |
697 | Dodatkowe narzędzia do sprawdzenia zależności skryptów PHP PEAR w | |
698 | pakietach RPM. | |
699 | ||
700 | %package -n python-rpm | |
701 | Summary: Python interface to RPM library | |
702 | Summary(pl.UTF-8): Pythonowy interfejs do biblioteki RPM-a | |
703 | Summary(pt_BR.UTF-8): Módulo Python para aplicativos que manipulam pacotes RPM | |
704 | Group: Development/Languages/Python | |
705 | Requires: %{name} = %{version}-%{release} | |
706 | %pyrequires_eq python | |
707 | Obsoletes: rpm-python | |
708 | ||
709 | %description -n python-rpm | |
710 | The rpm-python package contains a module which permits applications | |
711 | written in the Python programming language to use the interface | |
712 | supplied by RPM (RPM Package Manager) libraries. | |
713 | ||
714 | This package should be installed if you want to develop Python | |
715 | programs that will manipulate RPM packages and databases. | |
716 | ||
717 | %description -n python-rpm -l pl.UTF-8 | |
718 | Pakiet rpm-python zawiera moduł, który pozwala aplikacjom napisanym w | |
719 | Pythonie na używanie interfejsu dostarczanego przez biblioteki RPM-a. | |
720 | ||
721 | Pakiet ten powinien zostać zainstalowany, jeśli chcesz pisać w | |
722 | Pythonie programy manipulujące pakietami i bazami danych rpm. | |
723 | ||
724 | %description -n python-rpm -l pt_BR.UTF-8 | |
725 | O pacote rpm-python contém um módulo que permite que aplicações | |
726 | escritas em Python utilizem a interface fornecida pelas bibliotecas | |
727 | RPM (RPM Package Manager). | |
728 | ||
729 | Esse pacote deve ser instalado se você quiser desenvolver programas em | |
730 | Python para manipular pacotes e bancos de dados RPM. | |
731 | ||
732 | %package apidocs | |
733 | Summary: RPM API documentation and guides | |
734 | Summary(pl.UTF-8): Documentacja API RPM-a i przewodniki | |
735 | Group: Documentation | |
736 | ||
737 | %description apidocs | |
738 | Documentation for RPM API and guides in HTML format generated from rpm | |
739 | sources by doxygen. | |
740 | ||
741 | %description apidocs -l pl.UTF-8 | |
742 | Dokumentacja API RPM-a oraz przewodniki w formacie HTML generowane ze | |
743 | źrodeł RPM-a przez doxygen. | |
744 | ||
745 | %prep | |
746 | %setup -q -n %{name}-%{version}%{?subver} -a100 | |
747 | #patch0 -p1 | |
748 | %patch1 -p1 | |
749 | %patch2 -p1 | |
750 | %patch3 -p1 | |
751 | %patch4 -p1 | |
752 | %patch5 -p1 | |
753 | %patch6 -p1 | |
754 | %patch7 -p1 | |
755 | %patch8 -p1 | |
756 | %{?with_system_lua:%patch9 -p1} | |
757 | %patch11 -p1 | |
758 | %ifnarch i386 i486 | |
759 | # enable TSC for capable archs | |
760 | %patch13 -p1 | |
761 | %endif | |
762 | %patch14 -p1 | |
763 | %patch15 -p1 | |
764 | %patch16 -p0 | |
765 | %patch17 -p1 | |
766 | %patch18 -p1 | |
767 | %patch19 -p1 | |
768 | %patch20 -p1 | |
769 | %patch21 -p1 | |
770 | %patch22 -p1 | |
771 | %patch23 -p1 | |
772 | %ifarch sparc64 | |
773 | %patch24 -p1 | |
774 | %endif | |
775 | %patch25 -p1 | |
776 | %patch26 -p1 -b .wiget | |
777 | %patch27 -p1 | |
778 | %patch28 -p1 | |
779 | %patch29 -p1 | |
780 | %patch30 -p1 | |
781 | %patch31 -p1 | |
782 | %patch32 -p1 | |
783 | %patch33 -p1 | |
784 | %patch34 -p1 | |
785 | %patch35 -p1 | |
786 | %patch36 -p1 | |
787 | %patch37 -p1 | |
788 | %patch38 -p1 | |
789 | %patch39 -p1 | |
790 | %patch40 -p1 | |
791 | %patch41 -p1 | |
792 | #patch42 -p1 | |
793 | %patch43 -p1 | |
794 | %patch44 -p1 | |
795 | %patch45 -p1 | |
796 | %patch46 -p1 | |
797 | %patch47 -p1 | |
798 | ||
799 | %patch1000 -p1 | |
800 | %patch1001 -p1 | |
801 | %patch1002 -p1 | |
802 | %patch1003 -p1 | |
803 | %patch1004 -p1 | |
804 | %patch1005 -p1 | |
805 | %patch1006 -p1 | |
806 | %patch1007 -p1 | |
807 | %patch1008 -p1 | |
808 | %patch1009 -p1 | |
809 | %patch1010 -p1 | |
810 | %patch1011 -p1 | |
811 | %patch1012 -p1 | |
812 | %patch1013 -p1 | |
813 | %patch1014 -p1 | |
814 | %patch1015 -p1 | |
815 | %patch1016 -p1 | |
816 | %patch1017 -p1 | |
817 | %patch1018 -p1 | |
818 | %patch1019 -p1 | |
819 | %patch1020 -p1 | |
820 | %patch1021 -p1 | |
821 | %patch1022 -p1 | |
822 | %patch1023 -p1 | |
823 | %patch1024 -p1 | |
824 | %patch1025 -p1 | |
825 | %patch1026 -p1 | |
826 | %patch1027 -p1 | |
827 | %patch1028 -p1 | |
828 | %patch1029 -p1 | |
829 | %patch1030 -p1 | |
830 | %patch1031 -p1 | |
831 | %patch1032 -p1 | |
832 | %patch1033 -p1 | |
833 | %patch1034 -p1 | |
834 | %patch1035 -p1 | |
835 | %patch1036 -p1 | |
836 | %patch1037 -p1 | |
837 | %patch1038 -p1 | |
838 | %patch1039 -p1 | |
839 | ||
840 | install %{SOURCE2} macros/pld.in | |
841 | install %{SOURCE8} scripts/php.prov.in | |
842 | install %{SOURCE9} scripts/php.req.in | |
843 | install %{SOURCE11} scripts/perl.prov.in | |
844 | ||
845 | %{__mv} -f scripts/perl.req{,.in} | |
846 | ||
847 | # generate Group translations to *.po | |
848 | awk -f %{SOURCE6} %{SOURCE1} | |
849 | ||
850 | %build | |
851 | %{__libtoolize} | |
852 | #%{__autopoint} | |
853 | %{__aclocal} | |
854 | %{__autoheader} | |
855 | %{__autoconf} | |
856 | %{__automake} | |
857 | ||
858 | # rpm checks for CPU type at runtime, but it looks better | |
859 | sed -i \ | |
860 | -e 's|@host@|%{_target_cpu}-%{_target_vendor}-%{_target_os}|' \ | |
861 | -e 's|@host_cpu@|%{_target_cpu}|' \ | |
862 | -e 's|@host_os@|%{_target_os}|' \ | |
863 | macros/macros.in | |
864 | ||
865 | %{?with_system_lua:CPPFLAGS="-I/usr/include/lua51 %{rpmcppflags}"} | |
866 | # pass CC and CXX too in case of building with some older configure macro | |
867 | %configure \ | |
868 | CC="%{__newcc}" \ | |
869 | CXX="%{__newcxx}" \ | |
870 | CPP="%{__newcpp}" \ | |
871 | WITH_PERL_VERSION=no \ | |
872 | --enable-shared \ | |
873 | --enable-static \ | |
874 | %{!?with_apidocs:--without-apidocs} \ | |
875 | %{?with_python:--with-python=%{py_ver} --with-python-lib-dir=%{py_sitedir}} \ | |
876 | %{!?with_python:--without-python} \ | |
877 | --with%{!?with_selinux:out}-selinux \ | |
878 | --with-libelf \ | |
879 | --with-zlib=external \ | |
880 | --with-bzip2=external \ | |
881 | --with-beecrypt=external \ | |
882 | --with-lzma=external \ | |
883 | --with-xz=external \ | |
884 | --with-neon=%{?with_neon:external}%{!?with_neon:no} \ | |
885 | --with-file=external \ | |
886 | --with-popt=external \ | |
887 | --with-db=%{?with_db:external}%{!?with_db:no} \ | |
888 | --with-sqlite=%{?with_sqlite:yes}%{!?with_sqlite:no} \ | |
889 | --with-dbapi=%{!?with_sqlite_dbapi:db}%{?with_sqlite_dbapi:sqlite} \ | |
890 | --with-lua=%{!?with_system_lua:internal}%{?with_system_lua:external} \ | |
891 | --with-pcre=external \ | |
892 | --with-keyutils=none \ | |
893 | --with-uuid=%{_libdir}:%{_includedir}/ossp-uuid \ | |
894 | --without-path-versioned \ | |
895 | --with-extra-path-macros='%{_sysconfdir}/rpm/macros.d/*.macros:%{_rpmlibdir}/macros.d/pld:%{_rpmlibdir}/macros.build:~/etc/.rpmmacros:~/.rpmmacros' \ | |
896 | --with-bugreport="http://bugs.pld-linux.org/" \ | |
897 | --with-vendor=pld | |
898 | ||
899 | %{__make} -j1 \ | |
900 | CC="%{__cc}" \ | |
901 | CXX="%{__cxx}" \ | |
902 | CPP="%{__cpp}" | |
903 | ||
904 | %{?with_apidocs:%{__make} apidocs} | |
905 | ||
906 | %install | |
907 | rm -rf $RPM_BUILD_ROOT | |
908 | install -d $RPM_BUILD_ROOT{/bin,/%{_lib},/etc/sysconfig,%{_sysconfdir}/rpm} \ | |
909 | $RPM_BUILD_ROOT{/var/lib/banner,/var/cache/hrmib,/etc/pki/rpm-gpg} | |
910 | ||
911 | install %{SOURCE16} $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc | |
912 | ||
913 | %{__make} install \ | |
914 | pkgconfigdir=%{_pkgconfigdir} \ | |
915 | DESTDIR=$RPM_BUILD_ROOT | |
916 | ||
917 | # install ARCH macros | |
918 | install -d $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux | |
919 | install cpu-os-macros/noarch-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/noarch-linux/macros | |
920 | ||
921 | %ifarch %{ix86} | |
922 | install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{i386,i486,i586,i686,athlon,pentium3,pentium4}-linux | |
923 | install cpu-os-macros/athlon-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/athlon-linux/macros | |
924 | install cpu-os-macros/i386-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i386-linux/macros | |
925 | install cpu-os-macros/i486-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i486-linux/macros | |
926 | install cpu-os-macros/i586-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i586-linux/macros | |
927 | install cpu-os-macros/i686-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/i686-linux/macros | |
928 | install cpu-os-macros/pentium3-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pentium3-linux/macros | |
929 | install cpu-os-macros/pentium4-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/pentium4-linux/macros | |
930 | %endif | |
931 | ||
932 | %ifarch %{x8664} | |
933 | install -d $RPM_BUILD_ROOT%{_rpmlibdir}/{x86_64,ia32e,amd64}-linux | |
934 | install cpu-os-macros/x86_64-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/x86_64-linux/macros | |
935 | install cpu-os-macros/ia32e-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/ia32e-linux/macros | |
936 | install cpu-os-macros/amd64-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/amd64-linux/macros | |
937 | %endif | |
938 | ||
939 | %ifarch %{ppc} | |
940 | install -d $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux | |
941 | install cpu-os-macros/ppc-linux/macros $RPM_BUILD_ROOT%{_rpmlibdir}/ppc-linux/macros | |
942 | %endif | |
943 | ||
944 | cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/platform | |
945 | # first platform file entry can't contain regexps | |
946 | %{_target_cpu}-%{_target_vendor}-linux | |
947 | ||
948 | # x86_64 things | |
949 | %ifarch x86_64 | |
950 | x86_64-[^-]*-[Ll]inux(-gnu)? | |
951 | amd64-[^-]*-[Ll]inux(-gnu)? | |
952 | %endif | |
953 | %ifarch amd64 | |
954 | amd64-[^-]*-[Ll]inux(-gnu)? | |
955 | x86_64-[^-]*-[Ll]inux(-gnu)? | |
956 | %endif | |
957 | %ifarch ia32e | |
958 | ia32e-[^-]*-[Ll]inux(-gnu)? | |
959 | x86_64-[^-]*-[Ll]inux(-gnu)? | |
960 | %endif | |
961 | ||
962 | # x86 things | |
963 | %ifarch athlon %{x8664} | |
964 | athlon-[^-]*-[Ll]inux(-gnu)? | |
965 | %endif | |
966 | %ifarch pentium4 athlon %{x8664} | |
967 | pentium4-[^-]*-[Ll]inux(-gnu)? | |
968 | %endif | |
969 | %ifarch pentium3 pentium4 athlon %{x8664} | |
970 | pentium3-[^-]*-[Ll]inux(-gnu)? | |
971 | %endif | |
972 | %ifarch i686 pentium3 pentium4 athlon %{x8664} | |
973 | i686-[^-]*-[Ll]inux(-gnu)? | |
974 | %endif | |
975 | %ifarch i586 i686 pentium3 pentium4 athlon %{x8664} | |
976 | i586-[^-]*-[Ll]inux(-gnu)? | |
977 | %endif | |
978 | %ifarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} | |
979 | i486-[^-]*-[Ll]inux(-gnu)? | |
980 | %endif | |
981 | %ifarch %{ix86} %{x8664} | |
982 | i386-[^-]*-[Ll]inux(-gnu)? | |
983 | %endif | |
984 | ||
985 | %ifarch alpha | |
986 | alpha-[^-]*-[Ll]inux(-gnu)? | |
987 | %endif | |
988 | ||
989 | %ifarch ia64 | |
990 | ia64-[^-]*-[Ll]inux(-gnu)? | |
991 | %endif | |
992 | ||
993 | %ifarch ppc64 | |
994 | powerpc64-[^-]*-[Ll]inux(-gnu)? | |
995 | ppc64-[^-]*-[Ll]inux(-gnu)? | |
996 | %endif | |
997 | %ifarch %{ppc} ppc64 | |
998 | powerpc-[^-]*-[Ll]inux(-gnu)? | |
999 | ppc-[^-]*-[Ll]inux(-gnu)? | |
1000 | %endif | |
1001 | ||
1002 | %ifarch s390x | |
1003 | s390x-[^-]*-[Ll]inux(-gnu)? | |
1004 | %endif | |
1005 | %ifarch s390 s390x | |
1006 | s390-[^-]*-[Ll]inux(-gnu)? | |
1007 | %endif | |
1008 | ||
1009 | %ifarch sparc64 | |
1010 | sparc64-[^-]*-[Ll]inux(-gnu)? | |
1011 | sparcv8-[^-]*-[Ll]inux(-gnu)? | |
1012 | sparcv9-[^-]*-[Ll]inux(-gnu)? | |
1013 | %endif | |
1014 | %ifarch sparcv9 | |
1015 | sparcv8-[^-]*-[Ll]inux(-gnu)? | |
1016 | sparcv9-[^-]*-[Ll]inux(-gnu)? | |
1017 | %endif | |
1018 | %ifarch sparc sparcv9 sparc64 | |
1019 | sparc-[^-]*-[Ll]inux(-gnu)? | |
1020 | %endif | |
1021 | ||
1022 | # noarch | |
1023 | noarch-[^-]*-.* | |
1024 | EOF | |
1025 | ||
1026 | rm $RPM_BUILD_ROOT%{_rpmlibdir}/vpkg-provides* | |
1027 | rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{prov,req}.pl | |
1028 | rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-{provides,requires}.perl | |
1029 | rm $RPM_BUILD_ROOT%{_rpmlibdir}/find-lang.sh | |
1030 | ||
1031 | # not installed since 4.4.8 (-tools-perl subpackage) | |
1032 | install scripts/rpmdiff scripts/rpmdiff.cgi $RPM_BUILD_ROOT%{_rpmlibdir} | |
1033 | ||
1034 | install %{SOURCE1} doc/manual/groups | |
1035 | install %{SOURCE3} $RPM_BUILD_ROOT%{_rpmlibdir}/install-build-tree | |
1036 | install %{SOURCE4} $RPM_BUILD_ROOT%{_rpmlibdir}/find-spec-bcond | |
1037 | install %{SOURCE7} $RPM_BUILD_ROOT%{_rpmlibdir}/compress-doc | |
1038 | install %{SOURCE12} $RPM_BUILD_ROOT%{_rpmlibdir}/user_group.sh | |
1039 | install %{SOURCE14} $RPM_BUILD_ROOT%{_rpmlibdir}/java-find-requires | |
1040 | install scripts/find-php* $RPM_BUILD_ROOT%{_rpmlibdir} | |
1041 | install scripts/php.{prov,req} $RPM_BUILD_ROOT%{_rpmlibdir} | |
1042 | cp -p %{SOURCE25} $RPM_BUILD_ROOT%{_rpmlibdir}/php.req.php | |
1043 | install %{SOURCE17} $RPM_BUILD_ROOT%{_rpmlibdir}/mimetypedeps.sh | |
1044 | install %{SOURCE5} $RPM_BUILD_ROOT%{_rpmlibdir}/hrmib-cache | |
1045 | install %{SOURCE13} $RPM_BUILD_ROOT/etc/sysconfig/rpm | |
1046 | ||
1047 | install %{SOURCE15} $RPM_BUILD_ROOT%{_bindir}/banner.sh | |
1048 | ||
1049 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo | |
1050 | ||
1051 | install %{SOURCE18} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros | |
1052 | install %{SOURCE19} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautocompressdoc | |
1053 | install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprov | |
1054 | install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoprovfiles | |
1055 | install %{SOURCE22} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreq | |
1056 | install %{SOURCE23} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqdep | |
1057 | install %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/noautoreqfiles | |
1058 | ||
1059 | touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Conflictname | |
1060 | touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Dirnames | |
1061 | install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Filelinktos | |
1062 | touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Obsoletename | |
1063 | touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Providename | |
1064 | touch $RPM_BUILD_ROOT%{_sysconfdir}/rpm/sysinfo/Requirename | |
1065 | ||
1066 | # for rpm -e|-U --repackage | |
1067 | install -d $RPM_BUILD_ROOT/var/{spool/repackage,lock/rpm} | |
1068 | touch $RPM_BUILD_ROOT/var/lock/rpm/transaction | |
1069 | ||
1070 | # move rpm to /bin | |
1071 | mv $RPM_BUILD_ROOT%{_bindir}/rpm $RPM_BUILD_ROOT/bin | |
1072 | # move essential libs to /lib (libs that /bin/rpm links to) | |
1073 | for a in librpm-%{sover}.so librpmdb-%{sover}.so librpmio-%{sover}.so librpmbuild-%{sover}.so librpmmisc-%{sover}.so librpmconstant-%{sover}.so; do | |
1074 | mv -f $RPM_BUILD_ROOT%{_libdir}/$a $RPM_BUILD_ROOT/%{_lib} | |
1075 | ln -s /%{_lib}/$a $RPM_BUILD_ROOT%{_libdir}/$a | |
1076 | done | |
1077 | ||
1078 | # Bourne shell script vs ELF executable linked with rpm,rpmdb,rpmio | |
1079 | mv $RPM_BUILD_ROOT{%{_rpmlibdir},%{_bindir}}/rpm2cpio | |
1080 | ||
1081 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
1082 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
1083 | ||
1084 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/rpm/*.{la,a,py} | |
1085 | ||
1086 | # wrong location, not used anyway | |
1087 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/rpm.{daily,log,xinetd} | |
1088 | # utils dropped in 4.4.8 -- their manuals | |
1089 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/*/man8/rpmgraph.8 | |
1090 | # utils dropped in 5.4 -- their manuals | |
1091 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/rpmgrep.1 | |
1092 | # script obsoleted by /usr/lib/rpm/bin/dbconvert binary | |
1093 | %{__rm} $RPM_BUILD_ROOT%{_rpmlibdir}/dbconvert.sh | |
1094 | ||
1095 | %find_lang %{name} | |
1096 | ||
1097 | %{__rm} -rf manual | |
1098 | cp -a doc/manual manual | |
1099 | %{__rm} -f manual/Makefile* | |
1100 | ||
1101 | %clean | |
1102 | rm -rf $RPM_BUILD_ROOT | |
1103 | ||
1104 | %pretrans | |
1105 | # this needs to be a dir | |
1106 | if [ -f %{_sysconfdir}/rpm/sysinfo ]; then | |
1107 | umask 022 | |
1108 | mv -f %{_sysconfdir}/rpm/sysinfo{,.rpmsave} | |
1109 | mkdir %{_sysconfdir}/rpm/sysinfo | |
1110 | fi | |
1111 | ||
1112 | %posttrans | |
1113 | if [ -e /var/lib/rpm/__convert_needed ]; then | |
1114 | %{_rpmlibdir}/bin/dbconvert --rebuilddb | |
1115 | %{__rm} -f /var/lib/rpm/__convert_needed | |
1116 | fi | |
1117 | ||
1118 | %triggerpostun -- %{name} < 5.4.0-1 | |
1119 | :>/var/lib/rpm/__convert_needed | |
1120 | ||
1121 | %triggerpostun -- %{name} < 4.4.9-44 | |
1122 | %{_rpmlibdir}/hrmib-cache | |
1123 | ||
1124 | %post lib -p /sbin/ldconfig | |
1125 | %postun lib -p /sbin/ldconfig | |
1126 | ||
1127 | %pretrans build | |
1128 | find %{_rpmlibdir} -name '*-linux' -type l | xargs rm -f | |
1129 | ||
1130 | %files -f %{name}.lang | |
1131 | %defattr(644,root,root,755) | |
1132 | %doc CHANGES CREDITS README pubkeys/JBJ-GPG-KEY manual/* | |
1133 | ||
1134 | %dir %{_sysconfdir}/pki/rpm-gpg | |
1135 | %{_sysconfdir}/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc | |
1136 | ||
1137 | %attr(755,root,root) /bin/rpm | |
1138 | ||
1139 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/macros | |
1140 | %dir %{_sysconfdir}/rpm/sysinfo | |
1141 | # these are ok to be replaced | |
1142 | %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/sysinfo/* | |
1143 | %config %verify(not md5 mtime size) %{_sysconfdir}/rpm/platform | |
1144 | ||
1145 | %{_mandir}/man8/rpm.8* | |
1146 | %lang(fr) %{_mandir}/fr/man8/rpm.8* | |
1147 | %lang(ja) %{_mandir}/ja/man8/rpm.8* | |
1148 | %lang(ko) %{_mandir}/ko/man8/rpm.8* | |
1149 | %lang(pl) %{_mandir}/pl/man8/rpm.8* | |
1150 | %lang(ru) %{_mandir}/ru/man8/rpm.8* | |
1151 | %lang(sk) %{_mandir}/sk/man8/rpm.8* | |
1152 | ||
1153 | %dir /var/lib/rpm | |
1154 | %dir /var/lib/rpm/log | |
1155 | %dir /var/lib/rpm/tmp | |
1156 | %config(noreplace) %verify(not md5 mtime size) /var/lib/rpm/DB_CONFIG | |
1157 | %dir %attr(700,root,root) /var/spool/repackage | |
1158 | %dir /var/lock/rpm | |
1159 | /var/lock/rpm/transaction | |
1160 | ||
1161 | # exported package NVRA (stamped with install tid) | |
1162 | # net-snmp hrSWInstalledName queries, bash-completions | |
1163 | %dir /var/cache/hrmib | |
1164 | ||
1165 | %{_rpmlibdir}/qf | |
1166 | %{_rpmlibdir}/rpmpopt* | |
1167 | %{_rpmlibdir}/macros | |
1168 | %dir %{_rpmlibdir}/macros.d | |
1169 | %{_rpmlibdir}/macros.d/pld | |
1170 | %{_rpmlibdir}/cpuinfo.yaml | |
1171 | ||
1172 | %attr(755,root,root) %{_rpmlibdir}/hrmib-cache | |
1173 | ||
1174 | %dir %{_rpmlibdir}/bin | |
1175 | %attr(755,root,root) %{_rpmlibdir}/bin/dbconvert | |
1176 | ||
1177 | %files base | |
1178 | %defattr(644,root,root,755) | |
1179 | %dir %{_sysconfdir}/rpm | |
1180 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rpm | |
1181 | %dir %{_rpmlibdir} | |
1182 | %attr(755,root,root) %{_bindir}/banner.sh | |
1183 | %attr(755,root,root) %{_bindir}/multiarch-dispatch | |
1184 | %attr(755,root,root) %{_rpmlibdir}/user_group.sh | |
1185 | %dir /var/lib/banner | |
1186 | ||
1187 | %files lib | |
1188 | %defattr(644,root,root,755) | |
1189 | %attr(755,root,root) /%{_lib}/librpm-%{sover}.so | |
1190 | %attr(755,root,root) /%{_lib}/librpmdb-%{sover}.so | |
1191 | %attr(755,root,root) /%{_lib}/librpmio-%{sover}.so | |
1192 | %attr(755,root,root) /%{_lib}/librpmbuild-%{sover}.so | |
1193 | %attr(755,root,root) /%{_lib}/librpmmisc-%{sover}.so | |
1194 | %attr(755,root,root) /%{_lib}/librpmconstant-%{sover}.so | |
1195 | ||
1196 | %files devel | |
1197 | %defattr(644,root,root,755) | |
1198 | %attr(755,root,root) %{_libdir}/librpm.so | |
1199 | %attr(755,root,root) %{_libdir}/librpm-%{sover}.so | |
1200 | %attr(755,root,root) %{_libdir}/librpmbuild.so | |
1201 | %attr(755,root,root) %{_libdir}/librpmbuild-%{sover}.so | |
1202 | %attr(755,root,root) %{_libdir}/librpmconstant.so | |
1203 | %attr(755,root,root) %{_libdir}/librpmconstant-%{sover}.so | |
1204 | %attr(755,root,root) %{_libdir}/librpmdb.so | |
1205 | %attr(755,root,root) %{_libdir}/librpmdb-%{sover}.so | |
1206 | %attr(755,root,root) %{_libdir}/librpmio.so | |
1207 | %attr(755,root,root) %{_libdir}/librpmio-%{sover}.so | |
1208 | %attr(755,root,root) %{_libdir}/librpmmisc.so | |
1209 | %attr(755,root,root) %{_libdir}/librpmmisc-%{sover}.so | |
1210 | %{_libdir}/librpm*.la | |
1211 | %{_includedir}/rpm | |
1212 | %{_includedir}/multiarch-dispatch.h | |
1213 | %{_pkgconfigdir}/*.pc | |
1214 | ||
1215 | %files static | |
1216 | %defattr(644,root,root,755) | |
1217 | %{_libdir}/librpm*.a | |
1218 | ||
1219 | %files utils | |
1220 | %defattr(644,root,root,755) | |
1221 | %attr(755,root,root) %{_bindir}/rpm2cpio | |
1222 | %attr(755,root,root) %{_bindir}/rpmconstant | |
1223 | %attr(755,root,root) %{_rpmlibdir}/find-debuginfo.sh | |
1224 | %attr(755,root,root) %{_rpmlibdir}/rpmdb_loadcvt | |
1225 | %attr(755,root,root) %{_rpmlibdir}/tgpg | |
1226 | %attr(755,root,root) %{_rpmlibdir}/bin/chroot | |
1227 | %attr(755,root,root) %{_rpmlibdir}/bin/cp | |
1228 | %attr(755,root,root) %{_rpmlibdir}/bin/debugedit | |
1229 | %attr(755,root,root) %{_rpmlibdir}/bin/find | |
1230 | %attr(755,root,root) %{_rpmlibdir}/bin/mgo | |
1231 | %attr(755,root,root) %{_rpmlibdir}/bin/mtree | |
1232 | %attr(755,root,root) %{_rpmlibdir}/bin/rpmcache | |
1233 | %attr(755,root,root) %{_rpmlibdir}/bin/rpmcmp | |
1234 | %attr(755,root,root) %{_rpmlibdir}/bin/rpmdeps | |
1235 | %attr(755,root,root) %{_rpmlibdir}/bin/rpmdigest | |
1236 | %attr(755,root,root) %{_rpmlibdir}/bin/rpmkey | |
1237 | %attr(755,root,root) %{_rpmlibdir}/bin/rpmrepo | |
1238 | %{_mandir}/man8/rpm2cpio.8* | |
1239 | %{_mandir}/man8/rpmcache.8* | |
1240 | %{_mandir}/man8/rpmconstant.8* | |
1241 | %{_mandir}/man8/rpmdeps.8* | |
1242 | %{_mandir}/man8/rpmmtree.8* | |
1243 | %lang(ja) %{_mandir}/ja/man8/rpm2cpio.8* | |
1244 | %lang(ja) %{_mandir}/ja/man8/rpmcache.8* | |
1245 | %lang(ko) %{_mandir}/ko/man8/rpm2cpio.8* | |
1246 | %lang(pl) %{_mandir}/pl/man8/rpm2cpio.8* | |
1247 | %lang(pl) %{_mandir}/pl/man8/rpmcache.8* | |
1248 | %lang(pl) %{_mandir}/pl/man8/rpmdeps.8* | |
1249 | %lang(ru) %{_mandir}/ru/man8/rpm2cpio.8* | |
1250 | ||
1251 | %files utils-perl | |
1252 | %defattr(644,root,root,755) | |
1253 | %attr(755,root,root) %{_rpmlibdir}/rpmdiff* | |
1254 | ||
1255 | %if %{with static} | |
1256 | %files utils-static | |
1257 | %defattr(644,root,root,755) | |
1258 | %attr(755,root,root) %{_bindir}/rpm[ieu] | |
1259 | %attr(755,root,root) %{_rpmlibdir}/rpm[ieu] | |
1260 | %endif | |
1261 | ||
1262 | %files build | |
1263 | %defattr(644,root,root,755) | |
1264 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/noauto* | |
1265 | %attr(755,root,root) %{_rpmlibdir}/brp-* | |
1266 | %attr(755,root,root) %{_rpmlibdir}/check-files | |
1267 | %attr(755,root,root) %{_rpmlibdir}/compress-doc | |
1268 | %attr(755,root,root) %{_rpmlibdir}/cross-build | |
1269 | %attr(755,root,root) %{_rpmlibdir}/find-spec-bcond | |
1270 | %attr(755,root,root) %{_rpmlibdir}/getpo.sh | |
1271 | %attr(755,root,root) %{_rpmlibdir}/install-build-tree | |
1272 | %attr(755,root,root) %{_rpmlibdir}/u_pkg.sh | |
1273 | %attr(755,root,root) %{_rpmlibdir}/executabledeps.sh | |
1274 | %attr(755,root,root) %{_rpmlibdir}/libtooldeps.sh | |
1275 | %attr(755,root,root) %{_rpmlibdir}/mimetypedeps.sh | |
1276 | # needs hacked pkg-config to return anything | |
1277 | %attr(755,root,root) %{_rpmlibdir}/pkgconfigdeps.sh | |
1278 | %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-autotest.pl | |
1279 | %attr(755,root,root) %{_rpmlibdir}/bin/api-sanity-checker.pl | |
1280 | %attr(755,root,root) %{_rpmlibdir}/bin/install-sh | |
1281 | %attr(755,root,root) %{_rpmlibdir}/bin/mkinstalldirs | |
1282 | %attr(755,root,root) %{_rpmlibdir}/bin/pom2spec | |
1283 | %attr(755,root,root) %{_rpmlibdir}/bin/rpmspecdump | |
1284 | %attr(755,root,root) %{_rpmlibdir}/bin/sqlite3 | |
1285 | %attr(755,root,root) %{_rpmlibdir}/bin/wget | |
1286 | %attr(755,root,root) %{_rpmlibdir}/vcheck | |
1287 | %{_rpmlibdir}/noarch-* | |
1288 | %ifarch %{ix86} | |
1289 | %{_rpmlibdir}/i?86* | |
1290 | %{_rpmlibdir}/pentium* | |
1291 | %{_rpmlibdir}/athlon* | |
1292 | %endif | |
1293 | %ifarch alpha | |
1294 | %{_rpmlibdir}/alpha* | |
1295 | %endif | |
1296 | %ifarch ia64 | |
1297 | %{_rpmlibdir}/ia64* | |
1298 | %endif | |
1299 | %ifarch mips mipsel mips64 mips64el | |
1300 | %{_rpmlibdir}/mips* | |
1301 | %endif | |
1302 | %ifarch %{ppc} | |
1303 | %{_rpmlibdir}/ppc* | |
1304 | %endif | |
1305 | %ifarch sparc sparc64 | |
1306 | %{_rpmlibdir}/sparc* | |
1307 | %endif | |
1308 | %ifarch %{x8664} | |
1309 | %{_rpmlibdir}/amd64* | |
1310 | %{_rpmlibdir}/ia32e* | |
1311 | %{_rpmlibdir}/x86_64* | |
1312 | %endif | |
1313 | # not used yet ... these six depend on perl | |
1314 | %attr(755,root,root) %{_rpmlibdir}/http.req | |
1315 | # we always used scripts provided by mono-devel, maybe move them here | |
1316 | #%attr(755,root,root) %{_rpmlibdir}/mono-find-provides | |
1317 | #%attr(755,root,root) %{_rpmlibdir}/mono-find-requires | |
1318 | ||
1319 | %attr(755,root,root) %{_rpmlibdir}/fontconfig.prov | |
1320 | # must be here for "Requires: rpm-*prov" to work | |
1321 | %{_rpmlibdir}/macros.d/cmake | |
1322 | %{_rpmlibdir}/macros.d/gstreamer | |
1323 | %{_rpmlibdir}/macros.d/java | |
1324 | %{_rpmlibdir}/macros.d/kernel | |
1325 | %{_rpmlibdir}/macros.d/libtool | |
1326 | %{_rpmlibdir}/macros.d/mono | |
1327 | %{_rpmlibdir}/macros.d/perl | |
1328 | %{_rpmlibdir}/macros.d/php | |
1329 | %{_rpmlibdir}/macros.d/pkgconfig | |
1330 | %{_rpmlibdir}/macros.d/python | |
1331 | %{_rpmlibdir}/macros.d/ruby | |
1332 | %{_rpmlibdir}/macros.d/selinux | |
1333 | %{_rpmlibdir}/macros.d/tcl | |
1334 | %{_rpmlibdir}/macros.rpmbuild | |
1335 | ||
1336 | %attr(755,root,root) %{_rpmlibdir}/check-multiarch-files | |
1337 | %attr(755,root,root) %{_rpmlibdir}/gem_helper.rb | |
1338 | %attr(755,root,root) %{_rpmlibdir}/gstreamer.sh | |
1339 | %attr(755,root,root) %{_rpmlibdir}/kmod-deps.sh | |
1340 | %attr(755,root,root) %{_rpmlibdir}/mkmultiarch | |
1341 | %attr(755,root,root) %{_rpmlibdir}/rubygems.rb | |
1342 | ||
1343 | %attr(755,root,root) %{_bindir}/gendiff | |
1344 | %attr(755,root,root) %{_bindir}/multiarch-platform | |
1345 | %attr(755,root,root) %{_bindir}/rpmbuild | |
1346 | ||
1347 | %dir %{_rpmlibdir}/helpers | |
1348 | %attr(755,root,root) %{_rpmlibdir}/helpers/makeshlibs | |
1349 | ||
1350 | %{_mandir}/man1/gendiff.1* | |
1351 | %{_mandir}/man8/rpmbuild.8* | |
1352 | %lang(ja) %{_mandir}/ja/man8/rpmbuild.8* | |
1353 | %lang(pl) %{_mandir}/pl/man1/gendiff.1* | |
1354 | %lang(pl) %{_mandir}/pl/man8/rpmbuild.8* | |
1355 | ||
1356 | %files javaprov | |
1357 | %defattr(644,root,root,755) | |
1358 | %attr(755,root,root) %{_rpmlibdir}/java-find-requires | |
1359 | # needs jar (any jdk), jcf-dump (gcc-java) to work | |
1360 | %attr(755,root,root) %{_rpmlibdir}/javadeps.sh | |
1361 | ||
1362 | %files perlprov | |
1363 | %defattr(644,root,root,755) | |
1364 | %attr(755,root,root) %{_rpmlibdir}/perl.* | |
1365 | %attr(755,root,root) %{_rpmlibdir}/osgideps.pl | |
1366 | %attr(755,root,root) %{_rpmlibdir}/perldeps.pl | |
1367 | ||
1368 | %files pythonprov | |
1369 | %defattr(644,root,root,755) | |
1370 | %attr(755,root,root) %{_rpmlibdir}/pythoneggs.py | |
1371 | %attr(755,root,root) %{_rpmlibdir}/pythondeps.sh | |
1372 | ||
1373 | %files php-pearprov | |
1374 | %defattr(644,root,root,755) | |
1375 | %attr(755,root,root) %{_rpmlibdir}/php* | |
1376 | %attr(755,root,root) %{_rpmlibdir}/find-php* | |
1377 | ||
1378 | %if %{with python} | |
1379 | %files -n python-rpm | |
1380 | %defattr(644,root,root,755) | |
1381 | %dir %{py_sitedir}/rpm | |
1382 | %attr(755,root,root) %{py_sitedir}/rpm/*.so | |
1383 | %{py_sitedir}/rpm/*.py[co] | |
1384 | %endif | |
1385 | ||
1386 | %if %{with apidocs} | |
1387 | %files apidocs | |
1388 | %defattr(644,root,root,755) | |
1389 | %doc apidocs | |
1390 | %endif |