From: wrobell Date: Wed, 27 Mar 2013 21:18:07 +0000 (+0000) Subject: - added py3k package X-Git-Tag: auto/th/python-coverage-3.6-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=4af080a0e3dfd18474c9294d4bce73322a3d497f;p=packages%2Fpython-coverage.git - added py3k package - ver. 3.6 --- diff --git a/python-coverage.spec b/python-coverage.spec index 7e478c6..9b6c1cd 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -1,16 +1,19 @@ %define module coverage Summary: Tool for measuring code coverage of Python programs Name: python-%{module} -Version: 3.5 +Version: 3.6 Release: 1 License: BSD Group: Development/Languages/Python Source0: http://pypi.python.org/packages/source/c/coverage/%{module}-%{version}.tar.gz -# Source0-md5: dee158cf20b17f54e644fba25c2ebfc2 +# Source0-md5: 67d4e393f4c6a5ffc18605409d2aa1ac URL: http://nedbatchelder.com/code/coverage BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: rpm-pythonprov +BuildRequires: python3-devel +BuildRequires: python3-distribute +BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.219 Requires: python-modules BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -21,18 +24,39 @@ It monitors your program, noting which parts of the code have been executed, then analyzes the source to identify code that could have been executed but was not. +%package -n python3-%{module} +Summary: Tool for measuring code coverage of Python programs +Group: Development/Languages/Python +Requires: python3-modules + +%description -n python3-%{module} +Coverage.py is a tool for measuring code coverage of Python programs. +It monitors your program, noting which parts of the code have been +executed, then analyzes the source to identify code that could have +been executed but was not. + %prep %setup -q -n %{module}-%{version} %build export CFLAGS="%{rpmcflags}" -%{__python} setup.py build +%{__python} setup.py build --build-base py2 +%{__python3} setup.py build --build-base py3 %install rm -rf $RPM_BUILD_ROOT -%{__python} setup.py install \ - --optimize=2 \ - --root=$RPM_BUILD_ROOT + +%{__python} setup.py build \ + --build-base py2 \ + install \ + --root=$RPM_BUILD_ROOT \ + --optimize=2 + +%{__python3} setup.py build \ + --build-base py3 \ + install \ + --root=$RPM_BUILD_ROOT \ + --optimize=2 %py_postclean @@ -42,7 +66,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CHANGES.txt README.txt -%attr(755,root,root) %{_bindir}/coverage +%attr(755,root,root) %{_bindir}/coverage-2.7 %dir %{py_sitedir}/%{module} %{py_sitedir}/%{module}/*.py[co] %attr(755,root,root) %{py_sitedir}/%{module}/*.so @@ -50,3 +74,14 @@ rm -rf $RPM_BUILD_ROOT %if "%{py_ver}" > "2.4" %{py_sitedir}/coverage-%{version}*.egg-info %endif + +%files -n python3-%{module} +%defattr(644,root,root,755) +%doc CHANGES.txt README.txt +%attr(755,root,root) %{_bindir}/coverage-3.3 +%dir %{py3_sitedir}/%{module} +%attr(755,root,root) %{py3_sitedir}/%{module}/*.so +%{py3_sitedir}/%{module}/*.py +%{py3_sitedir}/%{module}/__pycache__ +%{py3_sitedir}/%{module}/htmlfiles +%{py3_sitedir}/*.egg-info