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