14
0
2024-03-06 06:44:30 +00:00
committed by Git OBS Bridge
parent 29d61c026a
commit 2d8e1c9d36
2 changed files with 12 additions and 5 deletions

View File

@@ -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