From 03c261ca3136bfe65bcfa8dbceb50e8f8ae6bf59 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 04:14:49 +0100 Subject: [PATCH] automatic version update by autodist [release 3.0.13-1mamba;Mon Mar 25 2013] --- README.md | 5 ++ libffi.spec | 157 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 162 insertions(+) create mode 100644 libffi.spec diff --git a/README.md b/README.md index dbb54c7..6bea81f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # libffi +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. + diff --git a/libffi.spec b/libffi.spec new file mode 100644 index 0000000..4509370 --- /dev/null +++ b/libffi.spec @@ -0,0 +1,157 @@ +Name: libffi +Epoch: 1 +Version: 3.0.13 +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 +License: MIT +Requires(post):%{__install_info} +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +%ifarch x86_64 +BuildRequires: gcc-multilib +BuildRequires: glibc-multilib-devel +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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} + +%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. + +%package -n lib32-%{name} +Summary: A Portable Foreign Function Interface Library (32 bit) +Group: System/Libraries + +%description -n lib32-%{name} +A Portable Foreign Function Interface Library (32 bit). + +%package -n lib32-%{name}-devel +Summary: Devel package for lib32-%{name} +Group: Development/Libraries +Requires: lib32-%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib32-%{name}-devel +This package contains libraries and header files needed for development. + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%ifarch x86_64 +# 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) +%{_libdir}/libffi.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_libdir}/libffi-%{version}/include/ffi.h +%{_libdir}/libffi-%{version}/include/ffitarget.h +%{_libdir}/libffi.a +%{_libdir}/libffi.la +%{_libdir}/libffi.so +%{_libdir}/pkgconfig/*.pc +%{_mandir}/man3/ffi.3.gz +%{_mandir}/man3/ffi_call.3.gz +%{_mandir}/man3/ffi_prep_cif.3.gz +%{_mandir}/man3/ffi_prep_cif_var.3.gz +%{_infodir}/libffi.info.gz +%doc ChangeLog ChangeLog.libffi ChangeLog.libgcj ChangeLog.v1 README + +%ifarch x86_64 +%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 +* Mon Mar 25 2013 Automatic Build System 3.0.13-1mamba +- automatic version update by autodist + +* Tue Feb 19 2013 Automatic Build System 3.0.12-1mamba +- automatic version update by autodist + +* Sat Aug 11 2012 Automatic Build System 3.0.11-1mamba +- automatic version update by autodist + +* Tue Apr 03 2012 Silvan Calarco 3.0.10-1mamba +- update to 3.0.10 + +* Fri Jul 22 2011 Automatic Build System 3.0.10rc8-1mamba +- automatic update to 3.0.3.0 by autodist + +* Tue Dec 07 2010 Automatic Build System 3.0.9rc9-1mamba +- update to 3.0.9rc9 + +* Fri Sep 24 2010 Silvan Calarco 3.0.9-1mamba +- package created by autospec