commit b61715263ff4e3f36c7adadc9425cca42958de0e14f3b6dbd1903d4547d60692 Author: Richard Biener Date: Tue Feb 7 09:59:00 2017 +0000 - Package libffi from https://github.com/libffi at 60e4250a77eb3 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libffi?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libffi-include-location.patch b/libffi-include-location.patch new file mode 100644 index 0000000..a2582e4 --- /dev/null +++ b/libffi-include-location.patch @@ -0,0 +1,27 @@ +diff --git a/include/Makefile.am b/include/Makefile.am +index bb241e8..77dec92 100644 +--- a/include/Makefile.am ++++ b/include/Makefile.am +@@ -5,6 +5,4 @@ AUTOMAKE_OPTIONS=foreign + DISTCLEANFILES=ffitarget.h + noinst_HEADERS=ffi_common.h ffi_cfi.h + EXTRA_DIST=ffi.h.in +- +-includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include +-nodist_includes_HEADERS = ffi.h ffitarget.h ++nodist_include_HEADERS = ffi.h ffitarget.h +diff --git a/libffi.pc.in b/libffi.pc.in +index edf6fde..e2512cb 100644 +--- a/libffi.pc.in ++++ b/libffi.pc.in +@@ -2,10 +2,8 @@ prefix=@prefix@ + exec_prefix=@exec_prefix@ + libdir=@libdir@ + toolexeclibdir=@toolexeclibdir@ +-includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include + + Name: @PACKAGE_NAME@ + Description: Library supporting Foreign Function Interfaces + Version: @PACKAGE_VERSION@ + Libs: -L${toolexeclibdir} -lffi +-Cflags: -I${includedir} diff --git a/libffi.changes b/libffi.changes new file mode 100644 index 0000000..533a621 --- /dev/null +++ b/libffi.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Feb 7 09:10:05 UTC 2017 - rguenther@suse.com + +- Package libffi from https://github.com/libffi at 60e4250a77eb3 + diff --git a/libffi.spec b/libffi.spec new file mode 100644 index 0000000..592ac85 --- /dev/null +++ b/libffi.spec @@ -0,0 +1,118 @@ +# +# spec file for package nvptx-tools +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define libffi_sover 7 + +Name: libffi +Version: 3.99999 +Release: 0 +Summary: Foreign Function Interface Library +License: BSD-3-Clause +Group: Development/Languages/C and C++ +Url: https://github.com/libffi/ +# tarball built from https://github.com/libffi/libffi +Source0: libffi.tar.xz +Patch: libffi-include-location.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: gcc-c++ +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: makeinfo +BuildRequires: pkg-config +# for make check +BuildRequires: dejagnu +BuildRequires: expect + +%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 +Summary: Include Files and Libraries for Development with libffi +Group: Development/Languages/C and C++ +Requires: libffi%{libffi_sover} = %{version} +PreReq: %{install_info_prereq} + +%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. + +%post devel +%install_info --info-dir=%{_infodir} %{_infodir}/libffi.info.gz + +%preun devel +%install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi.info.gz + + +%package -n libffi%{libffi_sover} +Summary: Shared library for the libffi Library +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 +%setup -q -n libffi +%patch -p1 + +%build +./autogen.sh +%configure +make %{?_smp_mflags} + +%check +# do not disable "make check", FIX THE BUGS! +make %{?_smp_mflags} check + +%install +make DESTDIR=%{buildroot} install +# do not package the static library +rm %{buildroot}%{_libdir}/libffi.a +rm %{buildroot}%{_libdir}/libffi.la + + +%files devel +%defattr(-,root,root) +%{_libdir}/libffi.so +%{_prefix}/include/ffi.h +%{_prefix}/include/ffitarget.h +%{_libdir}/pkgconfig/libffi.pc +%doc LICENSE +%doc %{_mandir}/man3/ffi.3.gz +%doc %{_mandir}/man3/ffi_call.3.gz +%doc %{_mandir}/man3/ffi_prep_cif.3.gz +%doc %{_mandir}/man3/ffi_prep_cif_var.3.gz +%doc %{_infodir}/libffi.info.gz + +%files -n libffi%{libffi_sover} +%defattr(-,root,root) +%{_libdir}/libffi.so.%{libffi_sover}* + + +%changelog diff --git a/libffi.tar.xz b/libffi.tar.xz new file mode 100644 index 0000000..441a019 --- /dev/null +++ b/libffi.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f8afbcee089ca5be74a1fc10f199c8c1b34cfdbc3478b5f5dc74179018507a1 +size 311256