]> git.pld-linux.org Git - packages/python-coverage.git/commitdiff
- added py3k package auto/th/python-coverage-3.6-1
authorwrobell <wrobell@pld-linux.org>
Wed, 27 Mar 2013 21:18:07 +0000 (21:18 +0000)
committerwrobell <wrobell@pld-linux.org>
Wed, 27 Mar 2013 21:18:07 +0000 (21:18 +0000)
- ver. 3.6

python-coverage.spec

index 7e478c6f5748916d5b68f371bf9274d91e4163d5..9b6c1cd5330c8fd918e201f11fdd59097515cd20 100644 (file)
@@ -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
This page took 0.132619 seconds and 4 git commands to generate.