]> git.pld-linux.org Git - packages/python-strict_rfc3339.git/blame - python-strict_rfc3339.spec
rebuild with tests and docs
[packages/python-strict_rfc3339.git] / python-strict_rfc3339.spec
CommitLineData
d4e96fa8
JB
1#
2# Conditional build:
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
5
6Summary: Strict, simple, lightweight RFC3339 functions for Python 2
7Summary(pl.UTF-8): Ścisłe, proste, lekkie funkcje RFC3339 dla Pythona 2
8Name: python-strict_rfc3339
9Version: 0.7
492e1199 10Release: 7
d4e96fa8
JB
11License: GPL v3+
12Group: Libraries/Python
28fa6e80 13#Source0Download: https://pypi.org/simple/strict-rfc3339/
d4e96fa8
JB
14Source0: https://files.pythonhosted.org/packages/source/s/strict-rfc3339/strict-rfc3339-%{version}.tar.gz
15# Source0-md5: 4d9b635b4df885bc37bc1189d66c9abc
28fa6e80 16URL: https://pypi.org/project/strict-rfc3339/
d4e96fa8
JB
17%if %{with python2}
18BuildRequires: python-devel >= 1:2.5
19BuildRequires: python-modules >= 1:2.5
20%endif
21%if %{with python3}
22BuildRequires: python3-devel >= 1:3.2
23BuildRequires: python3-modules >= 1:3.2
24%endif
25BuildRequires: rpm-pythonprov
26BuildRequires: rpmbuild(macros) >= 1.714
27Requires: python-modules >= 1:2.5
28BuildArch: noarch
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32Strict, simple, lightweight RFC3339 functions for Python 2.
33
34%description -l pl.UTF-8
35Ścisłe, proste, lekkie funkcje RFC3339 dla Pythona 2.
36
37%package -n python3-strict_rfc3339
38Summary: Strict, simple, lightweight RFC3339 functions for Python 3
39Summary(pl.UTF-8): Ścisłe, proste, lekkie funkcje RFC3339 dla Pythona 3
40Group: Libraries/Python
41Requires: python3-modules >= 1:3.2
42
43%description -n python3-strict_rfc3339
44Strict, simple, lightweight RFC3339 functions for Python 3.
45
46%description -n python3-strict_rfc3339 -l pl.UTF-8
47Ścisłe, proste, lekkie funkcje RFC3339 dla Pythona 3.
48
49%prep
50%setup -q -n strict-rfc3339-%{version}
51
52%build
53%if %{with python2}
54%py_build
55%endif
56
57%if %{with python3}
58%py3_build
59%endif
60
61%install
62rm -rf $RPM_BUILD_ROOT
63
64%if %{with python2}
65%py_install
66
67%py_postclean
68%endif
69
70%if %{with python3}
71%py3_install
72%endif
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
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
82
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
This page took 0.117494 seconds and 4 git commands to generate.