14
0
2025-06-04 06:18:44 +00:00
committed by Git OBS Bridge
parent 3f950c473e
commit 3d12dd7819
2 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 06:07:59 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 24 14:01:36 UTC 2023 - Dirk Müller <dmueller@suse.com> Tue Oct 24 14:01:36 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-titlecase # spec file for package python-titlecase
# #
# 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
@@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-titlecase Name: python-titlecase
Version: 2.4.1 Version: 2.4.1
Release: 0 Release: 0
@@ -25,14 +24,16 @@ License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/ppannuto/python-titlecase URL: https://github.com/ppannuto/python-titlecase
Source: https://files.pythonhosted.org/packages/source/t/titlecase/titlecase-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/t/titlecase/titlecase-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module regex >= 2020.4.4} BuildRequires: %{python_module regex >= 2020.4.4}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
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-regex >= 2020.4.4 Requires: python-regex >= 2020.4.4
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun):update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
@@ -50,10 +51,10 @@ York Times Manual of Style, plus some others like 'vs' and 'v'.
%setup -q -n titlecase-%{version} %setup -q -n titlecase-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/titlecase %python_clone -a %{buildroot}%{_bindir}/titlecase
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}