2006-12-19 00:17:02 +01:00
|
|
|
#
|
2011-03-09 17:40:00 +01:00
|
|
|
# spec file for package m4
|
2006-12-19 00:17:02 +01:00
|
|
|
#
|
2022-08-29 10:25:00 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2006-12-19 00:17:02 +01:00
|
|
|
#
|
2008-10-07 15:51:57 +02:00
|
|
|
# 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-01-24 11:02:09 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:17:02 +01:00
|
|
|
#
|
|
|
|
|
2012-05-31 10:52:25 +02:00
|
|
|
|
2006-12-19 00:17:02 +01:00
|
|
|
Name: m4
|
2017-01-07 15:22:19 +01:00
|
|
|
Version: 1.4.18
|
2011-12-01 16:53:25 +01:00
|
|
|
Release: 0
|
2006-12-19 00:17:02 +01:00
|
|
|
Summary: GNU m4
|
2018-08-02 09:03:08 +02:00
|
|
|
License: GPL-3.0-or-later
|
2012-05-31 10:52:25 +02:00
|
|
|
Group: Development/Languages/Other
|
2020-01-24 11:02:09 +01:00
|
|
|
URL: https://www.gnu.org/software/m4/
|
2017-01-07 15:22:19 +01:00
|
|
|
Source0: https://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/pub/gnu/m4/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=m4&download=1#/%{name}.keyring
|
2018-08-02 09:03:08 +02:00
|
|
|
Patch1: gnulib-libio.patch
|
2021-07-21 13:52:40 +02:00
|
|
|
Patch2: gnulib-c-stack.patch
|
2017-10-19 11:03:31 +02:00
|
|
|
BuildRequires: xz
|
2015-10-14 13:17:32 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
2021-07-21 13:52:40 +02:00
|
|
|
Requires(preun):%{install_info_prereq}
|
2015-03-04 14:37:34 +01:00
|
|
|
Provides: base:%{_bindir}/m4
|
2006-12-19 00:17:02 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
GNU m4 is an implementation of the traditional Unix macro processor.
|
|
|
|
|
|
|
|
%prep
|
2024-03-01 13:10:37 +01:00
|
|
|
%autosetup -p1
|
2006-12-19 00:17:02 +01:00
|
|
|
|
|
|
|
%build
|
2010-09-19 20:10:53 +02:00
|
|
|
%configure \
|
2015-10-14 13:17:32 +02:00
|
|
|
--without-included-regex \
|
2017-10-19 11:03:31 +02:00
|
|
|
%if 0%{?mageia}
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
%endif
|
2015-10-14 13:17:32 +02:00
|
|
|
gl_cv_func_isnanl_works=yes \
|
|
|
|
gl_cv_func_printf_directive_n=yes \
|
|
|
|
gl_cv_func_printf_infinite_long_double=yes
|
2020-01-24 11:02:09 +01:00
|
|
|
%if %{do_profiling}
|
2022-08-29 10:25:00 +02:00
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
|
|
|
|
# run profiling check sequentially to have it reproducible
|
|
|
|
%make_build -j1 check CFLAGS="%{optflags} %{cflags_profile_generate}"
|
|
|
|
%make_build clean
|
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
2020-01-24 11:02:09 +01:00
|
|
|
%else
|
2022-08-29 10:25:00 +02:00
|
|
|
%make_build
|
2020-01-24 11:02:09 +01:00
|
|
|
%endif
|
2008-10-13 15:50:51 +02:00
|
|
|
|
|
|
|
%check
|
2022-08-29 10:25:00 +02:00
|
|
|
%make_build check
|
2006-12-19 00:17:02 +01:00
|
|
|
|
|
|
|
%install
|
2017-01-07 15:22:19 +01:00
|
|
|
%make_install
|
2017-10-19 11:03:31 +02:00
|
|
|
# info's dir file is not auto ignored on some systems
|
|
|
|
rm -rf %{buildroot}%{_infodir}/dir
|
2006-12-19 00:17:02 +01:00
|
|
|
|
|
|
|
%post
|
2017-01-07 15:22:19 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2006-12-19 00:17:02 +01:00
|
|
|
|
2015-10-14 13:17:32 +02:00
|
|
|
%preun
|
2017-02-13 13:54:39 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2006-12-19 00:17:02 +01:00
|
|
|
|
|
|
|
%files
|
2018-08-02 09:03:08 +02:00
|
|
|
%doc README NEWS THANKS TODO ChangeLog
|
|
|
|
%license COPYING
|
2017-01-07 15:22:19 +01:00
|
|
|
%{_bindir}/m4
|
|
|
|
%{_infodir}/m4.info-1%{ext_info}
|
|
|
|
%{_infodir}/m4.info-2%{ext_info}
|
2020-01-24 11:02:09 +01:00
|
|
|
%{_infodir}/m4.info%{?ext_info}
|
|
|
|
%{_mandir}/man1/m4.1%{?ext_man}
|
2006-12-19 00:17:02 +01:00
|
|
|
|
2007-03-24 12:22:06 +01:00
|
|
|
%changelog
|