|
|
@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
# Run tests by default.
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
|
|
%global srcname isodate
|
|
|
|
%global srcname isodate
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Name: python-%{srcname}
|
|
|
@ -10,8 +13,10 @@ Source0: %pypi_source
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python3-six
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description This module implements ISO 8601 date, time and duration \
|
|
|
|
%global _description This module implements ISO 8601 date, time and duration \
|
|
|
@ -45,24 +50,30 @@ Summary: %summary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version} -p1
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
%pyproject_save_files %{srcname}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%{__python3} setup.py test
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
|
|
|
%doc CHANGES.txt README.rst TODO.txt
|
|
|
|
%doc CHANGES.txt README.rst TODO.txt
|
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|