4.104.114.95
Last change
on this file since 9a15c40 was
9a15c40,
checked in by Chris Johns <chrisj@…>, on 05/13/14 at 13:26:09
|
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.4 KB
|
Line | |
---|
1 | # |
---|
2 | # LibFFI 3.x.x Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's LibFFI. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: libffi-%{libffi_version}-%{_host}-%{release} |
---|
12 | Summary: LibFFI provides a portable, high level programming interface to |
---|
13 | various calling conventions. |
---|
14 | Version: %{libffi_version} |
---|
15 | Release: %{release} |
---|
16 | URL: https://sourceware.org/libffi/ |
---|
17 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
18 | |
---|
19 | # |
---|
20 | # Source |
---|
21 | # |
---|
22 | %source set libffi ftp://sourceware.org/pub/libffi/libffi-%{libffi_version}.tar.gz |
---|
23 | |
---|
24 | # |
---|
25 | # Prepare the source code. |
---|
26 | # |
---|
27 | %prep |
---|
28 | build_top=$(pwd) |
---|
29 | |
---|
30 | source_dir_libffi="libffi-%{libffi_version}" |
---|
31 | %source setup libffi -q -n libffi-%{libffi_version} |
---|
32 | %patch setup libffi -p1 |
---|
33 | |
---|
34 | cd ${build_top} |
---|
35 | |
---|
36 | %build |
---|
37 | build_top=$(pwd) |
---|
38 | |
---|
39 | %{build_directory} |
---|
40 | |
---|
41 | mkdir -p ${build_dir} |
---|
42 | cd ${build_dir} |
---|
43 | |
---|
44 | %{host_build_flags} |
---|
45 | |
---|
46 | ../${source_dir_libffi}/configure \ |
---|
47 | --prefix=%{_prefix} \ |
---|
48 | --bindir=%{_bindir} \ |
---|
49 | --exec_prefix=%{_exec_prefix} \ |
---|
50 | --includedir=%{_includedir} \ |
---|
51 | --libdir=%{_libdir} \ |
---|
52 | --libexecdir=%{_libexecdir} \ |
---|
53 | --mandir=%{_mandir} \ |
---|
54 | --infodir=%{_infodir} \ |
---|
55 | --datadir=%{_datadir} \ |
---|
56 | --build=%{_build} --host=%{_host} |
---|
57 | |
---|
58 | %{__make} %{?_smp_mflags} all |
---|
59 | |
---|
60 | cd ${build_top} |
---|
61 | |
---|
62 | %install |
---|
63 | build_top=$(pwd) |
---|
64 | |
---|
65 | %{__rmdir} $SB_BUILD_ROOT |
---|
66 | |
---|
67 | cd ${build_dir} |
---|
68 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
69 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.