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/archive/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


%package devel
Summary:        A portable foreign-function interface library. http://sourceware.org/libffi
Group: 			Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
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

%post
ldconfig %{_libdir}/libffi.so.7

%postun
ldconfig

%files
%defattr(-,root,root,-)
%doc README.md
%{_libdir}/libffi.so.7.1.0
%{_libdir}/libffi.so.7
%{_libdir}/libffi.so

%files devel
%{_libdir}/libffi.a
%{_libdir}/libffi.la
%{_prefix}/lib/pkgconfig/libffi.pc
%{_includedir}/ffitarget.h
%{_includedir}/ffi.h
%{_datadir}/man/man3/ffi.3.gz
%{_datadir}/man/man3/ffi_call.3.gz
%{_datadir}/man/man3/ffi_prep_cif.3.gz
%{_datadir}/man/man3/ffi_prep_cif_var.3.gz
openSUSE Build Service is sponsored by