Blame python-strict-rfc3339.spec

de5ed67
%global pypi_name strict-rfc3339
de5ed67
%global _description \
de5ed67
Goals: \
de5ed67
- Convert UNIX timestamps to and from RFC3339. \
de5ed67
- Either produce RFC3339 strings with a UTC offset (Z) or with the offset that \
de5ed67
  the C time module reports is the local timezone offset. \
de5ed67
- Simple with minimal dependencies/libraries. \
de5ed67
- Avoid timezones as much as possible. \
de5ed67
- Be very strict and follow RFC3339.
de5ed67
de5ed67
Name:           python-%{pypi_name}
de5ed67
Version:        0.7
de5ed67
Release:        1%{?dist}
de5ed67
Summary:        Strict, simple, lightweight RFC3339 functions
de5ed67
de5ed67
License:        GPLv3
de5ed67
URL:            https://github.com/danielrichman/strict-rfc3339
de5ed67
Source0:        %{pypi_source}
de5ed67
BuildArch:      noarch
de5ed67
de5ed67
BuildRequires:  python3-devel
de5ed67
BuildRequires:  python3dist(setuptools)
de5ed67
de5ed67
%description %{_description}
de5ed67
de5ed67
de5ed67
%package -n     python3-%{pypi_name}
de5ed67
Summary:        %{summary}
de5ed67
%{?py_provides:%py_provides python3-%{pypi_name}}
de5ed67
de5ed67
%description -n python3-%{pypi_name} %{_description}
de5ed67
de5ed67
de5ed67
%prep
de5ed67
%autosetup -n %{pypi_name}-%{version}
de5ed67
de5ed67
%build
de5ed67
%py3_build
de5ed67
de5ed67
%install
de5ed67
%py3_install
de5ed67
de5ed67
%files -n python3-%{pypi_name}
de5ed67
%license LICENSE
de5ed67
%doc README.md README.txt
de5ed67
%{python3_sitelib}/__pycache__/*
de5ed67
%{python3_sitelib}/strict_rfc3339.py
de5ed67
%{python3_sitelib}/strict_rfc3339-%{version}-py%{python3_version}.egg-info
de5ed67
de5ed67
%changelog
de5ed67
* Thu Oct 08 2020 Aurelien Bompard <abompard@fedoraproject.org> - 0.7-1
de5ed67
- Initial package.