| 1 | Summary: The GNU macro processor
|
|---|
| 2 | Name: m4
|
|---|
| 3 | Version: 1.4.15
|
|---|
| 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 | Patch0: m4-os2.diff
|
|---|
| 11 |
|
|---|
| 12 | Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 13 | #Requires(post): /sbin/install-info
|
|---|
| 14 | #Requires(preun): /sbin/install-info
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | A GNU implementation of the traditional UNIX macro processor. M4 is
|
|---|
| 18 | useful for writing text files which can be logically parsed, and is used
|
|---|
| 19 | by many programs as part of their build process. M4 has built-in
|
|---|
| 20 | functions for including files, running shell commands, doing arithmetic,
|
|---|
| 21 | etc. The autoconf program needs m4 for generating configure scripts, but
|
|---|
| 22 | not for running configure scripts.
|
|---|
| 23 |
|
|---|
| 24 | Install m4 if you need a macro processor.
|
|---|
| 25 |
|
|---|
| 26 | %prep
|
|---|
| 27 | %setup -q
|
|---|
| 28 | %patch0 -p1 -b .os2~
|
|---|
| 29 | #chmod 644 COPYING
|
|---|
| 30 |
|
|---|
| 31 | %build
|
|---|
| 32 | # YD do not use -Zbin-files
|
|---|
| 33 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 34 | export LIBS="-lintl -lurpo"
|
|---|
| 35 | export CONFIG_SHELL="/bin/sh"
|
|---|
| 36 | %configure \
|
|---|
| 37 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 38 |
|
|---|
| 39 | make %{?_smp_mflags}
|
|---|
| 40 |
|
|---|
| 41 | %install
|
|---|
| 42 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 43 | make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 44 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 45 | rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 | #%check
|
|---|
| 49 | #make %{?_smp_mflags} check
|
|---|
| 50 |
|
|---|
| 51 | %files
|
|---|
| 52 | %defattr(-,root,root,-)
|
|---|
| 53 | %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
|
|---|
| 54 | %{_bindir}/m4.exe
|
|---|
| 55 | %{_infodir}/*
|
|---|
| 56 | %{_mandir}/man1/m4.1*
|
|---|
| 57 |
|
|---|
| 58 | #%post
|
|---|
| 59 | #if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
|
|---|
| 60 | # /sbin/install-info %{_infodir}/m4.info %{_infodir}/dir || :
|
|---|
| 61 | #fi
|
|---|
| 62 |
|
|---|
| 63 | #%preun
|
|---|
| 64 | #if [ "$1" = 0 ]; then
|
|---|
| 65 | # if [ -f %{_infodir}/m4.info ]; then # --excludedocs?
|
|---|
| 66 | # /sbin/install-info --delete %{_infodir}/m4.info %{_infodir}/dir || :
|
|---|
| 67 | # fi
|
|---|
| 68 | #fi
|
|---|
| 69 |
|
|---|
| 70 | %clean
|
|---|
| 71 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 72 |
|
|---|
| 73 | %changelog
|
|---|