Пакет python-module-FormEncode: 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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | %define modulename FormEncode %def_with python3 %if_with python3 %define py3name python3-module-%modulename %define py3dir %py3name-%version %endif Name: python-module-%modulename Version: 1.3.0 Release: alt1.git20130312 Epoch: 1 %setup_python_module %modulename Summary: HTML form validation, generation, and convertion package for Python License: PSF Group: Development/Python URL: http://formencode.org Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> BuildArch: noarch # git://github.com/formencode/formencode.git Source0: %name-%version.tar BuildPreReq: %py_dependencies setuptools BuildPreReq: python-module-docutils python-module-sphinx-devel BuildPreReq: python-module-pycountry BuildPreReq: python-module-nose BuildPreReq: python-module-dns %if_with python3 BuildPreReq: rpm-build-python3 BuildPreReq: python-tools-2to3 BuildPreReq: python3-devel BuildPreReq: python3-module-distribute BuildPreReq: python3-module-docutils BuildPreReq: python3-module-nose BuildPreReq: python3-module-pycountry BuildPreReq: python3-module-dns %endif %description FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes for filling and generating forms. %if_with python3 %package -n %py3name Summary: HTML form validation, generation, and convertion package for Python 3 Group: Development/Python3 BuildArch: noarch %description -n %py3name FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes for filling and generating forms. %endif %package doc Summary: This package contains documentation and examples for FormEncode Group: Development/Documentation %description doc FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes for filling and generating forms. %package pickles Summary: This package contains pickles for FormEncode Group: Development/Python %description pickles FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes for filling and generating forms. %prep %setup %if_with python3 rm -rf ../%py3dir cp -a . ../%py3dir pushd ../%py3dir 2to3 -w formencode/i18n/msgfmt.py sed -ri '1s@^(#![[:space:]]*(.*/)?)python([[:space:]]*.*)?$@\1python3\3@' formencode/i18n/msgfmt.py popd %endif %prepare_sphinx . %build %python_build %if_with python3 pushd ../%py3dir %python3_build popd %endif %install %python_install rm -rf %buildroot%python_sitelibdir/docs %if_with python3 pushd ../%py3dir %python3_install rm -rf %buildroot%python3_sitelibdir/docs popd %endif pushd docs export PYTHONPATH=%buildroot%python_sitelibdir %make html %make pickle cp -fR _build/pickle %buildroot%python_sitelibdir/formencode/ popd %files %doc docs/*.txt %python_sitelibdir/* %exclude %python_sitelibdir/*/pickle %if_with python3 %files -n %py3name %doc ../%py3dir/docs/*.txt %python3_sitelibdir/* %endif %files doc %doc docs/_build/html examples %files pickles %python_sitelibdir/*/pickle %changelog * Thu Mar 21 2013 Aleksey Avdeev <solo@altlinux.ru> 1:1.3.0-alt1.git20130312 - New snapshot - Added module for Python 3 * Tue Feb 12 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:1.3.0-alt1.git20130201 - Version 1.3.0 * Fri Sep 21 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:1.2.4-alt1.git20120914 - New snapshot * Thu Dec 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.4-alt1.hg20110930 - Version 1.2.4 * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.2.3-alt2.hg20100922.1 - Rebuild with Python-2.7 * Sat Nov 27 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.3-alt2.hg20100922 - New snapshot (svn -> hg) * Thu Jul 15 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.3-alt1.svn20100511 - Version 1.2.3 * Thu Nov 19 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.2-alt2 - Rebuilt with python 2.6 * Sat Apr 04 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 1.2.2-alt1 - 1.2.2 * Thu Jan 24 2008 Grigory Batalov <bga@altlinux.ru> 0.4-alt2.1.0.1 - Rebuilt with python-2.5. * Sun Mar 25 2007 ALT QA Team Robot <qa-robot@altlinux.org> 0.4-alt2.1.0 - Rebuilt with rpm-build-python-0.30-alt3. * Thu Mar 02 2006 Maxim Bodyansky <maximbo@altlinux.ru> 0.4-alt2.1 - add_python_req_skip dispatch sqlobject pkg_resources * Thu Nov 24 2005 Maxim Bodyansky <maximbo@altlinux.ru> 0.4-alt2 - new upstream's version * Sun Nov 06 2005 Maxim Bodyansky <maximbo@altlinux.ru> 0.2.2-alt1 - Initial build for Sisyphus |