forked from pool/python-python-rpm-spec
- 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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
101
python-python-rpm-spec.changes
Normal file
101
python-python-rpm-spec.changes
Normal file
@@ -0,0 +1,101 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 11:07:08 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- 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 <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <martin.schreiner@suse.com>
|
||||
|
||||
- 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 <martin.schreiner@suse.com>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
- 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 <mcalabkova@suse.com>
|
||||
|
||||
- update to 0.9
|
||||
* Ignore case when parsing directives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 5 12:52:41 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- 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
|
||||
61
python-python-rpm-spec.spec
Normal file
61
python-python-rpm-spec.spec
Normal file
@@ -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
|
||||
3
python_rpm_spec-0.15.0.tar.gz
Normal file
3
python_rpm_spec-0.15.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6ff7f0cd63059efe7cbc466431f70de485fc105ae8422321134d297dde9f3585
|
||||
size 60078
|
||||
3
python_rpm_spec-0.16.0.tar.gz
Normal file
3
python_rpm_spec-0.16.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6e6c08810d54a6e3be6cb4427a101a437f1063ae86a194e5fc8a17ec2fd8023d
|
||||
size 60698
|
||||
Reference in New Issue
Block a user