13290
|
1 |
#
|
|
2 |
# spec file for package libffi
|
|
3 |
#
|
|
4 |
#
|
15520
|
5 |
# Copyright 2009 Sun Microsystems, Inc.
|
13290
|
6 |
# This file and all modifications and additions to the pristine
|
|
7 |
# package are under the same license as the package itself.
|
|
8 |
#
|
16434
|
9 |
%define owner laca
|
13290
|
10 |
#
|
16430
|
11 |
|
|
12 |
%define OSR 9803:3.0.5
|
|
13 |
|
13290
|
14 |
Name: libffi
|
17842
|
15 |
License: MIT
|
|
16 |
Vendor: sourceware.org
|
13290
|
17 |
Group: Development/Libraries/C and C++
|
|
18 |
Summary: Foreign Function Interface Library
|
17946
|
19 |
Version: 3.0.9
|
13290
|
20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
21 |
Source0: ftp://sources.redhat.com/pub/libffi/libffi-%{version}.tar.gz
|
|
22 |
# owner:laca date:2008-03-23 type:bug
|
|
23 |
Patch1: libffi-01-__i386__.diff
|
17946
|
24 |
# owner:ginnchen date:2010-04-28 type:bug
|
|
25 |
# patch by Rainer Orth
|
|
26 |
Patch2: libffi-02-SHT_AMD64_UNWIND.diff
|
13290
|
27 |
URL: http://sourceware.org/libffi/
|
|
28 |
|
|
29 |
%prep
|
|
30 |
%setup -q
|
|
31 |
%patch1 -p1
|
17946
|
32 |
%patch2 -p1
|
13290
|
33 |
|
|
34 |
%build
|
|
35 |
export CC="/usr/sfw/bin/gcc -static-libgcc"
|
|
36 |
export LD="$CC"
|
|
37 |
export CFLAGS="%gcc_optflags"
|
|
38 |
export LDFLAGS="%_ldflags"
|
|
39 |
|
17946
|
40 |
libtoolize -f
|
13290
|
41 |
aclocal-1.9 $ACLOCAL_FLAGS
|
|
42 |
automake-1.9 -a -c -f
|
17946
|
43 |
autoheader configure.ac
|
13290
|
44 |
autoconf
|
|
45 |
./configure \
|
|
46 |
--prefix=%{_prefix} \
|
|
47 |
--libdir=%{_libdir} \
|
|
48 |
--disable-static
|
|
49 |
|
|
50 |
echo '#define FFI_NO_RAW_API 1' >> fficonfig.h
|
|
51 |
|
|
52 |
make
|
|
53 |
|
|
54 |
%install
|
|
55 |
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
56 |
|
|
57 |
%clean
|
|
58 |
rm -rf ${RPM_BUILD_ROOT}
|
|
59 |
|
|
60 |
%changelog -n libffi
|
17946
|
61 |
* Wed Apr 28 2010 - [email protected]
|
|
62 |
- bump to 3.0.9, add libffi-02-SHT_AMD64_UNWIND.diff
|
15520
|
63 |
* Mon Mar 30 2009 - [email protected]
|
|
64 |
- bump to 3.0.8
|
13290
|
65 |
* Fri Mar 23 2008 - [email protected]
|
|
66 |
- initial spec
|