162 Star 0 Fork 15

src-openEuler/libpfm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
libpfm.spec 2.57 KB
一键复制 编辑 原始数据 按行查看 历史
lyn 提交于 2023-05-16 11:12 . Update to 4.13.0
%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)")
Name: libpfm
Version: 4.13.0
Release: 1
Summary: A user library help setup performance events for use with the perf_events Linux kernel interface.
License: MIT
URL: http://perfmon2.sourceforge.net/
Source0: http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{version}.tar.gz
Patch0001: 0001-libpfm-python3-setup.patch
Patch0002: 0002-libpfm-lib-Makefile.patch
BuildRequires: python3 python3-devel python3-setuptools swig gcc make
%description
This is a user library called libpfm4 to help setup performance
events for use with the perf_events Linux kernel interface.
%package devel
Requires: %{name} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
Obsoletes: %{name}-static <= %{version}-%{release}
Summary: Library to provide perf_events in linux
%description devel
Library package used for development for perf_events interface.
%package -n python3-libpfm
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
Summary: Python bindings for libpfm
%description -n python3-libpfm
Python bindings for libpfm4 used for perf_events
%package help
Summary: Documents for %{name}
Requires: man info
%description help
Man pages and other related documents for %{name}.
%prep
%autosetup -p1
%build
%make_build CONFIG_PFMLIB_NOPYTHON=n OPTIM="%{optflags}" LDFLAGS="%{build_ldflags}"
%install
rm -rf $RPM_BUILD_ROOT
make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
CONFIG_PFMLIB_NOPYTHON=n PYTHON_PREFIX=$RPM_BUILD_ROOT/%{python_prefix} LDCONFIG=/bin/true install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc README
%{_libdir}/lib*.so.*
%files devel
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/lib*.a
%files -n python3-libpfm
%{python3_sitearch}/*
%files help
%{_mandir}/man3/*
%changelog
* Tue May 16 2023 liyanan <thistleslyn@163.com> - 4.13.0-1
- update version to 4.13.0
* Tue May 09 2023 Jia Chao <jiac13@chinaunicom.cn> - 4.11.0-2
- Fix: help package contains files about architecture, should not be noarch.
* Thu Jun 16 2022 SimpleUpdate Robot <tc@openeuler.org> - 4.11.0-1
- Upgrade to version 4.11.0
* Wed Mar 18 2020 yinzhenling <yinzhenling2@huawei.com> - 4.10.1-7
- add make option
* Sun Dec 1 2019 jiaxiya <jiaxiyajiaxiya@168.com> - 4.10.1-6
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/libpfm.git
git@gitee.com:src-openeuler/libpfm.git
src-openeuler
libpfm
libpfm
master

搜索帮助