Пакет python-module-martian: 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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | %define _unpackaged_files_terminate_build 1 %define mname martian %def_with check Name: python-module-%mname Version: 1.2 Release: alt1%ubt Summary: A library to grok configuration from Python code License: ZPLv2.1 Group: Development/Python # Source-git: https://github.com/zopefoundation/martian.git Url: http://pypi.python.org/pypi/martian Source: %name-%version.tar BuildRequires(pre): rpm-build-ubt BuildRequires(pre): rpm-build-python BuildRequires(pre): rpm-build-python3 BuildRequires: python-module-setuptools BuildRequires: python-module-zope.interface BuildRequires: python3-module-setuptools BuildRequires: python3-module-zope.interface %if_with check BuildRequires: python-module-tox BuildRequires: python-module-virtualenv BuildRequires: python-module-zope.testing BuildRequires: python-module-zope.testrunner BuildRequires: python-module-coverage BuildRequires: python3-module-tox BuildRequires: python3-module-virtualenv BuildRequires: python3-module-zope.testing BuildRequires: python3-module-zope.testrunner BuildRequires: python3-module-coverage %endif BuildArch: noarch %py_requires zope.interface %description Martian is a library that allows the embedding of configuration information in Python code. Martian can then grok the system and do the appropriate configuration registrations. One example of a system that uses Martian is the system where it originated: Grok (http://grok.zope.org) %package -n python3-module-%mname Summary: A library to grok configuration from Python3 code Group: Development/Python3 %description -n python3-module-%mname Martian is a library that allows the embedding of configuration information in Python3 code. Martian can then grok the system and do the appropriate configuration registrations. One example of a system that uses Martian is the system where it originated: Grok (http://grok.zope.org) %prep %setup rm -rf ../python3 cp -a . ../python3 # from src/martian/testing_compat3.py : # """ Just python classes that only work in # python3. In python < 3 you will get a syntax error. # """ rm -f src/%mname/testing_compat3.py %build %python_build_debug pushd ../python3 %python3_build_debug popd %install %python_install pushd ../python3 %python3_install popd %check export PIP_INDEX_URL=http://host.invalid./ export PYTHONPATH=%buildroot%python_sitelibdir_noarch:%python_sitelibdir_noarch:%_libdir/python%_python_version/site-packages TOX_TESTENV_PASSENV='PYTHONPATH' tox -e py%{python_version_nodots python} -v pushd ../python3 export PYTHONPATH=%buildroot%python3_sitelibdir_noarch:%python3_sitelibdir_noarch:%_libdir/python3/site-packages TOX_TESTENV_PASSENV='PYTHONPATH' tox.py3 -e py%{python_version_nodots python3} -v popd %files %doc *.txt *.rst %python_sitelibdir/%mname %python_sitelibdir/%mname-%version-*.egg-info %files -n python3-module-%mname %doc *.txt *.rst %python3_sitelibdir/%mname %python3_sitelibdir/%mname-%version-*.egg-info %changelog * Thu Aug 09 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2-alt1%ubt - Updated to upstream version 1.2. * Wed Feb 14 2018 Stanislav Levin <slev@altlinux.org> 1.1-alt2%ubt - Fix BuildRequires to run tests * Thu Jan 25 2018 Stanislav Levin <slev@altlinux.org> 1.1-alt1%ubt - 0.14 -> 1.1 * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.14-alt3.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Tue Jul 22 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14-alt3 - Added module for Python 3 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.14-alt2.1 - Rebuild with Python-2.7 * Thu Jun 23 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14-alt2 - Added necessary requirements * Tue May 24 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14-alt1 - Initial build for Sisyphus |