diff --git a/libffi.spec b/libffi.spec index abc731458e0068a5fa64d44fe7806c995c207be4..adfd158026055792896914d5b7b09c39a289ef95 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,12 +1,13 @@ Name: libffi Version: 3.3 -Release: 1 +Release: 2 Summary: A Portable Foreign Function Interface Library License: MIT URL: http://sourceware.org/libff Source0: ftp://sourceware.org/pub/libffi/%{name}-%{version}.tar.gz BuildRequires: gcc +BuildRequires: libffi %description Compilers for high level languages generate code that follows certain conventions. These @@ -38,6 +39,18 @@ Requires: pkgconfig %description devel The devel package with header files and libraries is for developing apps which needs libffi. +%package -n libffi7 +Summary:A Portable Foreign Function Interface Library + +%description -n libffi7 +libffi.so.7 for %{name} + +%package -n libffi6 +Summary:A Portable Foreign Function Interface Library + +%description -n libffi6 +libffi.so.6 for %{name} + %package help Summary: libffi help Requires: info @@ -56,6 +69,9 @@ The help package contains man files. %install %make_install %delete_la + +cp -a %{_libdir}/libffi.so.6* %{buildroot}%{_libdir} + rm -f $RPM_BUILD_ROOT%{_infodir}/dir %ldconfig_scriptlets @@ -75,6 +91,12 @@ fi %license LICENSE %{_libdir}/*.so.* +%files -n libffi7 +%{_libdir}/*.so.7* + +%files -n libffi6 +%{_libdir}/*.so.6* + %files devel %{_libdir}/pkgconfig/*.pc %{_includedir}/ffi*.h @@ -85,6 +107,12 @@ fi %{_infodir}/libffi.info.gz %changelog +* Tue Jan 13 2020 chengquan - 3.3-2 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:fix bug in update dynamic library + * Wed Jan 8 2020 chengquan - 3.3-1 - Type:enhancement - ID:NA