forked from pool/python-suntime
- Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-suntime?expand=0&rev=4
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user