forked from pool/python-specfile
Accepting request 1057959 from home:david.anes:branches:devel:languages:python
- 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`. * Fixed context managers being shared between Specfile instances. OBS-URL: https://build.opensuse.org/request/show/1057959 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=9
This commit is contained in:
@@ -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
|
|
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 12 10:27:28 UTC 2023 - David Anes <david.anes@suse.com>
|
||||||
|
|
||||||
|
- 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 <david.anes@suse.com>
|
Tue Dec 13 08:20:36 UTC 2022 - David Anes <david.anes@suse.com>
|
||||||
|
|
||||||
@@ -7,7 +22,7 @@ Tue Dec 13 08:20:36 UTC 2022 - David Anes <david.anes@suse.com>
|
|||||||
- Update to version 0.11.1
|
- Update to version 0.11.1
|
||||||
* Tags enclosed in conditional macro expansions are not ignored
|
* Tags enclosed in conditional macro expansions are not ignored
|
||||||
anymore.
|
anymore.
|
||||||
* Fixed context managers being shared between Specfile instances. 1q
|
* Fixed context managers being shared between Specfile instances.
|
||||||
|
|
||||||
- Update to version 0.11.0
|
- Update to version 0.11.0
|
||||||
* Context managers (Specfile.sections(), Specfile.tags() etc.) can
|
* Context managers (Specfile.sections(), Specfile.tags() etc.) can
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-specfile
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,15 +18,17 @@
|
|||||||
|
|
||||||
%define skip_python38 1
|
%define skip_python38 1
|
||||||
Name: python-specfile
|
Name: python-specfile
|
||||||
Version: 0.11.1
|
Version: 0.12.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A library for parsing and manipulating RPM spec files
|
Summary: A library for parsing and manipulating RPM spec files
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/packit/specfile
|
URL: https://github.com/packit/specfile
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/specfile/specfile-%{version}.tar.gz
|
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_git_archive}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module rpm}
|
BuildRequires: %{python_module rpm}
|
||||||
@@ -38,10 +40,6 @@ BuildRequires: fdupes
|
|||||||
Requires: python-rpm
|
Requires: python-rpm
|
||||||
Requires: python-typing-extensions
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -55,7 +53,7 @@ A library for parsing and manipulating RPM spec files.
|
|||||||
sed -i '/rpm-py-installer/d' setup.cfg
|
sed -i '/rpm-py-installer/d' setup.cfg
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Following tests fail:
|
# 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)"
|
%pytest -k "not (test_update_tag or test_macros_reinit)"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2e3564b447da2b4e4f7d276dcdfee9c8d06cfc4ecc2bed2b8e4febc1f3d51a00
|
|
||||||
size 74695
|
|
3
specfile-0.12.0.tar.gz
Normal file
3
specfile-0.12.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ac63b3d5ec74f02895b83fbce1695fb1d7fac1b46b63998a6259d1da9d4fab8b
|
||||||
|
size 79355
|
Reference in New Issue
Block a user