Пакет python-module-rubber: 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 | %define _unpackaged_files_terminate_build 1 %define oname rubber %def_with python3 Name: python-module-%oname Version: 0.1.8 Release: alt3.qa1 Summary: Elasticsearch client with Django support License: BSD Group: Development/Python BuildArch: noarch Url: https://pypi.python.org/pypi/rubber Source: %name-%version.tar BuildRequires: python-devel python-module-setuptools %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-dev python3-module-setuptools BuildRequires: python-tools-2to3 %endif %description rubber is a Python client for Elasticsearch. Its main features are: - rubber is easy to use - rubber does not try to hide or wrap Elasticsearch syntax. - rubber integrates nicely with Django: - automatically saves your models to Elasticsearch - provides a Manager-style object on your django models for querying - rubber is unit-testing friendly: you don't need an elasticsearch instance to run your tests %if_with python3 %package -n python3-module-%oname Summary: Elasticsearch client with Django support Group: Development/Python3 %description -n python3-module-%oname rubber is a Python client for Elasticsearch. Its main features are: - rubber is easy to use - rubber does not try to hide or wrap Elasticsearch syntax. - rubber integrates nicely with Django: - automatically saves your models to Elasticsearch - provides a Manager-style object on your django models for querying - rubber is unit-testing friendly: you don't need an elasticsearch instance to run your tests %endif %prep %setup %if_with python3 cp -fR . ../python3 find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + %endif %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %python_install rm -rf %buildroot%python_sitelibdir/tests %if_with python3 pushd ../python3 %python3_install rm -rf %buildroot%python3_sitelibdir/tests popd %endif %files %doc README.md %python_sitelibdir/%{oname}* %if_with python3 %files -n python3-module-%oname %doc README.md %python3_sitelibdir/%{oname}* %endif %changelog * Sun Oct 14 2018 Igor Vlasenko <viy@altlinux.ru> 0.1.8-alt3.qa1 - NMU: applied repocop patch * Mon May 28 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.1.8-alt3 - NMU: rebuilt to regenerate dependencies. * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.1.8-alt2.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Mon Aug 18 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.1.8-alt2 - Added module for Python 3 * Tue Jun 10 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.1.8-alt1 - Initial build for Sisyphus |