source: rtems-source-builder/source-builder/config/expat-2-1.cfg @ 4b3e0f8

5
Last change on this file since 4b3e0f8 was 4b3e0f8, checked in by Chris Johns <chrisj@…>, on Mar 4, 2018 at 9:29:40 PM

The libexpat project has moved to github. Fetch expat from github.

Close #3315

  • 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
11Name:      expat-%{expat_version}-%{_host}-%{release}
12Summary:   Expat XML Parser v%{expat_version} for target %{_target} on host %{_host}
13Version:   %{expat_version}
14Release:   %{release}
15URL:       http://expat.sourceforge.net/
16BuildRoot: %{_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.