1 Summary: Foreign Function Interface library (cross MinGW32 version)
2 Summary(pl.UTF-8): Biblioteka Foreign Function Interface (wersja skrośna MinGW32)
3 Name: crossmingw32-libffi
8 Source0: ftp://sourceware.org/pub/libffi/libffi-%{version}.tar.gz
9 # Source0-md5: 79390673f5d07a8fb342bc09b5055b6f
10 URL: http://sources.redhat.com/libffi/
11 BuildRequires: autoconf >= 2.63
12 BuildRequires: automake
13 BuildRequires: libtool
14 BuildRequires: texinfo
15 Requires: crossmingw32-runtime
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define no_install_post_strip 1
20 %define target i386-mingw32
21 %define target_platform i386-pc-mingw32
23 %define _sysprefix /usr
24 %define _prefix %{_sysprefix}/%{target}
25 %define _libdir %{_prefix}/lib
26 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
27 %define _dlldir /usr/share/wine/windows/system
28 %define __cc %{target}-gcc
31 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
34 # -z options are invalid for mingw linker
35 %define filterout_ld -Wl,-z,.*
38 The libffi library provides a portable, high level programming
39 interface to various calling conventions. This allows a programmer to
40 call any function specified by a call interface description at
43 Ffi stands for Foreign Function Interface. A foreign function
44 interface is the popular name for the interface that allows code
45 written in one language to call code written in another language. The
46 libffi library really only provides the lowest, machine dependent
47 layer of a fully featured foreign function interface. A layer must
48 exist above libffi that handles type conversions for values passed
49 between the two languages.
51 This package contains the cross version for MinGW32.
53 %description -l pl.UTF-8
54 Biblioteka libffi dostarcza przenośny, wysokopoziomowy interfejs do
55 różnych konwencji wywołań funkcji. Pozwala to programiście wywołać
56 dowolną funkcję podaną przez opis interfejsu wywołania w czasie
59 FFI to skrót od Foreign Function Interface, czyli interfejsu do obcych
60 funkcji. Jest to potoczna nazwa interfejsu pozwalającego programowi
61 napisanemu w jednym języku wywoływać kod napisany w innym języku.
62 Biblioteka libffi daje tylko najniższą, zależną od maszyny warstwę
63 pełnego interfejsu. Potrzebne są wyższe warstwy do obsługi konwersji
64 typów dla wartości przekazywanych pomiędzy różnymi językami.
66 Ten pakiet zawiera wersję skrośną dla MinGW32.
69 Summary: Static libffi library (cross MinGW32 version)
70 Summary(pl.UTF-8): Statyczna biblioteka libffi (wersja skrośna MinGW32)
71 Group: Development/Libraries
72 Requires: %{name} = %{version}-%{release}
75 Static libffi library (cross MinGW32 version).
77 %description static -l pl.UTF-8
78 Statyczna biblioteka libffi (wersja skrośna MinGW32).
81 Summary: Foreign Function Interface DLL library for Windows
82 Summary(pl.UTF-8): Biblioteka DLL Foreign Function Interface dla Windows
83 Group: Applications/Emulators
87 Foreign Function Interface DLL library for Windows.
89 %description dll -l pl.UTF-8
90 Biblioteka DLL Foreign Function Interface dla Windows.
93 %setup -q -n libffi-%{version}
108 rm -rf $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
113 install -d $RPM_BUILD_ROOT%{_dlldir}
114 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
117 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
118 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
121 %{__rm} -r $RPM_BUILD_ROOT{%{_mandir},%{_infodir}}
124 rm -rf $RPM_BUILD_ROOT
127 %defattr(644,root,root,755)
128 %doc ChangeLog* LICENSE README
129 %{_libdir}/libffi.dll.a
131 %{_libdir}/libffi-%{version}
132 %{_pkgconfigdir}/libffi.pc
135 %defattr(644,root,root,755)
139 %defattr(644,root,root,755)
140 %{_dlldir}/libffi-5.dll