46609b
Summary: The GNU macro processor
46609b
Name: m4
46609b
Version: 1.4.18
46609b
Release: 7%{?dist}
46609b
License: GPLv3+
46609b
Group: Applications/Text
46609b
Source0: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz
46609b
Source1: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz.sig
46609b
URL: http://www.gnu.org/software/m4/
46609b
# Patch0: update to glibc libio.h removal, rhbz#1573342
46609b
Patch0: m4-1.4.18-glibc-change-work-around.patch
46609b
Requires(post): /sbin/install-info
46609b
Requires(preun): /sbin/install-info
46609b
BuildRequires: autoconf automake
46609b
%ifarch ppc ppc64
46609b
BuildRequires: texinfo
46609b
%endif
46609b
# Gnulib bundled - the library has been granted an exception, see https://fedorahosted.org/fpc/ticket/174
46609b
# Gnulib is not versioned, see m4 ChangeLog for approximate date of Gnulib copy
46609b
Provides: bundled(gnulib)
46609b
46609b
%description
46609b
A GNU implementation of the traditional UNIX macro processor.  M4 is
46609b
useful for writing text files which can be logically parsed, and is used
46609b
by many programs as part of their build process.  M4 has built-in
46609b
functions for including files, running shell commands, doing arithmetic,
46609b
etc.  The autoconf program needs m4 for generating configure scripts, but
46609b
not for running configure scripts.
46609b
46609b
Install m4 if you need a macro processor.
46609b
46609b
%prep
46609b
%setup -q
46609b
%patch0 -p1 -b .glibc-change-work-around
46609b
chmod 644 COPYING
46609b
46609b
%build
46609b
autoreconf -ivf
46609b
%configure
46609b
make %{?_smp_mflags}
46609b
46609b
%install
46609b
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
46609b
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
46609b
46609b
%check
46609b
make %{?_smp_mflags} check
46609b
46609b
%files
46609b
%license COPYING
46609b
%doc AUTHORS ChangeLog NEWS README THANKS TODO
46609b
%{_bindir}/m4
46609b
%{_infodir}/*
46609b
%{_mandir}/man1/m4.1*
46609b
46609b
%post
46609b
if [ -f %{_infodir}/m4.info.gz ]; then # --excludedocs?
46609b
    /sbin/install-info %{_infodir}/m4.info.gz %{_infodir}/dir || :
46609b
fi
46609b
46609b
%preun
46609b
if [ "$1" = 0 ]; then
46609b
    if [ -f %{_infodir}/m4.info.gz ]; then # --excludedocs?
46609b
        /sbin/install-info --delete %{_infodir}/m4.info.gz %{_infodir}/dir || :
46609b
    fi
46609b
fi
46609b
46609b
%changelog
46609b
* Mon Aug 06 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.18-7
46609b
- Work around change in glibc
46609b
  Resolves: #1611732
46609b
46609b
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.18-6
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
46609b
46609b
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.18-5
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
46609b
46609b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.18-4
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
46609b
46609b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.18-3
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
46609b
46609b
* Wed Feb 01 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.4.18-2
46609b
- Add missing %%license macro
46609b
  Resolves: #1418521
46609b
46609b
* Mon Jan 02 2017 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.18-1
46609b
- Update to m4-1.4.18
46609b
  Resolves: #1409340
46609b
46609b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.17-9
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
46609b
46609b
* Mon Jul 13 2015 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.17-8
46609b
- Fix m4 FTBFS in rawhide
46609b
  Resolves: #1239665
46609b
46609b
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.17-7
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
46609b
46609b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.17-6
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
46609b
46609b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.17-5
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
46609b
46609b
* Thu Apr 10 2014 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.17-4
46609b
- Fix ppc64le test fails
46609b
  Resolves: #1083434
46609b
46609b
* Mon Dec 09 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.17-3
46609b
- Buildrequire texinfo for ppc architecture
46609b
  Resolves: #1038230
46609b
46609b
* Tue Nov 12 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.17-2
46609b
- Fix installation of info documentation
46609b
  Resolves: #1020194
46609b
46609b
* Tue Nov 05 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.17-1
46609b
- Update to m4-1.4.17
46609b
  Resolves: #1010895
46609b
- Fix bogus date in the %%changelog
46609b
46609b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.16-9
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
46609b
46609b
* Thu Apr 04 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.16-8
46609b
- Rerun autoreconf
46609b
  Resolves: #926109
46609b
46609b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.16-7
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
46609b
46609b
* Tue Aug 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.16-6
46609b
- Fix issues found by fedora-review utility in the spec file
46609b
46609b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.16-5
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
46609b
46609b
* Mon May 28 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.16-4
46609b
- Fix handling of bundled gnulib in the spec file
46609b
  Resolves: #821777
46609b
46609b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.16-3
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
46609b
46609b
* Tue Sep 20 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.16-2
46609b
- Temporarily fix readlink test to accept EINVAL also
46609b
  Resolves: #739189
46609b
46609b
* Wed Mar 02 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.16-1
46609b
- Update to m4-1.4.16
46609b
46609b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.15-2
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
46609b
46609b
* Tue Sep  7 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.15-1
46609b
- Update to m4-1.4.15 (removed include patch, already applied in upstream source)
46609b
  Resolves: #630709
46609b
46609b
* Mon Mar  1 2010 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.14-1
46609b
- Update to m4-1.4.14
46609b
  Resolves: #568339
46609b
46609b
* Thu Sep  3 2009 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.13-4
46609b
- Fix errors installing m4 with --excludedocs
46609b
  Resolves: #516013
46609b
46609b
* Wed Aug 12 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.4.13-3
46609b
- Use xz compressed upstream tarball.
46609b
46609b
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.13-2
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
46609b
46609b
* Wed May 27 2009 Stepan Kasal <skasal@redhat.com> - 1.4.13-1
46609b
- new upstream release
46609b
- drop the ununsed Source1: %%{SOURCE0}.sig
46609b
- enable %%check again
46609b
46609b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.12-2
46609b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
46609b
46609b
* Wed Nov  5 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.12-1
46609b
- Update to m4-1.4.12
46609b
  Resolves: #469944
46609b
- Merge review
46609b
  Resolves: #226115
46609b
46609b
* Wed Apr 23 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.11-1
46609b
- Update to m4-1.4.11 (removed vasnprintf patch, it's included in
46609b
  upstream source)
46609b
  Resolves: #443589
46609b
46609b
* Mon Feb 11 2008 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.10-3
46609b
- Fix Buildroot
46609b
46609b
* Mon Dec 17 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.10-2
46609b
- Fix vasnprintf puts %%n into a writeable format string in all cases
46609b
  Resolves: #345651
46609b
46609b
* Wed Aug 22 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.10-1
46609b
- Update to m4-1.4.10
46609b
- Fix license to GPL version 3 or later
46609b
46609b
* Tue Jun  5 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.9-1
46609b
- Update to m4-1.4.9
46609b
46609b
* Thu Apr 19 2007 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.4.8-2
46609b
- Rebuild
46609b
46609b
* Sun Nov 26 2006 Miloslav Trmac <mitr@redhat.com> - 1.4.8-1
46609b
- Update to m4-1.4.8
46609b
46609b
* Wed Oct 25 2006 Miloslav Trmac <mitr@redhat.com> - 1.4.7-2
46609b
- Drop %%check again.  SIGPIPE is set to SIG_IGN in mock, which breaks the
46609b
  sysval test.
46609b
46609b
* Tue Oct 24 2006 Miloslav Trmac <mitr@redhat.com> - 1.4.7-1
46609b
- Update to m4-1.4.7
46609b
- Add %%check
46609b
- Fix a rpmlint warning about Summary:
46609b
46609b
* Mon Jul 17 2006 Miloslav Trmac <mitr@redhat.com> - 1.4.5-3
46609b
- Use the install-info scriptlets recommended in the Fedora Extras wiki
46609b
- Move $RPM_BUILD_ROOT cleaning from %%prep to %%install
46609b
46609b
* Mon Jul 17 2006 Tomas Mraz <tmraz@redhat.com> - 1.4.5-2
46609b
- remove infodir/dir so it isn't included in the package
46609b
46609b
* Mon Jul 17 2006 Miloslav Trmac <mitr@redhat.com> - 1.4.5-1
46609b
- Update to m4-1.4.5
46609b
46609b
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.4.4-1.2.2
46609b
- rebuild
46609b
46609b
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.4.4-1.2.1
46609b
- bump again for double-long bug on ppc(64)
46609b
46609b
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.4.4-1.2
46609b
- rebuilt for new gcc4.1 snapshot and glibc changes
46609b
46609b
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
46609b
- rebuilt
46609b
46609b
* Sat Oct 22 2005 Miloslav Trmac <mitr@redhat.com> - 1.4.4-1
46609b
- Update to m4-1.4.4
46609b
46609b
* Sun Sep 18 2005 Miloslav Trmac <mitr@redhat.com> - 1.4.3-2
46609b
- Ship COPYING and ChangeLog
46609b
46609b
* Fri Apr  1 2005 Miloslav Trmac <mitr@redhat.com> - 1.4.3-1
46609b
- Update to m4-1.4.3
46609b
46609b
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 1.4.2-3
46609b
- build with gcc-4
46609b
46609b
* Sun Feb 27 2005 Florian La Roche <laroche@redhat.com>
46609b
- rebuild
46609b
46609b
* Sun Dec 12 2004 Miloslav Trmac <mitr@redhat.com> - 1.4.2-1
46609b
- Update to m4-1.4.2
46609b
46609b
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
46609b
- rebuilt
46609b
46609b
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
46609b
- rebuilt
46609b
46609b
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
46609b
- rebuilt
46609b
46609b
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
46609b
- rebuilt
46609b
46609b
* Mon Nov 11 2002 Florian La Roche <Florian.LaRoche@redhat.de>
46609b
- add french translation file
46609b
46609b
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
46609b
- automated rebuild
46609b
46609b
* Wed Jun 19 2002 Florian La Roche <Florian.LaRoche@redhat.de>
46609b
- do not strip apps
46609b
46609b
* Fri Jun 14 2002 Florian La Roche <Florian.LaRoche@redhat.de>
46609b
- rebuild
46609b
46609b
* Thu May 23 2002 Tim Powers <timp@redhat.com>
46609b
- automated rebuild
46609b
46609b
* Thu Mar 07 2002 Florian La Roche <Florian.LaRoche@redhat.de>
46609b
- use _infodir on popular request #47465
46609b
46609b
* Sat Jan 05 2002 Florian La Roche <Florian.LaRoche@redhat.de>
46609b
- add URL tag
46609b
- improved spec file
46609b
- add hack to update config.guess config.sub
46609b
- fix to build with newer autoconf versions
46609b
46609b
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
46609b
- Bump release + rebuild.
46609b
46609b
* Tue Feb 13 2001 Florian La Roche <Florian.LaRoche@redhat.de>
46609b
- signal patch is not necessary anymore
46609b
- fix printf buffer overflow problem
46609b
46609b
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
46609b
- automatic rebuild
46609b
46609b
* Sat Jun 17 2000 Matt Wilson <msw@redhat.com>
46609b
- added defattr
46609b
46609b
* Mon Jun  5 2000 Bernhard Rosenkraenzer <bero@redhat.com>
46609b
- FHS compliance
46609b
- 1.4.1
46609b
- some fixes to spec file
46609b
46609b
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
46609b
- auto rebuild in the new build environment (release 12)
46609b
46609b
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
46609b
- build against glibc 2.1
46609b
46609b
* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
46609b
- translations modified for de, fr, tr
46609b
46609b
* Fri Apr 10 1998 Cristian Gafton <gafton@redhat.com>
46609b
- Manhattan build
46609b
46609b
* Tue Oct 21 1997 Cristian Gafton <gafton@redhat.com>
46609b
- added info file handling and BuildRoot
46609b
46609b
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
46609b
- built against glibc
46609b