3 %bcond_with tests # unit tests (not included in sdist)
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Wrap tests with fixtures in freeze_time
8 Summary(pl.UTF-8): Obudowywanie testów z wyposażeniem w zamrożonym czasie
9 Name: python-pytest-freezegun
10 # keep 0.3.x here for python2 support
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/pytest-freezegun/
16 Source0: https://files.pythonhosted.org/packages/source/p/pytest-freezegun/pytest-freezegun-%{version}.zip
17 # Source0-md5: 2bf9d50fa0c78d20c193e7ded635bc2f
18 URL: https://pypi.org/project/pytest-freezegun/
20 BuildRequires: python-modules >= 1:2.7
21 BuildRequires: python-setuptools
23 BuildRequires: python-freezegun >= 0.3
24 BuildRequires: python-pytest >= 3.0.0
28 BuildRequires: python3-modules >= 1:3.4
29 BuildRequires: python3-setuptools
31 BuildRequires: python3-freezegun >= 0.3
32 BuildRequires: python3-pytest >= 3.0.0
35 BuildRequires: rpm-pythonprov
36 BuildRequires: rpmbuild(macros) >= 1.714
37 Requires: python-modules >= 1:2.7
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Wrap tests with fixtures in freeze_time.
44 %description -l pl.UTF-8
45 Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
48 %package -n python3-pytest-freezegun
49 Summary: Wrap tests with fixtures in freeze_time
50 Summary(pl.UTF-8): Obudowywanie testów z wyposażeniem w zamrożonym czasie
51 Group: Libraries/Python
52 Requires: python3-modules >= 1:3.4
54 %description -n python3-pytest-freezegun
55 Wrap tests with fixtures in freeze_time.
57 %description -n python3-pytest-freezegun -l pl.UTF-8
58 Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
62 %setup -q -n pytest-freezegun-%{version}
74 rm -rf $RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
92 %doc LICENSE README.rst
93 %{py_sitescriptdir}/pytest_freezegun.py[co]
94 %{py_sitescriptdir}/pytest_freezegun-%{version}-py*.egg-info
98 %files -n python3-pytest-freezegun
99 %defattr(644,root,root,755)
100 %doc LICENSE README.rst
101 %{py3_sitescriptdir}/pytest_freezegun.py
102 %{py3_sitescriptdir}/__pycache__/pytest_freezegun.cpython-*.py[co]
103 %{py3_sitescriptdir}/pytest_freezegun-%{version}-py*.egg-info