Пакет python-module-gitdb: 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 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | %define _unpackaged_files_terminate_build 1 %define oname gitdb %def_without test %def_without python3 Name: python-module-%oname Version: 2.0.3 Release: alt4 Summary: IO of git-style object databases License: BSD BuildArch: noarch Group: Development/Python Url: https://pypi.python.org/pypi/gitdb/ # https://github.com/gitpython-developers/gitdb.git Source: %name-%version.tar Patch1: %oname-alt-build.patch BuildRequires(pre): rpm-macros-sphinx BuildRequires: git-core BuildRequires: python-devel python-module-setuptools BuildRequires: python2.7(smmap) BuildRequires: python2.7(nose) BuildRequires: python2.7(coverage) BuildRequires: python-module-alabaster python-module-docutils python-module-html5lib python-module-objects.inv %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-dev python3-module-setuptools BuildRequires: python3(smmap) BuildRequires: python3(nose) BuildRequires: python3(coverage) %endif %description IO of git-style object databases. %package tests Summary: Tests for %oname Group: Development/Python Requires: %name = %EVR %description tests IO of git-style object databases. This package contains tests for %oname. %if_with python3 %package -n python3-module-%oname Summary: IO of git-style object databases Group: Development/Python3 %description -n python3-module-%oname IO of git-style object databases. %package -n python3-module-%oname-tests Summary: Tests for %oname Group: Development/Python3 Requires: python3-module-%oname = %EVR %description -n python3-module-%oname-tests IO of git-style object databases. This package contains tests for %oname. %endif %package pickles Summary: Pickles for %oname Group: Development/Python %description pickles IO of git-style object databases. This package contains pickles for %oname. %package docs Summary: Documentation for %oname Group: Development/Documentation BuildArch: noarch %description docs IO of git-style object databases. This package contains documentation for %oname. %prep %setup %patch1 -p1 %if_with python3 cp -fR . ../python3 %endif %prepare_sphinx doc ln -s ../objects.inv doc/source/ %build %add_optflags -fno-strict-aliasing %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %make -C doc pickle %make -C doc html cp -fR doc/build/pickle %buildroot%python_sitelibdir/%oname/ %check # needed for tests git config --global user.email "darktemplar at altlinux.org" git config --global user.name "darktemplar" git init git add -A git commit -m "%version" git tag %version -m "%version" # TODO: This test doesn't work, remove it for now rm -f gitdb/test/performance/test_pack_streaming.py %make coverage %if_with python3 pushd ../python3 # needed for tests git init git add -A git commit -m "%version" git tag %version -m "%version" # TODO: This test doesn't work, remove it for now rm -f gitdb/test/performance/test_pack_streaming.py %make coverage PYTHON=python3 TESTRUNNER=$(which nosetests3) popd %endif %files %doc AUTHORS *.rst %python_sitelibdir/* %exclude %python_sitelibdir/%oname/pickle %exclude %python_sitelibdir/%oname/test %files tests %python_sitelibdir/%oname/test %files pickles %python_sitelibdir/%oname/pickle %files docs %doc doc/build/html/* %if_with python3 %files -n python3-module-%oname %doc AUTHORS *.rst %python3_sitelibdir/* %exclude %python3_sitelibdir/%oname/test %files -n python3-module-%oname-tests %python3_sitelibdir/%oname/test %endif %changelog * Wed Apr 21 2021 Vitaly Lipatov <lav@altlinux.ru> 2.0.3-alt4 - build python2 only module, disable tests * Sun Jun 23 2019 Igor Vlasenko <viy@altlinux.ru> 2.0.3-alt3.qa1 - NMU: remove rpm-build-ubt from BR: * Sat Jun 15 2019 Igor Vlasenko <viy@altlinux.ru> 2.0.3-alt2.qa1 - NMU: remove %ubt from release * Sun Oct 14 2018 Igor Vlasenko <viy@altlinux.ru> 2.0.3-alt1.qa1%ubt - NMU: applied repocop patch * Fri May 25 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 2.0.3-alt1%ubt - Updated to upstream version 2.0.3. * Sat Jul 22 2017 Vitaly Lipatov <lav@altlinux.ru> 2.0.0-alt1 - new version 2.0.0 (with rpmrb script) * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.6.4-alt1.git20150112.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Wed Jan 27 2016 Mikhail Efremov <sem@altlinux.org> 0.6.4-alt1.git20150112.1 - NMU: Use buildreq for BR. * Fri Jan 23 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.6.4-alt1.git20150112 - Version 0.6.4 * Thu Nov 20 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.6.0-alt1.git20141114 - Version 0.6.0 - Added module for Python 3 * Fri Jul 13 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.5.4-alt1 - 0.5.4 * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.5.1-alt1.1.1 - Rebuild to remove redundant libpython2.7 dependency * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.5.1-alt1.1 - Rebuild with Python-2.7 * Fri Oct 08 2010 Vitaly Lipatov <lav@altlinux.ru> 0.5.1-alt1 - initial build for ALTLinux Sisyphus |