Пакет python-module-versiontools: 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 | %define oname versiontools %def_with python3 Name: python-module-%oname Version: 1.9.1 Release: alt1.1 Summary: Smart replacement for plain tuple used in __version__ License: LGPL Group: Development/Python Url: http://pypi.python.org/pypi/versiontools/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: %name-%version.tar BuildArch: noarch BuildPreReq: python-devel python-module-distribute BuildPreReq: python-module-sphinx-devel %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-distribute %endif %description Smart replacement for plain tuple used in __version__. %if_with python3 %package -n python3-module-%oname Summary: Smart replacement for plain tuple used in __version__ (Python 3) Group: Development/Python3 %description -n python3-module-%oname Smart replacement for plain tuple used in __version__. %package -n python3-module-%oname-tests Summary: Tests for versiontools (Python 3) Group: Development/Python3 Requires: python3-module-%oname = %version-%release %description -n python3-module-%oname-tests Smart replacement for plain tuple used in __version__. This package contains tests for versiontools. %endif %package tests Summary: Tests for versiontools Group: Development/Python Requires: %name = %version-%release %description tests Smart replacement for plain tuple used in __version__. This package contains tests for versiontools. %package pickles Summary: Pickles for versiontools Group: Development/Python %description pickles Smart replacement for plain tuple used in __version__. This package contains pickles for versiontools. %prep %setup %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %prepare_sphinx . ln -s ../objects.inv doc/ mkdir doc/pickle for i in environment searchindex globalcontext; do cp -f %python_sitelibdir_noarch/sphinx/pickle/$i.pickle doc/pickle/ done %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif cp -f doc/conf.py ./ %generate_pickles $PWD $PWD/doc %oname sphinx-build -E -a -b html -c $PWD -d doctrees doc html %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif cp -fR pickle %buildroot%python_sitelibdir/%oname/ %files %doc html/* %python_sitelibdir/* %exclude %python_sitelibdir/%oname/tests.py* %exclude %python_sitelibdir/%oname/pickle %files pickles %python_sitelibdir/%oname/pickle %files tests %python_sitelibdir/%oname/tests.py* %if_with python3 %files -n python3-module-%oname %doc html/* %python3_sitelibdir/* %exclude %python3_sitelibdir/%oname/tests.py* %exclude %python3_sitelibdir/%oname/__pycache__/tests.* %files -n python3-module-%oname-tests %python3_sitelibdir/%oname/tests.py* %python3_sitelibdir/%oname/__pycache__/tests.* %endif %changelog * Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 1.9.1-alt1.1 - Rebuild with Python-3.3 * Tue Jun 05 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.1-alt1 - Initial build for Sisyphus |