2017-02-07 09:59:00 +00:00
|
|
|
#
|
2017-02-08 09:00:52 +00:00
|
|
|
# spec file for package libffi
|
2017-02-07 09:59:00 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2017-02-08 09:00:52 +00:00
|
|
|
Name: libffi
|
|
|
|
Version: 3.2.1.git259
|
2017-02-07 09:59:00 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Foreign Function Interface Library
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Url: https://github.com/libffi/
|
2017-02-08 09:00:52 +00:00
|
|
|
Source: %name-%version.tar.xz
|
2017-02-07 09:59:00 +00:00
|
|
|
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
|
2017-02-08 09:00:52 +00:00
|
|
|
Summary: Include files for development with libffi
|
2017-02-07 09:59:00 +00:00
|
|
|
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}
|
2017-02-08 09:00:52 +00:00
|
|
|
Summary: Foreign Function Interface Library
|
2017-02-07 09:59:00 +00:00
|
|
|
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
|
2017-02-08 09:00:52 +00:00
|
|
|
%setup -q
|
2017-02-07 09:59:00 +00:00
|
|
|
%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
|