|
|
|
@ -1,11 +1,9 @@
|
|
|
|
|
# Default to no static libraries
|
|
|
|
|
%{!?with_static: %global with_static 1}
|
|
|
|
|
%bcond_without python
|
|
|
|
|
%if %{with python}
|
|
|
|
|
%define python_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")
|
|
|
|
|
%define python_prefix %(python3 -c "import sys; print (sys.prefix)")
|
|
|
|
|
%{?filter_setup:
|
|
|
|
|
%filter_provides_in %{python3_sitearch}/perfmon/.*\.so$
|
|
|
|
|
%filter_provides_in %{python_sitearch}/perfmon/.*\.so$
|
|
|
|
|
%filter_setup
|
|
|
|
|
}
|
|
|
|
|
%endif
|
|
|
|
@ -16,6 +14,7 @@ Release: 4%{?dist}
|
|
|
|
|
|
|
|
|
|
Summary: Library to encode performance events for use by perf tool
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://perfmon2.sourceforge.net/
|
|
|
|
|
Source0: http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{version}.tar.gz
|
|
|
|
@ -23,8 +22,6 @@ Patch2: libpfm-python3-setup.patch
|
|
|
|
|
Patch3: libpfm-initp.patch
|
|
|
|
|
Patch4: libpfm-zen4.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
%if %{with python}
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
@ -40,21 +37,21 @@ for the perf_events interface available in upstream Linux kernels since v2.6.31.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development library to encode performance events for perf_events based tools
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Development library and header files to create performance monitoring
|
|
|
|
|
applications for the perf_events interface.
|
|
|
|
|
|
|
|
|
|
%if %{with_static}
|
|
|
|
|
%package static
|
|
|
|
|
Summary: Static library to encode performance events for perf_events based tools
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description static
|
|
|
|
|
Static version of the libpfm library for performance monitoring
|
|
|
|
|
applications for the perf_events interface.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
|
%package -n python3-libpfm
|
|
|
|
@ -64,6 +61,7 @@ Provides: %{name}-python = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-python%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-python < %{version}-%{release}
|
|
|
|
|
Summary: Python bindings for libpfm and perf_event_open system call
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-libpfm
|
|
|
|
@ -82,7 +80,7 @@ Python bindings for libpfm4 and perf_event_open system call.
|
|
|
|
|
%else
|
|
|
|
|
%global python_config CONFIG_PFMLIB_NOPYTHON=y
|
|
|
|
|
%endif
|
|
|
|
|
%make_build %{python_config} \
|
|
|
|
|
make %{python_config} %{?_smp_mflags} \
|
|
|
|
|
OPTIM="%{optflags}" LDFLAGS="%{build_ldflags}"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -102,11 +100,8 @@ make \
|
|
|
|
|
LDCONFIG=/bin/true \
|
|
|
|
|
install
|
|
|
|
|
|
|
|
|
|
%if !%{with_static}
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README
|
|
|
|
@ -117,14 +112,12 @@ rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
|
|
|
|
|
|
%if %{with_static}
|
|
|
|
|
%files static
|
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with python}
|
|
|
|
|
%files -n python3-libpfm
|
|
|
|
|
%{python3_sitearch}/*
|
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
@ -132,70 +125,22 @@ rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
|
|
|
|
|
- Identify AMD Bergamo processors.
|
|
|
|
|
|
|
|
|
|
* Wed May 3 2023 William cohen <wcohen@redhat.com> - 4.13.0-3
|
|
|
|
|
- Rebuild for rhbz #2186927.
|
|
|
|
|
|
|
|
|
|
* Wed May 3 2023 William cohen <wcohen@redhat.com> - 4.13.0-2
|
|
|
|
|
- Rebuild for rhbz #2186927.
|
|
|
|
|
|
|
|
|
|
* Fri Apr 14 2023 William cohen <wcohen@redhat.com> - 4.13.0-1
|
|
|
|
|
- Rebase to libpf-4.13.0 (rhbz #2185652)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.11.0-6
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.11.0-5
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.11.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 23 2021 William Cohen <wcohen@redhat.com> - 4.11.0-3
|
|
|
|
|
- Reenable generation of static libraries for time being.
|
|
|
|
|
|
|
|
|
|
* Fri Jan 22 2021 William Cohen <wcohen@redhat.com> - 4.11.0-2
|
|
|
|
|
- By default disable generation of static libraries
|
|
|
|
|
|
|
|
|
|
* Tue Sep 08 2020 William Cohen <wcohen@redhat.com> - 4.11.0-1
|
|
|
|
|
- Rebase on libpfm-4.11.0.
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-13
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 4.10.1-12
|
|
|
|
|
- Use make macros
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-11
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-9
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-8
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
- Rebuild for rhbz #2161146.
|
|
|
|
|
|
|
|
|
|
* Tue Jul 17 2018 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-5
|
|
|
|
|
- Update Python macros to new packaging standards
|
|
|
|
|
(See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package)
|
|
|
|
|
* Fri Apr 14 2023 William Cohen <wcohen@redhat.com> - 4.13.0-1
|
|
|
|
|
- Rebase to libpfm-4.13.0 (RHBZ #2185653)
|
|
|
|
|
|
|
|
|
|
* Sun Jul 15 2018 William Cohen <wcohen@redhat.com> - 4.10.1-4
|
|
|
|
|
- Add gcc Buildrequires.
|
|
|
|
|
* Sun May 8 2022 William Cohen <wcohen@redhat.com> - 4.10.1-5
|
|
|
|
|
- Add AMD Zen 2/3 support (RHBZ #2067218)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Thu May 20 2021 William Cohen <wcohen@redhat.com> - 4.10.1-4
|
|
|
|
|
- Add Fujitsu A64FX support (RHBZ #1908126)
|
|
|
|
|
|
|
|
|
|
* Wed May 27 2020 William Cohen <wcohen@redhat.com> - 4.10.1-3
|
|
|
|
|
- Add Marvell TunderX2 UNC support. (RHBZ #1726070)
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-2
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
* Tue Oct 15 2019 William Cohen <wcohen@redhat.com> - 4.10.1-2
|
|
|
|
|
- Add IBM zseries support. (RHBZ #1731019)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 15 2018 William Cohen <wcohen@redhat.com> - 4.10.1-1
|
|
|
|
|
- Rebase on libpfm-4.10.1.
|
|
|
|
|