Revert erase relations before checking whether we already added it
[platform/upstream/rpm.git] / macros.in
1 #/*! \page config_macros Default configuration: @RPMCONFIGDIR@/macros
2 # \verbatim
3 #
4 # This is a global RPM configuration file. All changes made here will
5 # be lost when the rpm package is upgraded. Any per-system configuration
6 # should be added to /etc/rpm/macros, while per-user configuration should
7 # be added to ~/.rpmmacros.
8 #
9 #==============================================================================
10 # Macro naming conventions (preliminary):
11 #
12 #       Macros that begin with an underscore are "local" in the sense that
13 #       they (if used) will not be exported in rpm headers. Some macros
14 #       that don't start with an underscore (but look like they should)
15 #       are compatible with macros generated by rpm-2.5.x and will be made
16 #       more consistent in a future release.
17 #
18
19 #==============================================================================
20 # ---- A macro that expands to nothing.
21 #
22 %nil                    %{!?nil}
23
24 #==============================================================================
25 # ---- filesystem macros.
26 #
27 %_usr                   @prefix@
28 %_usrsrc                %{_usr}/src
29 %_var                   @localstatedir@
30
31 #==============================================================================
32 # ---- Generally useful path macros.
33 #
34 %__awk                  @AWK@
35 %__bzip2                @__BZIP2@
36 %__cat                  @__CAT@
37 %__chgrp                @__CHGRP@
38 %__chmod                @__CHMOD@
39 %__chown                @__CHOWN@
40 %__cp                   @__CP@
41 %__cpio                 @__CPIO@
42 %__file                 @__FILE@
43 %__gpg                  @__GPG@
44 %__grep                 @__GREP@
45 %__gzip                 @__GZIP@
46 %__id                   @__ID@
47 %__install              @__INSTALL@
48 %__ln_s                 @LN_S@
49 %__lzma                 @__LZMA@
50 %__xz                   @__XZ@
51 %__make                 @__MAKE@
52 %__mkdir                @__MKDIR@
53 %__mkdir_p              @MKDIR_P@
54 %__mv                   @__MV@
55 %__patch                @__PATCH@
56 %__perl                 @__PERL@
57 %__python               @__PYTHON@
58 %__rm                   @__RM@
59 %__rsh                  @__RSH@
60 %__sed                  @__SED@
61 %__ssh                  @__SSH@
62 %__tar                  @__TAR@
63 %__unzip                @__UNZIP@
64
65 #==============================================================================
66 # ---- Build system path macros.
67 #
68 %__ar                   @AR@
69 %__as                   @AS@
70 %__cc                   @__CC@
71 %__cpp                  @CPP@
72 %__cxx                  @CXX@
73 %__ld                   @__LD@
74 %__nm                   @__NM@
75 %__objcopy              @__OBJCOPY@
76 %__objdump              @__OBJDUMP@
77 %__ranlib               @RANLIB@
78 %__remsh                %{__rsh}
79 %__strip                @__STRIP@
80
81 # XXX avoid failures if tools are not installed when rpm is built.
82 %__libtoolize           libtoolize
83 %__aclocal              aclocal
84 %__autoheader           autoheader
85 %__automake             automake
86 %__autoconf             autoconf
87
88 #==============================================================================
89 # Conditional build stuff.
90
91 # Check if symbol is defined.
92 # Example usage: %if %{defined with_foo} && %{undefined with_bar} ...
93 %defined()      %{expand:%%{?%{1}:1}%%{!?%{1}:0}}
94 %undefined()    %{expand:%%{?%{1}:0}%%{!?%{1}:1}}
95
96 # Shorthand for %{defined with_...}
97 %with()         %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
98 %without()      %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
99
100 # Handle conditional builds. %bcond_with is for case when feature is
101 # default off and needs to be activated with --with ... command line
102 # switch. %bcond_without is for the dual case.
103 #
104 # %bcond_with foo defines symbol with_foo if --with foo was specified on
105 # command line.
106 # %bcond_without foo defines symbol with_foo if --without foo was *not*
107 # specified on command line.
108 #
109 # For example (spec file):
110 #
111 # (at the beginning)
112 # %bcond_with extra_fonts
113 # %bcond_without static
114 # (and later)
115 # %if %{with extra_fonts}
116 # ...
117 # %else
118 # ...
119 # %endif
120 # %if ! %{with static}
121 # ...
122 # %endif
123 # %ifdef %{with static}
124 # ...
125 # %endif
126 # %{?with_static: ... }
127 # %{!?with_static: ... }
128 # %{?with_extra_fonts: ... }
129 # %{!?with_extra_fonts: ... }
130
131 #
132 # The bottom line: never use without_foo, _with_foo nor _without_foo, only
133 # with_foo. This way changing default set of bconds for given spec is just
134 # a matter of changing single line in it and syntax is more readable.
135 %bcond_with()           %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
136 %bcond_without()        %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
137 #
138 #==============================================================================
139 # ---- Required rpmrc macros.
140 #       Macros that used to be initialized as a side effect of rpmrc parsing.
141 #       These are the default values that can be overridden by other
142 #       (e.g. per-platform, per-system, per-packager, per-package) macros.
143 #
144 #       The directory where rpm's configuration and scripts live
145 %_rpmconfigdir          %{getconfdir}
146
147 #       The directory where sources/patches will be unpacked and built.
148 %_builddir              %{_topdir}/BUILD
149
150 #       The interpreter used for build scriptlets.
151 %_buildshell            /bin/sh
152
153 #       The path to the bzip2 executable (legacy, use %{__bzip2} instead).
154 %_bzip2bin              %{__bzip2}
155
156 #       The location of the rpm database file(s).
157 %_dbpath                %{_var}/lib/rpm
158
159 #       The location of the rpm database file(s) after "rpm --rebuilddb".
160 %_dbpath_rebuild        %{_dbpath}
161
162 %_keyringpath           %{_dbpath}/pubkeys/
163
164 #
165 #       Path to script that creates debug symbols in a /usr/lib/debug
166 #       shadow tree.
167 #
168 #       A spec file can %%define _find_debuginfo_opts to pass options to
169 #       the script.  See the script for details.
170 #
171 %__debug_install_post   \
172    %{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"\
173 %{nil}
174
175 #       Template for debug information sub-package.
176 %debug_package \
177 %ifnarch noarch\
178 %global __debug_package 1\
179 %package debug\
180 Summary: Debug information for package %{name}\
181 Group: Development/Debug\
182 AutoReqProv: 0\
183 %description debug\
184 This package provides debug information for package %{name}.\
185 Debug information is useful when developing applications that use this\
186 package or when debugging this package.\
187 %files debug -f debugfiles.list\
188 %defattr(-,root,root)\
189 %endif\
190 %{nil}
191
192 %_defaultdocdir         %{_datadir}/doc
193
194 #       The path to the gzip executable (legacy, use %{__gzip} instead).
195 %_gzipbin               %{__gzip}
196
197 #       The number of changelog entries kept when installing (legacy, unused in
198 #       rpm-4.0.1 and later).
199 %_instchangelog         5
200
201 #       The directory where newly built binary packages will be written.
202 %_rpmdir                %{_topdir}/RPMS
203
204 #       A template used to generate the output binary package file name
205 #       (legacy).
206 %_rpmfilename           %{_build_name_fmt}
207
208 #       The default signature type.
209 %_signature             gpg
210
211 #       The directory where sources/patches from a source package will be
212 #       installed. This is also where sources/patches are found when building.
213 %_sourcedir             %{_topdir}/SOURCES
214
215 #       The directory where the spec file from a source package will be
216 #       installed.
217 %_specdir               %{_topdir}/SPECS
218
219 #       The directory where newly built source packages will be written.
220 %_srcrpmdir             %{_topdir}/SRPMS
221
222 #       The directory where buildroots will be created.
223 %_buildrootdir          %{_topdir}/BUILDROOT
224
225 #       Build root path, where %install installs the package during build.
226 %buildroot              %{_buildrootdir}/%{name}-%{version}-%{release}.%{_arch}
227
228 #       Directory where temporaray files can be created.
229 %_tmppath               %{_var}/tmp
230
231 #       Path to top of build area.
232 %_topdir                %{getenv:HOME}/rpmbuild
233
234 #       The path to the unzip executable (legacy, use %{__unzip} instead).
235 %_unzipbin              %{__unzip}
236
237 #==============================================================================
238 # ---- Optional rpmrc macros.
239 #       Macros that are initialized as a side effect of rpmrc and/or spec
240 #       file parsing.
241 #
242 #       The sub-directory (relative to %{_builddir}) where sources are compiled.
243 #       This macro is set after processing %setup, either explicitly from the
244 #       value given to -n or the default name-version.
245 #
246 #%buildsubdir
247
248 #       Configurable distribution information, same as Distribution: tag in a
249 #       specfile.
250 #
251 #%distribution
252
253 #       Configurable distribution URL, same as DistURL: tag in a specfile.
254 #       The URL will be used to supply reliable information to tools like
255 #       rpmfind.
256 #
257 # Note: You should not configure with disturl (or build packages with
258 # the DistURL: tag) unless you are willing to supply content in a
259 # yet-to-be-determined format at the URL specified.
260 #
261 #%disturl
262
263 #       Boolean (i.e. 1 == "yes", 0 == "no") that controls whether files
264 #       marked as %doc should be installed.
265 #%_excludedocs
266
267 #       The port and machine name of a FTP proxy host running TIS firewall.
268 #
269 #%_ftpport
270 #%_ftpproxy
271
272 #       The signature to use and the location of configuration files for
273 #       signing packages with GNU gpg.
274 #
275 #%_gpg_name
276 #%_gpg_path
277
278 #       The port and machine name of an HTTP proxy host.
279 #
280 #%_httpport
281 #%_httpproxy
282
283 #       The PATH put into the environment before running %pre/%post et al.
284 #
285 %_install_script_path   /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
286
287 #       A colon separated list of desired locales to be installed;
288 #       "all" means install all locale specific files.
289 #       
290 %_install_langs all
291
292 #       The value of CLASSPATH in build scriptlets (iff configured).
293 #       
294 #%_javaclasspath        all
295
296 #       Import packaging conventions from jpackage.org (prefixed with _
297 #       to avoid name collisions).
298 #       
299 %_javadir      %{_datadir}/java
300 %_javadocdir   %{_datadir}/javadoc
301
302 #       A colon separated list of paths where files should *not* be installed.
303 #       Usually, these are network file system mount points.
304 #
305 #%_netsharedpath
306
307 #       (experimental)
308 #       The type of pattern match used on rpmdb iterator selectors:
309 #       "default"       simple glob-like regex, periods will be escaped,
310 #                       splats will have period prepended, full "^...$" match
311 #                       required. Also, file path tags will use glob(7).
312 #       "strcmp"        compare strings
313 #       "regex"         regex(7) patterns using regcomp(3)/regexec(3)
314 #       "glob"          glob(7) patterns using fnmatch(3)
315 #
316 %_query_selector_match  default
317
318 #       Configurable packager information, same as Packager: in a specfile.
319 #
320 #%packager
321
322 #       Compression type and level for source/binary package payloads.
323 #               "w9.gzdio"      gzip level 9 (default).
324 #               "w9.bzdio"      bzip2 level 9.
325 #               "w7.xzdio"      xz level 7, xz's default.
326 #               "w7.lzdio"      lzma-alone level 7, lzma's default
327 #
328 #%_source_payload       w9.gzdio
329 #%_binary_payload       w9.gzdio
330
331 #       Algorithm to use for generating file checksum digests on build.
332 #       If not specified or 0, MD5 is used.
333 #       WARNING: non-MD5 is backwards incompatible, don't enable lightly!
334 #       The supported algorithms may depend on NSS version, as of NSS
335 #       3.11.99.5 the following are supported:
336 #       1       MD5 (default)
337 #       2       SHA1
338 #       8       SHA256
339 #       9       SHA384
340 #       10      SHA512
341 #
342 #%_source_filedigest_algorithm  1
343 #%_binary_filedigest_algorithm  1
344
345 #       Configurable vendor information, same as Vendor: in a specfile.
346 #
347 #%vendor
348
349 #       Default fuzz level for %patch in spec file.
350 %_default_patch_fuzz    0
351
352 #       Default patch flags
353 %_default_patch_flags   -s
354
355 #==============================================================================
356 # ---- Build configuration macros.
357 #
358 # Script gets packaged file list on input and buildroot as first parameter.
359 # Returns list of unpackaged files, i.e. files in $RPM_BUILD_ROOT not packaged.
360 #
361 # Note: Disable (by commenting out) for legacy compatibility.
362 %__check_files         %{_rpmconfigdir}/check-files %{buildroot}
363
364 #
365 # Should unpackaged files in a build root terminate a build?
366 #
367 # Note: The default value should be 0 for legacy compatibility.
368 %_unpackaged_files_terminate_build      1
369
370 #
371 # Should missing %doc files in the build directory terminate a build?
372 #
373 # Note: The default value should be 0 for legacy compatibility.
374 %_missing_doc_files_terminate_build     1
375
376 #
377 # Should binaries in noarch packages terminate a build?
378 %_binaries_in_noarch_packages_terminate_build   1
379
380 #
381 # Program to call for each successfully built and written binary package.
382 # The package name is passed to the program as a command-line argument.
383 #
384 #%_build_pkgcheck       %{_bindir}/rpmlint
385
386 #
387 # Program to call for the whole binary package set after build.
388 # The package set is passed to the program via command-line arguments.
389 #
390 #%_build_pkgcheck_set   %{_bindir}/rpmlint
391
392 #
393 # Program to call for successfully built and written SRPM.
394 # The package name is passed to the program as a command-line argument.
395 #
396 #%_build_pkgcheck_srpm  %{_bindir}/rpmlint
397
398 #
399 # Should the build of packages fail if package checker (if defined) returns
400 # non-zero exit status?
401 #
402 #%_nonzero_exit_pkgcheck_terminate_build        1
403
404 #
405 # Should an ELF file processed by find-debuginfo.sh having no build ID
406 # terminate a build?  This is left undefined to disable it and defined to
407 # enable.
408 #
409 #%_missing_build_ids_terminate_build    1
410
411 #
412 # Use internal dependency generator rather than external helpers?
413 %_use_internal_dependency_generator     1
414
415 #
416 # Filter GLIBC_PRIVATE Provides: and Requires:
417 %_filter_GLIBC_PRIVATE                  0
418
419 # Desired selinux policy tree
420 %__policy_tree  %{expand:%%global __policy_tree %{lua:\
421 t="targeted"\
422 f = io.open("/etc/selinux/config")\
423 if f then\
424   for l in f:lines() do\
425     if "SELINUXTYPE=" == string.sub(l,0,12) then t=string.sub(l,13); end\
426   end\
427   f:close()\
428 end\
429 print (t)\
430 }}%{__policy_tree}
431
432 # Path to selinux file context patterns.
433 %__file_context_path /etc/selinux/%{__policy_tree}/contexts/files/file_contexts
434
435 # Directories whose contents should be considered as documentation.
436 %__docdir_path %{_datadir}/doc:%{_datadir}/man:%{_datadir}/info:%{_datadir}/gtk-doc/html:%{?_docdir}:%{?_mandir}:%{?_infodir}:%{?_javadocdir}:/usr/doc:/usr/man:/usr/info:/usr/X11R6/man
437
438 #
439 # Path to selinux file context patterns used to add
440 # RPMTAG_FILECONTEXTS to packages when building.
441 #
442 # Undefined, missing or %{nil} will disable.
443 %_build_file_context_path       %{nil}
444
445 #
446 # Path to selinux file context patterns used to set
447 # (or override package content) file contexts when installing.
448 #
449 # Undefined, missing or %{nil} will use package content (if available).
450 %_install_file_context_path     %{__file_context_path}
451
452 #
453 # Path to selinux file context patterns used to verify
454 # file contexts on file system.
455 #
456 # Undefined, missing or %{nil} will use package content (if available).
457 %_verify_file_context_path      %{__file_context_path}
458
459 #
460 # Path to scripts to autogenerate package dependencies,
461 #
462 # Note: Used iff _use_internal_dependency_generator is zero.
463 #%__find_provides       %{_rpmconfigdir}/rpmdeps --provides
464 #%__find_requires       %{_rpmconfigdir}/rpmdeps --requires
465 %__find_provides        %{_rpmconfigdir}/find-provides
466 %__find_requires        %{_rpmconfigdir}/find-requires
467 #%__find_conflicts      ???
468 #%__find_obsoletes      ???
469
470 #
471 # Path to scripts to autogenerate per-interpreter package dependencies,
472 #
473 # Note: Used iff _use_internal_dependency_generator is non-zero. The
474 # helpers are also used by %{_rpmconfigdir}/rpmdeps {--provides|--requires}.
475 #%__perl_provides       %{_rpmconfigdir}/perldeps.pl --provides
476 #%__perl_requires       %{_rpmconfigdir}/perldeps.pl --requires
477 %__perl_provides        %{_rpmconfigdir}/perl.prov
478 %__perl_requires        %{_rpmconfigdir}/perl.req
479
480 %__python_provides      %{_rpmconfigdir}/pythondeps.sh --provides
481 %__python_requires      %{_rpmconfigdir}/pythondeps.sh --requires
482
483 %__mono_provides        %{_rpmconfigdir}/mono-find-provides %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir}
484 %__mono_requires        %{_rpmconfigdir}/mono-find-requires %{_builddir}/%{?buildsubdir} %{buildroot} %{_libdir}
485
486 %__libtool_provides     %{_rpmconfigdir}/libtooldeps.sh --provides %{buildroot} %{name}
487 %__libtool_requires     %{_rpmconfigdir}/libtooldeps.sh --requires %{buildroot} %{name}
488
489 %__pkgconfig_provides   %{_rpmconfigdir}/pkgconfigdeps.sh --provides
490 %__pkgconfig_requires   %{_rpmconfigdir}/pkgconfigdeps.sh --requires
491
492 #==============================================================================
493 # ---- Database configuration macros.
494 #       Macros used to configure Berkley db parameters.
495 #
496 # rpmdb macro configuration values are a colon (or white space) separated
497 # list of tokens, with an optional '!' negation to explicitly disable bit
498 # values, or a "=value" if a parameter. A per-tag value is used (e.g.
499 # %_dbi_config_Packages) if defined, otherwise a per-rpmdb default
500 # (e.g. %_dbi_config). The configuration is also conditioned on the
501 # existence of an internal %{_rpmdb_rebuild} switch to permit changing
502 # the configuration while rebuilding an rpmdb database.
503 #
504 # The rpmdb configuration tokens are in a popt table in rpmdb/dbconfig.c,
505 # see that for the latest gory details. Note carefully that, unless you
506 # are writing an rpm installer, you shouldn't have to touch *any* of these
507 # parameters.
508 #
509 # Here's a short list of the tokens, with a guess of whether the option is
510 # useful:
511 #       (nothing)       currently used in rpm, known to work.
512 #       "+++"           under development, will be supported in rpm eventually.
513 #       "???"           I have no clue, you're mostly on your own.
514 #
515 # If you do find yourself inclined to fiddle, here's what I see (shrug):
516 # 1) Only the value of mp_size has any serious impact on overall performance,
517 #    and you will need ~256Kb to handle a typical machine install.
518 # 2) Only the Packages hash, because of the size of the values (i.e. headers),
519 #    will ever need tuning. Diddle the pagesize if you're interested, although
520 #    I believe that you will find pagesize=512 "best".
521 # 3) Adding nofsync increases speed, but risks total data loss. Fiddle shared
522 #    and/or mp_size instead.
523 # 4) btree is faster than hash, but would require some painful rpm release
524 #    engineering to convert everbody's databases to btree, not gonna happen
525 #    soon.
526 #
527 # See the db3-devel package, or http://www.sleepycat.com for Berkeley db-3.x
528 # documentation.
529 #
530 #   token       works?  Berkeley db flag or value
531 #==================================================
532 #---------------------- DBENV->open parameters and tunable values:
533 #   mmapsize=16Mb       DBENV->set_mp_mmapsize
534 #   cachesize=1Mb       DBENV->set_cachesize, DB->set_cachesize
535 #---------------------- DBENV->open and DB->open common bits:
536 #   create              DB_CREATE
537 #   thread      ???     DB_THREAD       (useless w/o posix mutexes on linux)
538 #---------------------- DBENV->open bits:
539 #   joinenv             DB_JOIN_ENV
540 #   mpool               DB_INIT_MPOOL
541 #   cdb         +++     DB_INIT_CDB
542 #   txn         ???     DB_INIT_TXN
543 #   log         ???     DB_INIT_LOG
544 #   lock        ???     DB_INIT_LOCK
545 #   recover     ???     DB_RECOVER
546 #   recover_fatal ???   DB_RECOVER_FATAL
547 #   use_environ ???     DB_USE_ENVIRON
548 #   use_environ_root ??? DB_USE_ENVIRON_ROOT
549 #   private     +++     DB_PRIVATE
550 #   lockdown    ???     DB_LOCKDOWN
551 #   shared      +++     DB_SYSTEM_MEM
552 #---------------------- DB->open parameters and tunable values:
553 #   pagesize=512 +++    DB->set_pagesize
554 #---------------------- DB->open bits:
555 #   excl        ???     DB_EXCL
556 #   nommap      ???     DB_NOMMAP
557 #   rdonly              DB_RDONLY
558 #---------------------- DB->open types:
559 #   btree               DB_BTREE
560 #   hash                DB_HASH
561 #   recno       ???     DB_RECNO
562 #   queue       ???     DB_QUEUE
563 #   unknown     +++     DB_UNKNOWN
564 #---------------------- DB->set_flags bits:
565 #   bt_dup      +++     (btree only) DB_DUP
566 #   bt_dupsort  +++     (btree only) DB_DUPSORT
567 #   ht_dup      +++     (hash only) DB_DUP
568 #   ht_dupsort  +++     (hash only) DB_DUPSORT
569 #----------------------- rpmdb specific configuration:
570 #   usedbenv            (always on) Use db3 environment?
571 #   verify              (db3 only) Verify Packages db after RW close?
572 #   lockdbfd            (always on for Packages) Use fcntl(2) locking ?
573 #   nofsync             Disable fsync(2) call performed after db3 writes?
574 #   temporary           Unlink file when closing.
575 #
576
577 # XXX Use transactions and logs for rpmdb durability (no clue yet):
578 #%__dbi_other                   create joinenv mpool txn log \
579 #                               mp_mmapsize=8Mb mp_size=512Kb
580
581 # Use a CDB database model for concurrent access.
582 # XXX Add "private" here for legacy interoperation transiting to glibc+nptl.
583 %__dbi_cdb                      create cdb mpool mp_mmapsize=16Mb mp_size=1Mb
584
585 %__dbi_other                    %{?_tmppath:tmpdir=%{_tmppath}} %{?__dbi_cdb}
586
587 # Note: adding nofsync here speeds up --rebuilddb a lot.
588 %__dbi_rebuild                  nofsync !log !txn !cdb
589 %__dbi_transient                %{__dbi_rebuild} temporary private
590 %__dbi_perms                    perms=0644
591
592 #
593 #--- Hash database configuration
594 %__dbi_htconfig \
595   hash          \
596   %{__dbi_other}\
597   %{__dbi_perms}\
598 %{nil}
599
600 %__dbi_htconfig_current         %{__dbi_htconfig}
601 %__dbi_htconfig_rebuild         %{__dbi_htconfig} %{__dbi_rebuild}
602
603 %_dbi_htconfig          \
604   %{?_rpmdb_rebuild:%{__dbi_htconfig_rebuild}}\
605   %{!?_rpmdb_rebuild:%{__dbi_htconfig_current}}\
606 %{nil}
607
608 #
609 #--- Btree database configuration
610 %__dbi_btconfig \
611   btree         \
612   %{__dbi_other}\
613   %{__dbi_perms}\
614 %{nil}
615
616 %__dbi_btconfig_current         %{__dbi_btconfig}
617 %__dbi_btconfig_rebuild         %{__dbi_btconfig} %{__dbi_rebuild}
618
619 %_dbi_btconfig          \
620   %{?_rpmdb_rebuild:%{__dbi_btconfig_rebuild}}\
621   %{!?_rpmdb_rebuild:%{__dbi_btconfig_current}}\
622 %{nil}
623
624 # The list of tags for which indices will be built.
625 %_dbi_tags      Packages:Name:Basenames:Group:Requirename:Providename:Conflictname:Triggername:Dirnames:Requireversion:Provideversion:Installtid:Sigmd5:Sha1header:Filedigests:Depends:Pubkeys
626
627 # "Packages" should have shared/exclusive fcntl(2) lock using "lockdbfd".
628 %_dbi_config_Packages           %{_dbi_htconfig} lockdbfd
629
630 # "Depends" is a per-transaction cache of known dependency resolutions.
631 %_dbi_config_Depends            %{_dbi_htconfig} temporary private
632
633 %_dbi_config_Dirnames           %{_dbi_btconfig}
634 %_dbi_config_Requireversion     %{_dbi_btconfig}
635 %_dbi_config_Provideversion     %{_dbi_btconfig}
636 %_dbi_config_Installtid         %{_dbi_btconfig}
637 %_dbi_config_Removetid          %{_dbi_btconfig}
638
639 %_dbi_config    %{_dbi_htconfig}
640
641 # XXX legacy configuration.
642 # Choose db interface:
643 #       3       native db3 interface.
644 #
645 # There are two macros so that --rebuilddb can convert db1 -> db3.
646 #
647 %_dbapi                 3
648 %_dbapi_rebuild         3
649
650 #==============================================================================
651 # ---- GPG/PGP/PGP5 signature macros.
652 #       Macro(s) to hold the arguments passed to GPG/PGP for package
653 #       signing and verification.
654 #
655 %__gpg_check_password_cmd       %{__gpg} \
656         gpg --batch --no-verbose --passphrase-fd 3 -u "%{_gpg_name}" -so -
657
658 %__gpg_sign_cmd                 %{__gpg} \
659         gpg --batch --no-verbose --no-armor --passphrase-fd 3 --no-secmem-warning \
660         -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}
661
662 # XXX rpm >= 4.1 verifies signatures internally
663 #%__gpg_verify_cmd              %{__gpg} \
664 #       gpg --batch --no-verbose --verify --no-secmem-warning \
665 #       %{__signature_filename} %{__plaintext_filename}
666 #
667 # XXX rpm-4.1 verifies prelinked libraries using a prelink undo helper.
668 #       Normally this macro is defined in /etc/rpm/macros.prelink, installed
669 #       with the prelink package. If the macro is undefined, then prelinked
670 #       shared libraries contents are MD5 digest verified (as usual), rather
671 #       than MD5 verifying the output of the prelink undo helper.
672 #
673 #       Note: The 2nd token is used as argv[0] and "library" is a
674 #       placeholder that will be deleted and replaced with the appropriate
675 #       library file path.
676 #%__prelink_undo_cmd     /usr/sbin/prelink prelink -y library
677
678 # Horowitz Key Protocol server configuration
679 #
680 %_hkp_keyserver         http://pgp.mit.edu
681 %_hkp_keyserver_query   %{_hkp_keyserver}:11371/pks/lookup?op=get&search=0x
682
683 #==============================================================================
684 # ---- Transaction macros.
685 #       Macro(s) used to parameterize transactions.
686 #
687 #       The output binary package file name template used when building
688 #       binary packages.
689 #
690 # XXX   Note: escaped %% for use in headerSprintf()
691 %_build_name_fmt        %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
692
693 #       The default transaction color. This value is a set of bits to
694 #       determine file and dependency affinity for this arch.
695 #               0       uncolored (i.e. use only arch as install hint)
696 #               1       Elf32 permitted
697 #               2       Elf64 permitted
698 %_transaction_color     @RPMCANONCOLOR@
699
700 #       Verify digest/signature flags for various rpm modes:
701 #       0x30300 (_RPMVSF_NODIGESTS)    --nohdrchk      if set, don't check digest(s)
702 #       0xc0c00 (_RPMVSF_NOSIGNATURES) --nosignature   if set, don't check signature(s)
703 #       0xf0000 (_RPMVSF_NOPAYLOAD)    --nolegacy      if set, check header+payload (if possible)
704 #       0x00f00 (_RPMVSF_NOHEADER)     --nohdrchk      if set, don't check rpmdb headers
705 #
706 #       For example, the value 0xf0c00 (=0xf0000+0xc0c00) disables legacy
707 #       digest/signature checking, disables signature checking, but attempts
708 #       digest checking, also when retrieving headers from the database.
709 #
710 #       You also can do:
711 #        >>> hex(rpm._RPMVSF_NOSIGNATURES)
712 #        '0xc0c00'
713 #       or:
714 #        >>> hex(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NOPAYLOAD)
715 #        '0xf0c00'
716 #       at the python prompt for example, after "import rpm".
717 #
718 #       The checking overhead is ~11ms per header for digests/signatures;
719 #       each header from the database is checked only when first encountered
720 #       for each database open.
721 #
722 #       Note: the %_vsflags_erase applies to --upgrade/--freshen modes as
723 #       well as --erase.
724 #
725 %__vsflags              0xf0000
726 %_vsflags_build         %{__vsflags}
727 %_vsflags_erase         %{__vsflags}
728 %_vsflags_install       %{__vsflags}
729 %_vsflags_query         %{__vsflags}
730 %_vsflags_rebuilddb     %{__vsflags}
731 %_vsflags_verify        %{__vsflags}
732
733 #       Relations between package names that cause dependency loops
734 #       with legacy packages that cannot be fixed. Relations are
735 #       specified as
736 #               p>q
737 #       where package p has a Requires: on something that package q Provides:
738 #
739 # XXX   Note: that there cannot be any whitespace within the string "p>q",
740 #       and that both p and q are package names (i.e. no version/release).
741 #
742
743 %_dependency_whiteout                   \
744         %{nil}
745
746 #
747 # Default headerSprintf() output format string for rpm -qa
748 #
749 # XXX   Note: escaped %% for use in headerSprintf()
750 %_query_all_fmt         %%{name}-%%{version}-%%{release}%%|arch?{.%%{arch}}:{}|
751
752 #
753 # Default path to the file used for transaction fcmtl lock.
754 #
755 # The previous, FHS clompliant, name was /var/lock/run/transaction,
756 # but the transaction lock needs to be per-database, not global, for
757 # some rpmdb operations.
758 #
759 # XXX Note: the file name is chosen as __db.000 to expedite
760 # support issues, many users are doing "rm -f /var/lib/rpm/__db*"
761 # these days.
762 %_rpmlock_path  %{_dbpath}/__db.000
763
764 #==============================================================================
765 # ---- per-platform macros.
766 #       Macros that are specific to an individual platform. The values here
767 #       will be used if the per-platform macro file does not exist..
768 #
769 %_arch                  @RPMCANONARCH@
770 %_build_arch            @RPMCANONARCH@
771 %_vendor                @RPMCANONVENDOR@
772 %_os                    @RPMCANONOS@
773 %_gnu                   @RPMCANONGNU@
774 %_target_platform       %{_target_cpu}-%{_vendor}-%{_target_os}%{?_gnu}
775
776 #
777 # Define a generic value for optflags. Normally overridden by per-target macros.
778 %optflags               -O2
779
780 #
781 # ISA dependency marker, none for noarch and name-bitness for others
782 %_isa                   %{?__isa:(%{__isa})}%{!?__isa:%{nil}}
783
784 #
785 # Define per-arch and per-os defaults. Normally overridden by per-target macros.
786 %__arch_install_post    %{nil}
787 %__os_install_post      %{___build_post}
788
789 #==============================================================================
790 # ---- Scriptlet template templates.
791 #       Global defaults used for building scriptlet templates.
792 #
793
794 %___build_shell         %{?_buildshell:%{_buildshell}}%{!?_buildshell:/bin/sh}
795 %___build_args          -e
796 %___build_cmd           %{?_sudo:%{_sudo} }%{?_remsh:%{_remsh} %{_remhost} }%{?_remsudo:%{_remsudo} }%{?_remchroot:%{_remchroot} %{_remroot} }%{___build_shell} %{___build_args}
797 %___build_pre   \
798   RPM_SOURCE_DIR=\"%{u2p:%{_sourcedir}}\"\
799   RPM_BUILD_DIR=\"%{u2p:%{_builddir}}\"\
800   RPM_OPT_FLAGS=\"%{optflags}\"\
801   RPM_ARCH=\"%{_arch}\"\
802   RPM_OS=\"%{_os}\"\
803   export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS\
804   RPM_DOC_DIR=\"%{_docdir}\"\
805   export RPM_DOC_DIR\
806   RPM_PACKAGE_NAME=\"%{name}\"\
807   RPM_PACKAGE_VERSION=\"%{version}\"\
808   RPM_PACKAGE_RELEASE=\"%{release}\"\
809   export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE\
810   %{?buildroot:RPM_BUILD_ROOT=\"%{u2p:%{buildroot}}\"\
811   export RPM_BUILD_ROOT}\
812   %{?_javaclasspath:CLASSPATH=\"%{_javaclasspath}\"\
813   export CLASSPATH}\
814   \
815   %{verbose:set -x}%{!verbose:exec > /dev/null}\
816   umask 022\
817   cd \"%{u2p:%{_builddir}}\"\
818
819
820 #%___build_body         %{nil}
821 %___build_post          exit 0
822
823 %___build_template      #!%{___build_shell}\
824 %{___build_pre}\
825 %{nil}
826
827 #%{___build_body}\
828 #%{___build_post}\
829 #%{nil}
830
831 #==============================================================================
832 # ---- Scriptlet templates.
833 #       Macro(s) that expand to a command and script that is executed.
834 #       CAVEAT: All macro expansions must fit in a BUFSIZ (8192 byte) buffer.
835 #
836 %__spec_prep_shell      %{___build_shell}
837 %__spec_prep_args       %{___build_args}
838 %__spec_prep_cmd        %{___build_cmd}
839 %__spec_prep_pre        %{___build_pre}
840 %__spec_prep_body       %{___build_body}
841 %__spec_prep_post       %{___build_post}
842 %__spec_prep_template   #!%{__spec_prep_shell}\
843 %{__spec_prep_pre}\
844 %{nil}
845
846 #%{__spec_prep_body}\
847 #%{__spec_prep_post}\
848 #%{nil}
849
850 %__spec_build_shell     %{___build_shell}
851 %__spec_build_args      %{___build_args}
852 %__spec_build_cmd       %{___build_cmd}
853 %__spec_build_pre       %{___build_pre}
854 %__spec_build_body      %{___build_body}
855 %__spec_build_post      %{___build_post}
856 %__spec_build_template  #!%{__spec_build_shell}\
857 %{__spec_build_pre}\
858 %{nil}
859
860 #%{__spec_build_body}\
861 #%{__spec_build_post}\
862 #%{nil}
863
864 %__spec_install_shell   %{___build_shell}
865 %__spec_install_args    %{___build_args}
866 %__spec_install_cmd     %{___build_cmd}
867 %__spec_install_pre     %{___build_pre}
868 %__spec_install_body    %{___build_body}
869 %__spec_install_post\
870 %{?__debug_package:%{__debug_install_post}}\
871 %{__arch_install_post}\
872 %{__os_install_post}\
873 %{nil}
874 %__spec_install_template        #!%{__spec_install_shell}\
875 %{__spec_install_pre}\
876 %{nil}
877
878 #%{__spec_install_body}\
879 #%{__spec_install_post}\
880 #%{nil}
881
882 %__spec_check_shell     %{___build_shell}
883 %__spec_check_args      %{___build_args}
884 %__spec_check_cmd       %{___build_cmd}
885 %__spec_check_pre       %{___build_pre}
886 %__spec_check_body      %{___build_body}
887 %__spec_check_post      %{___build_post}
888 %__spec_check_template  #!%{__spec_check_shell}\
889 %{__spec_check_pre}\
890 %{nil}
891
892 #%{__spec_check_body}\
893 #%{__spec_check_post}\
894 #%{nil}
895
896 #%__spec_autodep_shell  %{___build_shell}
897 #%__spec_autodep_args   %{___build_args}
898 #%__spec_autodep_cmd    %{___build_cmd}
899 #%__spec_autodep_pre    %{___build_pre}
900 #%__spec_autodep_body   %{___build_body}
901 #%__spec_autodep_post   %{___build_post}
902 #%__spec_autodep_template       #!%{__spec_autodep_shell}\
903 #%{__spec_autodep_pre}\
904 #%{nil}
905
906 #%{__spec_autodep_body}\
907 #%{__spec_autodep_post}\
908 #%{nil}
909
910 %__spec_clean_shell     %{___build_shell}
911 %__spec_clean_args      %{___build_args}
912 %__spec_clean_cmd       %{___build_cmd}
913 %__spec_clean_pre       %{___build_pre}
914 %__spec_clean_body      %{___build_body}
915 %__spec_clean_post      %{___build_post}
916 %__spec_clean_template  #!%{__spec_clean_shell}\
917 %{__spec_clean_pre}\
918 %{nil}
919
920 #%{__spec_clean_body}\
921 #%{__spec_clean_post}\
922 #%{nil}
923
924 %__spec_rmbuild_shell   %{___build_shell}
925 %__spec_rmbuild_args    %{___build_args}
926 %__spec_rmbuild_cmd     %{___build_cmd}
927 %__spec_rmbuild_pre     %{___build_pre}
928 %__spec_rmbuild_body    %{___build_body}
929 %__spec_rmbuild_post    %{___build_post}
930 %__spec_rmbuild_template        #!%{__spec_rmbuild_shell}\
931 %{__spec_rmbuild_pre}\
932 %{nil}
933
934 #%{__spec_rmbuild_body}\
935 #%{__spec_rmbuild_post}\
936 #%{nil}
937
938 # XXX We don't expand pre/post install scriptlets (yet).
939 #%__spec_pre_pre                %{nil}
940 #%__spec_pre_post               %{nil}
941 #%__spec_post_pre               %{nil}
942 #%__spec_post_post              %{nil}
943 #%__spec_preun_pre              %{nil}
944 #%__spec_preun_post             %{nil}
945 #%__spec_postun_pre             %{nil}
946 #%__spec_postun_post            %{nil}
947 #%__spec_triggerpostun_pre      %{nil}
948 #%__spec_triggerpostun_post     %{nil}
949 #%__spec_triggerun_pre          %{nil}
950 #%__spec_triggerun_post         %{nil}
951 #%__spec_triggerin_pre          %{nil}
952 #%__spec_triggerin_post         %{nil}
953
954 #==============================================================================
955 # ---- configure macros.
956 #       Macro(s) slavishly copied from autoconf's config.status.
957 #
958 %_prefix                @prefix@
959 %_exec_prefix           %{_prefix}
960 %_bindir                %{_exec_prefix}/bin
961 %_sbindir               %{_exec_prefix}/sbin
962 %_libexecdir            %{_exec_prefix}/libexec
963 %_datadir               %{_prefix}/share
964 %_sysconfdir            /etc
965 %_sharedstatedir        %{_prefix}/com
966 %_localstatedir         %{_prefix}/var
967 %_lib                   lib
968 %_libdir                %{_exec_prefix}/%{_lib}
969 %_includedir            %{_prefix}/include
970 %_infodir               %{_datadir}/info
971 %_mandir                %{_datadir}/man
972
973 #==============================================================================
974 # ---- config.guess platform macros.
975 #       Macro(s) similar to the tokens used by configure.
976 #
977 %_build                 %{_host}
978 %_build_alias           %{_host_alias}
979 %_build_cpu             %{_host_cpu}
980 %_build_vendor          %{_host_vendor}
981 %_build_os              %{_host_os}
982 %_host                  @host@
983 %_host_alias            @host_alias@%{nil}
984 %_host_cpu              @host_cpu@
985 %_host_vendor           @host_vendor@
986 %_host_os               @host_os@
987 %_target                %{_host}
988 %_target_alias          %{_host_alias}
989 %_target_cpu            %{_host_cpu}
990 %_target_vendor         %{_host_vendor}
991 %_target_os             %{_host_os}
992
993 #==============================================================================
994 # ---- specfile macros.
995 #       Macro(s) here can be used reliably for reproducible builds.
996 #       (Note: Above is the goal, below are the macros under development)
997 #
998 # The configure macro does the following:
999 #       optionally change to a subdirectory (not implemented).
1000 #       attempt to update config.guess and config.sub.
1001 #       run configure with correct prefix, platform, and CFLAGS.
1002 #       optionally restore current directory (not implemented).
1003 # The configure macro should be invoked as %configure (rather than %{configure})
1004 # because the rest of the arguments will be expanded using %*.
1005 #
1006 # This is the version of %configure used through rpm-3.0.4.
1007 #%configure     \
1008 #  %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} \
1009 #  CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix}
1010 #
1011 #------------------------------------------------------------------------------
1012 # This is an improved version of %configure (from PLD team).
1013 %_configure ./configure
1014 %configure \
1015   CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
1016   CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
1017   FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
1018   %{_configure} --host=%{_host} --build=%{_build} \\\
1019         --target=%{_target_platform} \\\
1020         --program-prefix=%{?_program_prefix} \\\
1021         --prefix=%{_prefix} \\\
1022         --exec-prefix=%{_exec_prefix} \\\
1023         --bindir=%{_bindir} \\\
1024         --sbindir=%{_sbindir} \\\
1025         --sysconfdir=%{_sysconfdir} \\\
1026         --datadir=%{_datadir} \\\
1027         --includedir=%{_includedir} \\\
1028         --libdir=%{_libdir} \\\
1029         --libexecdir=%{_libexecdir} \\\
1030         --localstatedir=%{_localstatedir} \\\
1031         --sharedstatedir=%{_sharedstatedir} \\\
1032         --mandir=%{_mandir} \\\
1033         --infodir=%{_infodir}
1034
1035 #------------------------------------------------------------------------------
1036 # The make install analogue of %configure:
1037 %makeinstall \
1038   make \\\
1039         prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\
1040         exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \\\
1041         bindir=%{?buildroot:%{buildroot}}%{_bindir} \\\
1042         sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \\\
1043         sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \\\
1044         datadir=%{?buildroot:%{buildroot}}%{_datadir} \\\
1045         includedir=%{?buildroot:%{buildroot}}%{_includedir} \\\
1046         libdir=%{?buildroot:%{buildroot}}%{_libdir} \\\
1047         libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \\\
1048         localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \\\
1049         sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \\\
1050         mandir=%{?buildroot:%{buildroot}}%{_mandir} \\\
1051         infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\
1052   install
1053
1054 #------------------------------------------------------------------------------
1055 # The GNUconfigure macro does the following:
1056 #       update config.guess and config.sub.
1057 #       regenerate all autoconf/automake files
1058 #       optionally change to a directory (make the directory if requested).
1059 #       run configure with correct prefix, platform, and CFLAGS.
1060 #       optionally restore current directory.
1061 #
1062 # Based on autogen.sh from GNOME and orginal GNUconfigure
1063 #
1064 %GNUconfigure(MCs:)      \
1065   CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS; \
1066   LDFLAGS="${LDFLAGS:-%{-s:-s}}"  ; export LDFLAGS; \
1067   %{-C:_mydir="`pwd`"; %{-M: %{__mkdir} -p %{-C*};} cd %{-C*}} \
1068   dirs="`find ${_mydir} -name configure.in -print`"; export dirs; \
1069     for coin in `echo ${dirs}` \
1070 do \
1071   dr=`dirname ${coin}`; \
1072 if test -f ${dr}/NO-AUTO-GEN; then \
1073  : \
1074 else \
1075      macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < ${coin}`; \
1076     ( cd ${dr}; \
1077       aclocalinclude="${ACLOCAL_FLAGS}"; \
1078       for k in ${macrodirs}; do \
1079         if test -d ${k}; then \
1080           aclocalinclude="${aclocalinclude} -I ${k}"; \
1081         ##else \
1082         ##  echo "**Warning**: No such directory \`${k}'.  Ignored." \
1083         fi \
1084       done \
1085       if grep "^AM_GNU_GETTEXT" configure.in >/dev/null; then \
1086         if grep "sed.*POTFILES" configure.in >/dev/null; then \
1087           : do nothing -- we still have an old unmodified configure.in \
1088         else \
1089           test -r ${dr}/aclocal.m4 || touch ${dr}/aclocal.m4; \
1090           echo "no" | gettextize --force --copy; \
1091           test -r ${dr}/aclocal.m4 && %{__chmod} u+w ${dr}/aclocal.m4; \
1092         fi \
1093       fi \
1094       if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then \
1095         %{__libtoolize} --force --copy; \
1096       fi \
1097       aclocal ${aclocalinclude}; \
1098       if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then \
1099         %{__autoheader}; \
1100       fi \
1101       echo "Running automake --gnu ${am_opt} ..."; \
1102       %{__automake} --add-missing --gnu ${am_opt}; \
1103       %{__autoconf}; \
1104     ); \
1105   fi \
1106 done \
1107   %{-C:${_mydir}}%{!-C:.}/configure %{_target_platform} --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} %* ; \
1108   %{-C:cd ${_mydir}; unset _mydir}
1109
1110 %patches %{lua: for i, p in ipairs(patches) do print(p.." ") end}
1111 %sources %{lua: for i, s in ipairs(sources) do print(s.." ") end}
1112
1113 #------------------------------------------------------------------------------
1114 # Useful perl macros (from Artur Frysiak <wiget@t17.ds.pwr.wroc.pl>)
1115 #
1116 # For example, these can be used as (from ImageMagick.spec from PLD site)
1117 #       [...]
1118 #       BuildPrereq: perl
1119 #       [...]
1120 #       %package perl
1121 #       Summary: libraries and modules for access to ImageMagick from perl
1122 #       Group: Development/Languages/Perl
1123 #       Requires: %{name} = %{version}
1124 #       %requires_eq    perl
1125 #       [...]
1126 #       %install
1127 #       rm -fr $RPM_BUILD_ROOT
1128 #       install -d $RPM_BUILD_ROOT/%{perl_sitearch}
1129 #       [...]
1130 #       %files perl
1131 #       %defattr(644,root,root,755)
1132 #       %{perl_sitearch}/Image
1133 #       %dir %{perl_sitearch}/auto/Image
1134 #
1135 %requires_eq()  %(LC_ALL="C" echo '%*' | xargs -r rpm -q --qf 'Requires: %%{name} = %%{epoch}:%%{version}\\n' | sed -e 's/ (none):/ /' -e 's/ 0:/ /' | grep -v "is not")
1136 %perl_sitearch  %(eval "`%{__perl} -V:installsitearch`"; echo $installsitearch)
1137 %perl_sitelib   %(eval "`%{__perl} -V:installsitelib`"; echo $installsitelib)
1138 %perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)
1139 %perl_vendorlib  %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
1140 %perl_archlib   %(eval "`%{__perl} -V:installarchlib`"; echo $installarchlib)
1141 %perl_privlib   %(eval "`%{__perl} -V:installprivlib`"; echo $installprivlib)
1142
1143 #------------------------------------------------------------------------------
1144 # arch macro for all Intel i?86 compatibile processors
1145 #  (Note: This macro (and it's analogues) will probably be obsoleted when
1146 #   rpm can use regular expressions against target platforms in macro
1147 #   conditionals.
1148 #
1149 %ix86   i386 i486 i586 i686 pentium3 pentium4 athlon geode
1150
1151 #------------------------------------------------------------------------------
1152 # arch macro for all supported ARM processors
1153 %arm    armv3l armv4b armv4l armv4tl armv5tel armv5tejl armv6l armv7l
1154
1155 #------------------------------------------------------------------------------
1156 # arch macro for all supported Sparc processors
1157 %sparc sparc sparcv8 sparcv9 sparcv9v sparc64 sparc64v
1158
1159 #------------------------------------------------------------------------------
1160 # arch macro for all supported Alpha processors
1161 %alpha  alpha alphaev56 alphaev6 alphaev67
1162
1163 #------------------------------------------------------------------------
1164 # Use in %install to generate locale specific file lists. For example,
1165 #
1166 # %install
1167 # ...
1168 # %find_lang %{name}
1169 # ...
1170 # %files -f %{name}.lang
1171 #
1172 %find_lang      %{_rpmconfigdir}/find-lang.sh %{buildroot}
1173
1174 # Commands + opts to use for retrieving remote files
1175 %__urlhelpercmd         @__CURL@
1176 %__urlhelperopts        --silent --show-error --fail --location -o
1177 %_urlhelper             %{__urlhelpercmd} %{__urlhelperopts}
1178
1179
1180 # \endverbatim
1181 #*/