File libffi7.spec of Package libffi7
Name: libffi7
Version: 3.3
Release: 0
License: MIT
Summary: A portable foreign-function interface library. http://sourceware.org/libffi
Url: https://github.com/libffi/libffi
Group: Development/Libraries/Other
Source: https://github.com/libffi/libffi/releases/download/v%{version}/libffi-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: autoconf
%if 0%{?suse_version} || 0%{?sle_version} >= 150100
BuildRequires: automake, libtool
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A portable foreign-function interface library. http://sourceware.org/libffi
%prep
%setup -q -n libffi-%{version}
%build
#./autogen.sh
./configure --disable-docs CFLAGS="-g" --prefix=/usr
make
%install
%make_install
#install -Dm755 x86_64-pc-linux-gnu/.libs/libffi.so.7.1.0 %{buildroot}%{_libdir}/libffi.so.7.1.0
#install -Dm755 x86_64-pc-linux-gnu/.libs/libffi.so.7 %{buildroot}%{_libdir}/libffi.so.7
rm %{buildroot}%{_libdir}/libffi.so
rm %{buildroot}%{_libdir}/libffi.a
rm %{buildroot}%{_libdir}/libffi.la
rm %{buildroot}%{_prefix}/lib/pkgconfig/libffi.pc
rm %{buildroot}%{_includedir}/ffitarget.h
rm %{buildroot}%{_includedir}/ffi.h
rm %{buildroot}%{_datadir}/man/man3/ffi.3
rm %{buildroot}%{_datadir}/man/man3/ffi_call.3
rm %{buildroot}%{_datadir}/man/man3/ffi_prep_cif.3
rm %{buildroot}%{_datadir}/man/man3/ffi_prep_cif_var.3
%files
%defattr(-,root,root,-)
%{_libdir}/libffi.so.7.1.0
%{_libdir}/libffi.so.7