2010-03-05 12:15:05 +01:00
|
|
|
#
|
2012-01-10 14:51:07 +01:00
|
|
|
# spec file for package mawk
|
2010-03-05 12:15:05 +01:00
|
|
|
#
|
2021-02-04 15:41:17 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2010-03-05 12:15:05 +01:00
|
|
|
# Copyright (c) 2010 Guido Berhoerster.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-05-20 18:00:45 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-03-05 12:15:05 +01:00
|
|
|
#
|
|
|
|
|
2012-05-15 10:43:49 +02:00
|
|
|
|
2015-11-18 14:25:08 +01:00
|
|
|
%define _upver 1.3.4
|
2020-05-20 18:00:45 +02:00
|
|
|
%define _datever 20200120
|
2010-03-05 12:15:05 +01:00
|
|
|
Name: mawk
|
2015-11-18 14:25:08 +01:00
|
|
|
Version: %{_upver}.%{_datever}
|
2015-04-04 18:43:52 +02:00
|
|
|
Release: 0
|
2010-03-05 12:15:05 +01:00
|
|
|
Summary: Implementation of New/POSIX AWK
|
2018-07-12 14:31:02 +02:00
|
|
|
License: GPL-2.0-only
|
2010-03-05 12:15:05 +01:00
|
|
|
Group: Productivity/Text/Utilities
|
2021-09-28 10:55:41 +02:00
|
|
|
URL: https://invisible-island.net/mawk/mawk.html
|
2018-07-12 14:31:02 +02:00
|
|
|
Source0: ftp://ftp.invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz
|
|
|
|
Source1: ftp://ftp.invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz.asc
|
2015-04-04 18:43:52 +02:00
|
|
|
Source2: %{name}.keyring
|
2017-01-30 10:45:32 +01:00
|
|
|
# PATCH-FIX-OPENSUSE -- bmwiedemann -- drop timestamp / for build-compare
|
|
|
|
Patch0: reproducible.patch
|
2010-03-05 12:15:05 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
mawk is an interpreter for the AWK Programming Language. It implements the AWK
|
|
|
|
language as defined in Aho, Kernighan and Weinberger, The AWK Programming
|
|
|
|
Language, Addison-Wesley Publishing, 1988. Furthermore, it conforms to the
|
|
|
|
POSIX 1003.2 (draft 11.3) definition of the AWK language and additionally
|
|
|
|
provides a small number of extensions.
|
|
|
|
|
|
|
|
%prep
|
2015-11-18 14:25:08 +01:00
|
|
|
%setup -q -n mawk-%{_upver}-%{_datever}
|
2017-01-30 10:45:32 +01:00
|
|
|
%patch0 -p1
|
2012-05-15 10:43:49 +02:00
|
|
|
chmod 755 examples/*
|
2010-03-05 12:15:05 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
# without --enable-warnings several functions will not be marked with gcc's
|
|
|
|
# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
|
2012-05-15 10:43:49 +02:00
|
|
|
%configure \
|
2018-07-12 14:31:02 +02:00
|
|
|
--enable-warnings
|
2021-09-28 10:55:41 +02:00
|
|
|
%make_build
|
2010-03-05 12:15:05 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2012-05-15 10:43:49 +02:00
|
|
|
|
2023-01-04 12:05:54 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2014-02-08 13:35:32 +01:00
|
|
|
# compatibility symlink
|
|
|
|
install -d -m 755 %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/mawk %{buildroot}/bin/mawk
|
2021-01-27 17:24:33 +01:00
|
|
|
%endif
|
2010-03-05 12:15:05 +01:00
|
|
|
|
|
|
|
%check
|
2021-09-28 10:55:41 +02:00
|
|
|
%make_build check
|
2010-03-05 12:15:05 +01:00
|
|
|
|
|
|
|
%files
|
2018-07-12 14:31:02 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc ACKNOWLEDGMENT CHANGES README examples/
|
2014-02-08 13:35:32 +01:00
|
|
|
%{_bindir}/mawk
|
|
|
|
%{_mandir}/man1/mawk.1%{?ext_man}
|
2023-01-04 12:05:54 +01:00
|
|
|
%if 0%{?suse_version} < 1550
|
2021-01-27 17:24:33 +01:00
|
|
|
/bin/mawk
|
|
|
|
%endif
|
2010-03-05 12:15:05 +01:00
|
|
|
|
|
|
|
%changelog
|