source: rtems-source-builder/source-builder/config/m4-1-1.cfg @ bcae849

4.104.114.95
Last change on this file since bcae849 was bcae849, checked in by Chris Johns <chrisj@…>, on 02/28/13 at 05:37:27

Cleanup the %setup flags

  • Property mode set to 100644
File size: 1.0 KB
Line 
1#
2# M4 1.xx Version 1.
3#
4# This configuration file configure's, make's and install's m4
5#
6# Warning: this package is only for bootstrapping within a build.
7#
8
9
10Name:      m4-%{m4_version}-%{_host}-%{release}
11Summary:   M4 v%{m4_version} for host %{_host}
12Version:   %{m4_version}
13Release:   %{release}
14URL:       http://www.gnu.org/software/m4/
15BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
16
17#
18# Source
19#
20Source0: ftp://ftp.gnu.org/gnu/m4/m4-%{m4_version}.tar.gz
21
22#
23# Prepare the source code.
24#
25%prep
26%setup -q -c -n %{name}-%{version}
27cd m4-%{m4_version}
28%{?patch0:%patch0 -p1}
29cd ..
30
31%build
32  export PATH="%{_bindir}:${PATH}"
33  cd m4-%{m4_version}
34
35%if "%{_build}" != "%{_host}"
36  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
37%endif
38  CFLAGS="$SB_OPT_FLAGS" \
39  ./configure \
40    --build=%{_build} --host=%{_host} \
41    --verbose --disable-nls \
42    --without-included-gettext \
43    --prefix=$SB_TMPPREFIX
44
45  %{__make} %{?_smp_mflags} all
46
47  cd ..
48
49%install
50  export PATH="%{_bindir}:${PATH}"
51  rm -rf $SB_BUILD_ROOT
52
53  cd m4-%{m4_version}
54  %{__make} install
55
56  cd ..
Note: See TracBrowser for help on using the repository browser.