From 406e1981a231b3cbdfb119215c6a9c05fed0af21e4e8bee0d116cf792dc4842c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 4 Sep 2023 10:43:57 +0000 Subject: [PATCH] Accepting request 1108767 from home:mschreiner:branches:devel:languages:python - Update to 0.22.0: - Changes from 0.22.0: * Macro definitions and tags gained a new valid attribute. A macro definition/tag is considered valid if it doesn't appear in a false branch of any condition appearing in the spec file. - Changes from 0.21.0: * specfile no longer tracebacks when some sources are missing and can't be emulated. In such case the spec file is parsed without them at the cost of %setup and %patch macros potentially expanding differently than with the sources present. * Specfile's license in RPM spec file is now confirmed to be SPDX compatible. - Blacklist a new broken test on spec file: test_parse_texlive_spec. - Add a new Python module dependency: typing_extensions. - Apply spec-cleaner. OBS-URL: https://build.opensuse.org/request/show/1108767 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=27 --- python-specfile.changes | 19 +++++++++++++++++++ python-specfile.spec | 15 +++++++-------- specfile-0.20.0.tar.gz | 3 --- specfile-0.22.0.tar.gz | 3 +++ 4 files changed, 29 insertions(+), 11 deletions(-) delete mode 100644 specfile-0.20.0.tar.gz create mode 100644 specfile-0.22.0.tar.gz diff --git a/python-specfile.changes b/python-specfile.changes index 0ffbb0d..d915617 100644 --- a/python-specfile.changes +++ b/python-specfile.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Sun Sep 3 17:13:37 UTC 2023 - Martin Schreiner + +- Update to 0.22.0: + - Changes from 0.22.0: + * Macro definitions and tags gained a new valid attribute. A macro + definition/tag is considered valid if it doesn't appear in a + false branch of any condition appearing in the spec file. + - Changes from 0.21.0: + * specfile no longer tracebacks when some sources are missing and + can't be emulated. In such case the spec file is parsed without + them at the cost of %setup and %patch macros potentially + expanding differently than with the sources present. + * Specfile's license in RPM spec file is now confirmed to be SPDX + compatible. +- Blacklist a new broken test on spec file: test_parse_texlive_spec. +- Add a new Python module dependency: typing_extensions. +- Apply spec-cleaner. + ------------------------------------------------------------------- Wed Jul 19 04:53:41 UTC 2023 - Steve Kowalik diff --git a/python-specfile.spec b/python-specfile.spec index ec1ca4c..ae59e9b 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -17,7 +17,7 @@ Name: python-specfile -Version: 0.20.0 +Version: 0.22.0 Release: 0 Summary: A library for parsing and manipulating RPM spec files License: MIT @@ -27,18 +27,17 @@ BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: %{python_module typing_extensions} +Requires: python-rpm +BuildArch: noarch # SECTION test requirements -BuildRequires: git BuildRequires: %{python_module flexmock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module rpm} +BuildRequires: git # /SECTION -BuildRequires: fdupes -Requires: python-rpm - -BuildArch: noarch - %python_subpackages %description @@ -56,7 +55,7 @@ sed -i '/rpm-py-installer/d' setup.cfg # Following tests fail: # * test_update_tag # * test_macros_reinit -%pytest -k "not (test_update_tag or test_macros_reinit)" +%pytest -k "not (test_update_tag or test_macros_reinit or test_parse_texlive_spec)" %install %pyproject_install diff --git a/specfile-0.20.0.tar.gz b/specfile-0.20.0.tar.gz deleted file mode 100644 index 898b4d6..0000000 --- a/specfile-0.20.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:09138fa1dbe4d33d065f4ac1296bfe0ab8cc1aa9c89cbf58a6ea5c2a5a3325c6 -size 88330 diff --git a/specfile-0.22.0.tar.gz b/specfile-0.22.0.tar.gz new file mode 100644 index 0000000..6bdb53e --- /dev/null +++ b/specfile-0.22.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6a9019d9204d4f385ac6dc5a7b06469ee2f02122008a0d80729868000b8b603 +size 93617