]> git.pld-linux.org Git - packages/crossmingw32-libffi.git/blame - crossmingw32-libffi.spec
- updated to 3.0.13
[packages/crossmingw32-libffi.git] / crossmingw32-libffi.spec
CommitLineData
5a3544d1
JB
1Summary: Foreign Function Interface library (cross MinGW32 version)
2Summary(pl.UTF-8): Biblioteka Foreign Function Interface (wersja skrośna MinGW32)
3Name: crossmingw32-libffi
c3671c6c 4Version: 3.0.13
5a3544d1
JB
5Release: 1
6License: MIT-like
7Group: Libraries
8Source0: ftp://sourceware.org/pub/libffi/libffi-%{version}.tar.gz
c3671c6c 9# Source0-md5: 45f3b6dbc9ee7c7dfbbbc5feba571529
5a3544d1 10URL: http://sources.redhat.com/libffi/
5a3544d1
JB
11BuildRequires: texinfo
12Requires: crossmingw32-runtime
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%define no_install_post_strip 1
16
17%define target i386-mingw32
18%define target_platform i386-pc-mingw32
19
20%define _sysprefix /usr
21%define _prefix %{_sysprefix}/%{target}
22%define _libdir %{_prefix}/lib
23%define _pkgconfigdir %{_prefix}/lib/pkgconfig
24%define _dlldir /usr/share/wine/windows/system
25%define __cc %{target}-gcc
26
27%ifnarch %{ix86}
28# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
29%define optflags -O2
30%endif
a39e0238
JB
31# -z options are invalid for mingw linker, most of -f options are Linux-specific
32%define filterout_ld -Wl,-z,.*
33%define filterout_c -f[-a-z0-9=]*
5a3544d1
JB
34
35%description
36The libffi library provides a portable, high level programming
37interface to various calling conventions. This allows a programmer to
38call any function specified by a call interface description at
39run-time.
40
41Ffi stands for Foreign Function Interface. A foreign function
42interface is the popular name for the interface that allows code
43written in one language to call code written in another language. The
44libffi library really only provides the lowest, machine dependent
45layer of a fully featured foreign function interface. A layer must
46exist above libffi that handles type conversions for values passed
47between the two languages.
48
49This package contains the cross version for MinGW32.
50
51%description -l pl.UTF-8
52Biblioteka libffi dostarcza przenośny, wysokopoziomowy interfejs do
53różnych konwencji wywołań funkcji. Pozwala to programiście wywołać
54dowolną funkcję podaną przez opis interfejsu wywołania w czasie
55działania programu.
56
57FFI to skrót od Foreign Function Interface, czyli interfejsu do obcych
58funkcji. Jest to potoczna nazwa interfejsu pozwalającego programowi
59napisanemu w jednym języku wywoływać kod napisany w innym języku.
60Biblioteka libffi daje tylko najniższą, zależną od maszyny warstwę
61pełnego interfejsu. Potrzebne są wyższe warstwy do obsługi konwersji
62typów dla wartości przekazywanych pomiędzy różnymi językami.
63
64Ten pakiet zawiera wersję skrośną dla MinGW32.
65
66%package static
67Summary: Static libffi library (cross MinGW32 version)
68Summary(pl.UTF-8): Statyczna biblioteka libffi (wersja skrośna MinGW32)
69Group: Development/Libraries
70Requires: %{name} = %{version}-%{release}
71
72%description static
73Static libffi library (cross MinGW32 version).
74
75%description static -l pl.UTF-8
76Statyczna biblioteka libffi (wersja skrośna MinGW32).
77
78%package dll
79Summary: Foreign Function Interface DLL library for Windows
80Summary(pl.UTF-8): Biblioteka DLL Foreign Function Interface dla Windows
81Group: Applications/Emulators
82Requires: wine
83
84%description dll
85Foreign Function Interface DLL library for Windows.
86
87%description dll -l pl.UTF-8
88Biblioteka DLL Foreign Function Interface dla Windows.
89
90%prep
91%setup -q -n libffi-%{version}
92
93%build
5a3544d1
JB
94%configure \
95 --target=%{target} \
96 --host=%{target}
97
98%{__make}
99
100%install
101rm -rf $RPM_BUILD_ROOT
102
103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
105
106install -d $RPM_BUILD_ROOT%{_dlldir}
107mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
108
109%if 0%{!?debug:1}
110%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
111%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
112%endif
113
114%{__rm} -r $RPM_BUILD_ROOT{%{_mandir},%{_infodir}}
115
116%clean
117rm -rf $RPM_BUILD_ROOT
118
119%files
120%defattr(644,root,root,755)
121%doc ChangeLog* LICENSE README
122%{_libdir}/libffi.dll.a
123%{_libdir}/libffi.la
124%{_libdir}/libffi-%{version}
125%{_pkgconfigdir}/libffi.pc
126
127%files static
128%defattr(644,root,root,755)
129%{_libdir}/libffi.a
130
131%files dll
132%defattr(644,root,root,755)
5185441b 133%{_dlldir}/libffi-6.dll
This page took 0.094078 seconds and 4 git commands to generate.