From 212d4d90f019e953d7faac908fe959dfef88e1b7 Mon Sep 17 00:00:00 2001 From: chengquan Date: Mon, 20 Jan 2020 10:07:33 +0800 Subject: [PATCH] Remove temporary dynamic library solution --- libffi.spec | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/libffi.spec b/libffi.spec index c97ca1e..edaa33a 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,14 +1,13 @@ Name: libffi Version: 3.3 -Release: 5 +Release: 6 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: libffi6 -Requires: libffi6 libffi7 +Requires: libs %description Compilers for high level languages generate code that follows certain conventions. These @@ -40,17 +39,11 @@ Requires: pkgconfig %description devel The devel package with header files and libraries is for developing apps which needs libffi. -%package -n libffi7 +%package libs 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} +%description libs +Some lib files for %{name}. %package help Summary: libffi help @@ -71,8 +64,6 @@ The help package contains man files. %make_install %delete_la -cp -a %{_libdir}/libffi.so.6* %{buildroot}%{_libdir} - rm -f $RPM_BUILD_ROOT%{_infodir}/dir %ldconfig_scriptlets @@ -91,11 +82,8 @@ fi %files %license LICENSE -%files -n libffi7 -%{_libdir}/*.so.7* - -%files -n libffi6 -%{_libdir}/*.so.6* +%files -n libs +%{_libdir}/*.so.* %files devel %{_libdir}/pkgconfig/*.pc @@ -107,6 +95,12 @@ fi %{_infodir}/libffi.info.gz %changelog +* Wed Jan 20 2020 chengquan - 3.3-6 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Remove temporary dynamic library solution + * Wed Jan 15 2020 chengquan - 3.3-5 - Type:enhancement - ID:NA -- Gitee