m4/m4.spec
Funda Wang 2e3787d599 cleanup spec
(cherry picked from commit a795b21e2a746735741cfb2a90beebc8bb10c974)
2024-10-21 11:53:37 +08:00

116 lines
2.7 KiB
RPMSpec

Name: m4
Version: 1.4.19
Release: 5
Summary: A GNU implementation of macro processor
License: GPL-3.0-or-later
URL: https://www.gnu.org/software/m4/
Source0: https://ftp.gnu.org/gnu/m4/%{name}-%{version}.tar.xz
Patch1: 0001-Delete-test-execute_sh.patch
Patch6000: backport-output-Avoid-tickling-UBSAN-with-memcpy-dest-NULL-0.patch
BuildRequires: gcc autoconf automake gettext-devel
Provides: bundled(gnulib)
%description
GNU M4 is an implementation of the traditional Unix macro processor.
It is mostly SVR4 compatible although it has some extensions (for
example, handling more than 9 positional parameters to macros). GNU M4
also has built-in functions for including files, running shell commands,
doing arithmetic, etc.
%package_help
%prep
%autosetup -p1
%build
%ifarch aarch64
CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
%endif
autoreconf -ivf
%configure
%make_build
%install
%make_install
rm -rf %{buildroot}%{_infodir}/dir
%find_lang %{name}
%check
%make_build check
%files -f %{name}.lang
%doc README ChangeLog
%license COPYING AUTHORS
%{_bindir}/m4
%files help
%doc NEWS INSTALL THANKS TODO
%{_mandir}/man1/m4*
%{_infodir}/m4*
%changelog
* Mon Oct 21 2024 Funda Wang <fundawang@yeah.net> - 1.4.19-5
- cleanup spec
* Wed Jul 31 2024 zhangruifang <zhangruifang@h-partners.com> - 1.4.19-4
- backport patch from upstream
* Tue Oct 25 2022 renhongxun <renhongxun@h-partners.com> - 1.4.19-3
- Rebuild for next release
* Tue Mar 08 2022 renhongxun <renhongxun@h-partners.com> - 1.4.19-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix test-localconv
* Tue Dec 30 2021 liudabo <liudabo1@huawei.com> - 1.4.19-1
- DESC:update version to 1.4.19
* Tue Dec 21 2021 shixuantong <shixuantong@huawei.com> - 1.4.18-17
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add -fsigned-char to %check
* Tue Aug 10 2021 shixuantong <shixuantong@huawei.com> - 1.4.18-16
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:c-stack:stop using SIGSTKSZ
* Wed Aug 04 2021 shixuantong <shixuantong@huawei.com> - 1.4.18-15
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix changelog error
* Fri Mar 19 2021 shixuantong <shixuantong@huawei.com> - 1.4.18-14
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix test_localeconv fail in aarch64 machine
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.4.18-13
- Type:NA
- ID:NA
- SUG:NA
- DESC:delete unneeded source
* Mon Oct 21 2019 shenyangyang <shenyangyang4@huawei.com> - 1.4.18-12
- Type:NA
- ID:NA
- SUG:NA
- DESC:move AUTHORS to license directory
* Sun Sep 29 2019 shenyangyang <shenyangyang4@huawei.com> - 1.4.18-11
- Type:NA
- ID:NA
- SUG:NA
- DESC:move the directory of README
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.4.18-10
- Package Init