Пакет confusable_homoglyphs: 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 | %define _unpackaged_files_terminate_build 1 Name: confusable_homoglyphs Version: 3.0.0 Release: alt1 Summary: A homoglyph is two or more very similar graphemes, characters, or glyphs. License: MIT Group: Text tools Url: https://pypi.python.org/pypi/confusable_homoglyphs/ BuildArch: noarch # git clone https://github.com/vhf/confusable_homoglyphs Source: %name-%version.tar BuildRequires(pre): rpm-build-python3 BuildRequires: python3-module-sphinx Requires: python3-module-%name = %EVR %description %summary %package -n python3-module-%name Summary: A python3 module for %name. Group: Development/Python3 %description -n python3-module-%name %summary This package contains python3 module for %name. %package -n python3-module-%name-tests Summary: Tests for pytnon3-module-%name Group: Development/Python3 Requires: python3-module-%name = %EVR %description -n python3-module-%name-tests %summary This package contains tests for pytnon3-module-%name. %package -n python3-module-%name-pickles Summary: Pickles for %name Group: Development/Python3 %description -n python3-module-%name-pickles %summary This package contains pickles for %name. %package -n python3-module-%name-docs Summary: Documentation for %name Group: Development/Documentation BuildArch: noarch %description -n python3-module-%name-docs %summary This package contains documentation for %name. %prep %setup sed -i 's|"version": "0+unknown"|"version": "%version"|' versioneer.py sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \ $(find ./ -name '*.py') %build %python3_build_debug %install %python3_install export PYTHONPATH=%buildroot%python3_sitelibdir %make -C docs pickle %make -C docs html install -d %buildroot%python3_sitelibdir/%name cp -fR docs/_build/pickle %buildroot%python3_sitelibdir/%name/ mv tests/ %buildroot/%python3_sitelibdir/%name/ %files %doc LICENSE *.rst %_bindir/%name %files -n python3-module-%name %python3_sitelibdir/* %exclude %python3_sitelibdir/%name/tests %exclude %python3_sitelibdir/*/pickle %files -n python3-module-%name-pickles %python3_sitelibdir/*/pickle %files -n python3-module-%name-docs %doc docs/_build/html/* %files -n python3-module-%name-tests %python3_sitelibdir/%name/tests %changelog * Mon Dec 16 2019 Andrey Bychkov <mrdrew@altlinux.org> 3.0.0-alt1 - Initial build for Sisyphus |