diff --git a/python-specfile-improve-setup-cfg.patch b/python-specfile-improve-setup-cfg.patch deleted file mode 100644 index 259b949..0000000 --- a/python-specfile-improve-setup-cfg.patch +++ /dev/null @@ -1,14 +0,0 @@ -Index: specfile-0.11.1/setup.cfg -=================================================================== ---- specfile-0.11.1.orig/setup.cfg -+++ specfile-0.11.1/setup.cfg -@@ -7,7 +7,8 @@ url = https://github.com/packit/specfile - author = Red Hat - author_email = user-cont-team@redhat.com - license = MIT --license_file = LICENSE -+license_files = -+ LICENSE - classifiers = - Development Status :: 4 - Beta - Environment :: Console diff --git a/python-specfile.changes b/python-specfile.changes index 8bae1b0..b39d35a 100644 --- a/python-specfile.changes +++ b/python-specfile.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Thu Jan 12 10:27:28 UTC 2023 - David Anes + +- Remove patch (already upstream): + * python-specfile-improve-setup-cfg.patch + +- Update to version 0.12.0: + * All classes including `Specfile` itself can now be copied using + the standard `copy()` and `deepcopy()` functions from `copy` + module. + * `Section.name` attribute has been renamed to a more fitting + `Section.id`. + * `setup.cfg` now uses `license_files` instead of deprecated + `license_file`. + ------------------------------------------------------------------- Tue Dec 13 08:20:36 UTC 2022 - David Anes @@ -7,7 +22,7 @@ Tue Dec 13 08:20:36 UTC 2022 - David Anes - Update to version 0.11.1 * Tags enclosed in conditional macro expansions are not ignored anymore. - * Fixed context managers being shared between Specfile instances. 1q + * Fixed context managers being shared between Specfile instances. - Update to version 0.11.0 * Context managers (Specfile.sections(), Specfile.tags() etc.) can diff --git a/python-specfile.spec b/python-specfile.spec index 75214d2..930a20b 100644 --- a/python-specfile.spec +++ b/python-specfile.spec @@ -1,7 +1,7 @@ # # spec file for package python-specfile # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,15 +18,17 @@ %define skip_python38 1 Name: python-specfile -Version: 0.11.1 +Version: 0.12.0 Release: 0 Summary: A library for parsing and manipulating RPM spec files License: MIT URL: https://github.com/packit/specfile Source: https://files.pythonhosted.org/packages/source/s/specfile/specfile-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm_git_archive} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module rpm} @@ -38,10 +40,6 @@ BuildRequires: fdupes Requires: python-rpm Requires: python-typing-extensions -# PATCH-SUSE: some improvements that are still pending upstream -# https://github.com/packit/specfile/pull/162 -Patch0: python-specfile-improve-setup-cfg.patch - BuildArch: noarch %python_subpackages @@ -55,7 +53,7 @@ A library for parsing and manipulating RPM spec files. sed -i '/rpm-py-installer/d' setup.cfg %build -%python_build +%pyproject_wheel %check # Following tests fail: @@ -64,7 +62,7 @@ sed -i '/rpm-py-installer/d' setup.cfg %pytest -k "not (test_update_tag or test_macros_reinit)" %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} diff --git a/specfile-0.11.1.tar.gz b/specfile-0.11.1.tar.gz deleted file mode 100644 index 107741d..0000000 --- a/specfile-0.11.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e3564b447da2b4e4f7d276dcdfee9c8d06cfc4ecc2bed2b8e4febc1f3d51a00 -size 74695 diff --git a/specfile-0.12.0.tar.gz b/specfile-0.12.0.tar.gz new file mode 100644 index 0000000..4c698d3 --- /dev/null +++ b/specfile-0.12.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac63b3d5ec74f02895b83fbce1695fb1d7fac1b46b63998a6259d1da9d4fab8b +size 79355