From 8d5cc741b4ed6a5a96ccadd8c0fa905fa44bed8c Mon Sep 17 00:00:00 2001 From: Packit Date: Thu, 20 Mar 2025 16:53:29 +0000 Subject: [PATCH 01/12] Update to 0.34.2 upstream release - Resolves: rhbz#2344364 Upstream tag: 0.34.2 Upstream commit: 875f03ed Commit authored by Packit automation (https://packit.dev/) --- .fmf/version | 1 + .gitignore | 1 + .packit.yaml | 285 +++++++++++++++++++++++++++++++++++ README.packit | 3 + plans/full.fmf | 18 +++ plans/git_reference.py | 32 ++++ plans/main.fmf | 6 + plans/packit-integration.fmf | 27 ++++ plans/performance.fmf | 15 ++ plans/smoke.fmf | 10 ++ python-specfile.spec | 82 ++++++++++ sources | 1 + 12 files changed, 481 insertions(+) create mode 100644 .fmf/version create mode 100644 .gitignore create mode 100644 .packit.yaml create mode 100644 README.packit create mode 100644 plans/full.fmf create mode 100644 plans/git_reference.py create mode 100644 plans/main.fmf create mode 100644 plans/packit-integration.fmf create mode 100644 plans/performance.fmf create mode 100644 plans/smoke.fmf create mode 100644 python-specfile.spec create mode 100644 sources 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/.gitignore b/.gitignore new file mode 100644 index 0000000..53eaeeb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/specfile-*.tar.gz diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..231ee63 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,285 @@ +--- +packit_instances: ["prod", "stg"] + +upstream_project_url: https://github.com/packit/specfile +issue_repository: https://github.com/packit/specfile + +# PEP440 +prerelease_suffix_pattern: "([.\\-_]?)(a(lpha)?|b(eta)?|r?c|pre(view)?)([.\\-_]?\\d+)?" +prerelease_suffix_macro: prerelease + +copy_upstream_release_description: true + +packages: + specfile: &specfile + upstream_package_name: specfile + downstream_package_name: python-specfile + specfile_path: &specfile_path fedora/python-specfile.spec + files_to_sync: + - *specfile_path + - .packit.yaml + - src: plans/ + dest: plans/ + - src: .fmf/ + dest: .fmf/ + srpm_build_deps: + - python3-build + - python3-setuptools_scm + actions: &actions + pre-sync: + - python3 plans/git_reference.py + create-archive: + - python3 -m build --sdist --outdir ./fedora/ + - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1" + get-current-version: python3 -m setuptools_scm + + specfile-epel8: + <<: *specfile + specfile_path: &specfile_path_epel8 epel8/python-specfile.spec + files_to_sync: + - *specfile_path_epel8 + - .packit.yaml + - src: plans/ + dest: plans/ + - src: .fmf/ + dest: .fmf/ + actions: + <<: *actions + create-archive: + - python3 setup.py sdist --dist-dir ./epel8/ + - bash -c "ls -1t ./epel8/*.tar.gz | head -n 1" + + specfile-epel10: + <<: *specfile + specfile_path: &specfile_path_epel10 epel10/python-specfile.spec + files_to_sync: + - *specfile_path_epel10 + - .packit.yaml + - src: plans/ + dest: plans/ + - src: .fmf/ + dest: .fmf/ + actions: + <<: *actions + create-archive: + - python3 setup.py sdist --dist-dir ./epel10/ + - bash -c "ls -1t ./epel10/*.tar.gz | head -n 1" + + # docs: https://gitlab.com/CentOS/Integration/packit-cbs/docs + specfile-centos-integration-sig: + <<: *specfile + specfile_path: &specfile_path_centos_sig centos-integration-sig/python-specfile.spec + files_to_sync: + - *specfile_path_centos_sig + - .packit.yaml + - src: plans/ + dest: plans/ + - src: .fmf/ + dest: .fmf/ + actions: + <<: *actions + create-archive: + - python3 -m build --sdist --outdir ./centos-integration-sig/ + - bash -c "ls -1t ./centos-integration-sig/*.tar.gz | head -n 1" + dist_git_base_url: https://gitlab.com + dist_git_namespace: CentOS/Integration/packit-cbs/rpms + sig: Integration/packit-cbs + pkg_tool: centpkg-sig + +jobs: + - &copr_build_pr + job: copr_build + trigger: pull_request + packages: [specfile] + targets: + - fedora-all + - fedora-all-aarch64 + - epel-9 + - <<: *copr_build_pr + packages: [specfile-epel8] + targets: + - epel-8 + - <<: *copr_build_pr + packages: [specfile-epel10] + targets: + - epel-10-all + + - &copr_build_commit_main + job: copr_build + trigger: commit + branch: main + packages: [specfile] + targets: + - fedora-all + - fedora-all-aarch64 + - epel-9 + project: packit-dev + list_on_homepage: True + preserve_project: True + - <<: *copr_build_commit_main + packages: [specfile-epel8] + targets: + - epel-8 + - <<: *copr_build_commit_main + packages: [specfile-epel10] + targets: + - epel-10-all + + - &copr_build_commit_stable + job: copr_build + trigger: commit + branch: stable + packages: [specfile] + targets: + - fedora-latest-stable + - fedora-latest-stable-aarch64 + project: packit-stable + list_on_homepage: True + preserve_project: True + + - &copr_build_release + job: copr_build + trigger: release + packages: [specfile] + targets: + - fedora-all + - fedora-all-aarch64 + - epel-9 + project: packit-releases + list_on_homepage: True + preserve_project: True + - <<: *copr_build_release + packages: [specfile-epel8] + targets: + - epel-8 + - <<: *copr_build_release + packages: [specfile-epel10] + targets: + - epel-10-all + + - &tests + job: tests + trigger: pull_request + packages: [specfile] + tmt_plan: "smoke|full|packit-integration" + targets: + - fedora-all + - epel-9 + - <<: *tests + identifier: performance + tmt_plan: performance + targets: + - fedora-rawhide + - <<: *tests + packages: [specfile-epel8] + tmt_plan: "smoke|full" + use_internal_tf: true + targets: + epel-8-x86_64: + distros: [RHEL-8.10.0-Nightly] + # enable EPEL + tf_extra_params: + environments: + - kickstart: + post-install: | + %post --log=/dev/console + set -x + dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm + %end + - <<: *tests + packages: [specfile-epel10] + tmt_plan: "smoke|full" + targets: + - epel-10-all + + - &propose_downstream + job: propose_downstream + trigger: release + packages: [specfile] + dist_git_branches: + rawhide: + fast_forward_merge_into: + - fedora-branched + epel-9: {} + - <<: *propose_downstream + packages: [specfile-epel8] + dist_git_branches: + - epel-8 + - <<: *propose_downstream + packages: [specfile-epel10] + dist_git_branches: + epel-10: + fast_forward_merge_into: + - epel-10-branched + - <<: *propose_downstream + packages: [specfile-centos-integration-sig] + dist_git_branches: + - c9-sig-integration + + - &pull_from_upstream + job: pull_from_upstream + trigger: release + packages: [specfile] + dist_git_branches: + rawhide: + fast_forward_merge_into: + - fedora-branched + epel-9: {} + - <<: *pull_from_upstream + packages: [specfile-epel8] + dist_git_branches: + - epel-8 + - <<: *pull_from_upstream + packages: [specfile-epel10] + dist_git_branches: + epel-10: + fast_forward_merge_into: + - epel-10-branched + - <<: *pull_from_upstream + packages: [specfile-centos-integration-sig] + dist_git_branches: + - c9-sig-integration + + - &koji_build + job: koji_build + trigger: commit + packages: [specfile] + packit_instances: ["stg"] + allowed_pr_authors: ["packit-stg", "packit"] + dist_git_branches: + - epel-9 + - <<: *koji_build + packages: [specfile-epel8] + dist_git_branches: + - epel-8 + - <<: *koji_build + packages: [specfile-epel10] + dist_git_branches: + - epel-10-all + - <<: *koji_build + packages: [specfile-centos-integration-sig] + dist_git_branches: + - c9-sig-integration + - <<: *koji_build + sidetag_group: packit-specfile-ogr-releases + dependents: + - packit + dist_git_branches: + - fedora-all + + - &bodhi_update + job: bodhi_update + trigger: commit + packages: [specfile] + packit_instances: ["stg"] + allowed_builders: ["packit-stg", "packit"] + dist_git_branches: + - epel-9 + - <<: *bodhi_update + packages: [specfile-epel8] + dist_git_branches: + - epel-8 + - <<: *bodhi_update + packages: [specfile-epel10] + dist_git_branches: + - epel-10-all diff --git a/README.packit b/README.packit new file mode 100644 index 0000000..ad2b8e5 --- /dev/null +++ b/README.packit @@ -0,0 +1,3 @@ +This repository is maintained by packit. +https://packit.dev/ +The file was generated using packit 1.3.0.post1.dev4+gb85da743. diff --git a/plans/full.fmf b/plans/full.fmf new file mode 100644 index 0000000..dc00841 --- /dev/null +++ b/plans/full.fmf @@ -0,0 +1,18 @@ +summary: + Unit & integration tests +discover+: + filter: tier:1 +adjust: + - when: "distro == rhel-8" + because: "only platform-python is installed on RHEL 8 by default" + prepare+: + - how: install + package: python3 + + - when: "distro == rhel-10 or distro == centos-10 or distro == centos-stream-10" + because: "flexmock is not in EPEL 10: https://bugzilla.redhat.com/show_bug.cgi?id=2351835" + 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..fe4e906 --- /dev/null +++ b/plans/git_reference.py @@ -0,0 +1,32 @@ +#!/usr/bin/python + +# Copyright Contributors to the Packit project. +# SPDX-License-Identifier: MIT + +import subprocess +from pathlib import Path + +import fmf + +# Set discover of specfile tests to a fixed commit +tree_root = Path.cwd().absolute() +tree = fmf.Tree(tree_root) +main_node = tree.find("/plans") +with main_node as data: + data["discover"]["url"] = "https://github.com/packit/specfile.git" + data["discover"]["ref"] = ( + subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip() + ) + + +# Set discover of packit integration tests to the current main +packit_node = tree.find("/plans/packit-integration") +with packit_node as data: + data["discover"]["ref"] = ( + subprocess.check_output( + ["git", "ls-remote", "https://github.com/packit/packit", "main"] + ) + .decode() + .strip() + .split()[0] + ) diff --git a/plans/main.fmf b/plans/main.fmf new file mode 100644 index 0000000..013282a --- /dev/null +++ b/plans/main.fmf @@ -0,0 +1,6 @@ +discover: + how: fmf + url: https://github.com/packit/specfile.git + ref: 875f03eda8abb51e7211bd1de5c11bdb038cf03d +execute: + how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf new file mode 100644 index 0000000..5ecf4ce --- /dev/null +++ b/plans/packit-integration.fmf @@ -0,0 +1,27 @@ +discover: + how: fmf + url: https://github.com/packit/packit + filter: tier:0 | tier:1 + ref: b85da743637c72cb1c46e78433be4afb82bd6256 +prepare: + - how: install + copr: packit/packit-dev + - how: shell + script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo +adjust: + - when: how == integration + because: provide latest python-specfile rpm when running locally + prepare+: + - name: python3-specfile rpm + how: install + directory: noarch/ + - when: distro == rhel-9 or distro == centos-9 or distro == centos-stream-9 + because: 'build and deepdiff are not in EPEL 9: https://bugzilla.redhat.com/show_bug.cgi?id=2120251' + prepare+: + - how: install + package: python3-pip + - how: shell + script: pip3 install build 'deepdiff < 8.0.0' + - when: distro == rhel-8 or distro == centos-8 or distro == centos-stream-8 + because: packit doesn't support EL 8 + enabled: false diff --git a/plans/performance.fmf b/plans/performance.fmf new file mode 100644 index 0000000..341d17e --- /dev/null +++ b/plans/performance.fmf @@ -0,0 +1,15 @@ +summary: + Performance tests +discover+: + filter: tier:3 +prepare: + - how: install + package: python3-pip + - how: shell + script: pip3 install pytest-fail-slow + - how: shell + script: curl --output-dir /tmp -O https://src.fedoraproject.org/rpms/texlive/raw/rawhide/f/texlive.spec +adjust: + - when: "initiator != packit" + because: "skip this plan on dist-git pull requests" + enabled: false diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..059ee80 --- /dev/null +++ b/plans/smoke.fmf @@ -0,0 +1,10 @@ +summary: + Basic smoke test +discover+: + filter: tier:0 +adjust: + - when: "distro == rhel-8" + because: "only platform-python is installed on RHEL 8 by default" + prepare+: + - how: install + package: python3 diff --git a/python-specfile.spec b/python-specfile.spec new file mode 100644 index 0000000..bff427d --- /dev/null +++ b/python-specfile.spec @@ -0,0 +1,82 @@ +%bcond_with tests + + +%global desc %{expand: +Python library for parsing and manipulating RPM spec files. +Main focus is on modifying existing spec files, any change should result +in a minimal diff.} + + +%global base_version 0.34.2 +#global prerelease rc1 + +%global package_version %{base_version}%{?prerelease:~%{prerelease}} +%global pypi_version %{base_version}%{?prerelease} + + +Name: python-specfile +Version: %{package_version} +Release: 1%{?dist} + +Summary: A library for parsing and manipulating RPM spec files +License: MIT +URL: https://github.com/packit/specfile + +Source0: %{pypi_source specfile %{pypi_version}} + +BuildArch: noarch + +BuildRequires: python3-devel +%if %{with tests} +# tests/unit/test_guess_packager.py +BuildRequires: git-core +%endif + + +%description +%{desc} + + +%package -n python%{python3_pkgversion}-specfile +Summary: %{summary} + + +%description -n python%{python3_pkgversion}-specfile +%{desc} + + +%prep +%autosetup -p1 -n specfile-%{pypi_version} + +# since we are building from PyPI source, we don't need git-archive +# support in setuptools_scm +sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml + + +%generate_buildrequires +%pyproject_buildrequires %{?with_tests: -x testing} + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files specfile + + +%if %{with tests} +%check +%pytest --verbose tests/unit tests/integration +%endif + + +%files -n python%{python3_pkgversion}-specfile -f %{pyproject_files} +%doc README.md + + +%changelog +* Thu Mar 20 2025 Packit - 0.34.2-1 +- context_management: add a type stub override to fix typing. Type checkers like mypy and pyright can now correctly determine the types for `.sources()`, `.sections()`, and the other `Specfile` methods that return context managers. (#457) +- Resolves: rhbz#2344364 diff --git a/sources b/sources new file mode 100644 index 0000000..e767268 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (specfile-0.34.2.tar.gz) = b70f410ee6d6f493e96beff0d013b4830410ea3876c5c87b157c4481a1b65a804c6d7975c9e7c3d0d82dd4af522768cc393cee2eb2dd72ec2a0d694787eeee3d From 7c785110827c3771a81c6e73bbc811c715fac97c Mon Sep 17 00:00:00 2001 From: Packit Date: Sun, 13 Apr 2025 19:47:11 +0000 Subject: [PATCH 02/12] Update to 0.35.0 upstream release Upstream tag: 0.35.0 Upstream commit: e059c302 Commit authored by Packit automation (https://packit.dev/) --- README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 4 ++-- python-specfile.spec | 6 +++++- sources | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.packit b/README.packit index ad2b8e5..807ffc6 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 1.3.0.post1.dev4+gb85da743. +The file was generated using packit 1.6.0.post1.dev2+gd5a7662a. diff --git a/plans/main.fmf b/plans/main.fmf index 013282a..c12c916 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 875f03eda8abb51e7211bd1de5c11bdb038cf03d + ref: e059c30230d6611823a7af8020f703f07e136568 execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index 5ecf4ce..e9a0088 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -1,8 +1,8 @@ discover: how: fmf url: https://github.com/packit/packit - filter: tier:0 | tier:1 - ref: b85da743637c72cb1c46e78433be4afb82bd6256 + filter: tag:full + ref: 641502d2567dbd85518076ce1c201b88097a8246 prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index bff427d..f379aa1 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.34.2 +%global base_version 0.35.0 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -77,6 +77,10 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Sun Apr 13 2025 Packit - 0.35.0-1 +- Added support for creating Specfile instances from file objects and strings. (#458) +- The `context_management` type stubs now use `ParamSpec` from `typing_extensions` to support Python < 3.10. (#466) + * Thu Mar 20 2025 Packit - 0.34.2-1 - context_management: add a type stub override to fix typing. Type checkers like mypy and pyright can now correctly determine the types for `.sources()`, `.sections()`, and the other `Specfile` methods that return context managers. (#457) - Resolves: rhbz#2344364 diff --git a/sources b/sources index e767268..35da9c6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.34.2.tar.gz) = b70f410ee6d6f493e96beff0d013b4830410ea3876c5c87b157c4481a1b65a804c6d7975c9e7c3d0d82dd4af522768cc393cee2eb2dd72ec2a0d694787eeee3d +SHA512 (specfile-0.35.0.tar.gz) = db1fa9775955884777b80a218d1c95e3016e6ccc452273f22beb3fb7118a0f085d997823ecdc6c4d8b5c57e400946eaff00ed436d15d3eb54c298f86fc50d496 From 84a792d16964e255234ee2751781e5e6084af0fa Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 30 May 2025 13:12:33 +0000 Subject: [PATCH 03/12] Update to 0.36.0 upstream release Upstream tag: 0.36.0 Upstream commit: 24206539 Commit authored by Packit automation (https://packit.dev/) --- .packit.yaml | 4 ++-- README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 5 +++-- python-specfile.spec | 5 ++++- sources | 2 +- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 231ee63..0c8b732 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -131,8 +131,8 @@ jobs: branch: stable packages: [specfile] targets: - - fedora-latest-stable - - fedora-latest-stable-aarch64 + - fedora-stable + - fedora-stable-aarch64 project: packit-stable list_on_homepage: True preserve_project: True diff --git a/README.packit b/README.packit index 807ffc6..ed627e6 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 1.6.0.post1.dev2+gd5a7662a. +The file was generated using packit 1.8.0.post1.dev25+g477eb5ab. diff --git a/plans/main.fmf b/plans/main.fmf index c12c916..acfc624 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: e059c30230d6611823a7af8020f703f07e136568 + ref: 242065398724d191ecfa234d1e612886e647d4e4 execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index e9a0088..c0158cf 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: 641502d2567dbd85518076ce1c201b88097a8246 + ref: 90965a14e3c5d3f2fc4a971ba824e179aa8f01b5 prepare: - how: install copr: packit/packit-dev @@ -22,6 +22,7 @@ adjust: package: python3-pip - how: shell script: pip3 install build 'deepdiff < 8.0.0' - - when: distro == rhel-8 or distro == centos-8 or distro == centos-stream-8 + - when: | + distro == rhel-8 or distro == centos-8 or distro == centos-stream-8 or distro == rhel-9 or distro == centos-9 or distro == centos-stream-9 because: packit doesn't support EL 8 enabled: false diff --git a/python-specfile.spec b/python-specfile.spec index f379aa1..e7a9ed0 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.35.0 +%global base_version 0.36.0 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -77,6 +77,9 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Fri May 30 2025 Packit - 0.36.0-1 +- We have fixed a bug that caused specfile to traceback when section names with conditional macro expansions containing spaces were present in the spec file. (#476) + * Sun Apr 13 2025 Packit - 0.35.0-1 - Added support for creating Specfile instances from file objects and strings. (#458) - The `context_management` type stubs now use `ParamSpec` from `typing_extensions` to support Python < 3.10. (#466) diff --git a/sources b/sources index 35da9c6..37263f2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.35.0.tar.gz) = db1fa9775955884777b80a218d1c95e3016e6ccc452273f22beb3fb7118a0f085d997823ecdc6c4d8b5c57e400946eaff00ed436d15d3eb54c298f86fc50d496 +SHA512 (specfile-0.36.0.tar.gz) = 64fc4e1b03beb0fe4559af4ae590568d5a718f7098e4305ddb93fc1905923abcdf8e169f99297e154ff68cccc1eaa85b3139630ad08a0eeffd9caffa448d8992 From 3f2ccaba405fa171e30ae1712dd387c3c9f413f4 Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 5 Sep 2025 11:38:45 +0000 Subject: [PATCH 04/12] Update to 0.37.0 upstream release Upstream tag: 0.37.0 Upstream commit: aafca33c Commit authored by Packit automation (https://packit.dev/) --- README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 5 +++-- python-specfile.spec | 5 ++++- sources | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.packit b/README.packit index ed627e6..fb341a1 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 1.8.0.post1.dev25+g477eb5ab. +The file was generated using packit 1.11.0.post1.dev7+gfdcdf3a32. diff --git a/plans/main.fmf b/plans/main.fmf index acfc624..c7b7781 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 242065398724d191ecfa234d1e612886e647d4e4 + ref: aafca33cbd5fec74a044b9c436dcac91215af36c execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index c0158cf..59e575a 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,12 +2,13 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: 90965a14e3c5d3f2fc4a971ba824e179aa8f01b5 + ref: fdcdf3a322d8fd1a76ec13da16f5b90dc45089ed prepare: - how: install copr: packit/packit-dev - how: shell - script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo + script: sed -i -n '/^priority=/!p;$apriority=5' + /etc/yum.repos.d/*:packit:packit-dev.repo adjust: - when: how == integration because: provide latest python-specfile rpm when running locally diff --git a/python-specfile.spec b/python-specfile.spec index e7a9ed0..66badf5 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.36.0 +%global base_version 0.37.0 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -77,6 +77,9 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Fri Sep 5 2025 Packit - 0.37.0-1 +- Added support for Elbrus E2K CPU architectures. (#484) + * Fri May 30 2025 Packit - 0.36.0-1 - We have fixed a bug that caused specfile to traceback when section names with conditional macro expansions containing spaces were present in the spec file. (#476) diff --git a/sources b/sources index 37263f2..069d110 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.36.0.tar.gz) = 64fc4e1b03beb0fe4559af4ae590568d5a718f7098e4305ddb93fc1905923abcdf8e169f99297e154ff68cccc1eaa85b3139630ad08a0eeffd9caffa448d8992 +SHA512 (specfile-0.37.0.tar.gz) = 552f8a6e3717d1465da0358cc3669af07363c99d5b48da51760d80e2930516cf2f523b238940094dec40255c13fb1bcb38361f95d9192d86cad3ddbee2570b78 From 23c8900ee963f5131a5195ded0e152f551b611b4 Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 3 Oct 2025 12:55:49 +0000 Subject: [PATCH 05/12] Update to 0.37.1 upstream release Upstream tag: 0.37.1 Upstream commit: 21a45baa Commit authored by Packit automation (https://packit.dev/) --- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 5 ++++- sources | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/plans/main.fmf b/plans/main.fmf index c7b7781..94e3a90 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: aafca33cbd5fec74a044b9c436dcac91215af36c + ref: 21a45baa7c1ca166485b48e98069baad7ca1b99e execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index 59e575a..ea56a89 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: fdcdf3a322d8fd1a76ec13da16f5b90dc45089ed + ref: dbe235f913d74de4e1fb8175a14ca0e0f17a15e4 prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index 66badf5..c3fc0ef 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.37.0 +%global base_version 0.37.1 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -77,6 +77,9 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Fri Oct 3 2025 Packit - 0.37.1-1 +- We have solved a FutureWarning in our codebase. (#485) + * Fri Sep 5 2025 Packit - 0.37.0-1 - Added support for Elbrus E2K CPU architectures. (#484) diff --git a/sources b/sources index 069d110..dbdd35e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.37.0.tar.gz) = 552f8a6e3717d1465da0358cc3669af07363c99d5b48da51760d80e2930516cf2f523b238940094dec40255c13fb1bcb38361f95d9192d86cad3ddbee2570b78 +SHA512 (specfile-0.37.1.tar.gz) = cd77cac206fc9cafc111c0f9c409dbbc8c250481e638b7bc1937c6d8bca5d03f0ccf711cbbb34bfde1f7912d417cb0381fe8aeef19c28d94afe068484ef2884d From 653bdc2d34c4fa75f96670a991eb46f8d95067cf Mon Sep 17 00:00:00 2001 From: Packit Date: Thu, 8 Jan 2026 13:49:07 +0000 Subject: [PATCH 06/12] Update to 0.38.0 upstream release Upstream tag: 0.38.0 Upstream commit: a07560dd Commit authored by Packit automation (https://packit.dev/) --- .packit.yaml | 2 ++ README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 6 +++++- sources | 2 +- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 0c8b732..c326264 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -200,6 +200,7 @@ jobs: rawhide: fast_forward_merge_into: - fedora-branched + - eln epel-9: {} - <<: *propose_downstream packages: [specfile-epel8] @@ -224,6 +225,7 @@ jobs: rawhide: fast_forward_merge_into: - fedora-branched + - eln epel-9: {} - <<: *pull_from_upstream packages: [specfile-epel8] diff --git a/README.packit b/README.packit index fb341a1..9bb65f0 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 1.11.0.post1.dev7+gfdcdf3a32. +The file was generated using packit 1.13.0.post1.dev2+g84134016c. diff --git a/plans/main.fmf b/plans/main.fmf index 94e3a90..299f169 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 21a45baa7c1ca166485b48e98069baad7ca1b99e + ref: a07560dd2609cf23add5deeadc103033611b7b22 execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index ea56a89..2d0af65 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: dbe235f913d74de4e1fb8175a14ca0e0f17a15e4 + ref: 87042fcac49435dd55a1b989ed0c6ead290e703d prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index c3fc0ef..21b0548 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.37.1 +%global base_version 0.38.0 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -77,6 +77,10 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Thu Jan 8 2026 Packit - 0.38.0-1 +- A bug leading to incorrect EVR expansion has been fixed. (#492) +- Prevented side-effects during condition evaluation that could occur when expanding macros that manipulate other macros, leading to misinterpreted validity of condition branches. (#499) + * Fri Oct 3 2025 Packit - 0.37.1-1 - We have solved a FutureWarning in our codebase. (#485) diff --git a/sources b/sources index dbdd35e..46cc24d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.37.1.tar.gz) = cd77cac206fc9cafc111c0f9c409dbbc8c250481e638b7bc1937c6d8bca5d03f0ccf711cbbb34bfde1f7912d417cb0381fe8aeef19c28d94afe068484ef2884d +SHA512 (specfile-0.38.0.tar.gz) = bfd60434b868fd191fb68d5b2fa319db45df80397b6c1000a63d9fe947e998a8a86fcf6a76c0ae9b6ef3321d2b04d4dd9bc565a610bfb117faa64180342fda4d From ce016c61d33ebb133e77517c6241be274807e8e5 Mon Sep 17 00:00:00 2001 From: Packit Date: Sat, 14 Feb 2026 11:13:53 +0000 Subject: [PATCH 07/12] Update to 0.39.1 upstream release - Resolves: rhbz#2393435 Upstream tag: 0.39.1 Upstream commit: d96a70a9 Commit authored by Packit automation (https://packit.dev/) --- README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 6 +++++- sources | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.packit b/README.packit index 9bb65f0..48ac383 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 1.13.0.post1.dev2+g84134016c. +The file was generated using packit 1.14.0.post1.dev14+gd507597e6. diff --git a/plans/main.fmf b/plans/main.fmf index 299f169..8c569ee 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: a07560dd2609cf23add5deeadc103033611b7b22 + ref: d96a70a9f16b91b8973c733d889e3cce3948b525 execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index 2d0af65..38e1947 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: 87042fcac49435dd55a1b989ed0c6ead290e703d + ref: d507597e6a4c9c2e456694de97d0353fe99e894f prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index 21b0548..e115e61 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.38.0 +%global base_version 0.39.1 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -77,6 +77,10 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Sat Feb 14 2026 Packit - 0.39.1-1 +- Fixed whitespace padding of day of month in changelog entries. (#511) +- Resolves: rhbz#2393435 + * Thu Jan 8 2026 Packit - 0.38.0-1 - A bug leading to incorrect EVR expansion has been fixed. (#492) - Prevented side-effects during condition evaluation that could occur when expanding macros that manipulate other macros, leading to misinterpreted validity of condition branches. (#499) diff --git a/sources b/sources index 46cc24d..f3aae04 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.38.0.tar.gz) = bfd60434b868fd191fb68d5b2fa319db45df80397b6c1000a63d9fe947e998a8a86fcf6a76c0ae9b6ef3321d2b04d4dd9bc565a610bfb117faa64180342fda4d +SHA512 (specfile-0.39.1.tar.gz) = ca33733958b89650baa2a53676f5757c6d4604656d8d74247a765aa37a33d1aa801a0e15e4ec57d66aa1b0e8b65030758db1cb2512a158fc372bc3736da990f0 From 1beb60ce7dce3b15a12252cb31338debb194486b Mon Sep 17 00:00:00 2001 From: Packit Date: Wed, 11 Mar 2026 13:05:15 +0000 Subject: [PATCH 08/12] Update to 0.40.0 upstream release Upstream tag: 0.40.0 Upstream commit: c0061d82 Commit authored by Packit automation (https://packit.dev/) --- .packit.yaml | 64 +++++++----------------------------- README.packit | 2 +- plans/full.fmf | 8 ----- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 12 +++++-- sources | 2 +- 7 files changed, 25 insertions(+), 67 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index c326264..283e1aa 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -49,22 +49,6 @@ packages: - python3 setup.py sdist --dist-dir ./epel8/ - bash -c "ls -1t ./epel8/*.tar.gz | head -n 1" - specfile-epel10: - <<: *specfile - specfile_path: &specfile_path_epel10 epel10/python-specfile.spec - files_to_sync: - - *specfile_path_epel10 - - .packit.yaml - - src: plans/ - dest: plans/ - - src: .fmf/ - dest: .fmf/ - actions: - <<: *actions - create-archive: - - python3 setup.py sdist --dist-dir ./epel10/ - - bash -c "ls -1t ./epel10/*.tar.gz | head -n 1" - # docs: https://gitlab.com/CentOS/Integration/packit-cbs/docs specfile-centos-integration-sig: <<: *specfile @@ -95,14 +79,11 @@ jobs: - fedora-all - fedora-all-aarch64 - epel-9 + - epel-10-all - <<: *copr_build_pr packages: [specfile-epel8] targets: - epel-8 - - <<: *copr_build_pr - packages: [specfile-epel10] - targets: - - epel-10-all - &copr_build_commit_main job: copr_build @@ -113,6 +94,7 @@ jobs: - fedora-all - fedora-all-aarch64 - epel-9 + - epel-10-all project: packit-dev list_on_homepage: True preserve_project: True @@ -120,10 +102,6 @@ jobs: packages: [specfile-epel8] targets: - epel-8 - - <<: *copr_build_commit_main - packages: [specfile-epel10] - targets: - - epel-10-all - &copr_build_commit_stable job: copr_build @@ -145,6 +123,7 @@ jobs: - fedora-all - fedora-all-aarch64 - epel-9 + - epel-10-all project: packit-releases list_on_homepage: True preserve_project: True @@ -152,10 +131,6 @@ jobs: packages: [specfile-epel8] targets: - epel-8 - - <<: *copr_build_release - packages: [specfile-epel10] - targets: - - epel-10-all - &tests job: tests @@ -165,6 +140,7 @@ jobs: targets: - fedora-all - epel-9 + - epel-10-all - <<: *tests identifier: performance tmt_plan: performance @@ -186,11 +162,6 @@ jobs: set -x dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm %end - - <<: *tests - packages: [specfile-epel10] - tmt_plan: "smoke|full" - targets: - - epel-10-all - &propose_downstream job: propose_downstream @@ -202,16 +173,13 @@ jobs: - fedora-branched - eln epel-9: {} + epel-10: + fast_forward_merge_into: + - epel-10-branched - <<: *propose_downstream packages: [specfile-epel8] dist_git_branches: - epel-8 - - <<: *propose_downstream - packages: [specfile-epel10] - dist_git_branches: - epel-10: - fast_forward_merge_into: - - epel-10-branched - <<: *propose_downstream packages: [specfile-centos-integration-sig] dist_git_branches: @@ -227,16 +195,13 @@ jobs: - fedora-branched - eln epel-9: {} + epel-10: + fast_forward_merge_into: + - epel-10-branched - <<: *pull_from_upstream packages: [specfile-epel8] dist_git_branches: - epel-8 - - <<: *pull_from_upstream - packages: [specfile-epel10] - dist_git_branches: - epel-10: - fast_forward_merge_into: - - epel-10-branched - <<: *pull_from_upstream packages: [specfile-centos-integration-sig] dist_git_branches: @@ -254,10 +219,6 @@ jobs: packages: [specfile-epel8] dist_git_branches: - epel-8 - - <<: *koji_build - packages: [specfile-epel10] - dist_git_branches: - - epel-10-all - <<: *koji_build packages: [specfile-centos-integration-sig] dist_git_branches: @@ -268,6 +229,7 @@ jobs: - packit dist_git_branches: - fedora-all + - epel-10-all - &bodhi_update job: bodhi_update @@ -281,7 +243,3 @@ jobs: packages: [specfile-epel8] dist_git_branches: - epel-8 - - <<: *bodhi_update - packages: [specfile-epel10] - dist_git_branches: - - epel-10-all diff --git a/README.packit b/README.packit index 48ac383..4fa4a78 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 1.14.0.post1.dev14+gd507597e6. +The file was generated using packit 1.15.1.post1.dev2+g0a5916fb9. diff --git a/plans/full.fmf b/plans/full.fmf index dc00841..4ed1316 100644 --- a/plans/full.fmf +++ b/plans/full.fmf @@ -8,11 +8,3 @@ adjust: prepare+: - how: install package: python3 - - - when: "distro == rhel-10 or distro == centos-10 or distro == centos-stream-10" - because: "flexmock is not in EPEL 10: https://bugzilla.redhat.com/show_bug.cgi?id=2351835" - prepare+: - - how: install - package: python3-pip - - how: shell - script: pip3 install flexmock diff --git a/plans/main.fmf b/plans/main.fmf index 8c569ee..bfb28e0 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: d96a70a9f16b91b8973c733d889e3cce3948b525 + ref: c0061d82e6bed803b831e0b013f6b2ecb5092dcc execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index 38e1947..4815fad 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: d507597e6a4c9c2e456694de97d0353fe99e894f + ref: 0a5916fb95152c3262035294bedf9e2324a74008 prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index e115e61..6c686e7 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -1,4 +1,4 @@ -%bcond_with tests +%bcond_without tests %global desc %{expand: @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.39.1 +%global base_version 0.40.0 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -32,6 +32,10 @@ BuildRequires: python3-devel BuildRequires: git-core %endif +# system-rpm-config pulls in packages containing SRPM macros +# necessary for spec file preprocessing and parsing +Recommends: system-rpm-config + %description %{desc} @@ -77,6 +81,10 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Wed Mar 11 2026 Packit - 0.40.0-1 +- `Specfile()` has a new `sanitize` option that enables best effort sanitization of potentially dangerous constructs such as shell expansions and unsafe Lua macros before they are passed to RPM for parsing. (#519) +- Fixed incorrect parsing of nested macros. (#522) + * Sat Feb 14 2026 Packit - 0.39.1-1 - Fixed whitespace padding of day of month in changelog entries. (#511) - Resolves: rhbz#2393435 diff --git a/sources b/sources index f3aae04..dd845d2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.39.1.tar.gz) = ca33733958b89650baa2a53676f5757c6d4604656d8d74247a765aa37a33d1aa801a0e15e4ec57d66aa1b0e8b65030758db1cb2512a158fc372bc3736da990f0 +SHA512 (specfile-0.40.0.tar.gz) = be9f0b7862ca15f0564b7c39f04055db46d678096b86d472b8a3ff61d867e98fcb74e507de573bad88b45a049366ebac3fcf6abf975cc2c3f92e488ed80c4ea9 From 7af5d518d3f87177cd700ef01a55695a55c992af Mon Sep 17 00:00:00 2001 From: Packit Date: Wed, 25 Mar 2026 08:38:21 +0000 Subject: [PATCH 09/12] Update to 0.40.1 upstream release - Resolves: rhbz#2446536 Upstream tag: 0.40.1 Upstream commit: 19853920 Commit authored by Packit automation (https://packit.dev/) --- README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 6 +++++- sources | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.packit b/README.packit index 4fa4a78..c72c444 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 1.15.1.post1.dev2+g0a5916fb9. +The file was generated using packit 1.15.1.post1.dev10+gc5437527a. diff --git a/plans/main.fmf b/plans/main.fmf index bfb28e0..f4f1c14 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: c0061d82e6bed803b831e0b013f6b2ecb5092dcc + ref: 19853920a132caf6c755f5f101dee47239401c0d execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index 4815fad..c468551 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: 0a5916fb95152c3262035294bedf9e2324a74008 + ref: b7382833de9e46ac53653de3b7e96b3f27500ae4 prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index 6c686e7..615463a 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.40.0 +%global base_version 0.40.1 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -81,6 +81,10 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Wed Mar 25 2026 Packit - 0.40.1-1 +- Fixed issues related to introduced sanitization (#523, #524, #525). +- Resolves: rhbz#2446536 + * Wed Mar 11 2026 Packit - 0.40.0-1 - `Specfile()` has a new `sanitize` option that enables best effort sanitization of potentially dangerous constructs such as shell expansions and unsafe Lua macros before they are passed to RPM for parsing. (#519) - Fixed incorrect parsing of nested macros. (#522) diff --git a/sources b/sources index dd845d2..de7d3c4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.40.0.tar.gz) = be9f0b7862ca15f0564b7c39f04055db46d678096b86d472b8a3ff61d867e98fcb74e507de573bad88b45a049366ebac3fcf6abf975cc2c3f92e488ed80c4ea9 +SHA512 (specfile-0.40.1.tar.gz) = 4c14bc206c91d2da8b8bcee9c34d36cde6c1f2fc047bb7693499e2623c29e0f7004b104c9d3e000afb45953cf981b1d1d66882eeb48d7b947b80fb01068f8717 From 8729e557b72b7ddc160685f41f557670bfe9c801 Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 24 Apr 2026 09:15:55 +0000 Subject: [PATCH 10/12] Update to 0.40.2 upstream release - Resolves: rhbz#2461109 Upstream tag: 0.40.2 Upstream commit: 43174b05 Commit authored by Packit automation (https://packit.dev/) --- README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 6 +++++- sources | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.packit b/README.packit index c72c444..7698114 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 1.15.1.post1.dev10+gc5437527a. +The file was generated using packit 1.15.3.post1.dev4+g553394da5. diff --git a/plans/main.fmf b/plans/main.fmf index f4f1c14..aab8419 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 19853920a132caf6c755f5f101dee47239401c0d + ref: 43174b05acad3c534fb7557d4251540ba84f6487 execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index c468551..e66ca03 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: b7382833de9e46ac53653de3b7e96b3f27500ae4 + ref: 3824aae58b21d6a38bbcb49a9fe53484143a4569 prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index 615463a..ae8ca09 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.40.1 +%global base_version 0.40.2 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -81,6 +81,10 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Fri Apr 24 2026 Packit - 0.40.2-1 +- Trailing whitespaces at the end of specfile sections are now ignored during parsing. (#531) +- Resolves: rhbz#2461109 + * Wed Mar 25 2026 Packit - 0.40.1-1 - Fixed issues related to introduced sanitization (#523, #524, #525). - Resolves: rhbz#2446536 diff --git a/sources b/sources index de7d3c4..93fbc46 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.40.1.tar.gz) = 4c14bc206c91d2da8b8bcee9c34d36cde6c1f2fc047bb7693499e2623c29e0f7004b104c9d3e000afb45953cf981b1d1d66882eeb48d7b947b80fb01068f8717 +SHA512 (specfile-0.40.2.tar.gz) = 4ad40abe25302ec63c870a1af3fb9a33a51df683fd79a632fa31fb4c68d5906cfef98c4f4dee5431e57710f65b7978236f96d6b2e495ebd58497ae75e30e186f From 8f89aac628ecec247cf511d92537073c152ce157 Mon Sep 17 00:00:00 2001 From: Packit Date: Fri, 29 May 2026 09:15:16 +0000 Subject: [PATCH 11/12] Update to 0.41.0 upstream release Upstream tag: 0.41.0 Upstream commit: 2dc72c0d Commit authored by Packit automation (https://packit.dev/) --- README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 11 ++++++++++- sources | 2 +- 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.packit b/README.packit index 7698114..4e76cbe 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 1.15.3.post1.dev4+g553394da5. +The file was generated using packit 1.16.0.post1.dev8+g8a0482385. diff --git a/plans/main.fmf b/plans/main.fmf index aab8419..031a591 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 43174b05acad3c534fb7557d4251540ba84f6487 + ref: 2dc72c0deb408b858b72b365271a676056045513 execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index e66ca03..8d68c5c 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: 3824aae58b21d6a38bbcb49a9fe53484143a4569 + ref: 8a0482385de8c0d3d7b233786a412c0b3240ca57 prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index ae8ca09..af3efde 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.40.2 +%global base_version 0.41.0 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -81,6 +81,15 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Fri May 29 2026 Packit - 0.41.0-1 +- Fixed an issue where the value of a tag could have been incorrectly expanded if the spec file contained a macro definition shadowing the tag name, e.g.: +``` +%%global release 12 +%%global release_string %%{release}%%{?dist} +Release: %%{release_string} +``` +In this case, with `dist` being `.fc44`, `Specfile.expanded_release` returned `12.fc44.fc44` instead of `12.fc44`. (#539) + * Fri Apr 24 2026 Packit - 0.40.2-1 - Trailing whitespaces at the end of specfile sections are now ignored during parsing. (#531) - Resolves: rhbz#2461109 diff --git a/sources b/sources index 93fbc46..24b1a14 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.40.2.tar.gz) = 4ad40abe25302ec63c870a1af3fb9a33a51df683fd79a632fa31fb4c68d5906cfef98c4f4dee5431e57710f65b7978236f96d6b2e495ebd58497ae75e30e186f +SHA512 (specfile-0.41.0.tar.gz) = 34619d6b7a1b293ba2ceab0dd68e5800c69f6c8a92e87ef9924d461d02d137e9cd3152ff2d42a0fbdc9821a88f39fdbb38a0f84393203ff7da9836341a793085 From f03fc0cbf0994671dbb8388c7166cb0ee1439a8e Mon Sep 17 00:00:00 2001 From: Packit Date: Mon, 20 Jul 2026 13:25:16 +0000 Subject: [PATCH 12/12] Update to 0.41.1 upstream release Upstream tag: 0.41.1 Upstream commit: cc8619e5 Commit authored by Packit automation (https://packit.dev/) --- README.packit | 2 +- plans/main.fmf | 2 +- plans/packit-integration.fmf | 2 +- python-specfile.spec | 5 ++++- sources | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.packit b/README.packit index 4e76cbe..173195e 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 1.16.0.post1.dev8+g8a0482385. +The file was generated using packit 1.16.1.post1.dev2+gf84fe2d5b. diff --git a/plans/main.fmf b/plans/main.fmf index 031a591..65cdb18 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -1,6 +1,6 @@ discover: how: fmf url: https://github.com/packit/specfile.git - ref: 2dc72c0deb408b858b72b365271a676056045513 + ref: cc8619e5f5dc66028d95752d317d768e6e0ce64b execute: how: tmt diff --git a/plans/packit-integration.fmf b/plans/packit-integration.fmf index 8d68c5c..546c75f 100644 --- a/plans/packit-integration.fmf +++ b/plans/packit-integration.fmf @@ -2,7 +2,7 @@ discover: how: fmf url: https://github.com/packit/packit filter: tag:full - ref: 8a0482385de8c0d3d7b233786a412c0b3240ca57 + ref: f84fe2d5b3b33bf3d659411e67b754453f1a2635 prepare: - how: install copr: packit/packit-dev diff --git a/python-specfile.spec b/python-specfile.spec index af3efde..aeb034f 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -7,7 +7,7 @@ Main focus is on modifying existing spec files, any change should result in a minimal diff.} -%global base_version 0.41.0 +%global base_version 0.41.1 #global prerelease rc1 %global package_version %{base_version}%{?prerelease:~%{prerelease}} @@ -81,6 +81,9 @@ sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml %changelog +* Mon Jul 20 2026 Packit - 0.41.1-1 +- Sanitize multi-pipe shell expansion. (#542) + * Fri May 29 2026 Packit - 0.41.0-1 - Fixed an issue where the value of a tag could have been incorrectly expanded if the spec file contained a macro definition shadowing the tag name, e.g.: ``` diff --git a/sources b/sources index 24b1a14..7582325 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (specfile-0.41.0.tar.gz) = 34619d6b7a1b293ba2ceab0dd68e5800c69f6c8a92e87ef9924d461d02d137e9cd3152ff2d42a0fbdc9821a88f39fdbb38a0f84393203ff7da9836341a793085 +SHA512 (specfile-0.41.1.tar.gz) = 28c42ed09be94c0f60cd88153f0052a00d260e1d6bb3de2810a17a2fbd2afb8af0b6d41d1a4aac8c84cb394627395be9e6d9ff13183ec14287d173e946dba068