Name: gawk-mbs Summary: mbs library for gawk Version: 1.1.1 Release: 1%{?dist} License: GPLv3+ URL: https://sourceforge.net/projects/gawkextlib Source: %{url}/files/%{name}-%{version}.tar.gz Requires: gawk BuildRequires: gawk-devel BuildRequires: gcc BuildRequires: make # Make sure the API version is compatible with our source code: BuildRequires: gawk(abi) >= 1.1 BuildRequires: gawk(abi) < 5.0 # At runtime, the ABI must be compatible with the compile-time version %global gawk_api_version %(gawk 'BEGINFILE {if (ERRNO) nextfile} match($0, /#define gawk_api_(major|minor)_version[[:space:]]+([[:digit:]]+)/, f) {v[f[1]] = f[2]} END {print (v["major"] "." v["minor"])}' /usr/include/gawkapi.h) Requires: gawk(abi) >= %{gawk_api_version} Requires: gawk(abi) < %(echo %{gawk_api_version} | gawk -F. '{printf "%d.0\n", $1+1}') # This is the default as of Fedora 23: %global _hardened_build 1 %description The %{name} module provides a gawk extension library implementing the mbs API. # ============================================================================= %prep %autosetup %build %configure %make_build %check make check %install %make_install # if translations are present: %files -f %{name}.lang %files %license COPYING %doc NEWS %doc test/*.awk %{_libdir}/gawk/mbs.so %{_mandir}/man3/* # ============================================================================= %changelog * Thu Jun 07 2018 Arnold D. Robbins - 1.1.1-1 - Rebuilt for new release