File mingw32-libffi.spec of Package mingw32-libffi
#
# spec file for package mingw32-libffi
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw32-libffi
Version: 3.4.2
Release: 0
Summary: Foreign Function Interface library
License: MIT
Group: Development/Languages/C and C++
Url: http://sourceware.org/libffi/
Source: ftp://sourceware.org/pub/libffi/libffi-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
%_mingw32_package_header_debug
BuildArch: noarch
%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 -n mingw32-libffi8
Summary: MinGW Windows port of the Foreign Function Interface library
Group: System/Libraries
Obsoletes: mingw32-libffi
%description -n mingw32-libffi8
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/C and C++
Requires: mingw32-libffi8 = %{version}
%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}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw32_cache}
%{_mingw32_configure} \
--enable-shared --disable-static
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -f %{buildroot}%{_mingw32_datadir}/info/dir*
%files -n mingw32-libffi8
%defattr(-,root,root)
%{_mingw32_bindir}/libffi-8.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/*.h
%{_mingw32_libdir}/libffi.dll.a
%{_mingw32_libdir}/pkgconfig/libffi.pc
%{_mingw32_infodir}/libffi.info*
%{_mingw32_mandir}/man3/
%changelog