diff --git a/libffi.spec b/libffi.spec index 852b712b81235ec7149db7caeba56697f79773e8..40895c19d278c331804fcb5eb37d867c4806793c 100644 --- a/libffi.spec +++ b/libffi.spec @@ -1,8 +1,10 @@ +%define anolis_release .0.1 + %global multilib_arches %{ix86} ppc ppc64 ppc64p7 s390 s390x x86_64 Name: libffi Version: 3.1 -Release: 23%{?dist} +Release: 23%{anolis_release}%{?dist} Summary: A portable foreign function interface library Group: System Environment/Libraries @@ -60,6 +62,14 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q %patch0 -p1 -b .fixpath @@ -118,9 +128,11 @@ fi %files %{!?_licensedir:%global license %%doc} %license LICENSE -%doc README %{_libdir}/*.so.* +%files doc +%doc README + %files devel %{_libdir}/pkgconfig/*.pc %{_includedir}/ffi*.h @@ -129,6 +141,9 @@ fi %{_infodir}/libffi.info.gz %changelog +* Mon Jul 18 2022 DengXiewei - 3.1-23.0.1 +- Add doc sub package + * Fri Nov 19 2021 DJ Delorie - 3.1-23 - Use memfd_create() to allocate closures (#1875340)