diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a947b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ciso8601-2.1.3.tar.gz diff --git a/python-ciso8601.spec b/python-ciso8601.spec new file mode 100644 index 0000000..19e01fd --- /dev/null +++ b/python-ciso8601.spec @@ -0,0 +1,58 @@ +%global pypi_name ciso8601 + +Name: python-%{pypi_name} +Version: 2.1.3 +Release: 2%{?dist} +Summary: Fast ISO8601 date time parser + +License: MIT +URL: https://github.com/closeio/ciso8601 +Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: gcc + +%description +ciso8601 converts ISO 8601 or RFC 3339 date time strings into Python +datetime objects. Since it's written as a C module, it is much faster +than other Python libraries. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3dist(pytz) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(pytest) +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +ciso8601 converts ISO 8601 or RFC 3339 date time strings into Python +datetime objects. Since it's written as a C module, it is much faster +than other Python libraries. + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%pytest -v tests.py + +%files -n python3-%{pypi_name} +%license LICENSE +%doc CHANGELOG.md README.rst +%{python3_sitearch}/%{pypi_name}/ +%{python3_sitearch}/%{pypi_name}.*.so +%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Mon Sep 07 2020 Fabian Affolter - 2.1.3-2 +- Enable debug output (rhbz#1875860) + +* Fri Sep 04 2020 Fabian Affolter - 2.1.3-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..ef38bef --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ciso8601-2.1.3.tar.gz) = 2a410d72acb2b2fcf4477cbfb7eae984d5d17dfeea28d51855703b23cb81de68c2117e67674740876aa0f3ec38dcdaccd7826b0787750b35a95c3a571d0fb930