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