2020-09-30 17:34:17 +02:00
|
|
|
--- ./macros.in.orig 2020-09-30 12:42:09.146057387 +0000
|
|
|
|
+++ ./macros.in 2020-09-30 12:45:30.517611707 +0000
|
2019-10-02 15:28:11 +02:00
|
|
|
@@ -177,7 +177,7 @@
|
2018-05-07 16:38:17 +02:00
|
|
|
%{?_unique_build_ids:--build-id-seed "%{VERSION}-%{RELEASE}"} \\\
|
|
|
|
%{?_unique_debug_names:--unique-debug-suffix "-%{VERSION}-%{RELEASE}.%{_arch}"} \\\
|
|
|
|
%{?_unique_debug_srcs:--unique-debug-src-base "%{name}-%{VERSION}-%{RELEASE}.%{_arch}"} \\\
|
|
|
|
- %{?_find_debuginfo_dwz_opts} \\\
|
|
|
|
+ %{lua:if not posix.access(rpm.expand("%_sourcedir/baselibs.conf"), "r") then print(rpm.expand("%{?_find_debuginfo_dwz_opts}")) end} \\\
|
|
|
|
%{?_find_debuginfo_opts} \\\
|
|
|
|
%{?_debugsource_packages:-S debugsourcefiles.list} \\\
|
|
|
|
"%{_builddir}/%{?buildsubdir}"\
|
2019-10-02 15:28:11 +02:00
|
|
|
@@ -217,7 +217,8 @@ package or when debugging this package.\
|
2017-12-05 11:46:24 +01:00
|
|
|
%endif\
|
2006-12-19 00:17:44 +01:00
|
|
|
%{nil}
|
|
|
|
|
2009-08-28 15:54:03 +02:00
|
|
|
-%_defaultdocdir %{_datadir}/doc
|
|
|
|
+%_defaultdocdir %{_datadir}/doc/packages
|
2013-07-12 16:11:14 +02:00
|
|
|
+%_docdir_fmt %%{NAME}
|
|
|
|
%_defaultlicensedir %{_datadir}/licenses
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2017-12-05 11:46:24 +01:00
|
|
|
# Following macros for filtering auto deps must not be used in spec files.
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -280,7 +281,8 @@ package or when debugging this package.\
|
2006-12-19 00:17:44 +01:00
|
|
|
%_tmppath %{_var}/tmp
|
|
|
|
|
|
|
|
# Path to top of build area.
|
2009-08-28 15:54:03 +02:00
|
|
|
-%_topdir %{getenv:HOME}/rpmbuild
|
2011-10-19 18:38:28 +02:00
|
|
|
+%_topdir %{expand:%%global _topdir %{lua:if posix.access(rpm.expand("%{_usrsrc}/packages"), "w") then print "%{_usrsrc}/packages" else print "%{getenv:HOME}/rpmbuild" end} \
|
|
|
|
+}%_topdir
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
# The path to the unzip executable (legacy, use %{__unzip} instead).
|
|
|
|
%_unzipbin %{__unzip}
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -392,7 +394,7 @@ package or when debugging this package.\
|
2019-10-02 15:28:11 +02:00
|
|
|
# "w.ufdio" uncompressed
|
2006-12-19 00:17:44 +01:00
|
|
|
#
|
|
|
|
#%_source_payload w9.gzdio
|
|
|
|
-#%_binary_payload w9.gzdio
|
2020-07-06 16:34:30 +02:00
|
|
|
+%_binary_payload w19.zstdio
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2009-08-28 15:54:03 +02:00
|
|
|
# Algorithm to use for generating file checksum digests on build.
|
|
|
|
# If not specified or 0, MD5 is used.
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -499,6 +501,19 @@ package or when debugging this package.\
|
2017-03-20 17:57:43 +01:00
|
|
|
#
|
|
|
|
#%_include_minidebuginfo 1
|
|
|
|
|
|
|
|
+# Number of debugging information entries (DIEs) above which
|
|
|
|
+# dwz will stop considering file for multifile optimizations
|
|
|
|
+# and enter a low memory mode, in which it will optimize
|
|
|
|
+# in about half the memory needed otherwise.
|
|
|
|
+%_dwz_low_mem_die_limit 10000000
|
|
|
|
+# Number of DIEs above which dwz will stop processing
|
|
|
|
+# a file altogether.
|
|
|
|
+%_dwz_max_die_limit 50000000
|
|
|
|
+
|
|
|
|
+%_find_debuginfo_dwz_opts --run-dwz\\\
|
|
|
|
+ --dwz-low-mem-die-limit %{_dwz_low_mem_die_limit}\\\
|
|
|
|
+ --dwz-max-die-limit %{_dwz_max_die_limit}
|
|
|
|
+
|
2017-12-05 11:46:24 +01:00
|
|
|
#
|
|
|
|
# Include a .gdb_index section in the .debug files.
|
|
|
|
# Requires _enable_debug_packages and gdb-add-index installed.
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -531,7 +546,7 @@ package or when debugging this package.\
|
2017-12-07 17:03:52 +01:00
|
|
|
# Same as for "separate" but if the __debug_package global is set then
|
|
|
|
# the -debuginfo package will have a compatibility link for the main
|
|
|
|
# ELF /usr/lib/debug/.build-id/xx/yyy -> /usr/lib/.build-id/xx/yyy
|
|
|
|
-%_build_id_links compat
|
|
|
|
+%_build_id_links alldebug
|
|
|
|
|
|
|
|
# Whether build-ids should be made unique between package version/releases
|
|
|
|
# when generating debuginfo packages. If set to 1 this will pass
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -560,10 +575,10 @@ package or when debugging this package.\
|
2017-12-05 11:46:24 +01:00
|
|
|
%_unique_debug_srcs 1
|
|
|
|
|
|
|
|
# Whether rpm should put debug source files into its own subpackage
|
|
|
|
-#%_debugsource_packages 1
|
|
|
|
+%_debugsource_packages 1
|
|
|
|
|
|
|
|
# Whether rpm should create extra debuginfo packages for each subpackage
|
|
|
|
-#%_debuginfo_subpackages 1
|
|
|
|
+%_debuginfo_subpackages 1
|
|
|
|
|
2017-03-20 17:57:43 +01:00
|
|
|
#
|
|
|
|
# Use internal dependency generator rather than external helpers?
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -576,6 +591,10 @@ package or when debugging this package.\
|
2012-08-28 15:31:44 +02:00
|
|
|
# Directories whose contents should be considered as documentation.
|
2020-09-30 17:34:17 +02:00
|
|
|
%__docdir_path %{_datadir}/doc:%{_datadir}/man:%{_datadir}/info:%{_datadir}/gtk-doc/html:%{_datadir}/gnome/help:%{?_docdir}:%{?_mandir}:%{?_infodir}:%{?_javadocdir}:/usr/doc:/usr/man:/usr/info:/usr/X11R6/man
|
2008-09-12 20:37:28 +02:00
|
|
|
|
|
|
|
+# maxnum,cuttime,minnum
|
2019-01-13 17:30:54 +01:00
|
|
|
+# 2014/10/13 (SLES12 GA)
|
|
|
|
+%_binarychangelogtrim 0,1413151200,10
|
2008-09-12 20:37:28 +02:00
|
|
|
+
|
|
|
|
#
|
|
|
|
# Path to scripts to autogenerate package dependencies,
|
|
|
|
#
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -586,6 +605,7 @@ package or when debugging this package.\
|
2018-07-04 14:04:51 +02:00
|
|
|
%__find_requires %{_rpmconfigdir}/find-requires
|
2006-12-19 00:17:44 +01:00
|
|
|
#%__find_conflicts ???
|
|
|
|
#%__find_obsoletes ???
|
2018-07-04 14:04:51 +02:00
|
|
|
+%__find_supplements %{_rpmconfigdir}/find-supplements
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
#
|
|
|
|
# Path to file attribute classifications for automatic dependency
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -665,10 +685,10 @@ package or when debugging this package.\
|
2011-05-16 18:07:44 +02:00
|
|
|
# Misc BDB tuning options
|
2012-08-28 15:31:44 +02:00
|
|
|
%__dbi_other mp_mmapsize=128Mb mp_size=1Mb
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
-%_dbi_config %{?__dbi_other}
|
|
|
|
+%_dbi_config %{?__dbi_other} nofsync
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
# "Packages" should have shared/exclusive fcntl(2) lock using "lockdbfd".
|
|
|
|
-%_dbi_config_Packages %{?_dbi_config} lockdbfd
|
|
|
|
+%_dbi_config_Packages %{?__dbi_other} lockdbfd
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2011-05-16 18:07:44 +02:00
|
|
|
#==============================================================================
|
|
|
|
# ---- GPG/PGP/PGP5 signature macros.
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -1011,7 +1031,7 @@ package or when debugging this package.\
|
2006-12-19 00:17:44 +01:00
|
|
|
%_build_vendor %{_host_vendor}
|
|
|
|
%_build_os %{_host_os}
|
|
|
|
%_host @host@
|
|
|
|
-%_host_alias @host_alias@%{nil}
|
|
|
|
+%_host_alias @host@%{nil}
|
|
|
|
%_host_cpu @host_cpu@
|
|
|
|
%_host_vendor @host_vendor@
|
|
|
|
%_host_os @host_os@
|
2020-09-30 17:34:17 +02:00
|
|
|
@@ -1130,11 +1150,13 @@ package or when debugging this package.\
|
2017-12-05 11:46:24 +01:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
2020-09-30 17:34:17 +02:00
|
|
|
# arch macro for all supported 32-bit ARM processors
|
|
|
|
-%arm32 armv3l armv4b armv4l armv4tl armv5tl armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl
|
|
|
|
+%arm32 armv3l armv4b armv4l armv4tl armv5b armv5l armv5teb armv5tel armv5tejl armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl
|
2017-12-05 11:46:24 +01:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
2020-09-30 17:34:17 +02:00
|
|
|
# arch macro for all supported 32-bit ARM processors (legacy, use %%arm32 instead)
|
|
|
|
%arm %{arm32}
|
|
|
|
+%arml armv3l armv4l armv5l armv5tel armv6l armv6hl armv7l armv7hl armv7hnl armv8l armv8hl armv8hnl armv8hcnl
|
|
|
|
+%armb armv4b armv5b armv5teb
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# arch macro for all supported 64-bit ARM processors
|