Blame SPECS/jemalloc.spec

266176
%{?scl:%scl_package jemalloc}
266176
266176
Name:           %{?scl:%scl_prefix}jemalloc
266176
Version:        5.0.1
266176
266176
Release:        2%{?dist}
266176
Summary:        General-purpose scalable concurrent malloc implementation
266176
266176
Group:          System Environment/Libraries
266176
License:        BSD
266176
URL:            http://www.canonware.com/jemalloc/
266176
Source0:        https://github.com/jemalloc/jemalloc/releases/download/%{version}/jemalloc-%{version}.tar.bz2
266176
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
266176
266176
# Disable explicit altivec
266176
Patch4:         jemalloc-5.0.1.no_explicit_altivec.patch
266176
266176
# No Transparent Hugepages on systems not supporting them
266176
Patch5:         jemalloc-4.4.0.disable_thp.patch
266176
266176
# Upstream issue #979
266176
Patch6:         jemalloc_fix_test_suite_segv_aarch64.patch
266176
266176
BuildRequires:  /usr/bin/xsltproc
266176
%ifnarch s390 %{mips}
266176
BuildRequires:  valgrind-devel
266176
%endif
266176
%{?scl:Requires:%scl_runtime}
266176
266176
%description
266176
General-purpose scalable concurrent malloc(3) implementation.
266176
This distribution is the stand-alone "portable" implementation of %{name}.
266176
266176
%package devel
266176
Summary:        Development files for %{name}
266176
Requires:       %{name} = %{version}-%{release}
266176
Group:          Development/Libraries
266176
266176
%description devel
266176
The %{name}-devel package contains libraries and header files for
266176
developing applications that use %{name}.
266176
266176
%prep
266176
%setup -q -n jemalloc-%{version}
266176
266176
%patch4
266176
266176
# Disable thp on systems not supporting this, trusting that Fedora will enable
266176
# this on the build servers when ready for installed systems.
266176
%ifarch %ix86 %arm aarch64 s390x
266176
%define disable_thp --disable-thp
266176
%patch5
266176
%endif
266176
%patch6 -p1
266176
266176
sed -i '/^LIBPREFIX/s/@libprefix@/@libprefix@%{scl}/' Makefile.in
266176
266176
%build
266176
%ifarch %ix86
266176
%if 0%{?fedora} >= 21
266176
CFLAGS="%{optflags} -msse2"
266176
%endif
266176
%endif
266176
266176
%if 0%{?rhel} && 0%{?rhel} < 7
266176
export LDFLAGS="%{?__global_ldflags} -lrt"
266176
%endif
266176
266176
echo "For debugging package builders"
266176
echo "What is the pagesize?"
266176
getconf PAGESIZE
266176
266176
echo "What mm features are available?"
266176
ls /sys/kernel/mm
266176
ls /sys/kernel/mm/transparent_hugepage || true
266176
cat /sys/kernel/mm/transparent_hugepage/enabled || true
266176
266176
echo "What kernel version and config is this?"
266176
uname -a
266176
266176
%configure %{?disable_thp}
266176
make %{?_smp_mflags}
266176
266176
266176
%check
266176
make check
266176
266176
266176
%install
266176
rm -rf %{buildroot}
266176
make install DESTDIR=%{buildroot}
266176
# Install this with doc macro instead
266176
rm %{buildroot}%{_datadir}/doc/jemalloc/jemalloc.html
266176
266176
# None of these in fedora
266176
find %{buildroot}%{_libdir}/ -name '*.a' -exec rm -vf {} ';'
266176
266176
mv %{buildroot}%{_libdir}/pkgconfig/jemalloc.pc %{buildroot}%{_libdir}/pkgconfig/%{scl_prefix}jemalloc.pc
266176
266176
%clean
266176
rm -rf %{buildroot}
266176
266176
266176
%files
266176
%defattr(-,root,root,-)
266176
%{_libdir}/lib*jemalloc.so.*
266176
%{_bindir}/jemalloc.sh
266176
%{_bindir}/jemalloc-config
266176
%{_libdir}/pkgconfig/%{scl_prefix}jemalloc.pc
266176
%doc COPYING README VERSION
266176
%doc doc/jemalloc.html
266176
266176
%files devel
266176
%defattr(-,root,root,-)
266176
%{_includedir}/jemalloc
266176
%{_bindir}/jeprof
266176
%{_libdir}/lib*jemalloc.so
266176
%{_mandir}/man3/jemalloc.3*
266176
266176
%post -p /sbin/ldconfig
266176
266176
%postun -p /sbin/ldconfig
266176
266176
%changelog
266176
* Mon Jan 22 2018 Luboš Uhliarik <luhliari@redhat.com> - 5.0.1-2
266176
- Resolves: #1536477 - provide without rh-varnish5 prefix
266176
266176
* Thu Jan 04 2018 Luboš Uhliarik <luhliari@redhat.com> - 5.0.1-1
266176
- update to jemalloc 5.x, merge with Fedora
266176
266176
* Tue Aug 22 2017 Joe Orton <jorton@redhat.com> - 3.6.0-13
266176
- update to be SCL agnostic
266176
266176
* Mon Aug 17 2015 Jan Kaluza <jkaluza@redhat.com> - 3.6.0-12
266176
- add rh-varnish4 infix to jemalloc library (#1254034)
266176
266176
* Wed Jul 08 2015 Jan Kaluza <jkaluza@redhat.com> - 3.6.0-10
266176
- rebuild against new scl-utils
266176
266176
* Thu Jul 02 2015 Jan Kaluza <jkaluza@redhat.com> - 3.6.0-9
266176
- packaged as Software collection
266176
266176
* Mon Aug 18 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-8
266176
- valgrind-devel is not available on s390, closes #1131014
266176
266176
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-7
266176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
266176
266176
* Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-6
266176
- bz #1106933 fix only for fedora 21 and above
266176
266176
* Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-5
266176
- Added valgrind-devel to BuildRequires, fixing bz #974270
266176
266176
* Fri Aug 15 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-4
266176
- Added an i686 build fixing bz #1106933
266176
266176
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-3
266176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
266176
266176
* Tue Apr 01 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-2
266176
- Patch that removes explicit altivec on el5/ppc
266176
266176
* Mon Mar 31 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.6.0-1
266176
- New upstream release. This release fixes a critical regression 
266176
266176
* Fri Mar 28 2014 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.5.1-1
266176
- New upstream release
266176
- Updated nopprof patch to match new release
266176
- Fixed a few bogus changelog entries
266176
266176
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.0-2
266176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
266176
266176
* Fri Jun 07 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.4.0-1
266176
- New upstream release
266176
266176
* Mon Mar 11 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.3.1-1
266176
- New upstream release
266176
- Dropped s390 patch, it's in upstream now.
266176
266176
* Fri Jan 25 2013 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.3.0-1
266176
- New upstream release
266176
 
266176
* Mon Nov 19 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.2.0-1
266176
- New upstream release
266176
 
266176
* Tue Oct 23 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.1.0-1
266176
- New upstream release
266176
- Removed ptmalloc_lock_all patch, it is merged upstream
266176
266176
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-3
266176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
266176
266176
* Thu May 24 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.0-2
266176
- Added a patch from upstream, fixing a crash in ptmalloc_lock_all,
266176
  closing #824646
266176
266176
* Mon May 14 2012 Ingvar Hagelund <ingvar@redpill-linpro.com> - 3.0.0-1
266176
- New upstream release
266176
- Updated no_pprof patch to match new release
266176
- Updated s390 patch to match new relase
266176
- Added make check
266176
- Added new script jemalloc.sh
266176
- Added a patch for atomic operations on epel5/ppc
266176
266176
* Sat Apr 21 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2.2.5-5
266176
- Improve ARM patch
266176
266176
* Fri Apr 20 2012 Dennis Gilmore <dennis@ausil.us> - 2.2.5-4
266176
- no attomics on armv5tel
266176
266176
* Wed Feb 08 2012 Dan Horák <dan[at]danny.cz> - 2.2.5-3
266176
- substitute version information in the header (#788517)
266176
266176
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.5-2
266176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
266176
266176
* Sun Nov 06 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.5-1
266176
- New upstream release, closes #75618
266176
266176
* Sun Nov 06 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.4-1
266176
- New upstream release
266176
266176
* Thu Oct 13 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.3-1
266176
- New upstream release, closes #735057
266176
266176
* Mon Aug 01 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.2-1
266176
- New upstream release, closes #727103
266176
- Updated no_pprof patch for 2.2.2
266176
266176
* Thu Mar 31 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.1-1
266176
- New upstream release
266176
266176
* Sun Mar 27 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.2.0-1
266176
- New upstream release
266176
- Updated no_pprof patch for 2.2.0
266176
266176
* Tue Mar 15 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.3-2
266176
- New upstream release
266176
266176
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
266176
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
266176
266176
* Tue Feb 01 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.1-1
266176
- New upstream release
266176
266176
* Wed Jan 05 2011 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.1.0-1
266176
- New upstream release
266176
- Updated patch to remove pprof
266176
- Added html doc and xsltproc as a requirement to build it
266176
266176
* Sat Dec 11 2010 Dan Horák <dan[at]danny.cz> - 2.0.1-3
266176
- fix build on s390
266176
266176
* Thu Nov 18 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.0.1-2
266176
- Added a patch that removes pprof, as it already exists in the
266176
  google-perftools package
266176
- Cosmetic fixes as requested in the package review (rhbz#653682)
266176
266176
* Mon Nov 15 2010 Ingvar Hagelund <ingvar@redpill-linpro.com> - 2.0.1-1
266176
- First cut of an rpm distribution of jemalloc