Name: papi Version: 6.0.0 Release: 1 Summary: Performance Application Programming Interface License: BSD URL: http://icl.cs.utk.edu/papi/ Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz BuildRequires: autoconf doxygen ncurses-devel gcc-gfortran kernel-headers >= 2.6.32 BuildRequires: chrpath lm_sensors-devel libpfm-devel >= 4.6.0-1 libpfm-static >= 4.6.0-1 BuildRequires: net-tools rdma-core-devel perl-generators Provides: papi-libs = %{version}-%{release} Obsoletes: papi-libs < %{version}-%{release} Patch0001: papi-add-support-riscv64.patch %description PAPI provides a programmer interface to monitor the performance of running programs,and contains the run-time libraries for any application that wishes to use PAPI. %package devel Summary: Header files for the compiling programs with PAPI Requires: papi = %{version}-%{release} pkgconfig Provides: papi-testsuite = %{version}-%{release} papi-static = %{version}-%{release} Obsoletes: papi-testsuite < %{version}-%{release} papi-static < %{version}-%{release} %description devel PAPI-devel provides C header files for specifying PAPI user-space libraries and interfaces, a test testuiste for checking PAPI functionality, and static libraries for compiling programs with PAPI. %package help Summary: Help documents for papi %description help The papi-help package conatins manual pages and documents for papi. %prep %autosetup -p1 %build cd src autoconf %configure --with-perf-events --with-pfm-incdir=%{_includedir} --with-pfm-libdir=%{_libdir} \ --with-static-lib=yes --with-shared-lib=yes --with-shlib --with-shlib-tools \ --with-components="appio coretemp example infiniband lmsensors lustre micpower mx net rapl stealtime" DBG="" make %{?_smp_mflags} cd ../doc DBG="" make DBG="" make install %install cd src make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install-all chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* %post /sbin/ldconfig %postun /sbin/ldconfig %files %doc LICENSE.txt %{_bindir}/* %{_libdir}/*.so.* %dir /usr/share/papi /usr/share/papi/papi_events.csv %files devel %{_includedir}/*.h %{_libdir}/*.so %{_libdir}/pkgconfig/papi*.pc %{_libdir}/*.a /usr/share/papi/* %exclude /usr/share/papi/papi_events.csv %files help %doc INSTALL.txt README.md RELEASENOTES.txt %{_mandir}/man1/* %{_mandir}/man3/* %changelog * Wed Oct 26 2022 hua - 6.0.0-1 - upgrade version to 6.0.0 * Mon Jan 24 2022 wujie - 5.6.0-10 - add support for riscv64 from http://fedora.riscv.rocks/koji/buildinfo?buildID=31200 Author is David Abdurachmanov * Tue Jul 28 2020 lingsheng - 5.6.0-9 - remove buildrequire infiniband-diags-devel * Thu Nov 28 2019 liujing - 5.6.0-8 - Package init