From: Patrick McCarty Date: Wed, 6 Mar 2013 19:12:30 +0000 (-0800) Subject: Add packaging X-Git-Tag: submit/trunk/20130306.191939^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3280488689b3ac1a4ae4e92affb2a832592488d3;p=platform%2Fupstream%2Fpython-coverage.git Add packaging --- diff --git a/packaging/python-coverage.spec b/packaging/python-coverage.spec new file mode 100644 index 0000000..6858c29 --- /dev/null +++ b/packaging/python-coverage.spec @@ -0,0 +1,30 @@ +Name: python-coverage +Version: 3.6 +Release: 0 +Summary: Code coverage measurement for Python +Url: http://nedbatchelder.com/code/coverage +License: BSD-3-Clause +Group: Platform Development/Python +Source: coverage-%{version}.tar.gz +BuildRequires: python-devel +BuildRequires: python-distribute +BuildRequires: python-xml +Requires: python-xml + +%description +Coverage.py measures code coverage, typically during test execution. It uses +the code analysis tools and tracing hooks provided in the Python standard +library to determine which lines are executable, and which have been executed. + +%prep +%setup -q -n coverage-%{version} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%{_bindir}/coverage* +%{py_sitedir}/*