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