%{?scl:%scl_package m4} %{!?scl:%global pkg_name m4} %if 0%{?fedora} || 0%{?rhel} >= 7 %global brp_python_hardlink /usr/lib/rpm/brp-python-hardlink %else %global brp_python_hardlink /usr/lib/rpm/redhat/brp-python-hardlink %endif %if 0%{?rhel} == 6 %global __os_install_post /usr/lib/rpm/brp-compress \ %{!?__debug_package:/usr/lib/rpm/brp-strip %{__strip}} \ /usr/lib/rpm/brp-strip-static-archive %{__strip} \ /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} %else %global __os_install_post /usr/lib/rpm/brp-compress \ %{!?__debug_package:/usr/lib/rpm/brp-strip %{__strip}} \ /usr/lib/rpm/brp-strip-static-archive %{__strip} \ /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} \ %{brp_python_hardlink} %endif Summary: The GNU macro processor Name: devtoolset-3-m4 Version: 1.4.13 Release: 5%{?dist} License: GPLv3+ Group: Applications/Text Source: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz URL: http://www.gnu.org/software/m4/ Patch0: m4-1.4.13-include.patch Buildroot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) %{?scl:Requires: %{scl}-runtime} %{?scl:BuildRequires: %{scl}-runtime} Requires(post): /sbin/install-info Requires(preun): /sbin/install-info %description A GNU implementation of the traditional UNIX macro processor. M4 is useful for writing text files which can be logically parsed, and is used by many programs as part of their build process. M4 has built-in functions for including files, running shell commands, doing arithmetic, etc. The autoconf program needs m4 for generating configure scripts, but not for running configure scripts. Install m4 if you need a macro processor. %prep %{?scl:scl enable %{scl} - << \EOF} set -ex %setup -n %{pkg_name}-%{version} -q %patch0 -p1 -b .include chmod 644 COPYING %{?scl:EOF} %build %{?scl:scl enable %{scl} - << \EOF} set -ex %configure make %{?_smp_mflags} %{?scl:EOF} %install %{?scl:scl enable %{scl} - << \EOF} set -ex rm -rf $RPM_BUILD_ROOT make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_infodir}/dir %{?scl:EOF} %check %{?scl:scl enable %{scl} - << \EOF} set -ex make %{?_smp_mflags} check %{?scl:EOF} %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO %{_bindir}/m4 %{_infodir}/* %{_mandir}/man1/m4.1* %post %{?scl:scl enable %{scl} - << \EOF} set -ex if [ -f %{_infodir}/m4.info ]; then # --excludedocs? /sbin/install-info %{_infodir}/m4.info %{_infodir}/dir || : fi %{?scl:EOF} %preun %{?scl:scl enable %{scl} - << \EOF} set -ex if [ "$1" = 0 ]; then if [ -f %{_infodir}/m4.info ]; then # --excludedocs? /sbin/install-info --delete %{_infodir}/m4.info %{_infodir}/dir || : fi fi %{?scl:EOF} %clean %{?scl:scl enable %{scl} - << \EOF} set -ex rm -rf $RPM_BUILD_ROOT %{?scl:EOF} %changelog * Thu Jun 3 2010 Vitezslav Crhonek - 1.4.13-5 - Include sys/stat.h in path.c * Mon Nov 30 2009 Dennis Gregorovic - 1.4.13-4.1 - Rebuilt for RHEL 6 * Thu Sep 3 2009 Vitezslav Crhonek - 1.4.13-4 - Fix errors installing m4 with --excludedocs Resolves: #516013 * Wed Aug 12 2009 Ville Skyttä - 1.4.13-3 - Use xz compressed upstream tarball. * Sat Jul 25 2009 Fedora Release Engineering - 1.4.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed May 27 2009 Stepan Kasal - 1.4.13-1 - new upstream release - drop the ununsed Source1: %%{SOURCE0}.sig - enable %%check again * Wed Feb 25 2009 Fedora Release Engineering - 1.4.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Nov 5 2008 Vitezslav Crhonek - 1.4.12-1 - Update to m4-1.4.12 Resolves: #469944 - Merge review Resolves: #226115 * Wed Apr 23 2008 Vitezslav Crhonek - 1.4.11-1 - Update to m4-1.4.11 (removed vasnprintf patch, it's included in upstream source) Resolves: #443589 * Mon Feb 11 2008 Vitezslav Crhonek - 1.4.10-3 - Fix Buildroot * Mon Dec 17 2007 Vitezslav Crhonek - 1.4.10-2 - Fix vasnprintf puts %%n into a writeable format string in all cases Resolves: #345651 * Wed Aug 22 2007 Vitezslav Crhonek - 1.4.10-1 - Update to m4-1.4.10 - Fix license to GPL version 3 or later * Tue Jun 5 2007 Vitezslav Crhonek - 1.4.9-1 - Update to m4-1.4.9 * Thu Apr 19 2007 Vitezslav Crhonek - 1.4.8-2 - Rebuild * Sun Nov 26 2006 Miloslav Trmac - 1.4.8-1 - Update to m4-1.4.8 * Wed Oct 25 2006 Miloslav Trmac - 1.4.7-2 - Drop %%check again. SIGPIPE is set to SIG_IGN in mock, which breaks the sysval test. * Tue Oct 24 2006 Miloslav Trmac - 1.4.7-1 - Update to m4-1.4.7 - Add %%check - Fix a rpmlint warning about Summary: * Mon Jul 17 2006 Miloslav Trmac - 1.4.5-3 - Use the install-info scriptlets recommended in the Fedora Extras wiki - Move $RPM_BUILD_ROOT cleaning from %%prep to %%install * Mon Jul 17 2006 Tomas Mraz - 1.4.5-2 - remove infodir/dir so it isn't included in the package * Mon Jul 17 2006 Miloslav Trmac - 1.4.5-1 - Update to m4-1.4.5 * Wed Jul 12 2006 Jesse Keating - 1.4.4-1.2.2 - rebuild * Fri Feb 10 2006 Jesse Keating - 1.4.4-1.2.1 - bump again for double-long bug on ppc(64) * Tue Feb 07 2006 Jesse Keating - 1.4.4-1.2 - rebuilt for new gcc4.1 snapshot and glibc changes * Fri Dec 09 2005 Jesse Keating - rebuilt * Sat Oct 22 2005 Miloslav Trmac - 1.4.4-1 - Update to m4-1.4.4 * Sun Sep 18 2005 Miloslav Trmac - 1.4.3-2 - Ship COPYING and ChangeLog * Fri Apr 1 2005 Miloslav Trmac - 1.4.3-1 - Update to m4-1.4.3 * Wed Mar 02 2005 Karsten Hopp 1.4.2-3 - build with gcc-4 * Sun Feb 27 2005 Florian La Roche - rebuild * Sun Dec 12 2004 Miloslav Trmac - 1.4.2-1 - Update to m4-1.4.2 * Tue Jun 15 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed Jan 22 2003 Tim Powers - rebuilt * Mon Nov 11 2002 Florian La Roche - add french translation file * Fri Jun 21 2002 Tim Powers - automated rebuild * Wed Jun 19 2002 Florian La Roche - do not strip apps * Fri Jun 14 2002 Florian La Roche - rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Thu Mar 07 2002 Florian La Roche - use _infodir on popular request #47465 * Sat Jan 05 2002 Florian La Roche - add URL tag - improved spec file - add hack to update config.guess config.sub - fix to build with newer autoconf versions * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Tue Feb 13 2001 Florian La Roche - signal patch is not necessary anymore - fix printf buffer overflow problem * Wed Jul 12 2000 Prospector - automatic rebuild * Sat Jun 17 2000 Matt Wilson - added defattr * Mon Jun 5 2000 Bernhard Rosenkraenzer - FHS compliance - 1.4.1 - some fixes to spec file * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 12) * Thu Dec 17 1998 Cristian Gafton - build against glibc 2.1 * Fri Apr 24 1998 Prospector System - translations modified for de, fr, tr * Fri Apr 10 1998 Cristian Gafton - Manhattan build * Wed Oct 21 1997 Cristian Gafton - added info file handling and BuildRoot * Mon Jun 02 1997 Erik Troan - built against glibc