From 2d8e1c9d3679814d5601cb9e8e5f0bc7063fc13d5b95d91affc5b8f5d5828351 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 06:44:30 +0000 Subject: [PATCH] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-suntime?expand=0&rev=4 --- python-suntime.changes | 5 +++++ python-suntime.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-suntime.changes b/python-suntime.changes index 5419630..cd48000 100644 --- a/python-suntime.changes +++ b/python-suntime.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 6 06:44:21 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Tue Mar 5 23:32:07 UTC 2024 - John Vandenberg diff --git a/python-suntime.spec b/python-suntime.spec index eb05741..28fabfb 100644 --- a/python-suntime.spec +++ b/python-suntime.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-suntime Version: 1.3.0 Release: 0 @@ -27,7 +26,9 @@ URL: https://github.com/SatAgro/suntime Source: https://files.pythonhosted.org/packages/source/s/suntime/suntime-%{version}.tar.gz # Copied from https://raw.githubusercontent.com/SatAgro/suntime/master/tests.py Source1: tests.py +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-python-dateutil @@ -41,16 +42,16 @@ BuildRequires: %{python_module python-dateutil} Python sunset and sunrise time calculation library. %prep -%setup -q -n suntime-%{version} +%autosetup -p1 -n suntime-%{version} cp %{SOURCE1} . %build export LANG=en_US.UTF-8 -%python_build +%pyproject_wheel %install export LANG=en_US.UTF-8 -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -59,6 +60,7 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/suntime* +%{python_sitelib}/suntime +%{python_sitelib}/suntime-%{version}*-info %changelog