summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-26 09:06:41 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-26 09:06:41 +0000
commit5056d54aa7f356091d2b42a3b4bb01e52d98765d (patch)
tree02de04895d0cc748cdb5e57570b20c8c29022b7a
parent0ac7781379a145efc5f36e89a7e2412e681e5813 (diff)
automatic import of python-mox3openeuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-mox3.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a359017 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mox3-1.1.0.tar.gz
diff --git a/python-mox3.spec b/python-mox3.spec
new file mode 100644
index 0000000..d4bdfa0
--- /dev/null
+++ b/python-mox3.spec
@@ -0,0 +1,72 @@
+# Created by pyp2rpm-1.1.1
+%global pypi_name mox3
+
+%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
+
+%global common_desc \
+Mox3 is a mock object framework for Python 3 and 2.7. \
+Mox3 is an unofficial port of the Google mox framework to Python 3. It was \
+meant to be as compatible with mox as possible, but small enhancements have \
+been made.
+
+Name: python-%{pypi_name}
+Version: 1.1.0
+Release: 1%{?dist}
+Summary: Mock object framework for Python
+
+License: ASL 2.0
+URL: http://git.openstack.org/cgit/openstack/mox3
+Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: openstack-macros
+
+%description
+%{common_desc}
+
+%package -n python3-%{pypi_name}
+Summary: Mock object framework for Python
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+Requires: python3-pbr
+Requires: python3-fixtures
+Requires: python3-six >= 1.9.0
+Requires: python3-testtools
+
+BuildRequires: python3-devel
+BuildRequires: python3-pbr
+
+# test requires
+BuildRequires: python3-fixtures
+BuildRequires: python3-stestr
+BuildRequires: python3-subunit
+BuildRequires: python3-testtools
+BuildRequires: python3-six >= 1.9.0
+
+%description -n python3-%{pypi_name}
+%{common_desc}
+
+%prep
+%autosetup -p1 -n %{pypi_name}-%{upstream_version}
+
+# let RPM handle deps
+%py_req_cleanup
+
+%build
+python3 setup.py build
+
+%install
+python3 setup.py install --skip-build --root %{buildroot}
+
+%check
+PYTHON=python3 stestr-3 run
+
+%files -n python3-%{pypi_name}
+%doc README.rst
+%license COPYING.txt
+%{python3_sitelib}/%{pypi_name}
+%{python3_sitelib}/%{pypi_name}*.egg-info
+
+%changelog
+* Thu Mar 11 2021 RDO <dev@lists.rdoproject.org> 1.1.0-1
+- Update to 1.1.0
diff --git a/sources b/sources
new file mode 100644
index 0000000..86b5295
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0eff74d3a85ec4d4dc6acf7f524ca816 mox3-1.1.0.tar.gz