Line | |
---|
1 | # |
---|
2 | # microwindows |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's microwindows. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: microwindows-%{microwindows_version}-%{_host}-%{release} |
---|
12 | Summary: microwindows is an Open Source Window System |
---|
13 | Version: %{microwindows_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://www.microwindows.org/ |
---|
16 | |
---|
17 | # |
---|
18 | # microwindows Source |
---|
19 | # |
---|
20 | %source set microwindows --rsb-file=microwindows-%{microwindows_version}.tar.gz https://codeload.github.com/ghaerr/microwindows/tar.gz/%{microwindows_version} |
---|
21 | |
---|
22 | # |
---|
23 | # Prepare the source code. |
---|
24 | # |
---|
25 | %prep |
---|
26 | build_top=$(pwd) |
---|
27 | |
---|
28 | source_dir_microwindows="microwindows-%{microwindows_version}" |
---|
29 | %source setup microwindows -q -n microwindows-%{microwindows_version} |
---|
30 | %patch setup microwindows -p1 |
---|
31 | |
---|
32 | cd ${build_top} |
---|
33 | |
---|
34 | # |
---|
35 | # Build the source code. |
---|
36 | # |
---|
37 | %build |
---|
38 | build_top=$(pwd) |
---|
39 | |
---|
40 | %{build_directory} |
---|
41 | |
---|
42 | mkdir -p ${build_dir}/src |
---|
43 | cd ${build_dir}/src |
---|
44 | cp -r ${build_top}/${source_dir_microwindows}/src/* . |
---|
45 | |
---|
46 | %{host_build_flags} |
---|
47 | %{rtems_makefile_inc} |
---|
48 | |
---|
49 | %{__make} -f Makefile.rtems CONFIG=`pwd`/Configs/config.rtems -k all |
---|
50 | |
---|
51 | cd ${build_top} |
---|
52 | |
---|
53 | %install |
---|
54 | build_top=$(pwd) |
---|
55 | |
---|
56 | %{__rmdir} $SB_BUILD_ROOT |
---|
57 | |
---|
58 | cd ${build_dir}/src |
---|
59 | mkdir -p $SB_BUILD_ROOT/%{_includedir} |
---|
60 | mkdir -p $SB_BUILD_ROOT/%{_libdir} |
---|
61 | mkdir -p $SB_BUILD_ROOT/%{_bindir} |
---|
62 | cp -r include/* $SB_BUILD_ROOT/%{_includedir} |
---|
63 | cp -r lib/*.a $SB_BUILD_ROOT/%{_libdir} |
---|
64 | cp -r bin/* $SB_BUILD_ROOT/%{_bindir} |
---|
Note: See
TracBrowser
for help on using the repository browser.