Package python-module-nose: 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 | %define oname nose %def_with python3 Name: python-module-%oname Epoch: 1 Version: 1.2.1 Release: alt1.git20130317 Summary: A unittest-based testing framework for python that makes writing and running tests easier Group: Development/Python License: LGPL #Url: http://code.google.com/p/python-nose/ #Url: https://github.com/nose-devs/nose Url: http://www.somethingaboutorange.com/mrl/projects/nose/ BuildArch: noarch %setup_python_module %oname Source: %name-%version.tar Patch1: nose-1.1.2-alt-syntax-error-patch_py.patch BuildRequires: python-module-setuptools python-module-coverage %description nose provides an alternate test discovery and running process for unittest, one that is intended to mimic the behavior of py.test as much as is reasonably possible without resorting to too much magic. %if_with python3 %package -n python3-module-%oname Summary: A unittest-based testing framework for python3 that makes writing and running tests easier Group: Development/Python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-distribute python3-module-coverage %description -n python3-module-%oname nose provides an alternate test discovery and running process for unittest, one that is intended to mimic the behavior of py.test as much as is reasonably possible without resorting to too much magic. %endif %prep %setup %patch1 -p2 sed -i "s|man/man1|share/man/man1|g" setup.py %if_with python3 rm -rf ../python3 cp -a . ../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 rm -f %buildroot%_bindir/nosetests ln -s nosetests-%__python_version %buildroot%_bindir/nosetests %if_with python3 ln -s nosetests-%__python3_version %buildroot%_bindir/nosetests3 %endif %check ./selftest.py %if_with python3 pushd ../python3 python3 setup.py build_tests python3 ./selftest.py popd %endif %files %doc AUTHORS CHANGELOG NEWS README.txt examples/ %_bindir/nosetests %_bindir/nosetests-%__python_version %python_sitelibdir/%oname/ %python_sitelibdir/*.egg-info %_man1dir/* %if_with python3 %files -n python3-module-%oname %_bindir/nosetests3 %_bindir/nosetests-%__python3_version %python3_sitelibdir/%oname/ %python3_sitelibdir/*.egg-info %endif %changelog * Sun Mar 17 2013 Aleksey Avdeev <solo@altlinux.ru> 1:1.2.1-alt1.git20130317 - new version 1.2.1 (git describe: release_1.2.1-112-g846382d) * Wed Feb 08 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 1:1.1.2-alt1 - fix version typo - build with Python3 * Fri Oct 21 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.11.2-alt1 - new version 1.11.2 * Fri Oct 21 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.11.3-alt1.1 - Rebuild with Python-2.7 * Thu Aug 26 2010 Andrey Rahmatullin <wrar@altlinux.org> 0.11.3-alt1 - 0.11.3 - run tests * Tue Nov 10 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.11.1-alt1.1 - Rebuilt with python 2.6 * Thu Aug 27 2009 Vitaly Lipatov <lav@altlinux.ru> 0.11.1-alt1 - new version 0.11.1 (with rpmrb script) * Wed Jun 18 2008 Vitaly Lipatov <lav@altlinux.ru> 0.10.3-alt1 - new version 0.10.3 (with rpmrb script) - packaging .egg-info too (fix bug #15968) * Fri May 30 2008 Vitaly Lipatov <lav@altlinux.ru> 0.10.2-alt1 - use python_build/install macroses - use noarch * Thu May 29 2008 Andrey Khavryuchenko <akhavr@altlinux.org> 0.10.2-alt0.1 - updated version * Thu Jan 31 2008 Grigory Batalov <bga@altlinux.ru> 0.10.0b1-alt2.1 - Rebuilt with python-2.5. * Thu Jan 31 2008 Grigory Batalov <bga@altlinux.ru> 0.10.0b1-alt2 - Build as noarch. * Tue Sep 18 2007 Vitaly Lipatov <lav@altlinux.ru> 0.10.0b1-alt1 - initial build for ALT Linux Sisyphus |