jemalloc-vl.spec 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: General-purpose scalable concurrent malloc implementation
  3. Summary(ja): 汎用・スケーラブル・並行な malloc 実装
  4. Name: jemalloc
  5. Version: 5.3.0
  6. Release: 1%{?_dist_release}
  7. Group: system
  8. Vendor: Project Vine
  9. Distribution: Vine Linux
  10. License: BSD
  11. URL: http://jemalloc.net/
  12. Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. BuildRequires: /usr/bin/xsltproc
  15. %ifnarch s390
  16. BuildRequires: valgrind-devel
  17. %endif
  18. %description
  19. General-purpose scalable concurrent malloc(3) implementation.
  20. This distribution is the stand-alone "portable" implementation of %{name}.
  21. %package devel
  22. Summary: Development files for %{name}
  23. Requires: %{name} = %{version}-%{release}
  24. Group: programming
  25. %description devel
  26. The %{name}-devel package contains libraries and header files for
  27. developing applications that use %{name}.
  28. %package -n compat32-jemalloc
  29. Summary: General-purpose scalable concurrent malloc implementation
  30. Summary(ja): 汎用・スケーラブル・並行な malloc 実装
  31. Group: system,legacy
  32. %description -n compat32-jemalloc
  33. General-purpose scalable concurrent malloc(3) implementation.
  34. This distribution is the stand-alone "portable" implementation of %{name}.
  35. %debug_package
  36. %prep
  37. %setup -q
  38. %build
  39. %ifarch i686
  40. %if 0%{?fedora} >= 21
  41. CFLAGS="%{optflags} -msse2"
  42. %endif
  43. %endif
  44. %if 0%{?rhel} && 0%{?rhel} < 7
  45. export LDFLAGS="%{?__global_ldflags} -lrt"
  46. %endif
  47. # disable Transparent HugePages on Vine Linux.
  48. perl -pi -e 's/je_cv_thp=yes/je_cv_thp=no/' configure
  49. %configure
  50. make %{?_smp_mflags}
  51. %install
  52. rm -rf %{buildroot}
  53. make install DESTDIR=%{buildroot}
  54. # Install this with doc macro instead
  55. rm %{buildroot}%{_datadir}/doc/%{name}/jemalloc.html
  56. # None of these in fedora
  57. find %{buildroot}%{_libdir}/ -name '*.a' -exec rm -vf {} ';'
  58. %check
  59. make check
  60. %clean
  61. rm -rf %{buildroot}
  62. %files
  63. %defattr(-,root,root,-)
  64. %license COPYING
  65. %doc README VERSION
  66. %doc doc/jemalloc.html
  67. %{_libdir}/libjemalloc.so.*
  68. %{_bindir}/jemalloc.sh
  69. %{_bindir}/jemalloc-config
  70. %{_bindir}/jeprof
  71. %{_libdir}/pkgconfig/jemalloc.pc
  72. %files devel
  73. %defattr(-,root,root,-)
  74. %{_includedir}/jemalloc
  75. %{_libdir}/libjemalloc.so
  76. %{_mandir}/man3/jemalloc.3*
  77. %if %{build_compat32}
  78. %files -n compat32-jemalloc
  79. %{_libdir}/libjemalloc.so.*
  80. %endif
  81. %changelog
  82. * Sat May 07 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.3.0-1
  83. - new upstream release.
  84. * Sat Oct 16 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.2.1-2
  85. - rebuilt with current environment.
  86. - dropped ldconfig scriptlets.
  87. * Thu Aug 29 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.2.1-1
  88. - new upstream release.
  89. * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.1.0-1
  90. - new upstream release.
  91. - added a sub-package 'compat32-jemalloc'.
  92. * Sat Dec 02 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.0.1-1
  93. - new upstream release.
  94. * Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.5.0-1
  95. - new upstream release.
  96. * Wed Dec 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.4.0-1
  97. - new upstream release.
  98. * Fri Jul 8 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.2.1-1
  99. - new upstream release.
  100. * Wed May 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.1.1-1
  101. - new upstream release.
  102. * Fri Oct 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.0.4-2
  103. - initial build for Vine Linux.
  104. * Sat Oct 24 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.4-1
  105. - New upstream release
  106. * Fri Sep 25 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.3-1
  107. - New upstream release
  108. - Removed oom test patch, it has been fixed upstream
  109. * Thu Sep 24 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.2-2
  110. - oom test also fails on 32bit ppc, so patch it out there as well
  111. * Tue Sep 22 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.2-1
  112. - New upstream release
  113. - Added a patch removing a non-critical test that fails on i386
  114. - Removed now included negative bitshift patch.
  115. * Wed Aug 19 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.0-1
  116. - New upstream release
  117. - Removed the no-pprof patch, as jemalloc now comes with its own prof variant
  118. - Removed atomic.h patch for armv5tel. jemalloc now provides a specific
  119. variant for armv5tel
  120. - Added a patch from upstream for errnous bitshift by negative amounts on pagesize >8KiB
  121. - Added -lrt to LDFLAGS for rhel<7
  122. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-9
  123. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  124. * Mon Aug 18 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-8
  125. - valgrind-devel is not available on s390, closes #1131014
  126. * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-7
  127. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  128. * Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-6
  129. - bz #1106933 fix only for fedora 21 and above
  130. * Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-5
  131. - Added valgrind-devel to BuildRequires, fixing bz #974270
  132. * Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-4
  133. - Added an i686 build fixing bz #1106933
  134. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-3
  135. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  136. * Tue Apr 01 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-2
  137. - Patch that removes explicit altivec on el5/ppc
  138. * Mon Mar 31 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-1
  139. - New upstream release. This release fixes a critical regression
  140. * Fri Mar 28 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.5.1-1
  141. - New upstream release
  142. - Updated nopprof patch to match new release
  143. - Fixed a few bogus changelog entries
  144. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
  145. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  146. * Fri Jun 07 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.4.0-1
  147. - New upstream release
  148. * Mon Mar 11 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.3.1-1
  149. - New upstream release
  150. - Dropped s390 patch, it's in upstream now.
  151. * Fri Jan 25 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.3.0-1
  152. - New upstream release
  153. * Mon Nov 19 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.2.0-1
  154. - New upstream release
  155. * Tue Oct 23 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.1.0-1
  156. - New upstream release
  157. - Removed ptmalloc_lock_all patch, it is merged upstream
  158. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-3
  159. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  160. * Thu May 24 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.0-2
  161. - Added a patch from upstream, fixing a crash in ptmalloc_lock_all,
  162. closing #824646
  163. * Mon May 14 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.0-1
  164. - New upstream release
  165. - Updated no_pprof patch to match new release
  166. - Updated s390 patch to match new relase
  167. - Added make check
  168. - Added new script jemalloc.sh
  169. - Added a patch for atomic operations on epel5/ppc
  170. * Sat Apr 21 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2.2.5-5
  171. - Improve ARM patch
  172. * Fri Apr 20 2012 Dennis Gilmore <dennis@ausil.us> - 2.2.5-4
  173. - no attomics on armv5tel
  174. * Wed Feb 08 2012 Dan Horák <dan[at]danny.cz> - 2.2.5-3
  175. - substitute version information in the header (#788517)
  176. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.5-2
  177. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  178. * Sun Nov 06 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.5-1
  179. - New upstream release, closes #75618
  180. * Sun Nov 06 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.4-1
  181. - New upstream release
  182. * Thu Oct 13 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.3-1
  183. - New upstream release, closes #735057
  184. * Mon Aug 01 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.2-1
  185. - New upstream release, closes #727103
  186. - Updated no_pprof patch for 2.2.2
  187. * Thu Mar 31 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.1-1
  188. - New upstream release
  189. * Sun Mar 27 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.0-1
  190. - New upstream release
  191. - Updated no_pprof patch for 2.2.0
  192. * Tue Mar 15 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.3-2
  193. - New upstream release
  194. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
  195. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  196. * Tue Feb 01 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.1-1
  197. - New upstream release
  198. * Wed Jan 05 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.0-1
  199. - New upstream release
  200. - Updated patch to remove pprof
  201. - Added html doc and xsltproc as a requirement to build it
  202. * Sat Dec 11 2010 Dan Horák <dan[at]danny.cz> - 2.0.1-3
  203. - fix build on s390
  204. * Thu Nov 18 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.0.1-2
  205. - Added a patch that removes pprof, as it already exists in the
  206. google-perftools package
  207. - Cosmetic fixes as requested in the package review (rhbz#653682)
  208. * Mon Nov 15 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.0.1-1
  209. - First cut of an rpm distribution of jemalloc