[python-testresources] initial import

Matthias Runge mrunge at fedoraproject.org
Fri May 31 17:55:48 UTC 2013


commit a6db4a190436b421e357fdc0e3c7ae8fff0c2f08
Author: Matthias Runge <mrunge at redhat.com>
Date:   Fri May 31 19:55:31 2013 +0200

    initial import

 .gitignore                |    1 +
 python-testresources.spec |  109 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 111 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8aa5323 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/testresources-0.2.7.tar.gz
diff --git a/python-testresources.spec b/python-testresources.spec
new file mode 100644
index 0000000..f0f89fe
--- /dev/null
+++ b/python-testresources.spec
@@ -0,0 +1,109 @@
+%global pypi_name testresources
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+# will turn with_python3 to 1, once rhbz#969413 
+# (python3-fixture build) is resolved
+%global with_python3 1
+%else
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%endif
+
+
+Name:           python-%{pypi_name}
+Version:        0.2.7
+Release:        3%{?dist}
+Summary:        Testresources, a pyunit extension for managing expensive test resources
+
+License:        ASL 2.0 and BSD and GPLv2+
+# file testresources/tests/TestUtil.py is GPLv2+
+URL:            https://launchpad.net/testresources
+Source0:        https://pypi.python.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  python-testtools
+BuildRequires:  python-fixtures
+
+
+%description
+testresources: extensions to python unittest to allow declarative use
+of resources by test cases.
+
+%if 0%{with_python3}
+%package -n python3-%{pypi_name}
+Summary:        Testresources, a pyunit extension for managing expensive test resources
+BuildArch:      noarch
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-testtools
+BuildRequires: python3-fixtures
+
+%description -n python3-%{pypi_name}
+testresources: extensions to python unittest to allow declarative use
+of resources by test cases.
+
+
+%endif
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf lib/%{pypi_name}.egg-info
+
+%if 0%{?with_python3}
+cp -a . %{py3dir}
+%endif
+
+
+
+
+%build
+%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+
+
+%install
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+
+
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+%check
+%{__python} setup.py test
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py test
+popd
+%endif # with_python3
+
+
+%files
+%doc README NEWS doc
+%{python_sitelib}/%{pypi_name}
+%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{pypi_name}
+%doc README NEWS doc
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%endif # with_python3
+
+%changelog
+* Fri May 31 2013 Matthias Runge <mrunge at redhat.com> - 0.2.7-3
+- lice
+* Fri May 31 2013 Matthias Runge <mrunge at redhat.com> - 0.2.7-2
+- spec cleanups, added NEWS, doc/ to doc, really removed bundled egg-info
+
+* Wed May 29 2013 Matthias Runge <mrunge at redhat.com> - 0.2.7-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..9769907 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+db2e774be2a6f5754cbbf4c537f823d0  testresources-0.2.7.tar.gz


More information about the scm-commits mailing list