From 50908a7ccfb36b81fecca17697fdb9c427625e11fac44d4f03d78e6bae29e532 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 1 Feb 2025 22:19:13 +0000 Subject: [PATCH] - Update to 0.34.0: - Added support for detached (open)SUSE style changelogs - Update to 0.33.0: - There is a new convenience method Sections.get_or_create() that allows you to manipulate a section without checking if it exists first. If a section doesn't exist, it will be appended to the end. (#441) For example, this will work properly even on spec files without %changelog: with spec.sections() as sections: changelog = sections.get_or_create("changelog") changelog[:] = ["%autochangelog"] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=60 --- python-specfile.changes | 15 +++++++++++++++ python-specfile.spec | 4 ++-- specfile-0.32.6.tar.gz | 3 --- specfile-0.34.0.tar.gz | 3 +++ 4 files changed, 20 insertions(+), 5 deletions(-) delete mode 100644 specfile-0.32.6.tar.gz create mode 100644 specfile-0.34.0.tar.gz diff --git a/python-specfile.changes b/python-specfile.changes index 510be8f..2d8fb91 100644 --- a/python-specfile.changes +++ b/python-specfile.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Sat Feb 1 22:17:17 UTC 2025 - Matej Cepl + +- Update to 0.34.0: + - Added support for detached (open)SUSE style changelogs +- Update to 0.33.0: + - There is a new convenience method Sections.get_or_create() + that allows you to manipulate a section without checking + if it exists first. If a section doesn't exist, it will be + appended to the end. (#441) For example, this will work + properly even on spec files without %changelog: + with spec.sections() as sections: + changelog = sections.get_or_create("changelog") + changelog[:] = ["%autochangelog"] + ------------------------------------------------------------------- Thu Nov 14 05:42:51 UTC 2024 - Joshua Smith diff --git a/python-specfile.spec b/python-specfile.spec index 76bd2bb..f86b61a 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -1,7 +1,7 @@ # # spec file for package python-specfile # -# Copyright (c) 2024 SUSE LLC +# 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 @@ -17,7 +17,7 @@ Name: python-specfile -Version: 0.32.6 +Version: 0.34.0 Release: 0 Summary: A library for parsing and manipulating RPM spec files License: MIT diff --git a/specfile-0.32.6.tar.gz b/specfile-0.32.6.tar.gz deleted file mode 100644 index 7b85927..0000000 --- a/specfile-0.32.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5e214b38d02b0e38d011a3af5e655b5ea93ee6113570ea0bccb06af314f96d3 -size 107204 diff --git a/specfile-0.34.0.tar.gz b/specfile-0.34.0.tar.gz new file mode 100644 index 0000000..69b2b05 --- /dev/null +++ b/specfile-0.34.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7950b42dbbb3c9d294e2aeaf9d4c8e853d66c7fad21ec92611c2126ba4dd6e62 +size 109985