2019-09-13 12:18:06 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-convertdate
|
|
|
|
#
|
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-convertdate
|
|
|
|
Version: 2.1.3
|
|
|
|
Release: 0
|
2019-09-13 13:49:32 +00:00
|
|
|
Summary: Module for date conversions from and to Gregorian calendar
|
2019-09-13 12:18:06 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/fitnr/convertdate
|
2019-09-13 12:27:35 +00:00
|
|
|
Source: https://github.com/fitnr/convertdate/archive/v%{version}.tar.gz
|
2019-09-13 12:18:06 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-ephem >= 3.7.5.3
|
|
|
|
Requires: python-pytz >= 2014.10
|
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module ephem >= 3.7.5.3}
|
|
|
|
BuildRequires: %{python_module pytz >= 2014.10}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-09-13 13:49:32 +00:00
|
|
|
A Python module for converting between Gregorian dates and other
|
|
|
|
calendar systems. Calendars included: Baha'i, French Republican,
|
|
|
|
Hebrew, Indian Civil, Islamic, ISO, Julian, Mayan and Persian.
|
2019-09-13 12:18:06 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n convertdate-%{version}
|
|
|
|
|
|
|
|
%build
|
2019-09-13 12:27:35 +00:00
|
|
|
export LANG="en_US.UTF8"
|
2019-09-13 12:18:06 +00:00
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
2019-09-13 12:27:35 +00:00
|
|
|
export LANG="en_US.UTF8"
|
2019-09-13 12:18:06 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2019-09-13 12:27:35 +00:00
|
|
|
%check
|
|
|
|
%python_exec setup.py test
|
|
|
|
|
2019-09-13 12:18:06 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|