4.104.114.95
Last change
on this file since 63ab31b 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:
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 | |
---|
11 | Name: dtc-%{dtc_version}-%{_host}-%{release} |
---|
12 | Summary: Device Tree Compiler v%{dtc_version} for target %{_target} on host %{_host} |
---|
13 | Version: %{dtc_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://www.jdl.com/software/ |
---|
16 | BuildRoot: %{_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.