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