Compare commits

...

2 Commits
master ... f17

Author SHA1 Message Date
David Malcolm a2ca9a32d2 3.2.3-7.1: use macro for power64 (rhbz#834653) 2012-06-22 13:48:47 -04:00
Bohuslav Kabrda 1d3fb61e87 fix tapset for debug build 2012-06-07 10:39:55 +02:00
1 changed files with 19 additions and 7 deletions

View File

@ -53,7 +53,7 @@
%global with_systemtap 1
# some arches don't have valgrind so we need to disable its support on them
%ifarch %{ix86} x86_64 ppc ppc64 s390x
%ifarch %{ix86} x86_64 ppc %{power64} s390x
%global with_valgrind 1
%else
%global with_valgrind 0
@ -122,7 +122,9 @@
Summary: Version 3 of the Python programming language aka Python 3000
Name: python3
Version: %{pybasever}.3
Release: 6%{?dist}
# For Fedora 17 maintenance, keep the "Release" of the form 7.n so that
# it is < that of Fedora 18:
Release: 7.1%{?dist}
License: Python
Group: Development/Languages
@ -634,7 +636,7 @@ done
%patch129 -p1
%ifarch ppc ppc64
%ifarch ppc %{power64}
%patch131 -p1
%endif
@ -658,7 +660,7 @@ done
%patch147 -p1
# 00148: upstream as of Python 3.2.3
# 00149: upstream as of Python 3.2.3
%ifarch ppc ppc64
%ifarch ppc %{power64}
%patch150 -p1
%endif
# 00151: not for python3
@ -780,7 +782,7 @@ BuildPython() {
BuildPython debug \
python-debug \
python%{pybasever}-debug \
%ifarch %{ix86} x86_64 ppc ppc64
%ifarch %{ix86} x86_64 ppc %{power64}
"--with-pydebug --with-tsc --with-count-allocs --with-call-profile" \
%else
"--with-pydebug --with-count-allocs --with-call-profile" \
@ -895,7 +897,7 @@ install -d -m 0755 %{buildroot}/usr/lib/python%{pybasever}/site-packages/__pycac
%global _pyconfig32_h pyconfig-32.h
%global _pyconfig64_h pyconfig-64.h
%ifarch ppc64 s390x x86_64 ia64 alpha sparc64
%ifarch %{power64} s390x x86_64 ia64 alpha sparc64
%global _pyconfig_h %{_pyconfig64_h}
%else
%global _pyconfig_h %{_pyconfig32_h}
@ -1054,7 +1056,7 @@ ln -s \
# Install a tapset for this libpython into tapsetdir, fixing up the path to the
# library:
mkdir -p %{buildroot}%{tapsetdir}
%ifarch ppc64 s390x x86_64 ia64 alpha sparc64
%ifarch %{power64} s390x x86_64 ia64 alpha sparc64
%global libpython_stp_optimized libpython%{pybasever}-64.stp
%global libpython_stp_debug libpython%{pybasever}-debug-64.stp
%else
@ -1068,8 +1070,12 @@ sed \
> %{buildroot}%{tapsetdir}/%{libpython_stp_optimized}
%if 0%{?with_debug_build}
# In Python 3, python3 and python3-debug don't point to the same binary,
# so we have to replace "python3" with "python3-debug" to get systemtap
# working with debug build
sed \
-e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_debug}|" \
-e 's|"python3"|"python3-debug"|' \
%{_sourcedir}/libpython.stp \
> %{buildroot}%{tapsetdir}/%{libpython_stp_debug}
%endif # with_debug_build
@ -1489,6 +1495,12 @@ rm -fr %{buildroot}
# ======================================================
%changelog
* Fri Jun 22 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-7.1
- use macro for power64 (rhbz#834653)
* Wed May 30 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 3.2.3-7
- fix tapset for debug build
* Fri May 4 2012 David Malcolm <dmalcolm@redhat.com> - 3.2.3-6
- renumber autotools patch from 300 to 5000
- specfile cleanups