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

4.104.114.95
Last change on this file since e074e75 was b8b0f44, checked in by Chris Johns <chrisj@…>, on Sep 10, 2013 at 6:19:20 AM

config: Use ${build_top} to change dir to parent.

On NetBSD with ksh changing into a symlink made PWD the link's
target path so a 'cd ..' returned you to that parent and not
the parent you started from. Record the build top and then
change back to that path.

Change the package names to the actual packages and remove the
extra directory in the build tree. This makes the paths simpler.

  • 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#
21Source0: http://downloads.sourceforge.net/project/expat/expat/%{expat_version}/expat-%{expat_version}.tar.gz
22
23#
24# Prepare the source code.
25#
26%prep
27  build_top=$(pwd)
28
29  %setup -q -n expat-%{expat_version}
30  %{?patch0:%patch0 -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.