[python-junitxml] Initial import (#1093406)

slinabery slinabery at fedoraproject.org
Wed May 14 19:49:10 UTC 2014


commit 05e003ebc8b515db1a530da8b4817bbdcfa3fee3
Author: Steve Linabery <slinaber at redhat.com>
Date:   Wed May 14 14:48:55 2014 -0500

    Initial import (#1093406)

 .gitignore           |    1 +
 python-junitxml.spec |   83 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9064a47 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/junitxml-0.7.tar.gz
diff --git a/python-junitxml.spec b/python-junitxml.spec
new file mode 100644
index 0000000..1c4a5a0
--- /dev/null
+++ b/python-junitxml.spec
@@ -0,0 +1,83 @@
+# Created by pyp2rpm-1.0.1
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+%if 0%{?fedora} > 12
+%global with_python3 1
+%endif
+
+%global pypi_name junitxml
+
+Name:           python-%{pypi_name}
+Version:        0.7
+Release:        1%{?dist}
+Summary:        PyJUnitXML, a pyunit extension to output JUnit compatible XML
+
+License:        LGPLv3
+URL:            https://launchpad.net/pyjunitxml
+Source0:        https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+BuildRequires:  python-devel
+
+
+%description
+PyJUnitXML
+==========
+A Python unittest TestResult that outputs JUnit
+compatible XML.
+
+%if 0%{?with_python3}
+%package -n python3-%{pypi_name}
+Summary: PyJUnitXML, a pyunit extension to output JUnit compatible XML
+BuildRequires: python3-devel
+
+%description -n python3-%{pypi_name}
+PyJUnitXML
+==========
+A Python unittest TestResult that outputs JUnit
+compatible XML.
+%endif
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python2} setup.py build
+%if 0%{?with_python3}
+ pushd %{py3dir}
+ %{__python3} setup.py build
+ popd
+%endif
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif
+
+%files
+%doc COPYING
+%{_bindir}/pyjunitxml
+%{python_sitelib}/%{pypi_name}
+%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc COPYING
+%{python3_sitelib}/*
+%endif
+
+%changelog
+* Tue Apr 29 2014 Steve Linabery <slinaber at redhat.com> - 0.7-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..cf86640 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+20d17c015fc11781f9d30bf89b862590  junitxml-0.7.tar.gz


More information about the scm-commits mailing list