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