3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: A library for stubbing in Python 2
7 Summary(pl.UTF-8): Biblioteka do tworzenia zaślepek w Pythonie 2
12 Group: Development/Languages/Python
13 #Source0Download: https://pypi.org/simple/pretend/
14 Source0: https://files.pythonhosted.org/packages/source/p/pretend/pretend-%{version}.tar.gz
15 # Source0-md5: ad53883ede48aeac7ae584f0de0240e8
16 URL: https://github.com/alex/pretend
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.714
20 BuildRequires: python-modules >= 1:2.6
21 BuildRequires: python-setuptools
24 BuildRequires: python3-modules >= 1:3.2
25 BuildRequires: python3-setuptools
27 Requires: python-modules >= 1:2.6
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Pretend is a library to make stubbing with Python easier.
34 %description -l pl.UTF-8
35 Pretend to biblioteka ułatwiająca tworzenie zaślepek w Pythonie.
37 %package -n python3-pretend
38 Summary: A library for stubbing in Python 3
39 Summary(pl.UTF-8): Biblioteka do tworzenia zaślepek w Pythonie 3
40 Group: Development/Languages/Python
41 Requires: python3-modules >= 1:3.2
43 %description -n python3-pretend
44 Pretend is a library to make stubbing with Python easier.
46 %description -n python3-pretend -l pl.UTF-8
47 Pretend to biblioteka ułatwiająca tworzenie zaślepek w Pythonie.
50 %setup -q -n pretend-%{version}
62 rm -rf $RPM_BUILD_ROOT
75 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc LICENSE.rst README.rst
81 %{py_sitescriptdir}/pretend.py[co]
82 %{py_sitescriptdir}/pretend-%{version}-py*.egg-info
86 %files -n python3-pretend
87 %defattr(644,root,root,755)
88 %doc LICENSE.rst README.rst
89 %{py3_sitescriptdir}/pretend.py
90 %{py3_sitescriptdir}/__pycache__/pretend.cpython-*.py[co]
91 %{py3_sitescriptdir}/pretend-%{version}-py*.egg-info