diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c4b538 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/strict-rfc3339-0.7.tar.gz diff --git a/python-strict-rfc3339.spec b/python-strict-rfc3339.spec new file mode 100644 index 0000000..e4ee7d4 --- /dev/null +++ b/python-strict-rfc3339.spec @@ -0,0 +1,52 @@ +%global pypi_name strict-rfc3339 +%global _description \ +Goals: \ +- Convert UNIX timestamps to and from RFC3339. \ +- Either produce RFC3339 strings with a UTC offset (Z) or with the offset that \ + the C time module reports is the local timezone offset. \ +- Simple with minimal dependencies/libraries. \ +- Avoid timezones as much as possible. \ +- Be very strict and follow RFC3339. + +Name: python-%{pypi_name} +Version: 0.7 +Release: 1%{?dist} +Summary: Strict, simple, lightweight RFC3339 functions + +License: GPLv3 +URL: https://github.com/danielrichman/strict-rfc3339 +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description %{_description} + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?py_provides:%py_provides python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %{_description} + + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md README.txt +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/strict_rfc3339.py +%{python3_sitelib}/strict_rfc3339-%{version}-py%{python3_version}.egg-info + +%changelog +* Thu Oct 08 2020 Aurelien Bompard - 0.7-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..64a891b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (strict-rfc3339-0.7.tar.gz) = 94a2992a9ea41b75527348f0f8dae1d118d57b0764122f874baa85f5e3b523beb219ed83c2d7224725e504cd3737a6bde485957135856dcde470f32675e44e77