Пакет python-module-zopemetadatamaker: Specfile
%define oname zopemetadatamaker %def_with python3 Name: python-module-%oname Version: 0.1.0 Release: alt2.2 Summary: Bulk creation of .metadata files for Zope skins resources License: GPL Group: Development/Python Url: http://pypi.python.org/pypi/zopemetadatamaker/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: %name-%version.tar BuildArch: noarch BuildPreReq: python-devel python-module-setuptools %if_with python3 BuildRequires(pre): rpm-build-python3 BuildPreReq: python3-devel python3-module-setuptools BuildPreReq: python-tools-2to3 %endif %description Bulk creation of .metadata files for Zope skins resources. %package -n python3-module-%oname Summary: Bulk creation of .metadata files for Zope skins resources Group: Development/Python3 %description -n python3-module-%oname Bulk creation of .metadata files for Zope skins resources. %prep %setup %if_with python3 cp -fR . ../python3 find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + 2to3 -w -n ../python3/src/zopemetadatamaker/zopemetadatamaker %endif %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %if_with python3 pushd ../python3 %python3_install popd pushd %buildroot%_bindir for i in $(ls); do mv $i $i.py3 done popd sed -i 's|#! /usr/bin/python|#! /usr/bin/python3|' \ $(find %buildroot%python3_sitelibdir -type f) %endif %python_install %files %doc *.txt docs/* %_bindir/* %if_with python3 %exclude %_bindir/*.py3 %endif %python_sitelibdir/* %if_with python3 %files -n python3-module-%oname %doc *.txt docs/* %_bindir/*.py3 %python3_sitelibdir/* %endif %changelog * Wed May 16 2018 Andrey Bychkov <mrdrew@altlinux.org> 0.1.0-alt2.2 - (NMU) rebuild with python3.6 * Mon Mar 14 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.1.0-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 Jul 28 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.1.0-alt2 - Added module for Python 3 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.1.0-alt1.1 - Rebuild with Python-2.7 * Tue May 24 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.1.0-alt1 - Initial build for Sisyphus |