3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Strict, simple, lightweight RFC3339 functions for Python 2
7 Summary(pl.UTF-8): Ścisłe, proste, lekkie funkcje RFC3339 dla Pythona 2
8 Name: python-strict_rfc3339
12 Group: Libraries/Python
13 #Source0Download: https://pypi.python.org/simple/strict-rfc3339/
14 Source0: https://files.pythonhosted.org/packages/source/s/strict-rfc3339/strict-rfc3339-%{version}.tar.gz
15 # Source0-md5: 4d9b635b4df885bc37bc1189d66c9abc
16 URL: https://pypi.python.org/pypi/strict-rfc3339/
18 BuildRequires: python-devel >= 1:2.5
19 BuildRequires: python-modules >= 1:2.5
22 BuildRequires: python3-devel >= 1:3.2
23 BuildRequires: python3-modules >= 1:3.2
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Strict, simple, lightweight RFC3339 functions for Python 2.
34 %description -l pl.UTF-8
35 Ścisłe, proste, lekkie funkcje RFC3339 dla Pythona 2.
37 %package -n python3-strict_rfc3339
38 Summary: Strict, simple, lightweight RFC3339 functions for Python 3
39 Summary(pl.UTF-8): Ścisłe, proste, lekkie funkcje RFC3339 dla Pythona 3
40 Group: Libraries/Python
41 Requires: python3-modules >= 1:3.2
43 %description -n python3-strict_rfc3339
44 Strict, simple, lightweight RFC3339 functions for Python 3.
46 %description -n python3-strict_rfc3339 -l pl.UTF-8
47 Ścisłe, proste, lekkie funkcje RFC3339 dla Pythona 3.
50 %setup -q -n strict-rfc3339-%{version}
62 rm -rf $RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
79 %doc AUTHORS README.md
80 %{py_sitescriptdir}/strict_rfc3339.py[co]
81 %{py_sitescriptdir}/strict_rfc3339-%{version}-py*.egg-info
83 %files -n python3-strict_rfc3339
84 %defattr(644,root,root,755)
85 %doc AUTHORS README.md
86 %{py3_sitescriptdir}/strict_rfc3339.py
87 %{py3_sitescriptdir}/__pycache__/strict_rfc3339.cpython-*.py[co]
88 %{py3_sitescriptdir}/strict_rfc3339-%{version}-py*.egg-info