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