Package python-module-backports.functools_lru_cache: 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 | %define oname backports.functools_lru_cache %def_without python3 Name: python-module-%oname Version: 1.4 Release: alt1.qa1 Summary: Backport of functools.lru_cache from Python 3.3 as published at ActiveState. Group: Development/Python License: Apache-2.0 URL: https://pypi.python.org/pypi/backports.functools_lru_cache # https://github.com/jaraco/backports.functools_lru_cache.git Source: %name-%version.tar BuildRequires: python-devel python-module-setuptools BuildRequires: python2.7(pytest) %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-dev python3-module-setuptools BuildRequires: python3(pytest) %endif %py_requires backports %py_provides backports.functools_lru_cache %description Backport of functools.lru_cache from Python 3.3 as published at ActiveState. %if_with python3 %package -n python3-module-%oname Group: Development/Python3 Summary: Backport of functools.lru_cache from Python 3.3 as published at ActiveState. %py3_provides backports.functools_lru_cache %description -n python3-module-%oname Backport of functools.lru_cache from Python 3.3 as published at ActiveState. %endif %prep %setup # don't use scm to determine version, just substitute it sed -i \ -e 's|setuptools_scm|setuptools|g' \ -e "s|use_scm_version=.*|version='%version',|g" \ setup.py %if_with 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 rm -f %buildroot%python3_sitelibdir/backports/__init__.py* popd %endif %python_install %if "%_libexecdir" != "%_libdir" mv %buildroot%_libexecdir %buildroot%_libdir %endif rm -f %buildroot%python_sitelibdir/backports/__init__.py* %if_with python3 rm -f %buildroot%python3_sitelibdir/backports/__init__.py* %endif %check %if_with python3 pushd ../python3 py.test3 popd %endif py.test %files %doc README.rst %python_sitelibdir/* %if_with python3 %files -n python3-module-%oname %doc README.rst %python3_sitelibdir/* %endif %changelog * Sun Oct 14 2018 Igor Vlasenko <viy@altlinux.ru> 1.4-alt1.qa1 - NMU: applied repocop patch * Tue Oct 17 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4-alt1 - Initial build for ALT. |