From 382a68f50c91adf33d9d5a1788b094ce1aee0378 Mon Sep 17 00:00:00 2001 From: Packit Date: Thu, 31 Mar 2022 10:07:23 +0000 Subject: [PATCH 01/12] [packit] 0.2.0 upstream release Upstream tag: 0.2.0 Upstream commit: a15b0918 Signed-off-by: Packit --- .packit.yaml | 113 +++++++++++++++++++++++++++++++++++++++++++ README.packit | 3 ++ python-specfile.spec | 17 ++++++- sources | 2 +- 4 files changed, 132 insertions(+), 3 deletions(-) create mode 100644 .packit.yaml create mode 100644 README.packit diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..836a928 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,113 @@ +--- +specfile_path: fedora/python-specfile.spec + +# add or remove files that should be synced +files_to_sync: + - fedora/python-specfile.spec + - .packit.yaml + +# name in upstream package repository or registry (e.g. in PyPI) +upstream_package_name: specfile +# downstream (Fedora) RPM package name +downstream_package_name: python-specfile + +copy_upstream_release_description: true + +actions: + # we need this b/c `git archive` doesn't put all the metadata in the tarball: + # LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'. + # Make sure you're either building from a fully intact git repository or PyPI tarballs. + create-archive: + - python3 setup.py sdist --dist-dir ./fedora/ + - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1" + get-current-version: python3 setup.py --version + +srpm_build_deps: + - python3-pip # "python3 setup.py --version" needs it + - python3-setuptools_scm + +jobs: + - job: propose_downstream + trigger: release + metadata: + dist_git_branches: + - fedora-all + - job: propose_downstream + trigger: release + specfile_path: epel/python-specfile.spec + files_to_sync: + - epel/python-specfile.spec + - .packit.yaml + metadata: + dist_git_branches: + - epel-8 + + - job: copr_build + trigger: pull_request + identifier: fedora + metadata: + targets: + - fedora-all + - &copr_build_pr_epel + job: copr_build + trigger: pull_request + specfile_path: epel/python-specfile.spec + identifier: epel + actions: + create-archive: + - python3 setup.py sdist --dist-dir ./epel/ + - bash -c "ls -1t ./epel/*.tar.gz | head -n 1" + get-current-version: python3 setup.py --version + metadata: + targets: + - epel-8 + + - job: copr_build + trigger: commit + metadata: + branch: main + targets: + - fedora-all + project: packit-dev + list_on_homepage: True + preserve_project: True + - <<: *copr_build_pr_epel + trigger: commit + metadata: + branch: main + targets: + - epel-8 + project: packit-dev + list_on_homepage: True + preserve_project: True + + - job: copr_build + trigger: release + metadata: + targets: + - fedora-all + project: packit-releases + list_on_homepage: True + preserve_project: True + - <<: *copr_build_pr_epel + trigger: release + metadata: + targets: + - epel-8 + project: packit-releases + list_on_homepage: True + preserve_project: True + + # downstream automation: + - job: koji_build + trigger: commit + metadata: + dist_git_branches: + - fedora-all + - epel-8 + - job: bodhi_update + trigger: commit + metadata: + dist_git_branches: + - fedora-stable # rawhide updates are created automatically + - epel-8 diff --git a/README.packit b/README.packit new file mode 100644 index 0000000..03c2af0 --- /dev/null +++ b/README.packit @@ -0,0 +1,3 @@ +This repository is maintained by packit. +https://packit.dev/ +The file was generated using packit 0.47.2.dev19+g37f70b1. diff --git a/python-specfile.spec b/python-specfile.spec index 4a9660b..735a52f 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -5,14 +5,14 @@ in a minimal diff.} Name: python-specfile -Version: 0.1.1 +Version: 0.2.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files License: MIT URL: https://github.com/packit/specfile -Source0: https://github.com/packit/specfile/archive/%{version}/specfile-%{version}.tar.gz +Source0: %{pypi_source specfile} BuildArch: noarch @@ -57,6 +57,19 @@ Summary: %{summary} %changelog +* Thu Mar 31 2022 Packit - 0.2.0-1 +- Enabled Zuul CI (#8) +- Switched from git:// to https:// for rebase hook (#22) +- Updated pre-commit configuration and adapted to type changes brought by new version of mypy (#24) +- Non-lowercase section names are now supported (#26) +- Added `Sections.get()` convenience method (#29) +- Added packit configuration and enabled packit (#25) +- Fixed infinite recursion when deep-copying instances of `Sections` and `Tags` (#30) +- Updated Fedora and EPEL spec files (#32) +- Fixed issues caused by older versions of dependencies on EPEL 8 (#33) +- Implemented high-level manipulation of sources and patches (#20, #36) +- It is now possible to parse spec files with missing local sources (#23) + * Mon Feb 21 2022 Nikola Forró - 0.1.1-1 - New upstream release 0.1.1 diff --git a/sources b/sources index 070fb37..49e3947 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.1.1.tar.gz) = c4714e7170ea27cb309d0137b831e067361d00d384646dd2e07876221256de3f4b32b06addfe78924f17046b96d63f53f33e4fe6f22ca20561e154629c49fbed +SHA512 (specfile-0.2.0.tar.gz) = cd524bb89fdd5a5e18ac42e575cd09140ed3a0fcf73de8939798fbd430e888c7817ebca4eeb44ba4e54d52de42e0bb115e4fd4ef58c146d93cabddddafe66332 From e7445ef7f98ed53d99a10b80c4c76e61cbd31ed2 Mon Sep 17 00:00:00 2001 From: Packit Date: Mon, 16 May 2022 12:14:30 +0000 Subject: [PATCH 02/12] [packit] 0.3.0 upstream release Upstream tag: 0.3.0 Upstream commit: df62e212 Signed-off-by: Packit --- .packit.yaml | 12 +++++++++++- README.packit | 2 +- python-specfile.spec | 14 +++++++++++++- sources | 2 +- 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 836a928..8149965 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -1,4 +1,9 @@ --- +# We want to use both instances for all upstream jobs including the `propose-downstream` one. +# For downstream, we need to pick just one instance (`stg` in our case) +# and redefine it for the `koji_build` and `bodhi_update` jobs. +packit_instances: ["prod", "stg"] + specfile_path: fedora/python-specfile.spec # add or remove files that should be synced @@ -13,6 +18,9 @@ downstream_package_name: python-specfile copy_upstream_release_description: true +upstream_project_url: https://github.com/packit/specfile +issue_repository: https://github.com/packit/specfile + actions: # we need this b/c `git archive` doesn't put all the metadata in the tarball: # LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'. @@ -101,13 +109,15 @@ jobs: # downstream automation: - job: koji_build trigger: commit + packit_instances: ["stg"] metadata: dist_git_branches: - fedora-all - epel-8 - job: bodhi_update trigger: commit + packit_instances: ["stg"] metadata: dist_git_branches: - - fedora-stable # rawhide updates are created automatically + - fedora-branched # rawhide updates are created automatically - epel-8 diff --git a/README.packit b/README.packit index 03c2af0..10e5ec5 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.47.2.dev19+g37f70b1. +The file was generated using packit 0.51.1.dev2+g213c789. diff --git a/python-specfile.spec b/python-specfile.spec index 735a52f..28f2fd4 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -5,7 +5,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.2.0 +Version: 0.3.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -57,6 +57,18 @@ Summary: %{summary} %changelog +* Mon May 16 2022 Packit - 0.3.0-1 +- Made `Sources` a `MutableSequence` (#36) +- Started using consistent terminology for source numbers and added the option to insert a source with a specific number (#47) +- Added support for implicit source numbering (#48) +- Documented sources and `%prep` macros in README (#49) +- Implemented high-level manipulation of version and release (#54) +- Added support for `* Mon May 16 2022 John Doe - 0.3.0-1.fc35 +- local build` (#56) +- Added `remote` property to sources and enabled addition of `Sources` (#59) +- Implemented mid-level manipulation of `%prep` section, including modification of `%prep` macros (#37, #52) + + * Thu Mar 31 2022 Packit - 0.2.0-1 - Enabled Zuul CI (#8) - Switched from git:// to https:// for rebase hook (#22) diff --git a/sources b/sources index 49e3947..9529ea1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.2.0.tar.gz) = cd524bb89fdd5a5e18ac42e575cd09140ed3a0fcf73de8939798fbd430e888c7817ebca4eeb44ba4e54d52de42e0bb115e4fd4ef58c146d93cabddddafe66332 +SHA512 (specfile-0.3.0.tar.gz) = 21cff0c575fd9f6c9f13b6e3e4002de68d41ab8248f2cf2873ac0e747371b258da62f90244fbd4f516d2491a5215cbce572c894ae45e12165c068c40d88ea5c8 From 6910fdffbbc16154b29ff87ab2b3c660a5126da1 Mon Sep 17 00:00:00 2001 From: Packit Date: Tue, 21 Jun 2022 13:33:23 +0000 Subject: [PATCH 03/12] [packit] 0.4.0 upstream release Upstream tag: 0.4.0 Upstream commit: d3b97670 Signed-off-by: Packit --- README.packit | 2 +- python-specfile.spec | 9 ++++++++- sources | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.packit b/README.packit index 10e5ec5..547d708 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.51.1.dev2+g213c789. +The file was generated using packit 0.52.2.dev4+g63407fe. diff --git a/python-specfile.spec b/python-specfile.spec index 28f2fd4..54b8759 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -5,7 +5,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.3.0 +Version: 0.4.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -57,6 +57,13 @@ Summary: %{summary} %changelog +* Tue Jun 21 2022 Packit - 0.4.0-1 +- Added convenience properties for most used tags (#63) +- Hardened linting by ignoring only specific mypy errors (#64) +- Fixed list of valid tag names and ensured newly added tags are not part of a condition block (#66) +- Initial patch number and its default number of digits are now honored (#66) +- Fixed a bug in `%prep` macro stringification (#67) + * Mon May 16 2022 Packit - 0.3.0-1 - Made `Sources` a `MutableSequence` (#36) - Started using consistent terminology for source numbers and added the option to insert a source with a specific number (#47) diff --git a/sources b/sources index 9529ea1..e9c1f0b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.3.0.tar.gz) = 21cff0c575fd9f6c9f13b6e3e4002de68d41ab8248f2cf2873ac0e747371b258da62f90244fbd4f516d2491a5215cbce572c894ae45e12165c068c40d88ea5c8 +SHA512 (specfile-0.4.0.tar.gz) = 21e68fd6a104dd4d652573a8661a0f6c10e19883374e5a87a16c9925c4ffb7d5758a4b14cf059ed14a0825fb25771898e8c95375e6d015ee22e38d0598af4773 From 2d91730c3c13cbd00cdb206218b32beed802cff3 Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 22 Jul 2022 08:04:17 +0000 Subject: [PATCH 04/12] [packit] 0.5.0 upstream release Upstream tag: 0.5.0 Upstream commit: e4f80e56 Signed-off-by: Packit --- README.packit | 2 +- python-specfile.spec | 11 ++++++++++- sources | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.packit b/README.packit index 547d708..30a712f 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.52.2.dev4+g63407fe. +The file was generated using packit 0.55.1.dev8+g432e38d. diff --git a/python-specfile.spec b/python-specfile.spec index 54b8759..5fd994b 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -5,7 +5,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.4.0 +Version: 0.5.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -57,6 +57,15 @@ Summary: %{summary} %changelog +* Fri Jul 22 2022 Packit - 0.5.0-1 +- Strict optional typing is now enforced (#68) +- Fixed deduplication of tag names (#69) +- Sources and patches can now be removed by number (#69) +- Number of digits in a source number is now expressed the same way as packit does it (#69) +- Empty lines are now compressed when deleting tags (#69) +- Added convenience property for getting texts of tag comments (#69) +- Added convenience method for adding a patch (#69) + * Tue Jun 21 2022 Packit - 0.4.0-1 - Added convenience properties for most used tags (#63) - Hardened linting by ignoring only specific mypy errors (#64) diff --git a/sources b/sources index e9c1f0b..8d9da2f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.4.0.tar.gz) = 21e68fd6a104dd4d652573a8661a0f6c10e19883374e5a87a16c9925c4ffb7d5758a4b14cf059ed14a0825fb25771898e8c95375e6d015ee22e38d0598af4773 +SHA512 (specfile-0.5.0.tar.gz) = e5472d1bfffc76acd781ee32fb79b4f2be9b46d3576fc5bf2d52e2edff3a2aa47563237bad1563c4c0f305a4aa1bbc59a515fa2153e6e37b01f1c7b216ad58e0 From f3ab3a9a9c9382ca1aa0ed9ac7627cc96d203d26 Mon Sep 17 00:00:00 2001 From: Packit Date: Wed, 10 Aug 2022 09:52:59 +0000 Subject: [PATCH 05/12] [packit] 0.5.1 upstream release Upstream tag: 0.5.1 Upstream commit: a03b8972 Signed-off-by: Packit --- .packit.yaml | 99 ++++++++++++++++++++++++-------------------- README.packit | 2 +- python-specfile.spec | 17 +++++--- sources | 2 +- 4 files changed, 67 insertions(+), 53 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 8149965..08dca7a 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -37,25 +37,22 @@ srpm_build_deps: jobs: - job: propose_downstream trigger: release - metadata: - dist_git_branches: - - fedora-all + dist_git_branches: + - fedora-all - job: propose_downstream trigger: release specfile_path: epel/python-specfile.spec files_to_sync: - epel/python-specfile.spec - .packit.yaml - metadata: - dist_git_branches: - - epel-8 + dist_git_branches: + - epel-8 - job: copr_build trigger: pull_request identifier: fedora - metadata: - targets: - - fedora-all + targets: + - fedora-all - &copr_build_pr_epel job: copr_build trigger: pull_request @@ -66,58 +63,68 @@ jobs: - python3 setup.py sdist --dist-dir ./epel/ - bash -c "ls -1t ./epel/*.tar.gz | head -n 1" get-current-version: python3 setup.py --version - metadata: - targets: - - epel-8 + targets: + - epel-8 - job: copr_build trigger: commit - metadata: - branch: main - targets: - - fedora-all - project: packit-dev - list_on_homepage: True - preserve_project: True + branch: main + targets: + - fedora-all + project: packit-dev + list_on_homepage: True + preserve_project: True - <<: *copr_build_pr_epel trigger: commit - metadata: - branch: main - targets: - - epel-8 - project: packit-dev - list_on_homepage: True - preserve_project: True + branch: main + targets: + - epel-8 + project: packit-dev + list_on_homepage: True + preserve_project: True + + - job: copr_build + trigger: commit + branch: stable + targets: + - fedora-stable + project: packit-stable + list_on_homepage: True + preserve_project: True + - <<: *copr_build_pr_epel + trigger: commit + branch: stable + targets: + - epel-8 + project: packit-stable + list_on_homepage: True + preserve_project: True - job: copr_build trigger: release - metadata: - targets: - - fedora-all - project: packit-releases - list_on_homepage: True - preserve_project: True + targets: + - fedora-all + project: packit-releases + list_on_homepage: True + preserve_project: True - <<: *copr_build_pr_epel trigger: release - metadata: - targets: - - epel-8 - project: packit-releases - list_on_homepage: True - preserve_project: True + targets: + - epel-8 + project: packit-releases + list_on_homepage: True + preserve_project: True # downstream automation: - job: koji_build trigger: commit packit_instances: ["stg"] - metadata: - dist_git_branches: - - fedora-all - - epel-8 + dist_git_branches: + - fedora-all + - epel-8 - job: bodhi_update trigger: commit packit_instances: ["stg"] - metadata: - dist_git_branches: - - fedora-branched # rawhide updates are created automatically - - epel-8 + dist_git_branches: + - fedora-branched # rawhide updates are created automatically + - epel-8 diff --git a/README.packit b/README.packit index 30a712f..f7968c5 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.55.1.dev8+g432e38d. +The file was generated using packit 0.57.1.dev2+g0f9759f. diff --git a/python-specfile.spec b/python-specfile.spec index 5fd994b..e8680ec 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -5,7 +5,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.5.0 +Version: 0.5.1 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -31,12 +31,14 @@ Summary: %{summary} %{desc} -%generate_buildrequires -%pyproject_buildrequires -x testing - - %prep %autosetup -p1 -n specfile-%{version} +# Use packaged RPM python bindings downstream +sed -i 's/rpm-py-installer/rpm/' setup.cfg + + +%generate_buildrequires +%pyproject_buildrequires -x testing %build @@ -57,6 +59,11 @@ Summary: %{summary} %changelog +* Wed Aug 10 2022 Packit - 0.5.1-1 +- Added new `%conf` section (#74) +- Switched to rpm-py-installer (#75) +- Fixed detecting extended timestamp format in `%changelog` (#77, #81) + * Fri Jul 22 2022 Packit - 0.5.0-1 - Strict optional typing is now enforced (#68) - Fixed deduplication of tag names (#69) diff --git a/sources b/sources index 8d9da2f..1c6dd1d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.5.0.tar.gz) = e5472d1bfffc76acd781ee32fb79b4f2be9b46d3576fc5bf2d52e2edff3a2aa47563237bad1563c4c0f305a4aa1bbc59a515fa2153e6e37b01f1c7b216ad58e0 +SHA512 (specfile-0.5.1.tar.gz) = b5f2775e42be33afcd82911f427ff39d4fe305675becca5a4a489afb8dd119c029cb61cbce71203523b7f26d89e44fcff958031b713ce7fc18aab25ffa1755cf From e2204ae52dc9b6d4f9a683cd1634eda23dd8722e Mon Sep 17 00:00:00 2001 From: Packit Date: Thu, 25 Aug 2022 13:16:07 +0000 Subject: [PATCH 06/12] [packit] 0.6.0 upstream release Upstream tag: 0.6.0 Upstream commit: 8b0a6cc4 Signed-off-by: Packit --- .packit.yaml | 2 +- README.packit | 2 +- python-specfile.spec | 10 +++++++--- sources | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 08dca7a..84b1258 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -126,5 +126,5 @@ jobs: trigger: commit packit_instances: ["stg"] dist_git_branches: - - fedora-branched # rawhide updates are created automatically + - fedora-stable # rawhide and branched updates are created automatically - epel-8 diff --git a/README.packit b/README.packit index f7968c5..a131695 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.57.1.dev2+g0f9759f. +The file was generated using packit 0.58.1.dev6+gfae3705. diff --git a/python-specfile.spec b/python-specfile.spec index e8680ec..3a41c5c 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -5,7 +5,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.5.1 +Version: 0.6.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -59,9 +59,13 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %changelog +* Thu Aug 25 2022 Packit - 0.6.0-1 +- Switched to our own implementation of working with `%changelog` timestamps and removed dependency on arrow (#88) +- Fixed requires of EPEL 8 rpm (#86) + * Wed Aug 10 2022 Packit - 0.5.1-1 -- Added new `%conf` section (#74) -- Switched to rpm-py-installer (#75) +- Added new `%conf` section (#74) +- Switched to rpm-py-installer (#75) - Fixed detecting extended timestamp format in `%changelog` (#77, #81) * Fri Jul 22 2022 Packit - 0.5.0-1 diff --git a/sources b/sources index 1c6dd1d..4bbf891 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.5.1.tar.gz) = b5f2775e42be33afcd82911f427ff39d4fe305675becca5a4a489afb8dd119c029cb61cbce71203523b7f26d89e44fcff958031b713ce7fc18aab25ffa1755cf +SHA512 (specfile-0.6.0.tar.gz) = 8115bce63d8a2ab695f6a3db213f3e3d448581ed92c95f7f37dc671caf4760c03aa7b81e0031b8db8fc9b21984b4e2712c85d63951908bb112b4f6ec121d48bc From 2d036948fd008bbf446e0484f0f6ef7d0ba17dd0 Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 7 Oct 2022 14:32:47 +0000 Subject: [PATCH 07/12] [packit] 0.7.0 upstream release Upstream tag: 0.7.0 Upstream commit: e121363b Signed-off-by: Packit --- .fmf/version | 1 + .packit.yaml | 46 +++++++++++++++++++++++++++++++----------- README.packit | 2 +- plans/full.fmf | 12 +++++++++++ plans/git_reference.py | 14 +++++++++++++ plans/main.fmf | 6 ++++++ plans/smoke.fmf | 4 ++++ python-specfile.spec | 20 +++++++++++++++--- sources | 2 +- 9 files changed, 90 insertions(+), 17 deletions(-) create mode 100644 .fmf/version create mode 100644 plans/full.fmf create mode 100644 plans/git_reference.py create mode 100644 plans/main.fmf create mode 100644 plans/smoke.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.packit.yaml b/.packit.yaml index 84b1258..023784b 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -10,6 +10,10 @@ specfile_path: fedora/python-specfile.spec files_to_sync: - fedora/python-specfile.spec - .packit.yaml + - src: plans/ + dest: plans/ + - src: .fmf/ + dest: .fmf/ # name in upstream package repository or registry (e.g. in PyPI) upstream_package_name: specfile @@ -29,6 +33,9 @@ actions: - python3 setup.py sdist --dist-dir ./fedora/ - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1" get-current-version: python3 setup.py --version + pre-sync: + # FMF has to be installed on system where you are calling this tool. + - python3 plans/git_reference.py srpm_build_deps: - python3-pip # "python3 setup.py --version" needs it @@ -39,30 +46,39 @@ jobs: trigger: release dist_git_branches: - fedora-all + - epel-9 - job: propose_downstream trigger: release - specfile_path: epel/python-specfile.spec + specfile_path: epel8/python-specfile.spec files_to_sync: - - epel/python-specfile.spec + - epel8/python-specfile.spec - .packit.yaml + - src: plans/ + dest: plans/ + - src: .fmf/ + dest: .fmf/ dist_git_branches: - epel-8 - job: copr_build trigger: pull_request - identifier: fedora + identifier: fedora-and-epel targets: - fedora-all - - &copr_build_pr_epel + - epel-9 + - &copr_build_pr_epel8 job: copr_build trigger: pull_request - specfile_path: epel/python-specfile.spec - identifier: epel + specfile_path: epel8/python-specfile.spec + identifier: epel8 actions: create-archive: - - python3 setup.py sdist --dist-dir ./epel/ - - bash -c "ls -1t ./epel/*.tar.gz | head -n 1" + - python3 setup.py sdist --dist-dir ./epel8/ + - bash -c "ls -1t ./epel8/*.tar.gz | head -n 1" get-current-version: python3 setup.py --version + pre-sync: + # FMF has to be installed on system where you are calling this tool. + - python3 plans/git_reference.py targets: - epel-8 @@ -71,10 +87,11 @@ jobs: branch: main targets: - fedora-all + - epel-9 project: packit-dev list_on_homepage: True preserve_project: True - - <<: *copr_build_pr_epel + - <<: *copr_build_pr_epel8 trigger: commit branch: main targets: @@ -88,10 +105,11 @@ jobs: branch: stable targets: - fedora-stable + - epel-9 project: packit-stable list_on_homepage: True preserve_project: True - - <<: *copr_build_pr_epel + - <<: *copr_build_pr_epel8 trigger: commit branch: stable targets: @@ -104,10 +122,11 @@ jobs: trigger: release targets: - fedora-all + - epel-9 project: packit-releases list_on_homepage: True preserve_project: True - - <<: *copr_build_pr_epel + - <<: *copr_build_pr_epel8 trigger: release targets: - epel-8 @@ -119,12 +138,15 @@ jobs: - job: koji_build trigger: commit packit_instances: ["stg"] + allowed_pr_authors: ["packit-stg", "packit"] dist_git_branches: - fedora-all + - epel-9 - epel-8 - job: bodhi_update trigger: commit packit_instances: ["stg"] dist_git_branches: - - fedora-stable # rawhide and branched updates are created automatically + - fedora-branched # rawhide updates are created automatically + - epel-9 - epel-8 diff --git a/README.packit b/README.packit index a131695..a723bcb 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.58.1.dev6+gfae3705. +The file was generated using packit 0.59.2.dev19+gc1f0788. diff --git a/plans/full.fmf b/plans/full.fmf new file mode 100644 index 0000000..0b0a12f --- /dev/null +++ b/plans/full.fmf @@ -0,0 +1,12 @@ +summary: + Unit & integration tests +discover+: + filter: tier:1 +adjust: + - when: "distro == rhel-9 or distro == centos-9 or distro == centos-stream-9" + because: "flexmock is not in EPEL 9: https://bugzilla.redhat.com/show_bug.cgi?id=2120251" + prepare: + - how: install + package: python3-pip + - how: shell + script: pip3 install flexmock diff --git a/plans/git_reference.py b/plans/git_reference.py new file mode 100644 index 0000000..29b8721 --- /dev/null +++ b/plans/git_reference.py @@ -0,0 +1,14 @@ +#!/usr/bin/python + +import subprocess +from pathlib import Path + +import fmf + +tree_root = Path.cwd().absolute() +node = fmf.Tree(tree_root).find("/plans") +with node as data: + data["discover"]["url"] = "https://github.com/packit/specfile.git" + data["discover"]["ref"] = ( + subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip() + ) diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..d2feac5 --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,6 @@ +discover: + how: fmf + url: https://github.com/packit/specfile.git + ref: e121363bba69e8fcc49eac8df4d6ef60ef1acf69 +execute: + how: tmt diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..578e8ba --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,4 @@ +summary: + Basic smoke test +discover+: + filter: tier:0 diff --git a/python-specfile.spec b/python-specfile.spec index 3a41c5c..2cfda5c 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -1,3 +1,11 @@ +%if 0%{?rhel} == 9 +# RHEL 9 is missing python-flexmock +%bcond_with tests +%else +%bcond_without tests +%endif + + %global desc %{expand: Python library for parsing and manipulating RPM spec files. Main focus is on modifying existing spec files, any change should result @@ -5,7 +13,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.6.0 +Version: 0.7.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -38,7 +46,7 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %generate_buildrequires -%pyproject_buildrequires -x testing +%pyproject_buildrequires %{?with_tests: -x testing} %build @@ -50,8 +58,10 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %pyproject_save_files specfile +%if 0%{?with_tests} %check %pytest +%endif %files -n python%{python3_pkgversion}-specfile -f %{pyproject_files} @@ -59,8 +69,12 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %changelog +* Fri Oct 07 2022 Packit - 0.7.0-1 +- It is now possible to filter changelog entries by specifying lower bound EVR, upper bound EVR or both. (#104) +- Added support for filenames specified in source URL fragments, for example: `https://example.com/foo/1.0/download.cgi#/%{name}-%{version}.tar.gz` (#100) + * Thu Aug 25 2022 Packit - 0.6.0-1 -- Switched to our own implementation of working with `%changelog` timestamps and removed dependency on arrow (#88) +- Switched to our own implementation of working with `%changelog` timestamps and removed dependency on arrow (#88) - Fixed requires of EPEL 8 rpm (#86) * Wed Aug 10 2022 Packit - 0.5.1-1 diff --git a/sources b/sources index 4bbf891..3f9e35d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.6.0.tar.gz) = 8115bce63d8a2ab695f6a3db213f3e3d448581ed92c95f7f37dc671caf4760c03aa7b81e0031b8db8fc9b21984b4e2712c85d63951908bb112b4f6ec121d48bc +SHA512 (specfile-0.7.0.tar.gz) = f07a99ea5f999cfd6b6f88c454381de1c0934a10c88c3359c53a85ea84ede235f1c1ce82ba0c8283354e59905bafbe96032a5fdf16aafceed081f94747a469d6 From d7ec1411efb10f1c557d21803de4aaf69ed358d9 Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 14 Oct 2022 11:37:02 +0000 Subject: [PATCH 08/12] [packit] 0.8.0 upstream release Upstream tag: 0.8.0 Upstream commit: a3262621 Signed-off-by: Packit --- .packit.yaml | 53 -------------------------------------------- README.packit | 2 +- plans/main.fmf | 2 +- python-specfile.spec | 7 ++++-- sources | 2 +- 5 files changed, 8 insertions(+), 58 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 023784b..a28de94 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -47,40 +47,12 @@ jobs: dist_git_branches: - fedora-all - epel-9 - - job: propose_downstream - trigger: release - specfile_path: epel8/python-specfile.spec - files_to_sync: - - epel8/python-specfile.spec - - .packit.yaml - - src: plans/ - dest: plans/ - - src: .fmf/ - dest: .fmf/ - dist_git_branches: - - epel-8 - job: copr_build trigger: pull_request - identifier: fedora-and-epel targets: - fedora-all - epel-9 - - &copr_build_pr_epel8 - job: copr_build - trigger: pull_request - specfile_path: epel8/python-specfile.spec - identifier: epel8 - actions: - create-archive: - - python3 setup.py sdist --dist-dir ./epel8/ - - bash -c "ls -1t ./epel8/*.tar.gz | head -n 1" - get-current-version: python3 setup.py --version - pre-sync: - # FMF has to be installed on system where you are calling this tool. - - python3 plans/git_reference.py - targets: - - epel-8 - job: copr_build trigger: commit @@ -91,14 +63,6 @@ jobs: project: packit-dev list_on_homepage: True preserve_project: True - - <<: *copr_build_pr_epel8 - trigger: commit - branch: main - targets: - - epel-8 - project: packit-dev - list_on_homepage: True - preserve_project: True - job: copr_build trigger: commit @@ -109,14 +73,6 @@ jobs: project: packit-stable list_on_homepage: True preserve_project: True - - <<: *copr_build_pr_epel8 - trigger: commit - branch: stable - targets: - - epel-8 - project: packit-stable - list_on_homepage: True - preserve_project: True - job: copr_build trigger: release @@ -126,13 +82,6 @@ jobs: project: packit-releases list_on_homepage: True preserve_project: True - - <<: *copr_build_pr_epel8 - trigger: release - targets: - - epel-8 - project: packit-releases - list_on_homepage: True - preserve_project: True # downstream automation: - job: koji_build @@ -142,11 +91,9 @@ jobs: dist_git_branches: - fedora-all - epel-9 - - epel-8 - job: bodhi_update trigger: commit packit_instances: ["stg"] dist_git_branches: - fedora-branched # rawhide updates are created automatically - epel-9 - - epel-8 diff --git a/README.packit b/README.packit index a723bcb..e8857c6 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.59.2.dev19+gc1f0788. +The file was generated using packit 0.60.1.dev6+g9c9b2a8. diff --git a/plans/main.fmf b/plans/main.fmf index d2feac5..18e7b2e 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: e121363bba69e8fcc49eac8df4d6ef60ef1acf69 + ref: a3262621665ba191f982a91add4718a533d06c5d execute: how: tmt diff --git a/python-specfile.spec b/python-specfile.spec index 2cfda5c..c090039 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -13,7 +13,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.7.0 +Version: 0.8.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -69,8 +69,11 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %changelog +* Fri Oct 14 2022 Packit - 0.8.0-1 +- Added `Specfile.update_tag()` method that allows updating tag values while trying to preserve macro expansions. You can watch a demo on [YouTube](https://youtu.be/yzMfBPdFXZY). (#101) + * Fri Oct 07 2022 Packit - 0.7.0-1 -- It is now possible to filter changelog entries by specifying lower bound EVR, upper bound EVR or both. (#104) +- It is now possible to filter changelog entries by specifying lower bound EVR, upper bound EVR or both. (#104) - Added support for filenames specified in source URL fragments, for example: `https://example.com/foo/1.0/download.cgi#/%{name}-%{version}.tar.gz` (#100) * Thu Aug 25 2022 Packit - 0.6.0-1 diff --git a/sources b/sources index 3f9e35d..0dfc85e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.7.0.tar.gz) = f07a99ea5f999cfd6b6f88c454381de1c0934a10c88c3359c53a85ea84ede235f1c1ce82ba0c8283354e59905bafbe96032a5fdf16aafceed081f94747a469d6 +SHA512 (specfile-0.8.0.tar.gz) = b974294c5f057e80f2aa87a9571bfc0f9d05b944efff1862e463c30ccaa281e2c22eefafd898b90bfe2e6e9b235b68e3870d19016bf63e42fa7f09a385514d1f From aa22dd0d10724cfa74db017ac03d85aa88eb132d Mon Sep 17 00:00:00 2001 From: Packit Date: Tue, 25 Oct 2022 17:29:31 +0000 Subject: [PATCH 09/12] [packit] 0.9.0 upstream release Upstream tag: 0.9.0 Upstream commit: 6b6cbeae Signed-off-by: Packit --- .packit.yaml | 6 ++++++ README.packit | 2 +- plans/main.fmf | 2 +- python-specfile.spec | 6 +++++- sources | 2 +- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index a28de94..45490dc 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -54,6 +54,12 @@ jobs: - fedora-all - epel-9 + - job: tests + trigger: pull_request + targets: + - fedora-all + - epel-9 + - job: copr_build trigger: commit branch: main diff --git a/README.packit b/README.packit index e8857c6..578bbfe 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.60.1.dev6+g9c9b2a8. +The file was generated using packit 0.60.1.dev11+g1b5611c. diff --git a/plans/main.fmf b/plans/main.fmf index 18e7b2e..ba8a594 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: a3262621665ba191f982a91add4718a533d06c5d + ref: 6b6cbeae4b12458bb7518f889a19371a6d0d7d97 execute: how: tmt diff --git a/python-specfile.spec b/python-specfile.spec index c090039..840e40d 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -13,7 +13,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.8.0 +Version: 0.9.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -69,6 +69,10 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %changelog +* Tue Oct 25 2022 Packit - 0.9.0-1 +- Added utility classes for working with (N)EVR. (#113) +- Fixed an issue with multiple instances of `Specfile` not expanding macros in the right context. (#117) + * Fri Oct 14 2022 Packit - 0.8.0-1 - Added `Specfile.update_tag()` method that allows updating tag values while trying to preserve macro expansions. You can watch a demo on [YouTube](https://youtu.be/yzMfBPdFXZY). (#101) diff --git a/sources b/sources index 0dfc85e..cfd04b0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.8.0.tar.gz) = b974294c5f057e80f2aa87a9571bfc0f9d05b944efff1862e463c30ccaa281e2c22eefafd898b90bfe2e6e9b235b68e3870d19016bf63e42fa7f09a385514d1f +SHA512 (specfile-0.9.0.tar.gz) = 58cab116a4a385fbf0ba7d131f89f2cdacf1c0a0e01db48dc06b7d9fd8fd1342667ca0121f2efa3a31dd49938483ece3f41d34ab7202294638fd00929e288032 From 501180d968db53fa4a82705b0ce62a5cff835550 Mon Sep 17 00:00:00 2001 From: Packit Date: Sat, 12 Nov 2022 14:38:58 +0000 Subject: [PATCH 10/12] [packit] 0.9.1 upstream release Upstream tag: 0.9.1 Upstream commit: 11b91ccc Signed-off-by: Packit --- README.packit | 2 +- plans/main.fmf | 2 +- python-specfile.spec | 8 ++++++-- sources | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.packit b/README.packit index 578bbfe..8979edb 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.60.1.dev11+g1b5611c. +The file was generated using packit 0.63.1.dev12+gb534d99. diff --git a/plans/main.fmf b/plans/main.fmf index ba8a594..76caf53 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 6b6cbeae4b12458bb7518f889a19371a6d0d7d97 + ref: 11b91ccce19780d1d99426ec234715150ce00659 execute: how: tmt diff --git a/python-specfile.spec b/python-specfile.spec index 840e40d..df5cc46 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -13,7 +13,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.9.0 +Version: 0.9.1 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -69,8 +69,12 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %changelog +* Sat Nov 12 2022 Packit - 0.9.1-1 +- `specfile` now supports localized tags (e.g. `Summary(fr)`) and tags with qualifiers (e.g. `Requires(post)`). + It also follows more closely rpm parsing logic and doesn't fail on invalid section names. (#132) + * Tue Oct 25 2022 Packit - 0.9.0-1 -- Added utility classes for working with (N)EVR. (#113) +- Added utility classes for working with (N)EVR. (#113) - Fixed an issue with multiple instances of `Specfile` not expanding macros in the right context. (#117) * Fri Oct 14 2022 Packit - 0.8.0-1 diff --git a/sources b/sources index cfd04b0..0e69208 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.9.0.tar.gz) = 58cab116a4a385fbf0ba7d131f89f2cdacf1c0a0e01db48dc06b7d9fd8fd1342667ca0121f2efa3a31dd49938483ece3f41d34ab7202294638fd00929e288032 +SHA512 (specfile-0.9.1.tar.gz) = d6a5689211816cb97218081e94bf8755f7b53a37d1c05a429e1d523c460e680c71c40d79a5ccb238c67ad58c8e81b7a083367b80830fd96c5d81e52e741b2906 From fb44fab2f27050e7fa8d0af153db7fa9004b60a8 Mon Sep 17 00:00:00 2001 From: Packit Date: Wed, 30 Nov 2022 11:32:49 +0000 Subject: [PATCH 11/12] [packit] 0.10.0 upstream release Upstream tag: 0.10.0 Upstream commit: daf36bc3 Signed-off-by: Packit --- README.packit | 2 +- plans/main.fmf | 2 +- python-specfile.spec | 10 +++++++--- sources | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.packit b/README.packit index 8979edb..d879225 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.63.1.dev12+gb534d99. +The file was generated using packit 0.63.2.dev18+ge80845e. diff --git a/plans/main.fmf b/plans/main.fmf index 76caf53..f88a335 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 11b91ccce19780d1d99426ec234715150ce00659 + ref: daf36bc3d45ad5f6092ad1bc698c42f3d58247c5 execute: how: tmt diff --git a/python-specfile.spec b/python-specfile.spec index df5cc46..657c6ee 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -13,7 +13,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.9.1 +Version: 0.10.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -58,7 +58,7 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %pyproject_save_files specfile -%if 0%{?with_tests} +%if %{with tests} %check %pytest %endif @@ -69,8 +69,12 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %changelog +* Wed Nov 30 2022 Packit - 0.10.0-1 +- Fixed an issue that caused empty lines originally inside changelog entries to appear at the end. (#140) +- Renamed the `ignore_missing_includes` option to a more general `force_parse`. If specified, it allows to attempt to parse the spec file even if one or more sources required to be present at parsing time are not available. Such sources include sources referenced from shell expansions in tag values and sources included using the `%include` directive. (#137) + * Sat Nov 12 2022 Packit - 0.9.1-1 -- `specfile` now supports localized tags (e.g. `Summary(fr)`) and tags with qualifiers (e.g. `Requires(post)`). +- `specfile` now supports localized tags (e.g. `Summary(fr)`) and tags with qualifiers (e.g. `Requires(post)`). It also follows more closely rpm parsing logic and doesn't fail on invalid section names. (#132) * Tue Oct 25 2022 Packit - 0.9.0-1 diff --git a/sources b/sources index 0e69208..c4b5dfb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.9.1.tar.gz) = d6a5689211816cb97218081e94bf8755f7b53a37d1c05a429e1d523c460e680c71c40d79a5ccb238c67ad58c8e81b7a083367b80830fd96c5d81e52e741b2906 +SHA512 (specfile-0.10.0.tar.gz) = a44b18bac80825ebcc7e3e3d0b2b4ae97134e9b59ce9c68c35d96feea20a71c75f15f8ea355e345f24fcd02dccfb7a12ab9f20f4cc41cf545d9e33e42f836d8b From ffa049a037ab69e40d48da8b944abc9e9522e0e4 Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 9 Dec 2022 14:20:55 +0000 Subject: [PATCH 12/12] [packit] 0.11.0 upstream release Upstream tag: 0.11.0 Upstream commit: ad039af9 Signed-off-by: Packit --- .packit.yaml | 6 ++++++ README.packit | 2 +- plans/main.fmf | 2 +- python-specfile.spec | 7 +++++-- sources | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 45490dc..9c36337 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -89,6 +89,12 @@ jobs: list_on_homepage: True preserve_project: True + - job: pull_from_upstream + trigger: release + dist_git_branches: + - fedora-all + - epel-9 + # downstream automation: - job: koji_build trigger: commit diff --git a/README.packit b/README.packit index d879225..a26b3a1 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.63.2.dev18+ge80845e. +The file was generated using packit 0.65.0. diff --git a/plans/main.fmf b/plans/main.fmf index f88a335..c9c404d 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: daf36bc3d45ad5f6092ad1bc698c42f3d58247c5 + ref: ad039af925cd104ba3921ee427230c87db567080 execute: how: tmt diff --git a/python-specfile.spec b/python-specfile.spec index 657c6ee..cfa7503 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -13,7 +13,7 @@ in a minimal diff.} Name: python-specfile -Version: 0.10.0 +Version: 0.11.0 Release: 1%{?dist} Summary: A library for parsing and manipulating RPM spec files @@ -69,8 +69,11 @@ sed -i 's/rpm-py-installer/rpm/' setup.cfg %changelog +* Fri Dec 09 2022 Packit - 0.11.0-1 +- Context managers (`Specfile.sections()`, `Specfile.tags()` etc.) can now be nested and combined together (with one exception - `Specfile.macro_definitions()`), and it is also possible to use tag properties (e.g. `Specfile.version`, `Specfile.license`) inside them. It is also possible to access the data directly, avoiding the `with` statement, by using the `content` property (e.g. `Specfile.tags().content`), but be aware that no modifications done to such data will be preserved. You must use `with` to make changes. (#153) + * Wed Nov 30 2022 Packit - 0.10.0-1 -- Fixed an issue that caused empty lines originally inside changelog entries to appear at the end. (#140) +- Fixed an issue that caused empty lines originally inside changelog entries to appear at the end. (#140) - Renamed the `ignore_missing_includes` option to a more general `force_parse`. If specified, it allows to attempt to parse the spec file even if one or more sources required to be present at parsing time are not available. Such sources include sources referenced from shell expansions in tag values and sources included using the `%include` directive. (#137) * Sat Nov 12 2022 Packit - 0.9.1-1 diff --git a/sources b/sources index c4b5dfb..9ce89fb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.10.0.tar.gz) = a44b18bac80825ebcc7e3e3d0b2b4ae97134e9b59ce9c68c35d96feea20a71c75f15f8ea355e345f24fcd02dccfb7a12ab9f20f4cc41cf545d9e33e42f836d8b +SHA512 (specfile-0.11.0.tar.gz) = 39976c2d935b1f7d6b6f041ba57fb5ab72106f377b70e2e8d42b29dd829f0c8254aab0aa6b7ba8c92a58396b96ee8ac5360c13a9328390d468c5ebf125010843