update to 3.4.2 [release 3.4.2-1mamba;Sun Dec 26 2021]

This commit is contained in:
Silvan Calarco 2024-01-06 04:14:49 +01:00
parent 2a6f1d2984
commit dc15131e58

View File

@ -1,25 +1,20 @@
Name: libffi Name: libffi
Epoch: 1 Epoch: 1
Version: 3.3 Version: 3.4.2
Release: 2mamba Release: 1mamba
Summary: A Portable Foreign Function Interface Library Summary: A Portable Foreign Function Interface Library
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://sourceware.org/libffi/ URL: https://sourceware.org/libffi/
Source: ftp://sourceware.org/pub/libffi/libffi-%{version}.tar.gz Source: https://github.com/libffi/libffi.git/v%{version}/libffi-%{version}.tar.bz2
License: MIT License: MIT
Requires(post):%{__install_info} Requires(post):%{__install_info}
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
%ifarch x86_64_disabled Obsoletes: lib32-libffi < 3.4.2
BuildRequires: gcc-multilib
BuildRequires: glibc-multilib-devel
%endif
Obsoletes: lib32-libffi
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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.
@ -31,7 +26,7 @@ FFI stands for Foreign Function Interface. A foreign function interface is the p
Summary: Devel package for %{name} Summary: Devel package for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: lib32-libffi-devel Obsoletes: lib32-libffi-devel < 3.4.2
%description devel %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. 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.
@ -60,6 +55,7 @@ This package contains libraries and header files needed for development.
%prep %prep
%setup -q %setup -q
./autogen.sh
%build %build
%configure %configure
@ -69,41 +65,19 @@ This package contains libraries and header files needed for development.
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %makeinstall
%ifarch x86_64_disabled
# x86_64 lib64 support
sed -i "s|multi_os_directory=.*|multi_os_directory=|" configure
make clean
CC=%{_target_platform}-gcc \
CFLAGS="%{optflags} -m32" \
CXXLAGS="%{optflags} -m32" \
%configure \
--libdir=%{_prefix}/lib \
toolexeclibdir=%{_prefix}/lib
make toolexeclibdir=%{_prefix}/lib
make install DESTDIR=`pwd`/lib32 toolexeclibdir=%{_prefix}/lib
cp -a lib32/%{_prefix}/lib %{buildroot}%{_prefix}
#cp -a lib32/%{_prefix}/lib64/* %{buildroot}%{_prefix}/lib/
%endif
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%post -n lib32-%{name} -p /sbin/ldconfig
%postun -n lib32-%{name} -p /sbin/ldconfig
%post devel %post devel
%install_info %{name}.info %install_info %{name}.info
exit 0 :
%preun devel %preun devel
%uninstall_info %{name}.info %uninstall_info %{name}.info
exit 0 :
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -123,25 +97,11 @@ exit 0
%{_mandir}/man3/ffi_prep_cif.3* %{_mandir}/man3/ffi_prep_cif.3*
%{_mandir}/man3/ffi_prep_cif_var.3* %{_mandir}/man3/ffi_prep_cif_var.3*
%{_infodir}/libffi.info.gz %{_infodir}/libffi.info.gz
%doc ChangeLog
%ifarch x86_64_disabled
%files -n lib32-%{name}
%defattr(-,root,root)
%{_prefix}/lib/libffi.so.*
%doc LICENSE
%files -n lib32-%{name}-devel
%defattr(-,root,root)
%{_prefix}/lib/libffi-%{version}/include/ffi.h
%{_prefix}/lib/libffi-%{version}/include/ffitarget.h
%{_prefix}/lib/libffi.a
%{_prefix}/lib/libffi.la
%{_prefix}/lib/libffi.so
%{_prefix}/lib/pkgconfig/*.pc
%endif
%changelog %changelog
* Sun Dec 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.2-1mamba
- update to 3.4.2
* Mon Apr 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3-2mamba * Mon Apr 13 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 3.3-2mamba
- rebuilt with debug package - rebuilt with debug package