jemalloc-vl.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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.2.1
  6. Release: 2%{?_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 Oct 16 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.2.1-2
  83. - rebuilt with current environment.
  84. - dropped ldconfig scriptlets.
  85. * Thu Aug 29 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.2.1-1
  86. - new upstream release.
  87. * Sat Nov 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.1.0-1
  88. - new upstream release.
  89. - added a sub-package 'compat32-jemalloc'.
  90. * Sat Dec 02 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.0.1-1
  91. - new upstream release.
  92. * Thu Mar 16 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.5.0-1
  93. - new upstream release.
  94. * Wed Dec 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.4.0-1
  95. - new upstream release.
  96. * Fri Jul 8 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.2.1-1
  97. - new upstream release.
  98. * Wed May 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.1.1-1
  99. - new upstream release.
  100. * Fri Oct 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.0.4-2
  101. - initial build for Vine Linux.
  102. * Sat Oct 24 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.4-1
  103. - New upstream release
  104. * Fri Sep 25 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.3-1
  105. - New upstream release
  106. - Removed oom test patch, it has been fixed upstream
  107. * Thu Sep 24 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.2-2
  108. - oom test also fails on 32bit ppc, so patch it out there as well
  109. * Tue Sep 22 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.2-1
  110. - New upstream release
  111. - Added a patch removing a non-critical test that fails on i386
  112. - Removed now included negative bitshift patch.
  113. * Wed Aug 19 2015 Ingvar Hagelund <ingvar@redpill-linpro.com> - 4.0.0-1
  114. - New upstream release
  115. - Removed the no-pprof patch, as jemalloc now comes with its own prof variant
  116. - Removed atomic.h patch for armv5tel. jemalloc now provides a specific
  117. variant for armv5tel
  118. - Added a patch from upstream for errnous bitshift by negative amounts on pagesize >8KiB
  119. - Added -lrt to LDFLAGS for rhel<7
  120. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-9
  121. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  122. * Mon Aug 18 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-8
  123. - valgrind-devel is not available on s390, closes #1131014
  124. * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-7
  125. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  126. * Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-6
  127. - bz #1106933 fix only for fedora 21 and above
  128. * Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-5
  129. - Added valgrind-devel to BuildRequires, fixing bz #974270
  130. * Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-4
  131. - Added an i686 build fixing bz #1106933
  132. * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-3
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  134. * Tue Apr 01 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-2
  135. - Patch that removes explicit altivec on el5/ppc
  136. * Mon Mar 31 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-1
  137. - New upstream release. This release fixes a critical regression
  138. * Fri Mar 28 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.5.1-1
  139. - New upstream release
  140. - Updated nopprof patch to match new release
  141. - Fixed a few bogus changelog entries
  142. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
  143. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  144. * Fri Jun 07 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.4.0-1
  145. - New upstream release
  146. * Mon Mar 11 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.3.1-1
  147. - New upstream release
  148. - Dropped s390 patch, it's in upstream now.
  149. * Fri Jan 25 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.3.0-1
  150. - New upstream release
  151. * Mon Nov 19 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.2.0-1
  152. - New upstream release
  153. * Tue Oct 23 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.1.0-1
  154. - New upstream release
  155. - Removed ptmalloc_lock_all patch, it is merged upstream
  156. * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-3
  157. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  158. * Thu May 24 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.0-2
  159. - Added a patch from upstream, fixing a crash in ptmalloc_lock_all,
  160. closing #824646
  161. * Mon May 14 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.0-1
  162. - New upstream release
  163. - Updated no_pprof patch to match new release
  164. - Updated s390 patch to match new relase
  165. - Added make check
  166. - Added new script jemalloc.sh
  167. - Added a patch for atomic operations on epel5/ppc
  168. * Sat Apr 21 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2.2.5-5
  169. - Improve ARM patch
  170. * Fri Apr 20 2012 Dennis Gilmore <dennis@ausil.us> - 2.2.5-4
  171. - no attomics on armv5tel
  172. * Wed Feb 08 2012 Dan Horák <dan[at]danny.cz> - 2.2.5-3
  173. - substitute version information in the header (#788517)
  174. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.5-2
  175. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  176. * Sun Nov 06 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.5-1
  177. - New upstream release, closes #75618
  178. * Sun Nov 06 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.4-1
  179. - New upstream release
  180. * Thu Oct 13 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.3-1
  181. - New upstream release, closes #735057
  182. * Mon Aug 01 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.2-1
  183. - New upstream release, closes #727103
  184. - Updated no_pprof patch for 2.2.2
  185. * Thu Mar 31 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.1-1
  186. - New upstream release
  187. * Sun Mar 27 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.0-1
  188. - New upstream release
  189. - Updated no_pprof patch for 2.2.0
  190. * Tue Mar 15 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.3-2
  191. - New upstream release
  192. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
  193. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  194. * Tue Feb 01 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.1-1
  195. - New upstream release
  196. * Wed Jan 05 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.0-1
  197. - New upstream release
  198. - Updated patch to remove pprof
  199. - Added html doc and xsltproc as a requirement to build it
  200. * Sat Dec 11 2010 Dan Horák <dan[at]danny.cz> - 2.0.1-3
  201. - fix build on s390
  202. * Thu Nov 18 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.0.1-2
  203. - Added a patch that removes pprof, as it already exists in the
  204. google-perftools package
  205. - Cosmetic fixes as requested in the package review (rhbz#653682)
  206. * Mon Nov 15 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.0.1-1
  207. - First cut of an rpm distribution of jemalloc