14
0

Accepting request 1273883 from devel:languages:python

- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1273883
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=8
This commit is contained in:
2025-05-02 12:59:41 +00:00
committed by Git OBS Bridge
2 changed files with 14 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 2 02:37:25 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 11 20:50:51 UTC 2024 - Dirk Müller <dmueller@suse.com> Mon Nov 11 20:50:51 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyRFC3339 # spec file for package python-pyRFC3339
# #
# Copyright (c) 2024 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
@@ -25,8 +25,10 @@ License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/kurtraschke/pyRFC3339 URL: https://github.com/kurtraschke/pyRFC3339
Source: https://github.com/kurtraschke/pyRFC3339/archive/refs/tags/v%{version}.tar.gz#/pyRFC3339-%{version}.tar.gz Source: https://github.com/kurtraschke/pyRFC3339/archive/refs/tags/v%{version}.tar.gz#/pyRFC3339-%{version}.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
BuildRequires: timezone BuildRequires: timezone
@@ -38,14 +40,13 @@ BuildArch: noarch
pyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using Python `datetime.datetime` objects. pyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using Python `datetime.datetime` objects.
%prep %prep
%setup -q -n pyRFC3339-%{version} %autosetup -p1 -n pyRFC3339-%{version}
%autopatch -p1
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/pyrfc3339 %python_expand %fdupes %{buildroot}%{$python_sitelib}/pyrfc3339
%check %check
@@ -54,6 +55,7 @@ pyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using Python `da
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.rst %doc README.rst
%{python_sitelib}/* %{python_sitelib}/pyrfc3339
%{python_sitelib}/py[Rr][Ff][Cc]3339-%{version}.dist-info
%changelog %changelog