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.5 KB
|
Line | |
---|
1 | # |
---|
2 | # QEMU 1.x.x Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's QEMU. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: qemu-%{qemu_version}-%{_host}-%{release} |
---|
12 | Summary: Qemu is a simulator of various processors. |
---|
13 | Version: %{qemu_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://www.qemu.org/ |
---|
16 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
17 | |
---|
18 | # |
---|
19 | # Source |
---|
20 | # |
---|
21 | %source set qemu http://wiki.qemu-project.org/download/qemu-%{qemu_version}.tar.bz2 |
---|
22 | |
---|
23 | # |
---|
24 | # Prepare the source code. |
---|
25 | # |
---|
26 | %prep |
---|
27 | build_top=$(pwd) |
---|
28 | |
---|
29 | source_dir_qemu="qemu-%{qemu_version}" |
---|
30 | %source setup qemu -q -n qemu-%{qemu_version} |
---|
31 | %patch setup qemu -p1 |
---|
32 | |
---|
33 | cd ${build_top} |
---|
34 | |
---|
35 | %build |
---|
36 | build_top=$(pwd) |
---|
37 | |
---|
38 | %{build_directory} |
---|
39 | |
---|
40 | mkdir -p ${build_dir} |
---|
41 | cd ${build_dir} |
---|
42 | |
---|
43 | %{host_build_flags} |
---|
44 | |
---|
45 | if test "%{_build}" != "%{_host}" ; then |
---|
46 | CROSS_PREFIX_OPTION="--cross-prefix=%{_host}-" |
---|
47 | fi |
---|
48 | |
---|
49 | SYSROOT=$SB_TMPPREFIX |
---|
50 | |
---|
51 | PKG_CONFIG_PATH=$SYSROOT/lib/pkgconfig \ |
---|
52 | PKG_CONFIG_BUILD_TOP_DIR=$SB_TMPROOT \ |
---|
53 | %{_ld_library_path}=$SYSROOT/lib \ |
---|
54 | LDFLAGS="-Wl,-rpath -Wl,/$SB_PREFIX_CLEAN/lib" \ |
---|
55 | ../${source_dir_qemu}/configure \ |
---|
56 | --prefix=%{_prefix} \ |
---|
57 | ${CROSS_PREFIX_OPTION} \ |
---|
58 | --make=%{__make} \ |
---|
59 | --disable-werror \ |
---|
60 | --disable-tools \ |
---|
61 | --disable-pie \ |
---|
62 | --disable-vnc \ |
---|
63 | --disable-netmap |
---|
64 | |
---|
65 | %{_ld_library_path}=$SYSROOT/lib \ |
---|
66 | %{__make} %{?_smp_mflags} all |
---|
67 | |
---|
68 | cd ${build_top} |
---|
69 | |
---|
70 | %install |
---|
71 | build_top=$(pwd) |
---|
72 | |
---|
73 | %{__rmdir} $SB_BUILD_ROOT |
---|
74 | |
---|
75 | cd ${build_dir} |
---|
76 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
77 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.