2012-05-24 07:55:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-isodate
|
|
|
|
#
|
2023-04-21 14:28:27 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-05-24 07:55:43 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-11-23 11:09:10 +00:00
|
|
|
|
2018-12-04 13:34:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-05-24 07:55:43 +00:00
|
|
|
#
|
|
|
|
|
2018-05-02 12:55:58 +00:00
|
|
|
|
2017-05-08 14:21:39 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2023-04-21 14:28:27 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-05-24 07:55:43 +00:00
|
|
|
Name: python-isodate
|
2022-02-14 21:43:01 +00:00
|
|
|
Version: 0.6.1
|
2012-05-24 07:55:43 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: An ISO 8601 Date/Time/Duration Parser and Formatter
|
|
|
|
License: BSD-3-Clause
|
2021-11-08 10:21:33 +00:00
|
|
|
URL: https://pypi.org/project/isodate/
|
2017-05-08 14:21:39 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/isodate/isodate-%{version}.tar.gz
|
2022-10-21 08:53:24 +00:00
|
|
|
# https://github.com/gweis/isodate/commit/07d1602048083415bc22dc72cff152c9c2e0e021
|
|
|
|
Patch0: python-isodate-no-six.patch
|
2017-05-08 14:21:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-05-02 12:55:58 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2012-05-24 07:55:43 +00:00
|
|
|
BuildArch: noarch
|
2017-05-08 14:21:39 +00:00
|
|
|
%python_subpackages
|
2012-05-24 07:55:43 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module implements ISO 8601 date, time and duration parsing.
|
|
|
|
The implementation follows ISO8601:2004 standard, and implements only
|
|
|
|
date/time representations mentioned in the standard. If something is not
|
|
|
|
mentioned there, then it is treated as non existent, and not as an allowed
|
|
|
|
option.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n isodate-%{version}
|
2021-12-13 01:45:16 +00:00
|
|
|
%autopatch -p1
|
2012-05-24 07:55:43 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-08 14:21:39 +00:00
|
|
|
%python_build
|
2012-05-24 07:55:43 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-08 14:21:39 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-05-24 07:55:43 +00:00
|
|
|
|
2012-11-23 11:09:10 +00:00
|
|
|
%check
|
2021-05-27 12:17:04 +00:00
|
|
|
%pyunittest discover -v src/
|
2012-11-23 11:09:10 +00:00
|
|
|
|
2017-05-08 14:21:39 +00:00
|
|
|
%files %{python_files}
|
2015-05-07 11:59:25 +00:00
|
|
|
%doc CHANGES.txt README.rst TODO.txt
|
2012-05-24 07:55:43 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2012-11-23 11:09:10 +00:00
|
|
|
%changelog
|