From 06c5e214a6f3a5b7d97295ba68d556604433d504deefb36a928e9dc8ef212f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 10 Jan 2025 13:06:23 +0000 Subject: [PATCH] - Update to 0.16.0 * Add support for Python 3.13. * Drop support for Python 3.8 version. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-rpm-spec?expand=0&rev=17 --- .gitattributes | 23 ++++++++ .gitignore | 1 + python-python-rpm-spec.changes | 101 +++++++++++++++++++++++++++++++++ python-python-rpm-spec.spec | 61 ++++++++++++++++++++ python_rpm_spec-0.15.0.tar.gz | 3 + python_rpm_spec-0.16.0.tar.gz | 3 + 6 files changed, 192 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-python-rpm-spec.changes create mode 100644 python-python-rpm-spec.spec create mode 100644 python_rpm_spec-0.15.0.tar.gz create mode 100644 python_rpm_spec-0.16.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-python-rpm-spec.changes b/python-python-rpm-spec.changes new file mode 100644 index 0000000..295c42f --- /dev/null +++ b/python-python-rpm-spec.changes @@ -0,0 +1,101 @@ +------------------------------------------------------------------- +Fri Jan 10 11:07:08 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.16.0 + * Add support for Python 3.13. + * Drop support for Python 3.8 version. + +------------------------------------------------------------------- +Mon Mar 4 03:15:47 UTC 2024 - Steve Kowalik + +- Update to 0.15.0: + * The `replace_macro` function gained a new `max_attempts` parameter that + prevents endless recursion in certain scenarios. Thanks @kraptor. + * Add support for Python 3.12. + * Drop support for Python 3.7. It is EOL and no longer supported by the + Python core team. +- Switch to autosetup macro. +- Drop patch avoid-DoS-on-carefully-crafted-spec-files.patch, now included + upstream. + +------------------------------------------------------------------- +Wed Sep 13 15:17:43 UTC 2023 - Martin Schreiner + +- Replace the contents of avoid-DoS-on-carefully-crafted-spec-files.patch + with a backwards-compatible patch, written by David Anes. + +------------------------------------------------------------------- +Wed Sep 13 06:08:44 UTC 2023 - Martin Schreiner + +- Add avoid-DoS-on-carefully-crafted-spec-files.patch. +- Update to v0.14.1: + - Changes from v0.14.1: + - Fix replace_macro's behavior with user-defined conditional + macros. + - The parsing of package names was wrong when tab characters where + used in %package. + - Implement parsing of spec files where sub-packages (%package) + have their own sources and patches defined. Previously, the + parser would just fail with an error message like + AttributeError: 'Package' object has no attribute + 'sources'. This is now fixed. + - Use SemVer for versioning. git tags are now prefixed with v, + e.g. v0.15.0 instead of 0.15.0. + - Changes from v0.14: + - Teach replace_macro how to deal with macros that are not wrapped + in curly braces. + - Add type annotations for tools like mypy, your IDE, and your + brain. + - Changes from v0.13: + - Fix parsing of BuildRequires:, Requires:, Conflicts:, + Obsoletes:, Provides: with comments at end of line.. + - Add CI for Python 3.11. + - Changes from v0.12: + - Fix %description and %changelog with multi-line strings. + - Changes from v0.11: + - Add type annotations for tools like mypy, your IDE, and your + brain. + - replace_macros() function now always expects a Spec instance as + second argument. Does not make much sense without. + - Add support for parsing %description and %changelog. + - Add support for ExcludeArch and ExclusiveArch. + - Add warnings_enabled knob to issue warnings of type UserWarning + during spec file parsing. + +------------------------------------------------------------------- +Tue Nov 17 04:47:01 UTC 2020 - John Vandenberg + +- Update to v0.10 + * Ignore spaces before ':' separator + * Fix behavior of replace_macro function when macro is a tag + +------------------------------------------------------------------- +Wed Aug 5 09:18:10 UTC 2020 - Marketa Calabkova + +- update to 0.9 + * Ignore case when parsing directives + +------------------------------------------------------------------- +Tue Mar 5 12:52:41 UTC 2019 - John Vandenberg + +- Switch to using pythonhosted.org for sdist +- Update to v0.8 + * Enable parsing versions in `BuildRequires:` and `Requires:` + * Add support for conditional macros, e.g. `%{?test_macro:expression}` + * Use flit for packaging + +------------------------------------------------------------------- +Sun May 27 15:17:54 UTC 2018 - toddrme2178@gmail.com + +- Fix tests on Leap 42.3 +- spec file cleanups + +------------------------------------------------------------------- +Sun May 27 15:06:15 UTC 2018 - toddrme2178@gmail.com + +- spec file cleanups + +------------------------------------------------------------------- +Sat May 26 00:08:01 UTC 2018 - kbabioch@suse.com + +- Initial packaging of version 0.7 diff --git a/python-python-rpm-spec.spec b/python-python-rpm-spec.spec new file mode 100644 index 0000000..e5a9704 --- /dev/null +++ b/python-python-rpm-spec.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-python-rpm-spec +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-python-rpm-spec +Version: 0.16.0 +Release: 0 +Summary: Python module for parsing RPM spec files +License: MIT +URL: https://github.com/bkircher/python-rpm-spec +Source0: https://files.pythonhosted.org/packages/source/p/python_rpm_spec/python_rpm_spec-%{version}.tar.gz +BuildRequires: %{python_module flit} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Conflicts: python-pyrpm +BuildArch: noarch +%python_subpackages + +%description +python-rpm-spec is a Python module for parsing RPM spec files. RPMs are build +from a package's sources along with a spec file. The spec file controls how the +RPM is built. This module allows you to parse spec files and gives you simple +access to various bits of information that is contained in the spec file. + +%prep +%autosetup -p1 -n python_rpm_spec-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests + +%files %{python_files} +%doc CHANGELOG.md README.md +%license LICENSE +%{python_sitelib}/pyrpm +%{python_sitelib}/python_rpm_spec-%{version}.dist-info + +%changelog diff --git a/python_rpm_spec-0.15.0.tar.gz b/python_rpm_spec-0.15.0.tar.gz new file mode 100644 index 0000000..766852a --- /dev/null +++ b/python_rpm_spec-0.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ff7f0cd63059efe7cbc466431f70de485fc105ae8422321134d297dde9f3585 +size 60078 diff --git a/python_rpm_spec-0.16.0.tar.gz b/python_rpm_spec-0.16.0.tar.gz new file mode 100644 index 0000000..b604b7d --- /dev/null +++ b/python_rpm_spec-0.16.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e6c08810d54a6e3be6cb4427a101a437f1063ae86a194e5fc8a17ec2fd8023d +size 60698