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