packages: python-unittest-xml-reporting/python-unittest-xml-reporting.spec ...

cieciwa cieciwa at pld-linux.org
Thu Oct 6 10:13:08 CEST 2011


Author: cieciwa                      Date: Thu Oct  6 08:13:08 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial.

---- Files affected:
packages/python-unittest-xml-reporting:
   python-unittest-xml-reporting.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-unittest-xml-reporting/python-unittest-xml-reporting.spec
diff -u /dev/null packages/python-unittest-xml-reporting/python-unittest-xml-reporting.spec:1.1
--- /dev/null	Thu Oct  6 10:13:08 2011
+++ packages/python-unittest-xml-reporting/python-unittest-xml-reporting.spec	Thu Oct  6 10:13:03 2011
@@ -0,0 +1,58 @@
+# $Revision$, $Date$
+
+%define 	module	unittest-xml-reporting
+
+Summary:	Unittest-based test runner with Ant/JUnit like XML reporting.
+Name:		python-%{module}
+Version:	1.2
+Release:	1
+License:	BSD-like
+Group:		Libraries/Python
+Source0:	http://pypi.python.org/packages/source/u/unittest-xml-reporting/%{module}-%{version}.tar.gz
+# Source0-md5:	cc1f1f576ed46c5f5cd127ce99ff1e4a
+URL:		http://github.com/danielfm/unittest-xml-reporting/tree/master/
+BuildRequires:	python-devel >= 1:2.3
+BuildRequires:	python-modules
+BuildRequires:	rpm-pythonprov
+Requires:	python >= 2.3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+unittest-xml-reporting is a unittest test runner that can save test results to XML files that can be consumed by a wide range of tools, such as build systems, IDEs and continuous integration servers.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build_ext
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
+
+python setup.py install \
+	--root=$RPM_BUILD_ROOT \
+	--install-lib=%{py_sitescriptdir} \
+	--optimize=2
+
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc PKG-INFO
+%{py_sitescriptdir}/unittest_xml_report*egg-info
+%{py_sitescriptdir}/xmlrunner
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/10/06 08:13:03  cieciwa
+- initial.
+
================================================================


More information about the pld-cvs-commit mailing list