5
Last change
on this file since f07504d was
f07504d,
checked in by Sebastian Huber <sebastian.huber@…>, on 01/23/19 at 12:41:30
|
Use HTTPS instead of FTP
FTP is an outdated protocol and blocked by some firewalls.
|
-
Property mode set to
100644
|
File size:
1.3 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 | |
---|
18 | # |
---|
19 | # Source |
---|
20 | # |
---|
21 | %source set libffi https://sourceware.org/pub/libffi/libffi-%{libffi_version}.tar.gz |
---|
22 | |
---|
23 | # |
---|
24 | # Prepare the source code. |
---|
25 | # |
---|
26 | %prep |
---|
27 | build_top=$(pwd) |
---|
28 | |
---|
29 | source_dir_libffi="libffi-%{libffi_version}" |
---|
30 | %source setup libffi -q -n libffi-%{libffi_version} |
---|
31 | %patch setup libffi -p1 |
---|
32 | |
---|
33 | cd ${build_top} |
---|
34 | |
---|
35 | %build |
---|
36 | build_top=$(pwd) |
---|
37 | |
---|
38 | %{build_directory} |
---|
39 | |
---|
40 | mkdir -p ${build_dir} |
---|
41 | cd ${build_dir} |
---|
42 | |
---|
43 | %{host_build_flags} |
---|
44 | |
---|
45 | ../${source_dir_libffi}/configure \ |
---|
46 | --prefix=%{_prefix} \ |
---|
47 | --bindir=%{_bindir} \ |
---|
48 | --exec_prefix=%{_exec_prefix} \ |
---|
49 | --includedir=%{_includedir} \ |
---|
50 | --libdir=%{_libdir} \ |
---|
51 | --libexecdir=%{_libexecdir} \ |
---|
52 | --mandir=%{_mandir} \ |
---|
53 | --infodir=%{_infodir} \ |
---|
54 | --datadir=%{_datadir} \ |
---|
55 | --build=%{_build} --host=%{_host} |
---|
56 | |
---|
57 | %{__make} %{?_smp_mflags} all |
---|
58 | |
---|
59 | cd ${build_top} |
---|
60 | |
---|
61 | %install |
---|
62 | build_top=$(pwd) |
---|
63 | |
---|
64 | %{__rmdir} $SB_BUILD_ROOT |
---|
65 | |
---|
66 | cd ${build_dir} |
---|
67 | %{__make} DESTDIR=$SB_BUILD_ROOT install |
---|
68 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.