File mingw64-libffi.spec of Package mingw64-libffi

#
# spec file for package mingw64-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:           mingw64-libffi
Version:        3.4.8
Release:        0
Summary:        Foreign Function Interface library
License:        MIT
Group:          Development/Languages/C and C++
URL:            https://sourceware.org/libffi/
Source:         https://github.com/libffi/libffi/releases/download/v%{version}/libffi-%{version}.tar.gz
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
%_mingw64_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 mingw64-libffi8
Summary:        MinGW Windows port of the Foreign Function Interface library
Group:          System/Libraries
Obsoletes:      mingw64-libffi < %{version}
Provides:       mingw64-libffi = %{version}

%description -n mingw64-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:       mingw64-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.

%_mingw64_debug_package

%prep
%autosetup -n libffi-%{version}

%build
%{_mingw64_configure} \
	--enable-shared --disable-static
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files -n mingw64-libffi8
%{_mingw64_bindir}/libffi-8.dll

%files devel
%{_mingw64_includedir}/ffi.h
%{_mingw64_includedir}/ffitarget.h
%{_mingw64_libdir}/libffi.dll.a
%{_mingw64_libdir}/pkgconfig/libffi.pc
%{_mingw64_mandir}/man3/*.3%{?ext_man}
%{_mingw64_infodir}/libffi.info%{?ext_info}

%changelog
openSUSE Build Service is sponsored by