Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python38 for openSUSE:Factory 
checked in at 2021-02-15 23:10:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python38 (Old)
 and      /work/SRC/openSUSE:Factory/.python38.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python38"

Mon Feb 15 23:10:21 2021 rev:9 rq:870493 version:3.8.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python38/python38.changes        2021-02-02 
14:24:35.591291174 +0100
+++ /work/SRC/openSUSE:Factory/.python38.new.28504/python38.changes     
2021-02-15 23:10:22.810865279 +0100
@@ -1,0 +2,14 @@
+Tue Feb  9 01:37:01 UTC 2021 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add Obsoletes for python3-base when primary interpreter is set to
+  properly replace it during upgrades. (bsc#1181324)
+
+-------------------------------------------------------------------
+Fri Feb  5 15:35:29 UTC 2021 - Ben Greiner <c...@bnavigator.de>
+
+- Provide %have_<flavor> for all python flavors
+  gh#openSUSE/python-rpm-macros#96
+- Add %python3_default and %default_python3 for the primary python3
+  flavor
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python38.spec ++++++
--- /var/tmp/diff_new_pack.xJ58Qv/_old  2021-02-15 23:10:23.742866671 +0100
+++ /var/tmp/diff_new_pack.xJ58Qv/_new  2021-02-15 23:10:23.742866671 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package python38-core
+# spec file for package python38
 #
 # Copyright (c) 2021 SUSE LLC
 #
@@ -307,8 +307,9 @@
 Provides:       %{python_pkg_name}-xml = %{version}
 %if %{primary_interpreter}
 Provides:       python3-asyncio = %{version}
-Provides:       python3-base = %{version}
 Obsoletes:      python3-asyncio < %{version}
+Provides:       python3-base = %{version}
+Obsoletes:      python3-base < %{version}
 Provides:       python3-typing = %{version}
 Obsoletes:      python3-typing < %{version}
 Provides:       python3-xml = %{version}
@@ -698,10 +699,16 @@
 #cp Makefile Makefile.pre.in Makefile.pre 
$RPM_BUILD_ROOT%{sitedir}/config-%{python_abi}/
 
 # RPM macros
-%if %{primary_interpreter}
 mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/
+# primary python3 macros
+%if %{primary_interpreter}
 install -m 644 %{SOURCE7} %{buildroot}%{_rpmconfigdir}/macros.d/ # 
macros.python3
 %endif
+# flavor specific macros, only to be supplied "if we are in the buildset", 
e.g. installed.
+echo '
+# macros for the %{python_pkg_name} flavor
+%%have_%{python_pkg_name} 1
+' > %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{python_pkg_name}
 
 # import_failed hooks
 FAILDIR=%{buildroot}/%{sitedir}/_import_failed
@@ -860,6 +867,7 @@
 %if %{primary_interpreter}
 %{_rpmconfigdir}/macros.d/macros.python3
 %endif
+%{_rpmconfigdir}/macros.d/macros.%{python_pkg_name}
 # binary parts
 %dir %{sitedir}/lib-dynload
 %{dynlib array}


++++++ macros.python3 ++++++
--- /var/tmp/diff_new_pack.xJ58Qv/_old  2021-02-15 23:10:23.926866946 +0100
+++ /var/tmp/diff_new_pack.xJ58Qv/_new  2021-02-15 23:10:23.926866946 +0100
@@ -1,3 +1,4 @@
+# macros for the primary python3 providing python flavor
 %have_python3   1
 
 # commented out legacy macro definitions
@@ -25,4 +26,5 @@
 python3 -O -c "import sys, os, compileall; br='%{buildroot}'; 
compileall.compile_dir(sys.argv[1], ddir=br and 
(sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1\
 }
 
-
+%python3_default  %(s=$(rpm -qf /usr/bin/python3); echo ${s%%%%-*})
+%default_python3  %(s=$(rpm -qf /usr/bin/python3); echo ${s%%%%-*})

Reply via email to