2024-01-06 04:14:49 +01:00
|
|
|
Name: libffi
|
|
|
|
Epoch: 1
|
2024-02-19 12:38:48 +01:00
|
|
|
Version: 3.4.6
|
2024-01-06 04:14:49 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 04:14:49 +01:00
|
|
|
Summary: A Portable Foreign Function Interface Library
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 04:14:49 +01:00
|
|
|
URL: https://sourceware.org/libffi/
|
2024-01-06 04:14:49 +01:00
|
|
|
Source: https://github.com/libffi/libffi/releases/download/v%{version}/libffi-%{version}.tar.gz
|
2024-01-06 04:14:49 +01:00
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 04:14:49 +01:00
|
|
|
Obsoletes: lib32-libffi < 3.4.2
|
2024-01-06 04:14:49 +01:00
|
|
|
Requires(post):%{__install_info}
|
2024-01-06 04:14:49 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Compilers for high level languages generate code that follows certain conventions. These conventions are necessary, in part, for separate compilation to work. One such convention is the "calling convention". The "calling convention" is a set of assumptions made by the compiler about where function arguments will be found on entry to a function. A "calling convention" also specifies where the return value for a function is found.
|
|
|
|
Some programs may not know at the time of compilation what arguments are to be passed to a function. For instance, an interpreter may be told at run-time about the number and types of arguments used to call a given function. Libffi can be used in such programs to provide a bridge from the interpreter program to compiled code.
|
|
|
|
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.
|
|
|
|
FFI stands for Foreign Function Interface. A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language. The libffi library really only provides the lowest, machine dependent layer of a fully featured foreign function interface. A layer must exist above libffi that handles type conversions for values passed between the two languages.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Devel package for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:14:49 +01:00
|
|
|
Obsoletes: lib32-libffi-devel < 3.4.2
|
2024-01-06 04:14:49 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Compilers for high level languages generate code that follows certain conventions. These conventions are necessary, in part, for separate compilation to work. One such convention is the "calling convention". The "calling convention" is a set of assumptions made by the compiler about where function arguments will be found on entry to a function. A "calling convention" also specifies where the return value for a function is found.
|
|
|
|
Some programs may not know at the time of compilation what arguments are to be passed to a function. For instance, an interpreter may be told at run-time about the number and types of arguments used to call a given function. Libffi can be used in such programs to provide a bridge from the interpreter program to compiled code.
|
|
|
|
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.
|
|
|
|
FFI stands for Foreign Function Interface. A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language. The libffi library really only provides the lowest, machine dependent layer of a fully featured foreign function interface. A layer must exist above libffi that handles type conversions for values passed between the two languages.
|
|
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 04:14:49 +01:00
|
|
|
#Avoid regenerating ./configure; an incompatibility with autoconf 2.72
|
|
|
|
# makes it use an unwanted -march flag (among others):
|
|
|
|
# https://github.com/libffi/libffi/issues/662
|
|
|
|
#./autogen.sh
|
2024-01-06 04:14:49 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 04:14:49 +01:00
|
|
|
# remove --disable-exec-static-tramp once ghc and gobject-introspection
|
|
|
|
# work fine with it enabled (https://github.com/libffi/libffi/pull/647)
|
|
|
|
%configure \
|
|
|
|
--disable-multi-os-directory \
|
|
|
|
--disable-exec-static-tramp \
|
|
|
|
--enable-pax_emutramp
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
2024-02-19 12:38:48 +01:00
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2024-01-06 04:14:49 +01:00
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
%post devel
|
|
|
|
%install_info %{name}.info
|
2024-01-06 04:14:49 +01:00
|
|
|
:
|
2024-01-06 04:14:49 +01:00
|
|
|
|
|
|
|
%preun devel
|
|
|
|
%uninstall_info %{name}.info
|
2024-01-06 04:14:49 +01:00
|
|
|
:
|
2024-01-06 04:14:49 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libffi.so.*
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 04:14:49 +01:00
|
|
|
%{_includedir}/ffi.h
|
|
|
|
%{_includedir}/ffitarget.h
|
2024-01-06 04:14:49 +01:00
|
|
|
%{_libdir}/libffi.a
|
|
|
|
%{_libdir}/libffi.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2024-01-06 04:14:49 +01:00
|
|
|
%{_mandir}/man3/ffi.3*
|
|
|
|
%{_mandir}/man3/ffi_call.3*
|
|
|
|
%{_mandir}/man3/ffi_prep_cif.3*
|
|
|
|
%{_mandir}/man3/ffi_prep_cif_var.3*
|
2024-01-06 04:14:49 +01:00
|
|
|
%{_infodir}/libffi.info.gz
|
|
|
|
|
|
|
|
%changelog
|
2024-02-19 12:38:48 +01:00
|
|
|
* Sun Feb 18 2024 Automatic Build System <autodist@openmamba.org> 3.4.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:14:50 +01:00
|
|
|
* Mon Oct 24 2022 Automatic Build System <autodist@mambasoft.it> 3.4.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
* Tue Sep 20 2022 Automatic Build System <autodist@mambasoft.it> 3.4.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
* Fri Jan 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-3mamba
|
|
|
|
- try another fix by disabling calling ./autogen.sh (see note in %prep) and using released tarball
|
|
|
|
|
|
|
|
* Fri Jan 28 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-2mamba
|
|
|
|
- rebuilt with --disable-exec-static-tramp to try to fix SIGILL in ffi_pref_cif after glib 2.70.3 update
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
* Sun Dec 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-1mamba
|
|
|
|
- update to 3.4.2
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
* Mon Apr 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3-2mamba
|
|
|
|
- rebuilt with debug package
|
|
|
|
|
|
|
|
* Sun Apr 12 2020 Automatic Build System <autodist@mambasoft.it> 3.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
* Thu Oct 03 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-2mamba
|
|
|
|
- x86_64: obsolete lib32-libffi[-devel]
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
* Mon Dec 08 2014 Automatic Build System <autodist@mambasoft.it> 3.2.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
* Sun Jun 01 2014 Automatic Build System <autodist@mambasoft.it> 3.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 04:14:49 +01:00
|
|
|
* Mon Mar 25 2013 Automatic Build System <autodist@mambasoft.it> 3.0.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Feb 19 2013 Automatic Build System <autodist@mambasoft.it> 3.0.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 11 2012 Automatic Build System <autodist@mambasoft.it> 3.0.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Apr 03 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.10-1mamba
|
|
|
|
- update to 3.0.10
|
|
|
|
|
|
|
|
* Fri Jul 22 2011 Automatic Build System <autodist@mambasoft.it> 3.0.10rc8-1mamba
|
|
|
|
- automatic update to 3.0.3.0 by autodist
|
|
|
|
|
|
|
|
* Tue Dec 07 2010 Automatic Build System <autodist@mambasoft.it> 3.0.9rc9-1mamba
|
|
|
|
- update to 3.0.9rc9
|
|
|
|
|
|
|
|
* Fri Sep 24 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.9-1mamba
|
|
|
|
- package created by autospec
|