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