e6f8792
%global modname jdcal
e6f8792
e6f8792
Name:           python-%{modname}
b105aef
Version:        1.4.1
b105aef
Release:        %autorelease
e6f8792
Summary:        Julian dates from proleptic Gregorian and Julian calendars
e6f8792
e6f8792
License:        BSD
e6f8792
URL:            https://github.com/phn/jdcal
0f2a709
Source0:        %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
e6f8792
e6f8792
BuildArch:      noarch
e6f8792
e6f8792
%description
e6f8792
This module contains functions for converting between Julian dates and calendar
e6f8792
dates.
e6f8792
e6f8792
A function for converting Gregorian calendar dates to Julian dates, and another
e6f8792
function for converting Julian calendar dates to Julian dates are defined.
e6f8792
Two functions for the reverse calculations are also defined.
e6f8792
e6f8792
%package -n python3-%{modname}
e6f8792
Summary:        %{summary}
e6f8792
%{?python_provide:%python_provide python3-%{modname}}
e6f8792
BuildRequires:  python3-devel
0f2a709
BuildRequires:  python3-setuptools
e6f8792
e6f8792
%description -n python3-%{modname}
e6f8792
This module contains functions for converting between Julian dates and calendar
e6f8792
dates.
e6f8792
e6f8792
A function for converting Gregorian calendar dates to Julian dates, and another
e6f8792
function for converting Julian calendar dates to Julian dates are defined.
e6f8792
Two functions for the reverse calculations are also defined.
e6f8792
e6f8792
Python 3 version.
e6f8792
e6f8792
%prep
e6f8792
%autosetup -n %{modname}-%{version}
e6f8792
e6f8792
%build
e6f8792
%py3_build
e6f8792
e6f8792
%install
e6f8792
%py3_install
e6f8792
e6f8792
%files -n python3-%{modname}
e6f8792
%doc README.rst
e6f8792
%{python3_sitelib}/%{modname}*
e6f8792
%{python3_sitelib}/__pycache__/%{modname}*
e6f8792
e6f8792
%changelog
b105aef
%autochangelog