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

4.104.114.95
Last change on this file since 9a15c40 was 9a15c40, checked in by Chris Johns <chrisj@…>, on 05/13/14 at 13:26:09

sb: Implement %source and %patch to manage source and patches.

Remove the numbered source and patches and automatically manage
sources and patches. This removes the overhead in maintaining large
collections of patches.

  • Property mode set to 100644
File size: 1.1 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#
20%source set m4 ftp://ftp.gnu.org/gnu/m4/m4-%{m4_version}.tar.gz
21
22#
23# Prepare the source code.
24#
25%prep
26  %source setup m4 -q -c -n %{name}-%{version}
27  cd m4-%{m4_version}
28  %patch setup m4 -p1
29  cd ..
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.