Пакет python-module-constantly: 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 | %def_with python3 %def_without check %define oname constantly Name: python-module-%oname Version: 15.1.0 Release: alt5.qa1 Summary: Symbolic constants in Python Url: http://github.com/twisted/constantly License: X11 Group: Development/Python BuildArch: noarch # https://github.com/twisted/constantly.git Source: %name-%version.tar BuildRequires: python-devel python-module-setuptools BuildRequires: python2.7(json) %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-setuptools BuildRequires: python3(json) %endif #setup_python_module %oname %description A library that provides symbolic constant support. It includes collections and constants with text, numeric, and bit flag values. Originally ``twisted.python.constants`` from the `Twisted <https://twistedmatrix.com/>`_ project. %package -n python3-module-%oname Summary: Symbolic constants in Python Group: Development/Python3 %description -n python3-module-%oname A library that provides symbolic constant support. It includes collections and constants with text, numeric, and bit flag values. Originally ``twisted.python.constants`` from the `Twisted <https://twistedmatrix.com/>`_ project. %prep %setup # fix version info sed -i \ -e "s/git_refnames\s*=\s*\"[^\"]*\"/git_refnames = \" \(tag: %version\)\"/" \ %oname/_version.py %if_with python3 cp -fR . ../python3 %endif %build %python_build_debug %if_with python3 pushd ../python3 %python3_build_debug popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %check py.test %if_with python3 pushd ../python3 py.test3 popd %endif %files %python_sitelibdir/%oname %python_sitelibdir/%oname-%version-py*.egg-info %if_with python3 %files -n python3-module-%oname %python3_sitelibdir/%oname %python3_sitelibdir/%oname-%version-py*.egg-info %endif %changelog * Sun Oct 14 2018 Igor Vlasenko <viy@altlinux.ru> 15.1.0-alt5.qa1 - NMU: applied repocop patch * Fri Feb 16 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 15.1.0-alt5 - Updated build dependencies. * Thu Oct 19 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 15.1.0-alt4 - Fixed egg-info version. - Explicitely stated egg-info including valid version. * Wed Oct 18 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 15.1.0-alt3 - Fixed egg-info version. * Wed Aug 16 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 15.1.0-alt2 - Enabled build for python-3. * Thu Jun 15 2017 Vitaly Lipatov <lav@altlinux.ru> 15.1.0-alt1 - initial build for ALT Sisyphus |