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