specfile: %gawk_api_* macros dropped

For now we do not need them. They might get restored in the future
  when they are needed by any gawk extension.
This commit is contained in:
David Kaspar [Dee'Kej] 2017-11-07 10:24:32 +01:00
parent d21c2b8eb3
commit 2523130c4e
1 changed files with 0 additions and 24 deletions

View File

@ -220,29 +220,6 @@ install -m 0644 -p html/gawkinet/* %{buildroot}%{_docdir}/%{name}/html/gaw
install -m 0644 -p doc/gawk.{pdf,ps} %{buildroot}%{_docdir}/%{name}
install -m 0644 -p doc/gawkinet.{pdf,ps} %{buildroot}%{_docdir}/%{name}
# NOTE: Upstream is referencing this specfile in README file, so we want
# to keep as much content as possible in this file...
# Generate latest version of 'macros.gawk' file used by gawk extensions:
install -m 0755 -d %{buildroot}%{_rpmconfigdir}/macros.d
cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.gawk << _EOF
# Current API version:
%%gawk_api_version %{gawk_api_major}.%{gawk_api_minor}
%%gawk_api_major %{gawk_api_major}
%%gawk_api_minor %{gawk_api_minor}
# Next major API version which will be incopatible with current API:
%%gawk_api_major_next $((%{gawk_api_major} + 1)).0
# This macro will make sure that your current gawk extension
# is build against latest gawk API available in the buildroot:
%%gawk_abi_requires \\
Requires: gawk(abi) >= %%{gawk_api_version} \\
Requires: gawk(abi) < %%{gawk_api_major_next} \\
%%{nil}
_EOF
# ---------------
# Always update the info pages:
@ -275,7 +252,6 @@ fi
%files devel
%{_includedir}/gawkapi.h
%{_rpmconfigdir}/macros.d/macros.gawk
# ---------------