4.11
Last change
on this file since 62f68d9 was
62f68d9,
checked in by Chris Johns <chrisj@…>, on 03/04/18 at 21:37:00
|
The libexpat project has moved to github. Fetch expat from github.
Closes #3316
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
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 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
17 | |
---|
18 | # |
---|
19 | # Source |
---|
20 | # |
---|
21 | %source set expat https://github.com/libexpat/libexpat/releases/download/%{expat_version_dir}/expat-%{expat_version}.tar.gz |
---|
22 | |
---|
23 | # |
---|
24 | # Prepare the source code. |
---|
25 | # |
---|
26 | %prep |
---|
27 | build_top=$(pwd) |
---|
28 | |
---|
29 | %source setup expat -q -n expat-%{expat_version} |
---|
30 | %patch setup expat -p1 |
---|
31 | |
---|
32 | cd ${build_top} |
---|
33 | |
---|
34 | %build |
---|
35 | build_top=$(pwd) |
---|
36 | |
---|
37 | cd expat-%{expat_version} |
---|
38 | |
---|
39 | %{host_build_flags} |
---|
40 | |
---|
41 | ./configure \ |
---|
42 | --build=%{_build} --host=%{_host} \ |
---|
43 | --verbose \ |
---|
44 | --prefix=%{_prefix} --bindir=%{_bindir} \ |
---|
45 | --exec-prefix=%{_exec_prefix} \ |
---|
46 | --includedir=%{_includedir} --libdir=%{_libdir} \ |
---|
47 | --mandir=%{_mandir} --infodir=%{_infodir} |
---|
48 | |
---|
49 | %{__make} %{?_smp_mflags} all |
---|
50 | |
---|
51 | cd ${build_top} |
---|
52 | |
---|
53 | %install |
---|
54 | build_top=$(pwd) |
---|
55 | |
---|
56 | rm -rf $SB_BUILD_ROOT |
---|
57 | |
---|
58 | cd expat-%{expat_version} |
---|
59 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
60 | |
---|
61 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.