Package python-module-mock: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | %global pypi_name mock %def_with python3 Name: python-module-%{pypi_name} Version: 2.0.0 Release: alt1 Summary: A Python Mocking and Patching Library for Testing Group: Development/Python License: BSD Url: https://pypi.python.org/pypi/%{pypi_name} Source: %name-%version.tar BuildArch: noarch BuildRequires: python-devel python-module-setuptools BuildRequires: python-module-pbr %py_requires funcsigs %description Mock is a Python module that provides a core mock class. It removes the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way. %if_with python3 %package -n python3-module-%{pypi_name} Summary: A Python Mocking and Patching Library for Testing Group: Development/Python BuildArch: noarch BuildRequires(pre): rpm-build-python3 BuildRequires: python3-module-pbr python3-module-setuptools %description -n python3-module-%{pypi_name} Mock is a Python module that provides a core mock class. It removes the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way. %endif %prep %setup %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %if_with python3 pushd ../python3 %python3_install popd %endif %python_install %files %doc docs/index.txt README.rst LICENSE.txt NEWS %python_sitelibdir/* %if_with python3 %files -n python3-module-mock %doc docs/index.txt README.rst LICENSE.txt NEWS %python3_sitelibdir/* %endif %changelog * Mon Oct 17 2016 Alexey Shabalin <shaba@altlinux.ru> 2.0.0-alt1 - 2.0.0 * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.3.0-alt1.git20150731.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 1.3.0-alt1.git20150731.1 - NMU: Use buildreq for BR. * Sun Aug 02 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.0-alt1.git20150731 - Snapshot from git * Sat Jul 25 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.3.0-alt1 - Version 1.3.0 * Fri Aug 29 2014 Lenar Shakirov <snejok@altlinux.ru> 1.0.1-alt1 - 1.0.1 * Wed Jan 02 2013 Igor Vlasenko <viy@altlinux.ru> 0.8.0-alt1 - 0.8.0 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.7.2-alt2 - Rebuild with Python-2.7 * Mon Oct 17 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.7.2-alt1 - 0.7.2 * Mon Mar 14 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.7.0-alt1 - Initial |