|
|
09a63b |
%bcond_with bundled_libpfm
|
|
|
09a63b |
Summary: Performance Application Programming Interface
|
|
|
09a63b |
Name: papi
|
|
|
09a63b |
Version: 5.2.0
|
|
|
09a63b |
Release: 2%{?dist}
|
|
|
09a63b |
License: BSD
|
|
|
09a63b |
Group: Development/System
|
|
|
09a63b |
URL: http://icl.cs.utk.edu/papi/
|
|
|
09a63b |
Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz
|
|
|
09a63b |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
09a63b |
BuildRequires: autoconf
|
|
|
09a63b |
BuildRequires: doxygen
|
|
|
09a63b |
BuildRequires: ncurses-devel
|
|
|
09a63b |
BuildRequires: gcc-gfortran
|
|
|
09a63b |
BuildRequires: kernel-headers >= 2.6.32
|
|
|
09a63b |
BuildRequires: chrpath
|
|
|
09a63b |
BuildRequires: lm_sensors-devel
|
|
|
09a63b |
%if %{without bundled_libpfm}
|
|
|
09a63b |
BuildRequires: libpfm-devel >= 4.3.0
|
|
|
09a63b |
BuildRequires: libpfm-static >= 4.3.0
|
|
|
09a63b |
%endif
|
|
|
09a63b |
# Following required for net component
|
|
|
09a63b |
BuildRequires: net-tools
|
|
|
09a63b |
# Following required for inifiband component
|
|
|
09a63b |
BuildRequires: libibmad-devel
|
|
|
09a63b |
#Right now libpfm does not know anything about s390 and will fail
|
|
|
09a63b |
ExcludeArch: s390 s390x
|
|
|
09a63b |
|
|
|
09a63b |
%description
|
|
|
09a63b |
PAPI provides a programmer interface to monitor the performance of
|
|
|
09a63b |
running programs.
|
|
|
09a63b |
|
|
|
09a63b |
%package devel
|
|
|
09a63b |
Summary: Header files for the compiling programs with PAPI
|
|
|
09a63b |
Group: Development/System
|
|
|
09a63b |
Requires: papi = %{version}-%{release}
|
|
|
09a63b |
%description devel
|
|
|
09a63b |
PAPI-devel includes the C header files that specify the PAPI user-space
|
|
|
09a63b |
libraries and interfaces. This is required for rebuilding any program
|
|
|
09a63b |
that uses PAPI.
|
|
|
09a63b |
|
|
|
09a63b |
%package testsuite
|
|
|
09a63b |
Summary: Set of tests for checking PAPI functionality
|
|
|
09a63b |
Group: Development/System
|
|
|
09a63b |
Requires: papi = %{version}-%{release}
|
|
|
09a63b |
%description testsuite
|
|
|
09a63b |
PAPI-testuiste includes compiled versions of papi tests to ensure
|
|
|
09a63b |
that PAPI functions on particular hardware.
|
|
|
09a63b |
|
|
|
09a63b |
%package static
|
|
|
09a63b |
Summary: Static libraries for the compiling programs with PAPI
|
|
|
09a63b |
Group: Development/System
|
|
|
09a63b |
Requires: papi = %{version}-%{release}
|
|
|
09a63b |
%description static
|
|
|
09a63b |
PAPI-static includes the static versions of the library files for
|
|
|
09a63b |
the PAPI user-space libraries and interfaces.
|
|
|
09a63b |
|
|
|
09a63b |
%prep
|
|
|
09a63b |
%setup -q
|
|
|
09a63b |
|
|
|
09a63b |
%build
|
|
|
09a63b |
%if %{without bundled_libpfm}
|
|
|
09a63b |
# Build our own copy of libpfm.
|
|
|
09a63b |
%global libpfm_config --with-pfm-incdir=%{_includedir} --with-pfm-libdir=%{_libdir}
|
|
|
09a63b |
%endif
|
|
|
09a63b |
|
|
|
09a63b |
cd src
|
|
|
09a63b |
autoconf
|
|
|
09a63b |
%configure --with-perf-events \
|
|
|
09a63b |
%{?libpfm_config} \
|
|
|
09a63b |
--with-static-lib=yes --with-shared-lib=yes --with-shlib \
|
|
|
09a63b |
--with-components="appio coretemp example infiniband lmsensors lustre micpower mx net rapl stealtime"
|
|
|
09a63b |
# implicit enabled components: perf_event perf_event_uncore
|
|
|
09a63b |
#components currently left out because of build configure/build issues
|
|
|
09a63b |
# --with-components="bgpm coretemp_freebsd cuda host_micpower nvml vmware"
|
|
|
09a63b |
|
|
|
09a63b |
pushd components
|
|
|
09a63b |
#pushd cuda; ./configure; popd
|
|
|
09a63b |
#pushd host_micpower; ./configure; popd
|
|
|
09a63b |
pushd infiniband; %configure; popd
|
|
|
09a63b |
pushd lmsensors; \
|
|
|
09a63b |
%configure --with-sensors_incdir=/usr/include/sensors \
|
|
|
09a63b |
--with-sensors_libdir=%{_libdir}; \
|
|
|
09a63b |
popd
|
|
|
09a63b |
#pushd vmware; ./configure; popd
|
|
|
09a63b |
popd
|
|
|
09a63b |
|
|
|
09a63b |
#DBG workaround to make sure libpfm just uses the normal CFLAGS
|
|
|
09a63b |
DBG="" make %{?_smp_mflags}
|
|
|
09a63b |
|
|
|
09a63b |
#generate updated versions of the documentation
|
|
|
09a63b |
#DBG workaround to make sure libpfm just uses the normal CFLAGS
|
|
|
09a63b |
pushd ../doc
|
|
|
09a63b |
DBG="" make
|
|
|
09a63b |
DBG="" make install
|
|
|
09a63b |
popd
|
|
|
09a63b |
|
|
|
09a63b |
%install
|
|
|
09a63b |
rm -rf $RPM_BUILD_ROOT
|
|
|
09a63b |
cd src
|
|
|
09a63b |
make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install-all
|
|
|
09a63b |
|
|
|
09a63b |
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
|
|
|
09a63b |
|
|
|
09a63b |
%post -p /sbin/ldconfig
|
|
|
09a63b |
%postun -p /sbin/ldconfig
|
|
|
09a63b |
%clean
|
|
|
09a63b |
rm -rf $RPM_BUILD_ROOT
|
|
|
09a63b |
|
|
|
09a63b |
%files
|
|
|
09a63b |
%defattr(-,root,root,-)
|
|
|
09a63b |
%{_bindir}/*
|
|
|
09a63b |
%{_libdir}/*.so.*
|
|
|
09a63b |
%dir /usr/share/papi
|
|
|
09a63b |
/usr/share/papi/papi_events.csv
|
|
|
09a63b |
%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
|
|
|
09a63b |
%doc %{_mandir}/man1/*
|
|
|
09a63b |
|
|
|
09a63b |
%files devel
|
|
|
09a63b |
%defattr(-,root,root,-)
|
|
|
09a63b |
%{_includedir}/*.h
|
|
|
09a63b |
%if %{with bundled_libpfm}
|
|
|
09a63b |
%{_includedir}/perfmon/*.h
|
|
|
09a63b |
%endif
|
|
|
09a63b |
%{_libdir}/*.so
|
|
|
09a63b |
%doc %{_mandir}/man3/*
|
|
|
09a63b |
|
|
|
09a63b |
%files testsuite
|
|
|
09a63b |
%defattr(-,root,root,-)
|
|
|
09a63b |
/usr/share/papi/run_tests*
|
|
|
09a63b |
/usr/share/papi/ctests
|
|
|
09a63b |
/usr/share/papi/ftests
|
|
|
09a63b |
/usr/share/papi/components
|
|
|
09a63b |
/usr/share/papi/testlib
|
|
|
09a63b |
|
|
|
09a63b |
%files static
|
|
|
09a63b |
%defattr(-,root,root,-)
|
|
|
09a63b |
%{_libdir}/*.a
|
|
|
09a63b |
|
|
|
09a63b |
%changelog
|
|
|
09a63b |
* Wed Aug 14 2013 William Cohen <wcohen@redhat.com> - 5.2.0-2
|
|
|
09a63b |
- Enable infiniband and stealtime components.
|
|
|
09a63b |
|
|
|
09a63b |
* Wed Aug 07 2013 William Cohen <wcohen@redhat.com> - 5.2.0-1
|
|
|
09a63b |
- Rebase to 5.2.0
|
|
|
09a63b |
|
|
|
09a63b |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.1-8
|
|
|
09a63b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
09a63b |
|
|
|
09a63b |
* Wed Jul 24 2013 William Cohen <wcohen@redhat.com> - 5.1.1-7
|
|
|
09a63b |
- rhbz830275 - Add support for POWER8 processor to PAPI
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Jul 22 2013 William Cohen <wcohen@redhat.com> - 5.1.1-6
|
|
|
09a63b |
- Add autoconf buildrequires.
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Jul 22 2013 William Cohen <wcohen@redhat.com> - 5.1.1-5
|
|
|
09a63b |
- rhbz986673 - /usr/lib64/libpapi.so is unowned
|
|
|
09a63b |
- Package files in /usr/share/papi only once.
|
|
|
09a63b |
- Avoid dependency problem with parallel make of man pages.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Jul 19 2013 William Cohen <wcohen@redhat.com> - 5.1.1-4
|
|
|
09a63b |
- Correct changelog.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Jul 5 2013 William Cohen <wcohen@redhat.com> - 5.1.1-3
|
|
|
09a63b |
- Add man page corrections/updates.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Jun 28 2013 William Cohen <wcohen@redhat.com> - 5.1.1-2
|
|
|
09a63b |
- Add testsuite subpackage.
|
|
|
09a63b |
|
|
|
09a63b |
* Thu May 30 2013 William Cohen <wcohen@redhat.com> - 5.1.1-1
|
|
|
09a63b |
- Rebase to 5.1.1
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Apr 15 2013 William Cohen <wcohen@redhat.com> - 5.1.0.2-2
|
|
|
09a63b |
- Fix arm FTBS rhbz 951806.
|
|
|
09a63b |
|
|
|
09a63b |
* Tue Apr 9 2013 William Cohen <wcohen@redhat.com> - 5.1.0.2-1
|
|
|
09a63b |
- Rebase to 5.1.0.2
|
|
|
09a63b |
|
|
|
09a63b |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.1-6
|
|
|
09a63b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Jan 14 2013 William Cohen <wcohen@redhat.com> - 5.0.1-5
|
|
|
09a63b |
- Add armv7 cortex a15 presets.
|
|
|
09a63b |
|
|
|
09a63b |
* Tue Dec 04 2012 William Cohen <wcohen@redhat.com> - 5.0.1-4
|
|
|
09a63b |
- Disable ldconfig on install.
|
|
|
09a63b |
|
|
|
09a63b |
* Thu Nov 08 2012 William Cohen <wcohen@redhat.com> - 5.0.1-3
|
|
|
09a63b |
- Avoid duplicated shared library.
|
|
|
09a63b |
|
|
|
09a63b |
* Wed Oct 03 2012 William Cohen <wcohen@redhat.com> - 5.0.1-2
|
|
|
09a63b |
- Make sure using compatible version of libpfm.
|
|
|
09a63b |
|
|
|
09a63b |
* Thu Sep 20 2012 William Cohen <wcohen@redhat.com> - 5.0.1-1
|
|
|
09a63b |
- Rebase to 5.0.1.
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Sep 10 2012 William Cohen <wcohen@redhat.com> - 5.0.0-6
|
|
|
09a63b |
- Back port fixes for Intel Ivy Bridge event presets.
|
|
|
09a63b |
|
|
|
09a63b |
* Thu Aug 30 2012 William Cohen <wcohen@redhat.com> - 5.0.0-5
|
|
|
09a63b |
- Fixes to make papi with unbundled libpfm.
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Aug 27 2012 William Cohen <wcohen@redhat.com> - 5.0.0-2
|
|
|
09a63b |
- Keep libpfm unbundled.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Aug 24 2012 William Cohen <wcohen@redhat.com> - 5.0.0-1
|
|
|
09a63b |
- Rebase to 5.0.0.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.0-5
|
|
|
09a63b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-4
|
|
|
09a63b |
- Use siginfo_t rather than struct siginfo.
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-3
|
|
|
09a63b |
- Correct build requires.
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-2
|
|
|
09a63b |
- Unbundle libpfm4 from papi.
|
|
|
09a63b |
- Correct description spellings.
|
|
|
09a63b |
- Remove unused test section.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Apr 20 2012 William Cohen <wcohen@redhat.com> - 4.4.0-1
|
|
|
09a63b |
- Rebase to 4.4.0.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Mar 9 2012 William Cohen <wcohen@redhat.com> - 4.2.1-2
|
|
|
09a63b |
- Fix overrun in lmsensor component. (rhbz797692)
|
|
|
09a63b |
|
|
|
09a63b |
* Tue Feb 14 2012 William Cohen <wcohen@redhat.com> - 4.2.1-1
|
|
|
09a63b |
- Rebase to 4.2.1.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-4
|
|
|
09a63b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
09a63b |
|
|
|
09a63b |
* Wed Nov 02 2011 William Cohen <wcohen@redhat.com> - 4.2.0-3
|
|
|
09a63b |
- Remove unwanted man1/*.c.1 files. (rhbz749725)
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Oct 31 2011 William Cohen <wcohen@redhat.com> - 4.2.0-2
|
|
|
09a63b |
- Include appropirate man pages with papi rpm. (rhbz749725)
|
|
|
09a63b |
- Rebase to papi-4.2.0, fixup for coretemp component. (rhbz746851)
|
|
|
09a63b |
|
|
|
09a63b |
* Thu Oct 27 2011 William Cohen <wcohen@redhat.com> - 4.2.0-1
|
|
|
09a63b |
- Rebase to papi-4.2.0.
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Aug 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-3
|
|
|
09a63b |
- Provide papi-static.
|
|
|
09a63b |
|
|
|
09a63b |
* Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-2
|
|
|
09a63b |
- Use corrected papi-4.1.3.
|
|
|
09a63b |
|
|
|
09a63b |
* Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-1
|
|
|
09a63b |
- Rebase to papi-4.1.3
|
|
|
09a63b |
|
|
|
09a63b |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2.1-2
|
|
|
09a63b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
09a63b |
|
|
|
09a63b |
* Mon Jan 24 2011 William Cohen <wcohen@redhat.com> - 4.1.2.1-1
|
|
|
09a63b |
- Rebase to papi-4.1.2.1
|
|
|
09a63b |
|
|
|
09a63b |
* Fri Oct 1 2010 William Cohen <wcohen@redhat.com> - 4.1.1-1
|
|
|
09a63b |
- Rebase to papi-4.1.1
|
|
|
09a63b |
|
|
|
09a63b |
* Tue Jun 22 2010 William Cohen <wcohen@redhat.com> - 4.1.0-1
|
|
|
09a63b |
- Rebase to papi-4.1.0
|
|
|
09a63b |
|
|
|
09a63b |
* Mon May 17 2010 William Cohen <wcohen@redhat.com> - 4.0.0-5
|
|
|
09a63b |
- Test run with upstream cvs version.
|
|
|
09a63b |
|
|
|
09a63b |
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-4
|
|
|
09a63b |
- Resolves: rhbz562935 Rebase to papi-4.0.0 (correct ExcludeArch).
|
|
|
09a63b |
|
|
|
09a63b |
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-3
|
|
|
09a63b |
- Resolves: rhbz562935 Rebase to papi-4.0.0 (bump nvr).
|
|
|
09a63b |
|
|
|
09a63b |
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-2
|
|
|
09a63b |
- correct the ctests/shlib test
|
|
|
09a63b |
- have PAPI_set_multiplex() return proper value
|
|
|
09a63b |
- properly handle event unit masks
|
|
|
09a63b |
- correct PAPI_name_to_code() to match events
|
|
|
09a63b |
- Resolves: rhbz562935 Rebase to papi-4.0.0
|
|
|
09a63b |
|
|
|
09a63b |
* Wed Jan 13 2010 William Cohen <wcohen@redhat.com> - 4.0.0-1
|
|
|
09a63b |
- Generate papi.spec file for papi-4.0.0.
|