14
0

Accepting request 1057972 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1057972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=5
This commit is contained in:
2023-01-12 21:45:12 +00:00
committed by Git OBS Bridge
5 changed files with 25 additions and 26 deletions

View File

@@ -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

View File

@@ -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>
@@ -7,7 +22,7 @@ Tue Dec 13 08:20:36 UTC 2022 - David Anes <david.anes@suse.com>
- 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

View File

@@ -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}

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac63b3d5ec74f02895b83fbce1695fb1d7fac1b46b63998a6259d1da9d4fab8b
size 79355