Package python-module-GitPython: 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 | %define _unpackaged_files_terminate_build 1 %define oname GitPython %def_with python3 %def_disable check Name: python-module-%oname Version: 2.1.10 Release: alt1 Summary: GitPython is a python library used to interact with Git repositories License: BSD BuildArch: noarch Group: Development/Python Url: http://pypi.python.org/pypi/GitPython/ # https://github.com/gitpython-developers/GitPython.git Source: %name-%version.tar Patch1: %oname-alt-build.patch BuildRequires: python-module-setuptools python2.7(gitdb) python-module-ddt python-module-mock BuildRequires: git-core %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-module-setuptools python3(gitdb) python3-module-ddt python3-module-mock %endif Requires: git-core %description A simple, flexible, easy-to-use configfile and command-line parsing library built on top of the standard library optparse module. %package -n python3-module-%oname Summary: GitPython is a python library used to interact with Git repositories Group: Development/Python3 Requires: git-core %description -n python3-module-%oname A simple, flexible, easy-to-use configfile and command-line parsing library built on top of the standard library optparse module. %prep %setup %patch1 -p1 %if_with python3 cp -fR . ../python3 %endif %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %check # needed for tests git config --global user.email "darktemplar at altlinux.org" git config --global user.name "darktemplar" rm -f .gitmodules git init git add -A git commit -m "%version" git tag %version -m "%version" git tag 0.1.6 -m "0.1.6" nosetests %if_with python3 pushd ../python3 rm -f .gitmodules git init git add -A git commit -m "%version" git tag %version -m "%version" git tag 0.1.6 -m "0.1.6" nosetests3 popd %endif %files %python_sitelibdir/* %exclude %python_sitelibdir/git/test %if_with python3 %files -n python3-module-%oname %python3_sitelibdir/* %exclude %python3_sitelibdir/git/test %endif %changelog * Fri May 25 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 2.1.10-alt1 - Updated to upstream version 2.1.10. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 2.1.5-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Wed Aug 09 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 2.1.5-alt1 - Updated to upstream version 2.1.5. * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.3.6-alt1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Fri Jan 23 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.6-alt1 - Version 0.3.6 - Added module for Python 3 * Thu Nov 28 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.2-alt1rc1.2 - Fixed build * Mon Jul 16 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.3.2-alt1rc1.1 - merge upstream/master * Fri Jul 13 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.3.2-alt0rc1.1 - 0.3.2-rc1 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.3.0-alt1.1 - Rebuild with Python-2.7 * Fri Oct 08 2010 Vitaly Lipatov <lav@altlinux.ru> 0.3.0-alt1 - new version * Fri Nov 20 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.1.4.1-alt1.1 - Rebuilt with python 2.6 * Fri Nov 28 2008 Dmitry M. Maslennikov <rlz at altlinux.org> 0.1.4.1-alt1 - Initial build for ALTLinux Sisyphus |