SHA256
3
0
forked from pool/libffi

- 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
This commit is contained in:
Richard Biener 2017-02-07 09:59:00 +00:00 committed by Git OBS Bridge
commit b61715263f
6 changed files with 177 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -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}

5
libffi.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Feb 7 09:10:05 UTC 2017 - rguenther@suse.com
- Package libffi from https://github.com/libffi at 60e4250a77eb3

118
libffi.spec Normal file
View File

@ -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

3
libffi.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f8afbcee089ca5be74a1fc10f199c8c1b34cfdbc3478b5f5dc74179018507a1
size 311256