- Drop dependency on ca-certificates-mozilla-prebuilt to really

avoid buildcycles

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=119
This commit is contained in:
Markéta Machová 2025-01-23 11:32:10 +00:00 committed by Git OBS Bridge
parent f544e30964
commit 6c476ed6d2
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 23 11:20:48 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Drop dependency on ca-certificates-mozilla-prebuilt to really
avoid buildcycles
-------------------------------------------------------------------
Mon Jan 6 18:00:26 UTC 2025 - Benoît Monin <benoit.monin@gmx.fr>

View File

@ -43,7 +43,6 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
#!BuildIgnore: ca-certificates:p11-kit
#!BuildIgnore: ca-certificates:p11-kit-tools
BuildRequires: ca-certificates-mozilla-prebuilt
Provides: python-pygments = %{version}
Obsoletes: python-pygments < %{version}
BuildArch: noarch
@ -74,13 +73,9 @@ source code. Highlights are:
chmod -x pygments/formatters/_mapping.py pygments/lexers/gsql.py
%build
# Point pip to the prebuilt CA bundle
export _PIP_STANDALONE_CERT=/usr/share/factory/var/lib/ca-certificates/ca-bundle.pem
%pyproject_wheel
%install
# Point pip to the prebuilt CA bundle
export _PIP_STANDALONE_CERT=/usr/share/factory/var/lib/ca-certificates/ca-bundle.pem
%pyproject_install
install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%python_clone -a %{buildroot}%{_bindir}/pygmentize