| 1 | Summary: The GNU macro processor
|
|---|
| 2 | Name: m4
|
|---|
| 3 | Version: 1.4.17
|
|---|
| 4 | Release: 3%{?dist}
|
|---|
| 5 | License: GPLv3+
|
|---|
| 6 | Group: Applications/Text
|
|---|
| 7 | #Source: http://ftp.gnu.org/gnu/m4/m4-%{version}.tar.xz
|
|---|
| 8 | URL: http://www.gnu.org/software/m4/
|
|---|
| 9 |
|
|---|
| 10 | %define svn_url http://svn.netlabs.org/repos/ports/m4/trunk
|
|---|
| 11 | %define svn_rev 841
|
|---|
| 12 |
|
|---|
| 13 | Source: %{name}-%{version}-r%{svn_rev}.zip
|
|---|
| 14 |
|
|---|
| 15 | BuildRequires: gcc make subversion zip
|
|---|
| 16 |
|
|---|
| 17 | BuildRequires: automake
|
|---|
| 18 | #BuildRequires: makeinfo html2man
|
|---|
| 19 |
|
|---|
| 20 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 21 | #Requires(post): /sbin/install-info
|
|---|
| 22 | #Requires(preun): /sbin/install-info
|
|---|
| 23 |
|
|---|
| 24 | %description
|
|---|
| 25 | A GNU implementation of the traditional UNIX macro processor. M4 is
|
|---|
| 26 | useful for writing text files which can be logically parsed, and is used
|
|---|
| 27 | by many programs as part of their build process. M4 has built-in
|
|---|
| 28 | functions for including files, running shell commands, doing arithmetic,
|
|---|
| 29 | etc. The autoconf program needs m4 for generating configure scripts, but
|
|---|
| 30 | not for running configure scripts.
|
|---|
| 31 |
|
|---|
| 32 | Install m4 if you need a macro processor.
|
|---|
| 33 |
|
|---|
| 34 | %package debug
|
|---|
| 35 | Summary: HLL debug data for exception handling support.
|
|---|
| 36 |
|
|---|
| 37 | %description debug
|
|---|
| 38 | HLL debug data for exception handling support.
|
|---|
| 39 |
|
|---|
| 40 | %prep
|
|---|
| 41 | %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
|---|
| 42 | %setup -q
|
|---|
| 43 | %else
|
|---|
| 44 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 45 | svn export -r %{svn_rev} %{svn_url} . --force
|
|---|
| 46 | rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
|
|---|
| 47 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
|
|---|
| 48 | %endif
|
|---|
| 49 |
|
|---|
| 50 | #chmod 644 COPYING
|
|---|
| 51 |
|
|---|
| 52 | %build
|
|---|
| 53 |
|
|---|
| 54 | export CFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 55 | # YD do not use -Zbin-files
|
|---|
| 56 | export LDFLAGS="-Zomf -Zhigh-mem -Zargs-wild -Zargs-resp"
|
|---|
| 57 | export LIBS="-lurpo -lintl"
|
|---|
| 58 |
|
|---|
| 59 | #export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
|---|
| 60 | #export MAKESHELL="/@unixroot/usr/bin/sh.exe"
|
|---|
| 61 |
|
|---|
| 62 | # We can't bootstrap at the moment as it requires gnulib-tool located in a separate repo;
|
|---|
| 63 | # call autoreconf directly instead
|
|---|
| 64 | #./bootstrap -f
|
|---|
| 65 |
|
|---|
| 66 | # make sure configure is updated to properly support OS/2
|
|---|
| 67 | autoreconf --verbose --install
|
|---|
| 68 |
|
|---|
| 69 | # we don't have makeinfo/help2man yet; fake them (this will wipe docs out)
|
|---|
| 70 | export MAKEINFO=:
|
|---|
| 71 | export HELP2MAN=:
|
|---|
| 72 |
|
|---|
| 73 | %configure
|
|---|
| 74 |
|
|---|
| 75 | make %{?_smp_mflags}
|
|---|
| 76 |
|
|---|
| 77 | %install
|
|---|
| 78 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 79 | make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 80 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 81 | rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
|
|---|
| 82 |
|
|---|
| 83 | #%check
|
|---|
| 84 | #make %{?_smp_mflags} check
|
|---|
| 85 |
|
|---|
| 86 | %files
|
|---|
| 87 | %defattr(-,root,root,-)
|
|---|
| 88 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
|---|
| 89 | %{_bindir}/m4.exe
|
|---|
| 90 | #%{_infodir}/*
|
|---|
| 91 | %{_mandir}/man1/m4.1*
|
|---|
| 92 |
|
|---|
| 93 | %files debug
|
|---|
| 94 | %defattr(-,root,root)
|
|---|
| 95 | %{_bindir}/*.dbg
|
|---|
| 96 |
|
|---|
| 97 | #%post
|
|---|
| 98 | #if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
|
|---|
| 99 | # /sbin/install-info %{_infodir}/m4.info %{_infodir}/dir || :
|
|---|
| 100 | #fi
|
|---|
| 101 |
|
|---|
| 102 | #%preun
|
|---|
| 103 | #if [ "$1" = 0 ]; then
|
|---|
| 104 | # if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
|
|---|
| 105 | # /sbin/install-info --delete %{_infodir}/m4.info %{_infodir}/dir || :
|
|---|
| 106 | # fi
|
|---|
| 107 | #fi
|
|---|
| 108 |
|
|---|
| 109 | %clean
|
|---|
| 110 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 111 |
|
|---|
| 112 | %changelog
|
|---|
| 113 | * Wed Sep 03 2014 yd
|
|---|
| 114 | - added debug package with symbolic info for exceptq.
|
|---|
| 115 |
|
|---|
| 116 | * Wed Sep 3 2014 Dmitriy Kuminov <coding@dmik.org> 1.4.17-2
|
|---|
| 117 | - Rebuild with autoconf 2.69-2.
|
|---|
| 118 |
|
|---|
| 119 | * Fri Aug 29 2014 Dmitriy Kuminov <coding@dmik.org> 1.4.17-1
|
|---|
| 120 | - Updated to version 1.4.17.
|
|---|
| 121 | - Rebuilt with LIBC 0.6.5 and GCC 4.7.3 in attempt to fix some problems (see #28).
|
|---|
| 122 |
|
|---|
| 123 | * Fri Jan 06 2012 yd
|
|---|
| 124 | - update trunk to 1.4.16
|
|---|