Accepting request 1186143 from openSUSE:Tools

- Update to version 1.2.3+1:
  + Update rpmprep to handle %patchN for rpm >= 4.20
  + Do not embrace macros inside %python_module
  + Use python-rpm-spec instead of calling rpmspec command
  + Add %dnl to excludes-bracketing.txt
- Fix version number in package from github master

OBS-URL: https://build.opensuse.org/request/show/1186143
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spec-cleaner?expand=0&rev=72
This commit is contained in:
Ana Guerrero 2024-07-08 17:09:07 +00:00 committed by Git OBS Bridge
commit 068aa51dc4
5 changed files with 27 additions and 8 deletions

BIN
spec-cleaner-1.2.2+5.obscpio (Stored with Git LFS)

Binary file not shown.

BIN
spec-cleaner-1.2.3+1.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Jul 8 10:51:00 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Update to version 1.2.3+1:
+ Update rpmprep to handle %patchN for rpm >= 4.20
+ Do not embrace macros inside %python_module
+ Use python-rpm-spec instead of calling rpmspec command
+ Add %dnl to excludes-bracketing.txt
- Fix version number in package from github master
-------------------------------------------------------------------
Tue Apr 2 13:21:00 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,4 +1,4 @@
name: spec-cleaner
version: 1.2.2+5
mtime: 1709054721
commit: 955cdcb1b9e6c72e216c4ae8a36662877dbb2f56
version: 1.2.3+1
mtime: 1720169521
commit: bc35e1eb055ce06879f9c4c57b912c82f717a8e0

View File

@ -18,7 +18,7 @@
Name: spec-cleaner
Version: 1.2.2+5
Version: 1.2.3+1
Release: 0
Summary: .spec file cleaner
License: BSD-3-Clause
@ -28,7 +28,9 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-pip
BuildRequires: python3-pytest
BuildRequires: python3-python-rpm-spec
BuildRequires: python3-wheel
Requires: python3-python-rpm-spec
# For the pkg_resources used in the binary loader
BuildArch: noarch
@ -48,6 +50,8 @@ user to use spec-cleaner rather than to stick to perl based format_spec_file.
%prep
%autosetup -p1
# Set correct package version, upstream has the next release number
sed -i 's/1\.2\.4/%{version}/g' spec_cleaner/__init__.py
rm pytest.ini
%build
@ -59,7 +63,12 @@ rm pytest.ini
%check
export LANG=en_US.UTF-8
python3 -m pytest -k "not webtest" tests/*-tests.py
# Tests that requires network
donttest="webtest or url_https.spec"
# Tests that requires network because of make_secure_url checking that
# the secure url exists
donttest+=" or source_https or rpmpreamble.spec or replace_pwdutils.spec or mingw32-clutter.spec"
python3 -m pytest -k "not ($donttest)" tests/*-tests.py
%install
%if 0%{?mageia}