2017-02-07 09:59:00 +00:00
|
|
|
#
|
2017-02-08 09:00:52 +00:00
|
|
|
# spec file for package libffi
|
2017-02-07 09:59:00 +00:00
|
|
|
#
|
2024-03-20 08:11:13 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-02-07 09:59:00 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-18 10:13:24 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-02-07 09:59:00 +00:00
|
|
|
#
|
|
|
|
|
2017-03-14 08:50:31 +00:00
|
|
|
|
2020-03-10 10:06:48 +00:00
|
|
|
%define libffi_sover 8
|
2017-02-08 09:00:52 +00:00
|
|
|
Name: libffi
|
2024-03-20 08:11:13 +00:00
|
|
|
Version: 3.4.6
|
2017-02-07 09:59:00 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Foreign Function Interface Library
|
2017-02-28 14:51:35 +00:00
|
|
|
License: MIT
|
2017-02-07 09:59:00 +00:00
|
|
|
Group: Development/Languages/C and C++
|
2021-11-29 09:53:30 +00:00
|
|
|
URL: https://sourceware.org/libffi/
|
|
|
|
Source: https://github.com/libffi/libffi/releases/download/v%{version}/libffi-%{version}.tar.gz
|
2017-03-14 08:50:31 +00:00
|
|
|
Source99: baselibs.conf
|
2024-03-20 08:11:13 +00:00
|
|
|
# Fix BTI for aarch64 with PR 830
|
|
|
|
Patch1: https://github.com/libffi/libffi/pull/830.patch
|
2017-02-07 09:59:00 +00:00
|
|
|
# for make check
|
2017-03-14 08:50:31 +00:00
|
|
|
BuildRequires: dejagnu
|
|
|
|
BuildRequires: expect
|
2021-11-29 09:53:30 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: pkgconfig
|
2017-02-07 09:59:00 +00:00
|
|
|
|
|
|
|
%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
|
2017-02-08 09:00:52 +00:00
|
|
|
Summary: Include files for development with libffi
|
2017-03-14 08:50:31 +00:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libffi%{libffi_sover} = %{version}
|
2017-02-07 09:59:00 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%package -n libffi%{libffi_sover}
|
2017-03-14 08:50:31 +00:00
|
|
|
Summary: Foreign Function Interface Library
|
2017-02-07 09:59:00 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libffi%{libffi_sover}
|
|
|
|
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.
|
|
|
|
|
|
|
|
%post -n libffi%{libffi_sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libffi%{libffi_sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%prep
|
2022-10-10 12:16:48 +00:00
|
|
|
%autosetup -p1
|
2017-02-07 09:59:00 +00:00
|
|
|
|
|
|
|
%build
|
2021-12-02 08:20:43 +00:00
|
|
|
# https://github.com/libffi/libffi/pull/647
|
|
|
|
%configure --disable-exec-static-tramp
|
2021-11-29 09:53:30 +00:00
|
|
|
%make_build
|
2017-02-07 09:59:00 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
# do not disable "make check", FIX THE BUGS!
|
2021-11-29 09:53:30 +00:00
|
|
|
%make_build check
|
2017-02-07 09:59:00 +00:00
|
|
|
|
|
|
|
%install
|
2021-11-29 09:53:30 +00:00
|
|
|
%make_install
|
2017-02-07 09:59:00 +00:00
|
|
|
# do not package the static library
|
|
|
|
rm %{buildroot}%{_libdir}/libffi.a
|
|
|
|
rm %{buildroot}%{_libdir}/libffi.la
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/libffi.so
|
2021-11-29 09:53:30 +00:00
|
|
|
%{_includedir}/ffi.h
|
|
|
|
%{_includedir}/ffitarget.h
|
2017-02-07 09:59:00 +00:00
|
|
|
%{_libdir}/pkgconfig/libffi.pc
|
2021-11-29 09:53:30 +00:00
|
|
|
%{_mandir}/man3/ffi.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/ffi_call.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/ffi_prep_cif.3%{?ext_man}
|
|
|
|
%{_mandir}/man3/ffi_prep_cif_var.3%{?ext_man}
|
|
|
|
%{_infodir}/libffi.info%{?ext_info}
|
2017-02-07 09:59:00 +00:00
|
|
|
|
|
|
|
%files -n libffi%{libffi_sover}
|
2018-02-26 11:08:52 +00:00
|
|
|
%license LICENSE
|
2017-02-07 09:59:00 +00:00
|
|
|
%{_libdir}/libffi.so.%{libffi_sover}*
|
|
|
|
|
|
|
|
%changelog
|