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