diff --git a/MIT b/MIT new file mode 100644 index 0000000..2019f08 --- /dev/null +++ b/MIT @@ -0,0 +1,7 @@ +Copyright 2015 Jason R. Coombs + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/backports.unittest_mock-1.2.1.tar.gz b/backports.unittest_mock-1.2.1.tar.gz new file mode 100644 index 0000000..e4b646c Binary files /dev/null and b/backports.unittest_mock-1.2.1.tar.gz differ diff --git a/python-backports-unittest_mock.spec b/python-backports-unittest_mock.spec new file mode 100644 index 0000000..ddf38d9 --- /dev/null +++ b/python-backports-unittest_mock.spec @@ -0,0 +1,64 @@ +Name: python-backports-unittest_mock +Version: 1.2.1 +Release: 7 +Summary: Backports of unittest_mock +License: MIT +URL: https://github.com/jaraco/backports.unittest_mock +Source0: https://files.pythonhosted.org/packages/source/b/backports.unittest_mock/backports.unittest_mock-%{version}.tar.gz +Source1: MIT + +BuildArch: noarch +BuildRequires: python2-devel python2-setuptools_scm python2-mock +BuildRequires: python3-devel python3-setuptools_scm python3-mock + +%description +Provides the function "install ()" to make the "mock" module available as "unittest.mock" in +Python 3.2 and earlier.It also advertises the pytest plugin, which automatically configures +unittest.mock. + +%package -n python2-backports-unittest_mock +Summary: Backports of unittest_mock +%{?python_provide:%python_provide python2-backports-unittest_mock} + +%description -n python2-backports-unittest_mock +Provides the function "install ()" to make the "mock" module available as "unittest.mock" in +Python 3.2 and earlier.It also advertises the pytest plugin, which automatically configures +unittest.mock. + +%package -n python3-backports-unittest_mock +Summary: Backports of unittest_mock +%{?python_provide:%python_provide python3-backports-unittest_mock} + +%description -n python3-backports-unittest_mock +Provides the function "install ()" to make the "mock" module available as "unittest.mock" in +Python 3.2 and earlier.It also advertises the pytest plugin, which automatically configures +unittest.mock. + +%prep +%autosetup -n backports.unittest_mock-%{version} -p1 + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install +install -p -m 0644 %{SOURCE1} MIT + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-backports-unittest_mock +%doc CHANGES.rst README.rst docs/* MIT +%{python2_sitelib}/* + +%files -n python3-backports-unittest_mock +%doc CHANGES.rst README.rst docs/* MIT +%{python3_sitelib}/* + +%changelog +* Tue Jan 7 2020 fengbing - 1.2.1-7 +- Package init +