SHA256
1
0
forked from pool/papi

7 Commits

Author SHA256 Message Date
e3e63e6c5d Accepting request 1291125 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1291125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/papi?expand=0&rev=39
2025-07-08 13:29:34 +00:00
0126fd1c5d - Update from beta to full release version 7.2.0
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/papi?expand=0&rev=98
2025-07-07 18:49:57 +00:00
d26a633f41 Accepting request 1271569 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1271569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/papi?expand=0&rev=38
2025-04-22 15:30:07 +00:00
9a5d4c4920 - Remove BuildRoot directive
- Remove python3.patch and replaced with build time sed
- Initial support for RISC-V architecture
- Update to version 7.2.0b2
- Update to version 7.2.0b1

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/papi?expand=0&rev=96
2025-04-22 09:51:02 +00:00
7beeb412d4 Accepting request 1266429 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1266429
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/papi?expand=0&rev=37
2025-04-03 14:47:00 +00:00
06e3a36f3b - Redownload papi-7.1.0.tar.gz as it was not actually gzipped
and triggered and OBS error when running download_files.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/papi?expand=0&rev=94
2025-04-02 09:54:56 +00:00
afea9f298b - Disable and remove support for gnu-hpc build flavours (bsc#1239982)
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/papi?expand=0&rev=93
2025-04-01 17:03:01 +00:00
6 changed files with 186 additions and 283 deletions

View File

@@ -1,4 +0,0 @@
<multibuild>
<package>standard</package>
<package>hpc</package>
</multibuild>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:950d0e997e9e908f58c103efd54983e905b6cffa75ef52ed8fdd1ab441977bb6
size 34744320

BIN
papi-7.2.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,41 @@
-------------------------------------------------------------------
Mon Jul 7 17:42:58 UTC 2025 - Tony Jones <tonyj@suse.com>
- Update from beta to full release version 7.2.0
-------------------------------------------------------------------
Mon Apr 21 18:56:16 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Remove BuildRoot directive
- Remove python3.patch and replaced with build time sed
- Initial support for RISC-V architecture
- Update to version 7.2.0b2:
* This release introduces improvements to the rocp_sdk component,
which supports AMD GPUs/APUs through the ROCprofiler-SDK
interface, currently still under development and testing.
* The release also includes general improvements to the PAPI
code, enhancing both design and functionality, as well as
various bug fixes.
- Update to version 7.2.0b1:
* Basic support for the RISC-V architecture (no events yet)
* This release introduces a new component, rocp_sdk, which
supports AMD GPUs/APUs through the ROCprofiler-SDK interface,
currently still under development and testing.
* The release also includes general improvements to the PAPI
code, enhancing both design and functionality, as well as
various bug fixes.
* Full changelog at
https://github.com/icl-utk-edu/papi/releases/tag/papi-7-2-0b1-t
-------------------------------------------------------------------
Mon Mar 24 13:16:43 UTC 2025 - Nicolas Morey <nicolas.morey@suse.com>
- Disable and remove support for gnu-hpc build flavours (bsc#1239982)
- Redownload papi-7.1.0.tar.gz as it was not actually gzipped
and triggered and OBS error when running download_files.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 23 18:52:36 UTC 2024 - Tony Jones <tonyj@suse.com> Tue Jan 23 18:52:36 UTC 2024 - Tony Jones <tonyj@suse.com>
@@ -909,6 +947,3 @@ Fri Nov 20 14:36:26 CET 2009 - pth@suse.de
- Initial package for SLES (fate#307192) - Initial package for SLES (fate#307192)
- Include perf_counter.h from kernel because kernel-headers - Include perf_counter.h from kernel because kernel-headers
doesn't include the file. doesn't include the file.

232
papi.spec
View File

@@ -1,7 +1,7 @@
# #
# spec file # spec file for package papi
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,63 +16,15 @@
# #
%global flavor @BUILD_FLAVOR@%{nil} Name: papi
Version: 7.2.0
%define pname papi
%define ver 7.1.0
%define _ver 7_1_0
%if "%flavor" == ""
ExclusiveArch: do_not_build
%define package_name %pname
%endif
# Magic for OBS Staging. Only build the flavors required by
# other packages in the ring.
%if %{with ringdisabled}
%if "%flavor" != "standard"
ExclusiveArch: do_not_build
%endif
%endif
%if "%flavor" == "standard"
%{bcond_with hpc}
%endif
%if "%flavor" == "hpc"
%{bcond_without hpc}
%endif
%if %{without hpc}
%define package_name %{pname}
%define libname() lib%{pname}%{?with_mpi:-%{mpi_family}}
%define p_bindir %_bindir
%define p_libdir %_libdir
%define p_datadir %_datadir
%define p_includedir %_includedir
%define p_mandir %_mandir
%else
%{hpc_init %{?ext:-e %{ext}}}
%define libname() lib%{pname}%{expand:%%{hpc_package_name_tail %{**}}}
%define package_name %{hpc_package_name %_ver}
%define p_bindir %hpc_bindir
%define p_libdir %hpc_libdir
%define p_datadir %hpc_datadir
%define p_includedir %hpc_includedir
%define p_mandir %hpc_mandir
%endif
Name: %{package_name}
Version: %ver
Release: 0 Release: 0
Summary: Performance Application Programming Interface Summary: Performance Application Programming Interface
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: http://icl.cs.utk.edu/papi/index.html URL: http://icl.cs.utk.edu/papi/index.html
Source: http://icl.cs.utk.edu/projects/papi/downloads/%{pname}-%{version}.tar.gz Source: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz
Source1: %{pname}-rpmlintrc Source1: %{name}-rpmlintrc
Patch1: python3.patch
BuildRequires: autoconf >= 2.61 BuildRequires: autoconf >= 2.61
BuildRequires: automake BuildRequires: automake
@@ -84,12 +36,6 @@ BuildRequires: libsensors4-devel
BuildRequires: linux-kernel-headers BuildRequires: linux-kernel-headers
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: pkg-config BuildRequires: pkg-config
%if %{with hpc}
BuildRequires: lua-lmod
BuildRequires: suse-hpc
Requires: lua-lmod
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#PAPI doesn't support the s390 architecture #PAPI doesn't support the s390 architecture
ExcludeArch: s390 s390x ExcludeArch: s390 s390x
%ifarch %ix86 x86_64 ia64 %ifarch %ix86 x86_64 ia64
@@ -107,9 +53,6 @@ BuildRequires: gcc-fortran-32bit
BuildRequires: glibc-devel-32bit BuildRequires: glibc-devel-32bit
%endif %endif
#BuildRequires: libibmad-devel #BuildRequires: libibmad-devel
%if %{with hpc}
Requires: %{libname %_ver} = %version
%endif
%description %description
@@ -119,13 +62,11 @@ hardware found in most major microprocessors. PAPI enables software
engineers to see, in near real time, the relation between software engineers to see, in near real time, the relation between software
performance and processor events. performance and processor events.
%{?with_hpc:%{hpc_master_package -L}}
%package devel %package devel
Summary: Software Development Kit for PAPI Summary: Software Development Kit for PAPI
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{libname %_ver} = %version
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: lib%{name} = %version
Requires: linux-kernel-headers Requires: linux-kernel-headers
%description devel %description devel
@@ -133,8 +74,6 @@ This package includes the C header files that specify the PAPI userspace
libraries and interfaces. This is required for rebuilding any program libraries and interfaces. This is required for rebuilding any program
that uses PAPI. that uses PAPI.
%{?with_hpc:%{hpc_master_package -a devel}}
%package devel-static %package devel-static
Summary: Static PAPI libraries Summary: Static PAPI libraries
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
@@ -144,28 +83,23 @@ Requires: linux-kernel-headers
%description devel-static %description devel-static
This package includes the static PAPI libraries. This package includes the static PAPI libraries.
%package -n %{libname %_ver} %package -n lib%{name}
Summary: PAPI runtime library Summary: PAPI runtime library
Group: System/Libraries Group: System/Libraries
%description -n %{libname %_ver} %description -n lib%{name}
This package contains the PAPI runtime library. This package contains the PAPI runtime library.
%{?with_hpc:%{hpc_master_package -l -L}}
%prep %prep
%setup -q -n %{pname}-%{version} %setup -q -n %{name}-%{version}
%autopatch -p1
# Create baselibs.conf dynamically (non-HPC build only). # Create baselibs.conf dynamically
%if %{without hpc}
cat > %{_sourcedir}/baselibs.conf <<EOF cat > %{_sourcedir}/baselibs.conf <<EOF
%{libname %_ver} %{libname %_ver}
%{name}-devel %{name}-devel
requires -%{name}-<targettype> requires -%{name}-<targettype>
requires "%{libname %_ver}-<targettype> = <version>" requires "%{libname %_ver}-<targettype> = <version>"
EOF EOF
%endif
%build %build
%define _lto_cflags %{nil} %define _lto_cflags %{nil}
@@ -174,128 +108,74 @@ mv configure.in configure.ac
autoreconf -fi autoreconf -fi
export CFLAGS="%{optflags} -Wno-unused-parameter" export CFLAGS="%{optflags} -Wno-unused-parameter"
%if %{without hpc}
%configure \ %configure \
%else
%hpc_configure \
%endif
--with-perf-events --with-pthread-mutexes \ --with-perf-events --with-pthread-mutexes \
--with-shared-lib=yes --with-shlib \ --with-shared-lib=yes --with-shlib \
--with-pfm-incdir=%{_includedir} --with-pfm-libdir=%{_libdir} --with-pfm-incdir=%{_includedir} --with-pfm-libdir=%{_libdir}
make DOCDIR=%{_defaultdocdir}/%{pname} %{?_smp_mflags} make DOCDIR=%{_defaultdocdir}/%{name} %{?_smp_mflags}
# Remove env usage from shebangs on every *.py file
find . -name "*.py" -exec sed -i 's"#!/usr/bin/env python3"#!/usr/bin/python3"g' {} +
%install %install
# for some reason this isn't being created by install before cp of # for some reason this isn't being created by install before cp of
# papi_hl_output_writer.py occurs, which results in %{p_bindir} as regular file # papi_hl_output_writer.py occurs, which results in %{_bindir} as regular file
mkdir -p %{buildroot}/%{p_bindir} mkdir -p %{buildroot}/%{_bindir}
cd src cd src
make DESTDIR=%{buildroot} install %{?_smp_mflags} DOCDIR=%{_defaultdocdir}/%{pname} LDCONFIG=/bin/true make DESTDIR=%{buildroot} install %{?_smp_mflags} DOCDIR=%{_defaultdocdir}/%{name} LDCONFIG=/bin/true
ls -lR %{buildroot} ls -lR %{buildroot}
chrpath --delete %{buildroot}%{p_libdir}/*.so* chrpath --delete %{buildroot}%{_libdir}/*.so*
%if %{with hpc}
%{hpc_compress_man 3}
%hpc_write_modules_files
#%%Module1.0#####################################################################
proc ModulesHelp { } { %post -n lib%{name} -p /sbin/ldconfig
puts stderr " " %postun -n lib%{name}
puts stderr "This module loads the %{pname} library"
puts stderr "toolchain."
puts stderr "\nVersion %{version}\n"
}
module-whatis "Name: %{pname}"
module-whatis "Version: %{version}"
module-whatis "Category: runtime library"
module-whatis "Description: %{SUMMARY:0}"
module-whatis "URL %{url}"
set version %{version}
prepend-path PATH %{hpc_bindir}
prepend-path MANPATH %{hpc_mandir}
prepend-path LD_LIBRARY_PATH %{hpc_libdir}
setenv %{hpc_upcase %pname}_DIR %{hpc_prefix}
setenv %{hpc_upcase %pname}_BIN %{hpc_bindir}
setenv %{hpc_upcase %pname}_LIB %{hpc_libdir}
if {[file isdirectory %{hpc_includedir}]} {
prepend-path LIBRARY_PATH %{hpc_libdir}
prepend-path CPATH %{hpc_includedir}
prepend-path C_INCLUDE_PATH %{hpc_includedir}
prepend-path CPLUS_INCLUDE_PATH %{hpc_includedir}
prepend-path INCLUDE %{hpc_includedir}
%hpc_modulefile_add_pkgconfig_path
setenv %{hpc_upcase %pname}_INC %{hpc_includedir}
}
EOF
%endif
%post -n %{libname %_ver} -p /sbin/ldconfig
%postun -n %{libname %_ver}
/sbin/ldconfig /sbin/ldconfig
%{?with_hpc:%{hpc_module_delete_if_default}}
%files %files
%license LICENSE.txt
%defattr(-,root,root) %defattr(-,root,root)
%if %{with hpc} %{_bindir}/papi_clockres
%hpc_dirs %{_bindir}/papi_command_line
%dir %hpc_datadir %{_bindir}/papi_cost
%dir %hpc_bindir %{_bindir}/papi_decode
%hpc_modules_files %{_bindir}/papi_event_chooser
%endif %{_bindir}/papi_mem_info
%{p_bindir}/papi_clockres %{_bindir}/papi_native_avail
%{p_bindir}/papi_command_line %{_bindir}/papi_version
%{p_bindir}/papi_cost %{_bindir}/papi_xml_event_info
%{p_bindir}/papi_decode %{_bindir}/papi_component_avail
%{p_bindir}/papi_event_chooser %{_bindir}/papi_error_codes
%{p_bindir}/papi_mem_info %{_bindir}/papi_multiplex_cost
%{p_bindir}/papi_native_avail %{_bindir}/papi_hardware_avail
%{p_bindir}/papi_version %{_bindir}/papi_hl_output_writer.py
%{p_bindir}/papi_xml_event_info %{_datadir}/%{name}
%{p_bindir}/papi_component_avail %{_bindir}/papi_avail
%{p_bindir}/papi_error_codes %doc ChangeLog*.txt README.md RELEASENOTES.txt
%{p_bindir}/papi_multiplex_cost
%{p_bindir}/papi_hardware_avail
%{p_bindir}/papi_hl_output_writer.py
%{p_datadir}/%{pname}
%{p_bindir}/papi_avail
%doc ChangeLog*.txt LICENSE.txt README.md RELEASENOTES.txt
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%if %{with hpc} %{_includedir}/f77papi.h
%dir %hpc_mandir %{_includedir}/f90papi.h
%dir %hpc_mandir/man1 %{_includedir}/fpapi.h
%dir %hpc_mandir/man3 %{_includedir}/papi.h
%dir %hpc_includedir %{_includedir}/papiStdEventDefs.h
%dir %hpc_pkgconfigdir %{_includedir}/papi_components_config_event_defs.h
%endif %{_includedir}/sde_lib.h
%{p_includedir}/f77papi.h %{_includedir}/sde_lib.hpp
%{p_includedir}/f90papi.h %doc %{_mandir}/man3/*.gz
%{p_includedir}/fpapi.h %doc %{_mandir}/man1/*
%{p_includedir}/papi.h %{_libdir}/libpapi.so
%{p_includedir}/papiStdEventDefs.h %{_libdir}/libsde.so
%{p_includedir}/sde_lib.h %{_libdir}/pkgconfig/*.pc
%{p_includedir}/sde_lib.hpp
%doc %{p_mandir}/man3/*.gz
%doc %{p_mandir}/man1/*
%{p_libdir}/libpapi.so
%{p_libdir}/libsde.so
%{p_libdir}/pkgconfig/*.pc
%files devel-static %files devel-static
%defattr(-,root,root) %defattr(-,root,root)
%{p_libdir}/lib*.a %{_libdir}/lib*.a
%files -n %{libname %_ver} %files -n lib%{name}
%defattr(-,root,root) %defattr(-,root,root)
%{p_libdir}/libpapi.so.* %{_libdir}/libpapi.so.*
%{p_libdir}/libsde.so.* %{_libdir}/libsde.so.*
%changelog %changelog

View File

@@ -1,8 +0,0 @@
--- papi-6.0.0.1/src/high-level/scripts/papi_hl_output_writer.py.orig 2022-03-04 13:11:39.915443000 -0800
+++ papi-6.0.0.1/src/high-level/scripts/papi_hl_output_writer.py 2022-03-04 13:09:46.986474000 -0800
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
from __future__ import division
from collections import OrderedDict