14
0

Accepting request 1043095 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1043095
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=4
This commit is contained in:
2022-12-15 18:25:48 +00:00
committed by Git OBS Bridge
5 changed files with 52 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
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,25 @@
-------------------------------------------------------------------
Tue Dec 13 08:20:36 UTC 2022 - David Anes <david.anes@suse.com>
- Add config.cfg improvements to remove deprecation warnings
* python-specfile-improve-setup-cfg.patch
- 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
- Update to version 0.11.0
* 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.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 30 17:15:22 UTC 2022 - David Anes <david.anes@suse.com> Wed Nov 30 17:15:22 UTC 2022 - David Anes <david.anes@suse.com>

View File

@@ -18,7 +18,7 @@
%define skip_python38 1 %define skip_python38 1
Name: python-specfile Name: python-specfile
Version: 0.10.0 Version: 0.11.1
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
@@ -38,7 +38,12 @@ 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
%description %description
@@ -46,19 +51,22 @@ A library for parsing and manipulating RPM spec files.
%prep %prep
%autosetup -p1 -n specfile-%{version} %autosetup -p1 -n specfile-%{version}
# we use our own package for "rpm" module (see Requires)
sed -i '/rpm-py-installer/d' setup.cfg sed -i '/rpm-py-installer/d' setup.cfg
%build %build
%python_build %python_build
%check
# Following tests fail:
# * test_update_tag
# * test_macros_reinit
%pytest -k "not (test_update_tag or test_macros_reinit)"
%install %install
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_macros_reinit fails
%pytest -k 'not test_macros_reinit'
%files %{python_files} %files %{python_files}
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%license LICENSE %license LICENSE

View File

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

3
specfile-0.11.1.tar.gz Normal file
View File

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