f352421
%global pypi_name convertdate
f352421
# See https://bugzilla.redhat.com/show_bug.cgi?id=1748948
f352421
%{?python_disable_dependency_generator}
f352421
f352421
Name:           python-%{pypi_name}
4b276e3
Version:        2.2.0
7b1e298
Release:        2%{?dist}
f352421
Summary:        Python module to convert date formats and calculating holidays
f352421
f352421
f352421
License:        MIT
f352421
URL:            https://github.com/fitnr/convertdate
f352421
Source0:        https://github.com/fitnr/convertdate/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
f352421
BuildArch:      noarch
f352421
f352421
%description
f352421
Converts between Gregorian dates and other calendar systems. Calendars 
f352421
included: Baha'i, French Republican, Hebrew, Indian Civil, Islamic, ISO, 
f352421
Julian, Mayan and Persian.
f352421
f352421
%package -n python3-%{pypi_name}
f352421
Summary:        %{summary}
f352421
f352421
BuildRequires:  python3-devel
f352421
BuildRequires:  python3-pytest
f352421
BuildRequires:  python3-pytz
f352421
BuildRequires:  python3-pyephem
f7a0b2d
BuildRequires:  python3-pymeeus
f352421
f352421
Requires:       python3-pytz
f352421
Requires:       python3-pyephem
6a266b7
Requires:       python3-pymeeus
f352421
%{?python_provide:%python_provide python3-%{pypi_name}}
f352421
f352421
%description -n python3-%{pypi_name}
f352421
Converts between Gregorian dates and other calendar systems. Calendars 
f352421
included: Baha'i, French Republican, Hebrew, Indian Civil, Islamic, ISO, 
f352421
Julian, Mayan and Persian.
f352421
f352421
%prep
f352421
%autosetup -n %{pypi_name}-%{version}
f352421
f352421
%build
f352421
%py3_build
f352421
f352421
%install
f352421
%py3_install
f352421
f352421
%check
f7a0b2d
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} tests
f352421
f352421
%files -n python3-%{pypi_name}
f7a0b2d
%doc HISTORY.rst README.md
f352421
%license LICENSE
f352421
%{python3_sitelib}/*.egg-info
f352421
%{python3_sitelib}/%{pypi_name}/
f352421
f352421
%changelog
7b1e298
* Sun Jan 19 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.2.0-2
7b1e298
- Add additional requirements manually (rhbz#1792034)
7b1e298
4b276e3
* Tue Oct 29 2019 Fabian Affolter <mail@fabian-affolter.ch> - 2.2.0-1
4b276e3
- Update to latest upstream release 2.2.0
4b276e3
f352421
* Thu Sep 05 2019 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.3-2
f352421
- Update summary (rhbz#1748938)
f352421
f352421
* Tue Sep 03 2019 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.3-1
f352421
- Initial package for Fedora