14
0

4 Commits

2 changed files with 17 additions and 4 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Jun 13 05:35:04 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Sep 24 18:26:05 UTC 2024 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 30 07:26:57 UTC 2023 - Dirk Müller <dmueller@suse.com> Thu Mar 30 07:26:57 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-accessible-pygments # spec file for package python-accessible-pygments
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 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
@@ -17,6 +17,7 @@
%define modname accessible-pygments %define modname accessible-pygments
%{?sle15_python_module_pythons}
Name: python-accessible-pygments Name: python-accessible-pygments
Version: 0.0.4 Version: 0.0.4
Release: 0 Release: 0
@@ -24,8 +25,10 @@ Summary: A collection of accessible pygments styles
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/Quansight-Labs/accessible-pygments URL: https://github.com/Quansight-Labs/accessible-pygments
Source: https://github.com/Quansight-Labs/accessible-pygments/archive/refs/tags/v%{version}.tar.gz#/accessible-pygments-%{version}-gh.tar.gz Source: https://github.com/Quansight-Labs/accessible-pygments/archive/refs/tags/v%{version}.tar.gz#/accessible-pygments-%{version}-gh.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-pygments >= 1.5 Requires: python-pygments >= 1.5
@@ -42,10 +45,10 @@ A collection of accessible pygments styles
%setup -q -n accessible-pygments-%{version} %setup -q -n accessible-pygments-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand rm -rf %{buildroot}%{$python_sitelib}/test %python_expand rm -rf %{buildroot}%{$python_sitelib}/test
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -57,6 +60,6 @@ export PYTHONPATH=$PWD
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{python_sitelib}/a11y_pygments %{python_sitelib}/a11y_pygments
%{python_sitelib}/accessible_pygments-%{version}*-info %{python_sitelib}/accessible_pygments-%{version}.dist-info
%changelog %changelog