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

4.104.114.95
Last change on this file since 9a15c40 was 9a15c40, checked in by Chris Johns <chrisj@…>, on May 13, 2014 at 1:26:09 PM

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: 936 bytes
Line 
1#
2# DTC 1.x.x Version 1.
3#
4# This configuration file configure's, make's and install's DTC.
5#
6
7%if %{release} == %{nil}
8%define release 1
9%endif
10
11Name:      dtc-%{dtc_version}-%{_host}-%{release}
12Summary:   Device Tree Compiler v%{dtc_version} for target %{_target} on host %{_host}
13Version:   %{dtc_version}
14Release:   %{release}
15URL:       http://www.jdl.com/software/
16BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
17
18#
19# Source
20#
21%source set dtc http://www.jdl.com/software/dtc-v%{dtc_version}.tgz
22
23#
24# Prepare the source code.
25#
26%prep
27  build_top=$(pwd)
28
29  %source setup dtc -q -n dtc-v%{dtc_version}
30  %patch setup dtc -p1
31
32  cd ${build_top}
33
34%build
35  build_top=$(pwd)
36
37  cd dtc-v%{dtc_version}
38
39  %{build_build_flags}
40
41  %{__make} PREFIX=%{_prefix}
42
43  cd ${build_top}
44
45%install
46  build_top=$(pwd)
47
48  rm -rf $SB_BUILD_ROOT
49
50  cd dtc-v%{dtc_version}
51  %{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
52
53  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.