papi-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. %bcond_with bundled_libpfm
  2. Summary: Performance Application Programming Interface
  3. Summary(ja): パフォーマンス計測 API
  4. Name: papi
  5. Version: 5.4.0
  6. Release: 3%{?_dist_release}
  7. License: BSD
  8. Group: Development/Tools
  9. URL: http://icl.cs.utk.edu/papi/
  10. Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: autoconf
  13. BuildRequires: doxygen
  14. BuildRequires: ncurses-devel
  15. BuildRequires: gcc-gfortran
  16. BuildRequires: kernel-headers >= 2.6.32
  17. BuildRequires: chrpath
  18. BuildRequires: lm-sensors-devel >= 3.0.0
  19. %if %{without bundled_libpfm}
  20. BuildRequires: libpfm-devel >= 4.4.0-5
  21. BuildRequires: libpfm-static >= 4.4.0-5
  22. %endif
  23. # Following required for net component
  24. BuildRequires: net-tools
  25. # Following required for inifiband component
  26. # BuildRequires: libibmad-devel
  27. Requires: papi-libs = %{version}-%{release}
  28. # Right now libpfm does not know anything about s390 and will fail
  29. ExcludeArch: s390 s390x
  30. %description
  31. PAPI provides a programmer interface to monitor the performance of
  32. running programs.
  33. %package libs
  34. Summary: Libraries for PAPI clients
  35. Summary(ja): PAPI クライアント用のライブラリ
  36. Group: System Environment/Libraries
  37. %description libs
  38. This package contains the run-time libraries for any application that wishes
  39. to use PAPI.
  40. %package devel
  41. Summary: Header files for the compiling programs with PAPI
  42. Summary(ja): PAPI を用いたプログラムのコンパイルに必要なヘッダファイル
  43. Group: Development/Libraries
  44. Requires: papi = %{version}-%{release}
  45. %description devel
  46. PAPI-devel includes the C header files that specify the PAPI user-space
  47. libraries and interfaces. This is required for rebuilding any program
  48. that uses PAPI.
  49. %package testsuite
  50. Summary: Set of tests for checking PAPI functionality
  51. Summary(ja): PAPI の機能を確認するためのテストプログラム集
  52. Group: Development/Libraries
  53. Requires: papi = %{version}-%{release}
  54. %description testsuite
  55. PAPI-testuiste includes compiled versions of papi tests to ensure
  56. that PAPI functions on particular hardware.
  57. %package static
  58. Summary: Static libraries for the compiling programs with PAPI
  59. Summary(ja): PAPI を用いたプログラムのコンパイルに必要な静的ライブラリ
  60. Group: Development/Libraries
  61. Requires: papi-devel = %{version}-%{release}
  62. %description static
  63. PAPI-static includes the static versions of the library files for
  64. the PAPI user-space libraries and interfaces.
  65. %prep
  66. %setup -q
  67. %build
  68. %if %{without bundled_libpfm}
  69. # Build our own copy of libpfm.
  70. %global libpfm_config --with-pfm-incdir=%{_includedir} --with-pfm-libdir=%{_libdir}
  71. %endif
  72. cd src
  73. #autoconf
  74. %configure \
  75. --with-perf-events \
  76. %{?libpfm_config} \
  77. --with-static-lib=yes --with-shared-lib=yes --with-shlib \
  78. --with-components='appio coretemp example lmsensors lustre micpower net rapl stealtime'
  79. # implicit enabled components: perf_event perf_event_uncore
  80. #components currently removed from configure: infiniband, mx
  81. #components currently left out because of build configure/build issues
  82. # --with-components="bgpm coretemp_freebsd cuda host_micpower nvml vmware"
  83. cd components/lmsensors
  84. %configure --with-sensors_incdir=%{_includedir}/sensors \
  85. --with-sensors_libdir=%{_libdir}
  86. cd ../..
  87. #DBG workaround to make sure libpfm just uses the normal CFLAGS
  88. DBG="" make %{?_smp_mflags}
  89. #generate updated versions of the documentation
  90. #DBG workaround to make sure libpfm just uses the normal CFLAGS
  91. pushd ../doc
  92. DBG="" make
  93. DBG="" make install
  94. popd
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. cd src
  98. make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install-all
  99. chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
  100. %clean
  101. rm -rf $RPM_BUILD_ROOT
  102. %post libs -p /sbin/ldconfig
  103. %postun libs -p /sbin/ldconfig
  104. %files
  105. %defattr(-,root,root,-)
  106. %{_bindir}/*
  107. %dir /usr/share/papi
  108. /usr/share/papi/papi_events.csv
  109. %doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
  110. %doc %{_mandir}/man1/*
  111. %files libs
  112. %defattr(-,root,root,-)
  113. %{_libdir}/*.so.*
  114. %doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
  115. %files devel
  116. %defattr(-,root,root,-)
  117. %{_includedir}/*.h
  118. %if %{with bundled_libpfm}
  119. %{_includedir}/perfmon/*.h
  120. %endif
  121. %{_libdir}/*.so
  122. %doc %{_mandir}/man3/*
  123. %files testsuite
  124. %defattr(-,root,root,-)
  125. /usr/share/papi/run_tests*
  126. /usr/share/papi/ctests
  127. /usr/share/papi/ftests
  128. /usr/share/papi/components
  129. /usr/share/papi/testlib
  130. %files static
  131. %defattr(-,root,root,-)
  132. %{_libdir}/*.a
  133. %changelog
  134. * Fri Feb 6 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 5.4.0-3
  135. - initial build for Vine Linux
  136. * Thu Dec 18 2014 William Cohen <wcohen@redhat.com> - 5.4.0-2
  137. - Split out papi-libs as separate subpackage. (#1172875)
  138. * Mon Nov 17 2014 William Cohen <wcohen@redhat.com> - 5.4.0-1
  139. - Rebase to papi-5.4.0.
  140. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.2-2
  141. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  142. * Mon Aug 4 2014 William Cohen <wcohen@redhat.com> - 5.3.2-1
  143. - Rebase to 5.3.2.
  144. * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2.16.ga7f6159
  145. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  146. * Fri Jan 17 2014 Lukas Berk <lberk@redhat.com> - 5.3.0-1.16.ga7f6159
  147. - Automated weekly rawhide release
  148. * Thu Jan 16 2014 William Cohen <wcohen@redhat.com> - 5.3.0-1
  149. - Rebase to 5.3.0.
  150. * Tue Jan 14 2014 William Cohen <wcohen@redhat.com> - 5.2.0-5
  151. - Add presets for Intel Silvermont.
  152. * Mon Jan 13 2014 William Cohen <wcohen@redhat.com> - 5.2.0-4
  153. - Add presets for Haswell and Ivy Bridge.
  154. * Wed Aug 14 2013 William Cohen <wcohen@redhat.com> - 5.2.0-2
  155. - Enable infiniband and stealtime components.
  156. * Wed Aug 07 2013 William Cohen <wcohen@redhat.com> - 5.2.0-1
  157. - Rebase to 5.2.0
  158. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.1-8
  159. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  160. * Wed Jul 24 2013 William Cohen <wcohen@redhat.com> - 5.1.1-7
  161. - rhbz830275 - Add support for POWER8 processor to PAPI
  162. * Mon Jul 22 2013 William Cohen <wcohen@redhat.com> - 5.1.1-6
  163. - Add autoconf buildrequires.
  164. * Mon Jul 22 2013 William Cohen <wcohen@redhat.com> - 5.1.1-5
  165. - rhbz986673 - /usr/lib64/libpapi.so is unowned
  166. - Package files in /usr/share/papi only once.
  167. - Avoid dependency problem with parallel make of man pages.
  168. * Fri Jul 19 2013 William Cohen <wcohen@redhat.com> - 5.1.1-4
  169. - Correct changelog.
  170. * Fri Jul 5 2013 William Cohen <wcohen@redhat.com> - 5.1.1-3
  171. - Add man page corrections/updates.
  172. * Fri Jun 28 2013 William Cohen <wcohen@redhat.com> - 5.1.1-2
  173. - Add testsuite subpackage.
  174. * Thu May 30 2013 William Cohen <wcohen@redhat.com> - 5.1.1-1
  175. - Rebase to 5.1.1
  176. * Mon Apr 15 2013 William Cohen <wcohen@redhat.com> - 5.1.0.2-2
  177. - Fix arm FTBS rhbz 951806.
  178. * Tue Apr 9 2013 William Cohen <wcohen@redhat.com> - 5.1.0.2-1
  179. - Rebase to 5.1.0.2
  180. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.1-6
  181. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  182. * Mon Jan 14 2013 William Cohen <wcohen@redhat.com> - 5.0.1-5
  183. - Add armv7 cortex a15 presets.
  184. * Tue Dec 04 2012 William Cohen <wcohen@redhat.com> - 5.0.1-4
  185. - Disable ldconfig on install.
  186. * Thu Nov 08 2012 William Cohen <wcohen@redhat.com> - 5.0.1-3
  187. - Avoid duplicated shared library.
  188. * Wed Oct 03 2012 William Cohen <wcohen@redhat.com> - 5.0.1-2
  189. - Make sure using compatible version of libpfm.
  190. * Thu Sep 20 2012 William Cohen <wcohen@redhat.com> - 5.0.1-1
  191. - Rebase to 5.0.1.
  192. * Mon Sep 10 2012 William Cohen <wcohen@redhat.com> - 5.0.0-6
  193. - Back port fixes for Intel Ivy Bridge event presets.
  194. * Thu Aug 30 2012 William Cohen <wcohen@redhat.com> - 5.0.0-5
  195. - Fixes to make papi with unbundled libpfm.
  196. * Mon Aug 27 2012 William Cohen <wcohen@redhat.com> - 5.0.0-2
  197. - Keep libpfm unbundled.
  198. * Fri Aug 24 2012 William Cohen <wcohen@redhat.com> - 5.0.0-1
  199. - Rebase to 5.0.0.
  200. * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.0-5
  201. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  202. * Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-4
  203. - Use siginfo_t rather than struct siginfo.
  204. * Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-3
  205. - Correct build requires.
  206. * Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-2
  207. - Unbundle libpfm4 from papi.
  208. - Correct description spellings.
  209. - Remove unused test section.
  210. * Fri Apr 20 2012 William Cohen <wcohen@redhat.com> - 4.4.0-1
  211. - Rebase to 4.4.0.
  212. * Fri Mar 9 2012 William Cohen <wcohen@redhat.com> - 4.2.1-2
  213. - Fix overrun in lmsensor component. (rhbz797692)
  214. * Tue Feb 14 2012 William Cohen <wcohen@redhat.com> - 4.2.1-1
  215. - Rebase to 4.2.1.
  216. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-4
  217. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  218. * Wed Nov 02 2011 William Cohen <wcohen@redhat.com> - 4.2.0-3
  219. - Remove unwanted man1/*.c.1 files. (rhbz749725)
  220. * Mon Oct 31 2011 William Cohen <wcohen@redhat.com> - 4.2.0-2
  221. - Include appropirate man pages with papi rpm. (rhbz749725)
  222. - Rebase to papi-4.2.0, fixup for coretemp component. (rhbz746851)
  223. * Thu Oct 27 2011 William Cohen <wcohen@redhat.com> - 4.2.0-1
  224. - Rebase to papi-4.2.0.
  225. * Fri Aug 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-3
  226. - Provide papi-static.
  227. * Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-2
  228. - Use corrected papi-4.1.3.
  229. * Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-1
  230. - Rebase to papi-4.1.3
  231. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2.1-2
  232. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  233. * Mon Jan 24 2011 William Cohen <wcohen@redhat.com> - 4.1.2.1-1
  234. - Rebase to papi-4.1.2.1
  235. * Fri Oct 1 2010 William Cohen <wcohen@redhat.com> - 4.1.1-1
  236. - Rebase to papi-4.1.1
  237. * Tue Jun 22 2010 William Cohen <wcohen@redhat.com> - 4.1.0-1
  238. - Rebase to papi-4.1.0
  239. * Mon May 17 2010 William Cohen <wcohen@redhat.com> - 4.0.0-5
  240. - Test run with upstream cvs version.
  241. * Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-4
  242. - Resolves: rhbz562935 Rebase to papi-4.0.0 (correct ExcludeArch).
  243. * Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-3
  244. - Resolves: rhbz562935 Rebase to papi-4.0.0 (bump nvr).
  245. * Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-2
  246. - correct the ctests/shlib test
  247. - have PAPI_set_multiplex() return proper value
  248. - properly handle event unit masks
  249. - correct PAPI_name_to_code() to match events
  250. - Resolves: rhbz562935 Rebase to papi-4.0.0
  251. * Wed Jan 13 2010 William Cohen <wcohen@redhat.com> - 4.0.0-1
  252. - Generate papi.spec file for papi-4.0.0.