Пакет python-module-decorator: 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 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | %define _unpackaged_files_terminate_build 1 %define modname decorator %def_enable python2 Name: python-module-%modname Version: 4.4.2 Release: alt1 Summary: Better living through Python with decorators License: BSD-style Group: Development/Python Url: http://pypi.python.org/pypi/decorator Vcs: https://github.com/micheles/decorator.git Source0: https://files.pythonhosted.org/packages/source/d/%modname/%modname-%version.tar.gz BuildArch: noarch %if_enabled python2 BuildRequires(pre): rpm-build-python BuildRequires: python-devel BuildRequires: python-module-setuptools %endif BuildRequires(pre): rpm-build-python3 BuildRequires: python3-module-setuptools %description Python decorators are an interesting example of why syntactic sugar matters. In principle, their introduction in Python changed nothing, since they do not provide any new functionality which was not already present in the language. In practice, their introduction has significantly changed the way we structure our programs in Python. I believe the change is for the best, and that decorators are a great idea since: * decorators help reducing boilerplate code; * decorators help separation of concerns; * decorators enhance readability and maintenability; * decorators are explicit. Michele Simionato <michele simionato at gmail com> %package -n python3-module-%modname Summary: Better living through Python 3 with decorators Group: Development/Python3 %description -n python3-module-%modname Python decorators are an interesting example of why syntactic sugar matters. In principle, their introduction in Python changed nothing, since they do not provide any new functionality which was not already present in the language. In practice, their introduction has significantly changed the way we structure our programs in Python. I believe the change is for the best, and that decorators are a great idea since: * decorators help reducing boilerplate code; * decorators help separation of concerns; * decorators enhance readability and maintenability; * decorators are explicit. Michele Simionato <michele simionato at gmail com> %prep %setup -n %modname-%version %{?_enable_python2:-a0 mv %modname-%version py2build} %build %python3_build %{?_enable_python2: pushd py2build %python_build popd} %install %python3_install %{?_enable_python2: pushd py2build %python_install popd} %if_enabled python2 %files %python_sitelibdir/* %doc CHANGES.md LICENSE.txt README.rst %endif %files -n python3-module-%modname %python3_sitelibdir/* %doc CHANGES.md LICENSE.txt README.rst %changelog * Mon May 03 2021 Yuri N. Sedunov <aris@altlinux.org> 4.4.2-alt1 - 4.4.2 - made python2 build optional * Mon Dec 24 2018 Alexey Shabalin <shaba@altlinux.org> 4.3.0-alt1 - 4.3.0 * Sun Jan 15 2017 Igor Vlasenko <viy@altlinux.ru> 4.0.11-alt1 - automated PyPI update * Wed Jan 11 2017 Igor Vlasenko <viy@altlinux.ru> 4.0.10-alt1 - automated PyPI update * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 4.0.2-alt1.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> 4.0.2-alt1.1 - NMU: Use buildreq for BR. * Thu Aug 20 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.2-alt1 - Version 4.0.2 * Tue Jul 28 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.1-alt1 - Version 4.0.1 * Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 3.4.0-alt1.1 - Rebuild with Python-3.3 * Wed Feb 13 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.4.0-alt1 - Version 3.4.0 * Sat May 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.3.3-alt1 - Version 3.3.3 - Added module for Python 3 * Fri Dec 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.3.2-alt1 - Version 3.3.2 * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 3.3.1-alt1.1 - Rebuild with Python-2.7 * Tue May 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.3.1-alt1 - Version 3.3.1 * Tue Jul 27 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.2.0-alt1 - Version 3.2.0 * Wed Nov 18 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1.2-alt2 - Rebuilt with python 2.6 * Tue Sep 29 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.1.2-alt1 - Initial build for Sisyphus |