15
0
forked from pool/python-ephem

- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ephem?expand=0&rev=15
This commit is contained in:
2025-06-23 01:33:42 +00:00
committed by Git OBS Bridge
parent e35973c1b6
commit 832a2626ea
2 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 23 01:30:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Nov 12 12:31:19 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-ephem
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ephem
Version: 4.1.6
Release: 0
@@ -27,8 +26,10 @@ URL: https://github.com/brandon-rhodes/pyephem
Source0: https://files.pythonhosted.org/packages/source/e/ephem/ephem-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytzdata}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytzdata
@@ -46,11 +47,11 @@ sed -i '1{/env python/d}' ephem/tests/test_*.py
%build
export LANG=en_US.UTF8
%python_build
%pyproject_wheel
%install
export LANG=en_US.UTF8
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
@@ -64,6 +65,6 @@ popd
%license LICENSE
%doc README.rst
%{python_sitearch}/ephem
%{python_sitearch}/ephem-%{version}*-info
%{python_sitearch}/ephem-%{version}.dist-info
%changelog