+ Add OpenRISC support + Add complex type support + Compile tests with -Wno-psabi when using GCC - switching license to MIT, as stated in LICENSE file - ran spec-cleaner OBS-URL: https://build.opensuse.org/package/show/server:monitoring/libffi?expand=0&rev=7
100 lines
3.2 KiB
RPMSpec
100 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package libffi
|
|
#
|
|
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define libsoname %{name}6
|
|
%define debug_package_requires %{libsoname} = %{version}-%{release}
|
|
Name: libffi
|
|
Version: 3.2.1
|
|
Release: 0
|
|
Summary: A portable foreign Function Interface Library
|
|
License: MIT
|
|
Group: System/Libraries
|
|
URL: https://sourceware.org/libffi/
|
|
Source: ftp://sourceware.org/pub/libffi/%{name}-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
BuildRequires: pkgconfig
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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.
|
|
|
|
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 -n %{libsoname}
|
|
Summary: Shared library for libffi
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libsoname}
|
|
A portable foreign Function Interface Library.
|
|
This package contains the shared libffi library.
|
|
|
|
%package -n %{name}-devel
|
|
Summary: Development package for libffi
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{libsoname} = %{version}
|
|
Requires: pkgconfig
|
|
|
|
%description -n %{name}-devel
|
|
A portable foreign Function Interface Library.
|
|
This package contains the files needed to compile programs that use
|
|
the libffi library.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
mv %{buildroot}%{_libdir}/%{name}-%{version}/include/* %{buildroot}%{_includedir}
|
|
|
|
%preun -n %{name}-devel
|
|
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/libffi.info.gz"
|
|
|
|
%post -n %{libsoname} -p /sbin/ldconfig
|
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
|
%post -n %{name}-devel
|
|
%install_info --info-dir="%{_infodir}" "%{_infodir}/libffi.info.gz"
|
|
|
|
%files -n %{libsoname}
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files -n %{name}-devel
|
|
%license LICENSE
|
|
%doc ChangeLog* README
|
|
%{_includedir}/ffi*
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_infodir}/%{name}.info%{?ext_info}
|
|
%{_mandir}/man3/ffi*
|
|
|
|
%changelog
|