Summary: Simple and popular testing tool for Python
Summary(pl.UTF-8): Proste i popularne narzędzie testujące dla Pythona
Name: python-%{module}
-Version: 2.9.1
-Release: 2
+Version: 2.9.2
+Release: 1
License: MIT
Group: Development/Languages/Python
-#Source0Download: https://pypi.python.org/pypi/pytest
-Source0: https://pypi.python.org/packages/source/p/pytest/pytest-%{version}.tar.gz
-# Source0-md5: 05165740ea50928e4e971378630163ec
+#Source0Download: https://pypi.python.org/simple/pytest
+Source0: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz
+# Source0-md5: b65c2944dfaa0efb62c0239afb424f5b
URL: http://pytest.org/
BuildRequires: python-devel >= 1:2.6
BuildRequires: python-py >= %{pylib_version}
py.test to proste, ale bardzo funkcjonalne narzędzie testujące dla
Pythona.
+%package apidocs
+Summary: Documentation for py.test Pythona package
+Summary(pl.UTF-8): Dokumentacja pakietu Pythona py.test
+Group: Documentation
+
+%description apidocs
+Documentation for py.test Pythona package.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja pakietu Pythona py.test.
+
%prep
%setup -q -n %{module}-%{version}
PYTHONPATH=$(pwd) \
%{__make} -C $l html
# remove hidden file
- rm $l/_build/html/.buildinfo
- mv $l/_build/html _htmldocs/html/${l##doc/}
+ %{__rm} $l/_build/html/.buildinfo
+ %{__mv} $l/_build/html _htmldocs/html/${l##doc/}
done
%endif
%files
%defattr(644,root,root,755)
-%doc AUTHORS CHANGELOG.rst LICENSE README.rst %{?with_doc:_htmldocs/html}
+%doc AUTHORS CHANGELOG.rst LICENSE README.rst
%attr(755,root,root) %{_bindir}/py.test
%attr(755,root,root) %{_bindir}/py.test-%{py_ver}
%{py_sitescriptdir}/pytest.py[co]
%if %{with python3}
%files -n python3-pytest
%defattr(644,root,root,755)
-%doc AUTHORS CHANGELOG.rst LICENSE README.rst %{?with_doc:_htmldocs/html}
+%doc AUTHORS CHANGELOG.rst LICENSE README.rst
%attr(755,root,root) %{_bindir}/py.test-%{py3_ver}
%{py3_sitescriptdir}/pytest.py
%{py3_sitescriptdir}/_pytest
%{py3_sitescriptdir}/__pycache__/pytest.*.py[co]
%{py3_sitescriptdir}/pytest-%{version}-py*.egg-info
%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc _htmldocs/html
+%endif