diff --git a/libffi.spec b/libffi.spec index a015f65..1b2657a 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,25 +1,20 @@ Name: libffi Epoch: 1 -Version: 3.3 -Release: 2mamba +Version: 3.4.2 +Release: 1mamba Summary: A Portable Foreign Function Interface Library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://sourceware.org/libffi/ -Source: ftp://sourceware.org/pub/libffi/libffi-%{version}.tar.gz +URL: https://sourceware.org/libffi/ +Source: https://github.com/libffi/libffi.git/v%{version}/libffi-%{version}.tar.bz2 License: MIT Requires(post):%{__install_info} ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END -%ifarch x86_64_disabled -BuildRequires: gcc-multilib -BuildRequires: glibc-multilib-devel -%endif -Obsoletes: lib32-libffi -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Obsoletes: lib32-libffi < 3.4.2 %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. @@ -31,7 +26,7 @@ FFI stands for Foreign Function Interface. A foreign function interface is the p Summary: Devel package for %{name} Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} -Obsoletes: lib32-libffi-devel +Obsoletes: lib32-libffi-devel < 3.4.2 %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. @@ -60,6 +55,7 @@ This package contains libraries and header files needed for development. %prep %setup -q +./autogen.sh %build %configure @@ -69,41 +65,19 @@ This package contains libraries and header files needed for development. [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %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 [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig - %postun -p /sbin/ldconfig -%post -n lib32-%{name} -p /sbin/ldconfig - -%postun -n lib32-%{name} -p /sbin/ldconfig - %post devel %install_info %{name}.info -exit 0 +: %preun devel %uninstall_info %{name}.info -exit 0 +: %files %defattr(-,root,root) @@ -123,25 +97,11 @@ exit 0 %{_mandir}/man3/ffi_prep_cif.3* %{_mandir}/man3/ffi_prep_cif_var.3* %{_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 +* Sun Dec 26 2021 Silvan Calarco 3.4.2-1mamba +- update to 3.4.2 + * Mon Apr 13 2020 Silvan Calarco 3.3-2mamba - rebuilt with debug package