Author: zbyniu                       Date: Wed Jan 20 11:57:22 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- raw

---- Files affected:
packages/python-coverage:
   python-coverage.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-coverage/python-coverage.spec
diff -u /dev/null packages/python-coverage/python-coverage.spec:1.1
--- /dev/null   Wed Jan 20 12:57:23 2010
+++ packages/python-coverage/python-coverage.spec       Wed Jan 20 12:57:17 2010
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+%define        module  coverage
+Summary:       Tool for measuring code coverage of Python programs
+Name:          python-%{module}
+Version:       3.2
+Release:       0.1
+License:       BSD
+Group:         Development/Languages/Python
+Source0:       
http://pypi.python.org/packages/source/c/coverage/%{module}-%{version}.tar.gz
+# Source0-md5: e35935f346eaf5afe5741992cda3a881
+URL:           http://nedbatchelder.com/code/coverage
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+# if py_postclean is used
+BuildRequires: rpmbuild(macros) >= 1.219
+#Requires:             python-libs
+Requires:              python-modules
+#BuildArch:    noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt README.txt
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%{py_sitedir}/%{module}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{module}/*.so
+%if "%{py_ver}" > "2.4"
+#{py_sitedir}/TEMPLATE-*.egg-info
+%endif
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedb...@pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/01/20 11:57:17  zbyniu
+- raw
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to