Пакет python-module-chardet: 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 | %define pkgname chardet %def_with python3 %define python3_dirsetup \ %if_with python3 \ rm -rf ../python3 \ cp -a . ../python3 \ %endif \ %nil #find ../python3 -name "*.py" | xargs %__subst "s|^#!/usr/bin/env python$|#!/usr/bin/python3|g" %define python3_dirbuild \ %if_with python3 \ pushd ../python3 \ %python3_build \ popd \ %endif \ %nil %define python3_dirinstall \ %if_with python3 \ pushd ../python3 \ %python3_install \ popd \ %endif \ %nil #TODO: python3_dircheck Name: python-module-chardet Version: 3.0.4 Release: alt2 Epoch: 1 Summary: Character encoding auto-detection in Python License: LGPL-2.1 Url: https://pypi.python.org/pypi/%pkgname Group: Development/Python Packager: Evgenii Terechkov <evg@altlinux.ru> Source: https://pypi.python.org/packages/source/c/chardet/%pkgname-%version.tar BuildArch: noarch BuildRequires: python-devel python-module-setuptools %description Character encoding auto-detection in Python. %if_with python3 %package -n python3-module-%pkgname Summary: Character encoding auto-detection in Python Group: Development/Python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-setuptools %description -n python3-module-%pkgname Character encoding auto-detection in Python. %endif %prep %setup -n %pkgname-%version %python3_dirsetup %build %python_build %python3_dirbuild %install %python_install %python3_dirinstall rm -rf %buildroot%_bindir/ %files # FIXME: makes checker think it use python3 libs #_bindir/chardetect %python_sitelibdir/%pkgname/ %python_sitelibdir/%pkgname-*egg-info/ #doc docs %if_with python3 %files -n python3-module-%pkgname %python3_sitelibdir/%pkgname/ %python3_sitelibdir/*.egg-info/ %endif %changelog * Sun Dec 13 2020 Andrey Cherepanov <cas@altlinux.org> 1:3.0.4-alt2 - Downgrade to version 3.0.4. * Fri Dec 11 2020 Andrey Cherepanov <cas@altlinux.org> 4.0.0-alt1 - New version. * Wed Sep 27 2017 Andrey Cherepanov <cas@altlinux.org> 3.0.4-alt1 - New version * Mon Apr 11 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.3.0-alt1.1.1 - (NMU) rebuild with rpm-build-python3-0.1.10 (for new-style python3(*) reqs) and with python3-3.5 (for byte-compilation). * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.3.0-alt1.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 03 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.0-alt1 - Version 2.3.0 * Sun Apr 13 2014 Vitaly Lipatov <lav@altlinux.ru> 2.2.1-alt1 - new version 2.2.1 (with rpmrb script) - build for python3 too * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0.1-alt1.1 - Rebuild with Python-2.7 * Mon Mar 22 2010 Terechkov Evgenii <evg@altlinux.ru> 2.0.1-alt1 - 2.0.1 * Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.1-alt1.3.1 - Rebuilt with python 2.6 * Fri Feb 20 2009 Terechkov Evgenii <evg@altlinux.ru> 1.0.1-alt1.3 - Site-packages removed from packages (Closes #18909) - Packager tag added * Wed Dec 31 2008 Terechkov Evgenii <evg@altlinux.ru> 1.0.1-alt1.2 - Really fix build on x86_64 * Wed Dec 31 2008 Terechkov Evgenii <evg@altlinux.ru> 1.0.1-alt1.1 - Egg dropped to build on x86_64 * Sun Dec 28 2008 Terechkov Evgenii <evg@altlinux.ru> 1.0.1-alt1 - Initial build for ALT Linux Sisyphus (thanks Mandriva for initial spec) |