5
Line | |
---|
1 | # |
---|
2 | # Expat 2.xx Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's expat. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: expat-%{expat_version}-%{_host}-%{release} |
---|
12 | Summary: Expat XML Parser v%{expat_version} for target %{_target} on host %{_host} |
---|
13 | Version: %{expat_version} |
---|
14 | Release: %{release} |
---|
15 | URL: http://expat.sourceforge.net/ |
---|
16 | |
---|
17 | # |
---|
18 | # Source |
---|
19 | # |
---|
20 | %source set expat https://github.com/libexpat/libexpat/releases/download/%{expat_version_dir}/expat-%{expat_version}.tar.gz |
---|
21 | |
---|
22 | # |
---|
23 | # Prepare the source code. |
---|
24 | # |
---|
25 | %prep |
---|
26 | build_top=$(pwd) |
---|
27 | |
---|
28 | %source setup expat -q -n expat-%{expat_version} |
---|
29 | %patch setup expat -p1 |
---|
30 | |
---|
31 | cd ${build_top} |
---|
32 | |
---|
33 | %build |
---|
34 | build_top=$(pwd) |
---|
35 | |
---|
36 | cd expat-%{expat_version} |
---|
37 | |
---|
38 | %{host_build_flags} |
---|
39 | |
---|
40 | ./configure \ |
---|
41 | --build=%{_build} --host=%{_host} \ |
---|
42 | --verbose \ |
---|
43 | --prefix=%{_prefix} --bindir=%{_bindir} \ |
---|
44 | --exec-prefix=%{_exec_prefix} \ |
---|
45 | --includedir=%{_includedir} --libdir=%{_libdir} \ |
---|
46 | --mandir=%{_mandir} --infodir=%{_infodir} |
---|
47 | |
---|
48 | %{__make} %{?_smp_mflags} all |
---|
49 | |
---|
50 | cd ${build_top} |
---|
51 | |
---|
52 | %install |
---|
53 | build_top=$(pwd) |
---|
54 | |
---|
55 | rm -rf $SB_BUILD_ROOT |
---|
56 | |
---|
57 | cd expat-%{expat_version} |
---|
58 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
59 | |
---|
60 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.