1 # NOTE: for versions >= 0.4.0 (for Python 3.5+) see python3-pytest-freezegun.spec
4 %bcond_with tests # unit tests (not included in sdist)
5 %bcond_without python2 # CPython 2.x module
6 %bcond_with python3 # CPython 3.x module (built from python3-pytest-freezegun.spec)
8 Summary: Wrap tests with fixtures in freeze_time
9 Summary(pl.UTF-8): Obudowywanie testów z wyposażeniem w zamrożonym czasie
10 Name: python-pytest-freezegun
11 # keep 0.3.x here for python2 support
15 Group: Libraries/Python
16 #Source0Download: https://pypi.org/simple/pytest-freezegun/
17 Source0: https://files.pythonhosted.org/packages/source/p/pytest-freezegun/pytest-freezegun-%{version}.zip
18 # Source0-md5: 2bf9d50fa0c78d20c193e7ded635bc2f
19 URL: https://pypi.org/project/pytest-freezegun/
21 BuildRequires: python-modules >= 1:2.7
22 BuildRequires: python-setuptools
24 BuildRequires: python-freezegun >= 0.3
25 BuildRequires: python-pytest >= 3.0.0
29 BuildRequires: python3-modules >= 1:3.4
30 BuildRequires: python3-setuptools
32 BuildRequires: python3-freezegun >= 0.3
33 BuildRequires: python3-pytest >= 3.0.0
36 BuildRequires: rpm-pythonprov
37 BuildRequires: rpmbuild(macros) >= 1.714
38 Requires: python-modules >= 1:2.7
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Wrap tests with fixtures in freeze_time.
45 %description -l pl.UTF-8
46 Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
49 %package -n python3-pytest-freezegun
50 Summary: Wrap tests with fixtures in freeze_time
51 Summary(pl.UTF-8): Obudowywanie testów z wyposażeniem w zamrożonym czasie
52 Group: Libraries/Python
53 Requires: python3-modules >= 1:3.4
55 %description -n python3-pytest-freezegun
56 Wrap tests with fixtures in freeze_time.
58 %description -n python3-pytest-freezegun -l pl.UTF-8
59 Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
63 %setup -q -n pytest-freezegun-%{version}
75 rm -rf $RPM_BUILD_ROOT
88 rm -rf $RPM_BUILD_ROOT
92 %defattr(644,root,root,755)
93 %doc LICENSE README.rst
94 %{py_sitescriptdir}/pytest_freezegun.py[co]
95 %{py_sitescriptdir}/pytest_freezegun-%{version}-py*.egg-info
99 %files -n python3-pytest-freezegun
100 %defattr(644,root,root,755)
101 %doc LICENSE README.rst
102 %{py3_sitescriptdir}/pytest_freezegun.py
103 %{py3_sitescriptdir}/__pycache__/pytest_freezegun.cpython-*.py[co]
104 %{py3_sitescriptdir}/pytest_freezegun-%{version}-py*.egg-info