File mingw32-libffi.spec of Package mingw32-libffi

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-libffi
Version:        3.0.10
Release:        0
Summary:        Foreign Function Interface library

License:        MIT
Url:            http://sourceware.org/libffi/
Group:          Development/Languages/C and C++
Source:         ftp://sourceware.org/pub/libffi/libffi-%{version}.tar.gz
Patch0:         libffi-3.0.10-win64_no_undefined.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  autoconf automake libtool

%description
The libffi library provides a portable, high level programming interface to various calling conventions. This allows a
programmer to call any function specified by a call interface description at run-time.


%package devel
Summary:        Foreign Function Interface library
Group:          Development/Libraries

%description devel
The libffi library provides a portable, high level programming interface to various calling conventions. This allows a
programmer to call any function specified by a call interface description at run-time.


%{_mingw32_debug_package}

%prep
%setup -q -n libffi-%{version}
%patch0 -p0


%build
autoreconf -f -i
%{_mingw32_configure} \
	--enable-shared --disable-static
make %{?_smp_mflags} || make


%install
make DESTDIR=$RPM_BUILD_ROOT install


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_mingw32_bindir}/libffi-5.dll

%files devel
%defattr(-,root,root)
%{_mingw32_libdir}/libffi-%{version}/include/
%{_mingw32_libdir}/libffi.dll.a
%{_mingw32_libdir}/pkgconfig/libffi.pc
%{_mingw32_datadir}/info/
%{_mingw32_mandir}/man3/

%changelog
openSUSE Build Service is sponsored by