diff --git a/libpfm.spec b/libpfm.spec index 9dc8c0e4acec63f4329bedbb582bb23528871332..61de7ff9c93d07ec013adb0b4d82511dc05b342e 100644 --- a/libpfm.spec +++ b/libpfm.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %bcond_without python %if %{with python} %define python_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))") @@ -10,7 +11,7 @@ Name: libpfm Version: 4.10.1 -Release: 4%{?dist}.1 +Release: 4%{anolis_release}%{?dist}.1 Summary: Library to encode performance events for use by perf tool @@ -72,6 +73,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Python bindings for libpfm4 and perf_event_open system call. %endif +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name} + %prep %setup -q %patch2 -p1 -b .python3 @@ -112,7 +122,6 @@ make \ %postun -p /sbin/ldconfig %files -%doc README %{_libdir}/lib*.so.* %files devel @@ -128,7 +137,13 @@ make \ %{python_sitearch}/* %endif +%files doc +%doc README + %changelog +* Fri Jul 15 2022 Chang Gao - 4.10.1-4.0.1 +- Add doc sub package + * Thu May 19 2022 William Cohen - 4.10.1-4.1 - Add AMD Zen 2/3 support (RHBZ #2088283)