source: rtems-source-builder/source-builder/config/expat-2-1.cfg @ 9a15c40

4.104.114.95
Last change on this file since 9a15c40 was 9a15c40, checked in by Chris Johns <chrisj@…>, on May 13, 2014 at 1:26:09 PM

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.2 KB
RevLine 
[4861d2e]1#
2# Expat 2.xx Version 1.
3#
4# This configuration file configure's, make's and install's expat.
5#
6
[2181fb8]7%if %{release} == %{nil}
8%define release 1
[4861d2e]9%endif
10
[7ff4c5b]11Name:      expat-%{expat_version}-%{_host}-%{release}
[4861d2e]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#
[9a15c40]21%source set expat http://downloads.sourceforge.net/project/expat/expat/%{expat_version}/expat-%{expat_version}.tar.gz
[4861d2e]22
23#
24# Prepare the source code.
25#
26%prep
[b8b0f44]27  build_top=$(pwd)
28
[9a15c40]29  %source setup expat -q -n expat-%{expat_version}
30  %patch setup expat -p1
[b8b0f44]31
32  cd ${build_top}
[4861d2e]33
34%build
[b8b0f44]35  build_top=$(pwd)
36
[4861d2e]37  cd expat-%{expat_version}
38
[db65c6a]39  %{host_build_flags}
[4f26bdb]40
[4861d2e]41  ./configure \
42    --build=%{_build} --host=%{_host} \
[ebc505c]43    --verbose \
[4861d2e]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
[b8b0f44]51  cd ${build_top}
[4861d2e]52
53%install
[b8b0f44]54  build_top=$(pwd)
55
[a77f784]56  rm -rf $SB_BUILD_ROOT
[4861d2e]57
58  cd expat-%{expat_version}
[a77f784]59  %{__make} DESTDIR=$SB_BUILD_ROOT install
[4861d2e]60
[b8b0f44]61  cd ${build_top}
Note: See TracBrowser for help on using the repository browser.