Compare commits

...

6 Commits
rawhide ... f27

Author SHA1 Message Date
David Kaspar [Dee'Kej] fe1b7a7d73 specfile: added BuildRequires for 'gcc'
https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B#BuildRequire
2018-02-21 17:15:16 +01:00
David Kaspar [Dee'Kej] 649840b577 specfile: use %make_build for documentation building as well 2017-11-23 17:00:44 +01:00
David Kaspar [Dee'Kej] 62aa3d3d3e specfile: updated the build process to use %make_build 2017-11-23 17:00:38 +01:00
David Kaspar [Dee'Kej] cffad890f1 specfile: update *-devel subpackage to be architecture dependent 2017-11-23 16:59:54 +01:00
David Kaspar [Dee'Kej] c641843046 specfile: 'noarch' removed from *-devel subpackage to comply with FPG 2017-11-23 14:59:30 +01:00
David Kaspar [Dee'Kej] c5e1fcaebd specfile: ignore case when doing test for gawk(abi)
To be backward compatible with 4.1.3 and older code.
2017-09-18 20:03:38 +02:00
1 changed files with 13 additions and 8 deletions

View File

@ -45,7 +45,7 @@
Name: gawk
Summary: The GNU version of the AWK text processing utility
Version: 4.1.4
Release: 7%{?dist}
Release: 8%{?dist}
License: GPLv3+ and GPLv2+ and LGPLv2+ and BSD
@ -67,9 +67,10 @@ Requires: filesystem >= 3
Requires(post): info
Requires(preun): info
BuildRequires: ghostscript-core
BuildRequires: git
BuildRequires: gcc
BuildRequires: grep
BuildRequires: ghostscript-core
# Extending GAWK possibilities:
BuildRequires: libsigsegv-devel
@ -132,8 +133,7 @@ text processing.
%package devel
Summary: Header file for gawk extensions development
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This subpackage provides /usr/include/gawkapi.h header file, which contains
@ -177,10 +177,10 @@ git commit --all --amend --no-edit > /dev/null
%build
%configure
make %{?_smp_mflags}
%make_build
# Build the documentation in PDF, postscript and HTML versions:
make -C doc pdf
%make_build -C doc pdf
mkdir -p html/gawk html/gawkinet
makeinfo --html -I doc -o html/gawk doc/gawk.texi
makeinfo --html -I doc -o html/gawkinet doc/gawkinet.texi
@ -191,8 +191,8 @@ makeinfo --html -I doc -o html/gawkinet doc/gawkinet.texi
make check
# Check we have correctly specified the ABI version for the current sources:
api_major_vers=$(grep -e "gawk_api_major.*[[:digit:]]" gawkapi.h | grep -o -e "[[:digit:]]")
api_minor_vers=$(grep -e "gawk_api_minor.*[[:digit:]]" gawkapi.h | grep -o -e "[[:digit:]]")
api_major_vers=$(grep -i -e "gawk_api_major.*[[:digit:]]" gawkapi.h | grep -o -e "[[:digit:]]")
api_minor_vers=$(grep -i -e "gawk_api_minor.*[[:digit:]]" gawkapi.h | grep -o -e "[[:digit:]]")
if [[ "$api_major_vers" != %{gawk_api_major} || "$api_minor_vers" != %{gawk_api_minor} ]]; then
echo "Build Error: specified gawk(abi) version [%{gawk_api_major}.%{gawk_api_minor}] is different than source code API version [$api_major_vers.$api_minor_vers]!" >&2
@ -276,6 +276,11 @@ fi
# =============================================================================
%changelog
* Thu Nov 23 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 4.1.4-8
- 'noarch' removed from *-devel subpackage
- added arch requirement for *-devel subpackage
- updated the build process to use %%make_build macro
* Fri Sep 15 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 4.1.4-7
- Revert previous change of adding 'awk*' symlinks for info pages (bug #1486924)
- Added patch to correctly fix the info pages issue (bug #1486924)