[python3/nightly] Solving problems with build
Miro Hrončok
churchyard at fedoraproject.org
Fri Jun 27 22:26:58 UTC 2014
commit d335e8943fd5eb9bc2e602b687f6ca46cd009d0a
Author: Miro Hrončok <miro at hroncok.cz>
Date: Fri Jun 27 23:12:58 2014 +0200
Solving problems with build
macros.python3 | 8 ++++----
python3.spec | 6 +++++-
2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/macros.python3 b/macros.python3
index ae35f1e..9addbea 100644
--- a/macros.python3
+++ b/macros.python3
@@ -11,12 +11,12 @@
# these macros won't be needed if doing non-scl build, so define them in a way that won't overwrite system ones
%@scl at _os_install_post \
/usr/lib/rpm/brp-scl-compress %{_scl_root} \
- %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip} \
- /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \
+ %{!?__debug_package:/usr/lib/rpm/brp-strip %{__strip} \
+ /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} \
} \
- /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \
+ /usr/lib/rpm/brp-strip-static-archive %{__strip} \
%{!?_turn_off_bytecompile:scl enable @scl@ '/usr/lib/rpm/redhat/brp-python-bytecompile-with-scl-python-35 %@scl at __python3 %{?_python_bytecompile_errors_terminate_build} %{_scl_root}'} \
- /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/brp-python-hardlink
%@scl at _python_provides /usr/lib/rpm/pythondeps-scl-35.sh --provides %{?scl:@scl at -}
%@scl at _python_requires /usr/lib/rpm/pythondeps-scl-35.sh --requires %{?scl:@scl at -}
diff --git a/python3.spec b/python3.spec
index 344bf41..c66a75c 100644
--- a/python3.spec
+++ b/python3.spec
@@ -137,7 +137,8 @@ Release: 0.3.20140626hg3151f6f9df85%{?dist}
License: Python
Group: Development/Languages
-%global __provides_exclude ^pkgconfig
+%{?scl:%global __provides_exclude ^pkgconfig}
+%{?scl:%global __requires_exclude ^python\\(abi}
# =======================
# Build-time requirements
@@ -728,6 +729,9 @@ URL: http://www.python.org/
# See notes in bug 532118:
Provides: %{?scl_prefix}python(abi) = %{pybasever}
+# This should not be here! It's an ugly workaround for prov/req filtering
+Provides: python(abi) = %{pybasever}
+
Requires: %{?scl_prefix}%{pkg_name}-libs%{?_isa} = %{version}-%{release}
%{?scl:Requires: %{scl}-runtime}
More information about the scm-commits
mailing list