Пакет python-module-logutils: 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 | %def_with python3 %global modname logutils Name: python-module-%{modname} Version: 0.3.3 Release: alt1.2 Summary: Logging utilities Group: Development/Python License: BSD URL: http://pypi.python.org/pypi/logutils Source0: %{name}-%{version}.tar BuildArch: noarch BuildRequires: python-devel %if_with python3 BuildRequires: rpm-build-python3 %endif %description The logutils package provides a set of handlers for the Python standard library's logging package. Some of these handlers are out-of-scope for the standard library, and so they are packaged here. Others are updated versions which have appeared in recent Python releases, but are usable with older versions of Python and so are packaged here. %if_with python3 %package -n python3-module-logutils Summary: Logging utilities Group: Development/Python %description -n python3-module-logutils The logutils package provides a set of handlers for the Python standard library's logging package. Some of these handlers are out-of-scope for the standard library, and so they are packaged here. Others are updated versions which have appeared in recent Python releases, but are usable with older versions of Python and so are packaged here. %endif %prep %setup # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info %if_with python3 rm -rf ../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 popd %endif %python_install %check %{__python} setup.py test %if_with python3 pushd ../python3 %{__python3} setup.py test popd %endif %files %doc README.txt LICENSE.txt NEWS.txt doc/ %{python_sitelibdir}/%{modname}/ %{python_sitelibdir}/%{modname}-%{version}* %if_with python3 %files -n python3-module-%{modname} %doc README.txt LICENSE.txt NEWS.txt doc/ %{python3_sitelibdir}/%{modname}/ %{python3_sitelibdir}/%{modname}-%{version}-* %endif %changelog * Wed May 16 2018 Andrey Bychkov <mrdrew@altlinux.org> 0.3.3-alt1.2 - (NMU) rebuild with python3.6 * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.3.3-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 11 2014 Lenar Shakirov <snejok@altlinux.ru> 0.3.3-alt1 - First build for ALT (based on Fedora 0.3.3-3.fc21.src) |