Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-rpm-macros for openSUSE:Factory checked in at 2023-02-01 16:38:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rpm-macros (Old) and /work/SRC/openSUSE:Factory/.python-rpm-macros.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rpm-macros" Wed Feb 1 16:38:19 2023 rev:47 rq:1061988 version:20230128.e704796 Changes: -------- --- /work/SRC/openSUSE:Factory/python-rpm-macros/python-rpm-macros.changes 2022-11-21 15:28:42.656378829 +0100 +++ /work/SRC/openSUSE:Factory/.python-rpm-macros.new.32243/python-rpm-macros.changes 2023-02-01 16:53:33.426464030 +0100 @@ -1,0 +2,6 @@ +Sat Jan 28 17:03:39 UTC 2023 - Ben Greiner <[email protected]> + +- Update to version 20230128.e704796: + * Strip buildroot from pyc files (#151) + +------------------------------------------------------------------- Old: ---- python-rpm-macros-20221117.8687578.tar.xz New: ---- python-rpm-macros-20230128.e704796.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rpm-macros.spec ++++++ --- /var/tmp/diff_new_pack.0liN9n/_old 2023-02-01 16:53:33.858466424 +0100 +++ /var/tmp/diff_new_pack.0liN9n/_new 2023-02-01 16:53:33.866466467 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-rpm-macros # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-rpm-macros -Version: 20221117.8687578 +Version: 20230128.e704796 Release: 0 Summary: RPM macros for building of Python modules License: WTFPL ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.0liN9n/_old 2023-02-01 16:53:33.918466756 +0100 +++ /var/tmp/diff_new_pack.0liN9n/_new 2023-02-01 16:53:33.922466778 +0100 @@ -3,6 +3,6 @@ <param name="url">git://github.com/openSUSE/python-rpm-macros.git</param> <param name="changesrevision">80d37568d9732beb7fcc2cf27c5c08f9c01fade1</param></service><service name="tar_scm"> <param name="url">https://github.com/openSUSE/python-rpm-macros.git</param> - <param name="changesrevision">868757846f707ffcf351720b9e4efb3eb7fd743f</param></service></servicedata> + <param name="changesrevision">e704796c8d93949837cf24491800281a4f5611eb</param></service></servicedata> (No newline at EOF) ++++++ python-rpm-macros-20221117.8687578.tar.xz -> python-rpm-macros-20230128.e704796.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rpm-macros-20221117.8687578/flavor.in new/python-rpm-macros-20230128.e704796/flavor.in --- old/python-rpm-macros-20221117.8687578/flavor.in 2022-11-17 13:09:15.000000000 +0100 +++ new/python-rpm-macros-20230128.e704796/flavor.in 2023-01-28 18:02:07.000000000 +0100 @@ -81,11 +81,14 @@ done \ fi \ %__#FLAVOR# -mpip install %{pyproject_install_args} $myargs \ +%#FLAVOR#_compile + +%#FLAVOR#_compile \ for d in %{buildroot}%{#FLAVOR#_sitelib} %{buildroot}%{#FLAVOR#_sitearch}; do \ if [ -d $d ]; then \ - find $d -name '*.pyc' -delete \ - %__#FLAVOR# -m compileall $d \ - %__#FLAVOR# -O -m compileall $d \ + find $d -iname '*.pyc' -delete \ + find $d -iname '*.py' -printf 'Generating cached byte-code for %%P\\n' -exec %__#FLAVOR# -c \\\ + 'import py_compile; f="{}"; [py_compile.compile(f, dfile=f[len("%{buildroot}"):], optimize=o) for o in [0, 1]]' ';' \ fi \ done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rpm-macros-20221117.8687578/macros/010-common-defs new/python-rpm-macros-20230128.e704796/macros/010-common-defs --- old/python-rpm-macros-20221117.8687578/macros/010-common-defs 2022-11-17 13:09:15.000000000 +0100 +++ new/python-rpm-macros-20230128.e704796/macros/010-common-defs 2023-01-28 18:02:07.000000000 +0100 @@ -170,19 +170,6 @@ print(rpm.expand(intro .. args .. "}")) \ } -##### Precompile scripts macro ##### - -%python_compileall \ -%{python_expand for d in %{buildroot}%{$python_sitelib} %{buildroot}%{$python_sitearch}; do \ - if [ -d $d ]; then \ - find $d -name '*.pyc' -delete; \ - $python -m compileall $d; \ - $python -O -m compileall $d; \ - fi; \ -done \ -} \ -%{nil} - ##### Find language files ##### %python_find_lang() \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-rpm-macros-20221117.8687578/macros.lua new/python-rpm-macros-20230128.e704796/macros.lua --- old/python-rpm-macros-20221117.8687578/macros.lua 2022-11-17 13:09:15.000000000 +0100 +++ new/python-rpm-macros-20230128.e704796/macros.lua 2023-01-28 18:02:07.000000000 +0100 @@ -460,6 +460,13 @@ end end +function python_compileall() + rpm.expand("%_python_macro_init") + for _, python in ipairs(pythons) do + print(rpm.expand("%" .. python .. "_compile")) + end +end + function python_files() rpm.expand("%_python_macro_init") local nparams = rpm.expand("%#")
