File libffi5.spec of Package libffi5

Name:                         libffi5
Version:                      3.0.5
Release:                      1
Summary:                      Foreign Function Interface library
License:                      GPLv2+
Group:                        Development/Libraries
Buildroot:                    %{_tmppath}/%{name}-%{version}-build
Requires:                     info
BuildRequires:                info
Source:                       libffi-3.0.5.tar.gz

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.

%package devel
Summary:                      Development package for libffi
Group:                        Development/Libraries
Provides:                     libffi-devel
Requires:                     %{name} = %{version}

%description devel
This package contains all that is needed to develop/compile
applications that use the libffi libraries.

%setup -q -n libffi-3.0.5



make DESTDIR="$DESTDIR" install

mkdir -p "$DESTDIR/%{_includedir}"
mv "$DESTDIR"/"%{_libdir}"/libffi-3.0.5/include/* "$DESTDIR/%{_includedir}"
rm -rf "$DESTDIR/%{_libdir}/libffi-3.0.5"
rm -f "$DESTDIR/%{_infodir}/dir"

%{__strip} "$DESTDIR/%{_libdir}"/*

[ -d "$RPM_BUILD_ROOT" ] && rm -rf "$RPM_BUILD_ROOT"



%doc LICENSE README ChangeLog*

%files devel