2012-05-24 09:55:43 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-isodate
|
|
|
|
#
|
2023-04-21 16:28:27 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-05-24 09:55:43 +02: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 12:09:10 +01:00
|
|
|
|
2018-12-04 14:34:47 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-05-24 09:55:43 +02:00
|
|
|
#
|
|
|
|
|
2018-05-02 14:55:58 +02:00
|
|
|
|
2017-05-08 16:21:39 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2023-04-21 16:28:27 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2012-05-24 09:55:43 +02:00
|
|
|
Name: python-isodate
|
2022-02-14 22:43:01 +01:00
|
|
|
Version: 0.6.1
|
2012-05-24 09:55:43 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: An ISO 8601 Date/Time/Duration Parser and Formatter
|
|
|
|
License: BSD-3-Clause
|
2021-11-08 11:21:33 +01:00
|
|
|
URL: https://pypi.org/project/isodate/
|
2017-05-08 16:21:39 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/isodate/isodate-%{version}.tar.gz
|
2022-10-21 10:53:24 +02:00
|
|
|
# https://github.com/gweis/isodate/commit/07d1602048083415bc22dc72cff152c9c2e0e021
|
|
|
|
Patch0: python-isodate-no-six.patch
|
2017-05-08 16:21:39 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-05-02 14:55:58 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2012-05-24 09:55:43 +02:00
|
|
|
BuildArch: noarch
|
2017-05-08 16:21:39 +02:00
|
|
|
%python_subpackages
|
2012-05-24 09:55:43 +02: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 02:45:16 +01:00
|
|
|
%autopatch -p1
|
2012-05-24 09:55:43 +02:00
|
|
|
|
|
|
|
%build
|
2017-05-08 16:21:39 +02:00
|
|
|
%python_build
|
2012-05-24 09:55:43 +02:00
|
|
|
|
|
|
|
%install
|
2017-05-08 16:21:39 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-05-24 09:55:43 +02:00
|
|
|
|
2012-11-23 12:09:10 +01:00
|
|
|
%check
|
2021-05-27 14:17:04 +02:00
|
|
|
%pyunittest discover -v src/
|
2012-11-23 12:09:10 +01:00
|
|
|
|
2017-05-08 16:21:39 +02:00
|
|
|
%files %{python_files}
|
2015-05-07 13:59:25 +02:00
|
|
|
%doc CHANGES.txt README.rst TODO.txt
|
2012-05-24 09:55:43 +02:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2012-11-23 12:09:10 +01:00
|
|
|
%changelog
|