specfile: introduce the 'gawk(abi)' value in the Provides: field

This commit is contained in:
David Kaspar [Dee'Kej] 2017-09-18 15:07:03 +02:00
parent d4a9eb40ce
commit 91b64e9879
1 changed files with 12 additions and 0 deletions

View File

@ -30,6 +30,16 @@
# For more info: https://fedoraproject.org/wiki/Packaging:Guidelines#PIE
%global _hardened_build 1
# We are defining the gawk(abi) version value based on these values, because
# upstream updates the API from time to time, which breaks the ABI for packages
# depending on gawk's shared objects. The gawk(abi) version value is exported
# below via the Provides: field.
#
# These values are defined in the gawkapi.h header file. To see them, run:
# grep -E "gawk_api_(major|minor).*[[:digit:]]" gawkapi.h
%global gawk_api_major 1
%global gawk_api_minor 1
# =============================================================================
Name: gawk
@ -49,6 +59,8 @@ Source3: LICENSE.BSD
Provides: /bin/awk
Provides: /bin/gawk
Provides: gawk(abi) = %{gawk_api_major}.%{gawk_api_minor}
# Safeguard to allow this package to be installed only on UsrMove enabled
# filesystem. More info: https://fedoraproject.org/wiki/Features/UsrMove
Requires: filesystem >= 3