3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: py.test plugin to test HTTP libraries against a local copy of httpbin
7 Summary(pl.UTF-8): Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii httpbin
8 Name: python-pytest-httpbin
12 Group: Libraries/Python
13 #Source0Download: https://pypi.python.org/simple/pytest-httpbin/
14 Source0: https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest-httpbin-%{version}.tar.gz
15 # Source0-md5: b8ebb8e2fbac1a445fb5d044f7fec556
16 URL: https://github.com/kevin1024/pytest-httpbin
18 BuildRequires: python-modules >= 1:2.6
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.4
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.6
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 py.test plugin to test HTTP libraries against a local copy of httpbin.
34 %description -l pl.UTF-8
35 Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii
38 %package -n python3-pytest-httpbin
39 Summary: py.test plugin to test HTTP libraries against a local copy of httpbin
40 Summary(pl.UTF-8): Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii httpbin
41 Group: Libraries/Python
42 Requires: python3-modules >= 1:3.4
44 %description -n python3-pytest-httpbin
45 py.test plugin to test HTTP libraries against a local copy of httpbin.
47 %description -n python3-pytest-httpbin -l pl.UTF-8
48 Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii
52 %setup -q -n pytest-httpbin-%{version}
64 rm -rf $RPM_BUILD_ROOT
69 %py_postclean -x version.py
77 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
83 %{py_sitescriptdir}/pytest_httpbin
84 %{py_sitescriptdir}/pytest_httpbin-%{version}-py*.egg-info
88 %files -n python3-pytest-httpbin
89 %defattr(644,root,root,755)
91 %{py3_sitescriptdir}/pytest_httpbin
92 %{py3_sitescriptdir}/pytest_httpbin-%{version}-py*.egg-info