[11924] | 1 | %define modname nose |
---|
[521] | 2 | |
---|
[12469] | 3 | Summary: A discovery-based unittest extension for Python |
---|
| 4 | Summary(ja): Python 用の発見型ユニットテスト・エクステンション |
---|
[521] | 5 | Name: python-nose |
---|
[11924] | 6 | Version: 1.3.7 |
---|
[12474] | 7 | Release: 2%{?_dist_release} |
---|
| 8 | Group: programming |
---|
[12469] | 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
[521] | 11 | |
---|
| 12 | License: LGPLv2 |
---|
| 13 | URL: http://somethingaboutorange.com/mrl/projects/nose/ |
---|
| 14 | Source0: http://somethingaboutorange.com/mrl/projects/nose/nose-%{version}.tar.gz |
---|
[6416] | 15 | |
---|
[11924] | 16 | # Make compatible with coverage 4.1 |
---|
| 17 | # https://github.com/nose-devs/nose/pull/1004 |
---|
| 18 | Patch0: python-nose-coverage4.patch |
---|
| 19 | # Fix python 3.5 compat |
---|
| 20 | # https://github.com/nose-devs/nose/pull/983 |
---|
| 21 | Patch1: python-nose-py35.patch |
---|
| 22 | # Fix UnicodeDecodeError with captured output |
---|
| 23 | # https://github.com/nose-devs/nose/pull/988 |
---|
| 24 | Patch2: python-nose-unicode.patch |
---|
| 25 | # Allow docutils to read utf-8 source |
---|
| 26 | Patch3: python-nose-readunicode.patch |
---|
| 27 | # Fix Python 3.6 compatibility |
---|
| 28 | # Python now returns ModuleNotFoundError instead of the previous ImportError |
---|
| 29 | # https://github.com/nose-devs/nose/pull/1029 |
---|
| 30 | Patch4: python-nose-py36.patch |
---|
| 31 | |
---|
[12474] | 32 | BuildArch: noarch |
---|
[521] | 33 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 34 | |
---|
[11924] | 35 | BuildRequires: dos2unix |
---|
[12469] | 36 | BuildRequires: python-rpm-macros |
---|
| 37 | BuildRequires: python-devel, python-setuptools, python2-rpm-macros |
---|
[11924] | 38 | BuildRequires: python3-devel, python3-setuptools, python3-rpm-macros |
---|
[521] | 39 | Requires: python-setuptools |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %description |
---|
| 43 | nose: a discovery-based unittest extension. |
---|
| 44 | |
---|
| 45 | nose provides an alternate test discovery and running process for unittest, |
---|
| 46 | one that is intended to mimic the behavior of py.test as much as is |
---|
| 47 | reasonably possible without resorting to too much magic. |
---|
| 48 | |
---|
| 49 | |
---|
[11924] | 50 | %package -n python3-nose |
---|
| 51 | Summary: A discovery-based unittest extension for Python |
---|
| 52 | Summary(ja): Python 用の発見型ユニットテスト・エクステンション |
---|
[12474] | 53 | Group: programming |
---|
[11924] | 54 | Requires: python3-setuptools |
---|
| 55 | |
---|
| 56 | %description -n python3-nose |
---|
| 57 | nose: a discovery-based unittest extension. |
---|
| 58 | |
---|
| 59 | nose provides an alternate test discovery and running process for unittest, |
---|
| 60 | one that is intended to mimic the behavior of py.test as much as is |
---|
| 61 | reasonably possible without resorting to too much magic. |
---|
| 62 | |
---|
[12469] | 63 | |
---|
[521] | 64 | %prep |
---|
[11924] | 65 | %setup -qc |
---|
| 66 | pushd %{modname}-%{version} |
---|
| 67 | %autopatch -p1 |
---|
| 68 | dos2unix examples/attrib_plugin.py |
---|
| 69 | cp -pr lgpl.txt AUTHORS CHANGELOG examples NEWS README.txt .. |
---|
| 70 | popd |
---|
| 71 | mv %{modname}-%{version} python2 |
---|
| 72 | cp -pr python2 python3 |
---|
[521] | 73 | |
---|
[12469] | 74 | |
---|
[521] | 75 | %build |
---|
[11924] | 76 | pushd python2 |
---|
[12469] | 77 | %py2_build |
---|
[11924] | 78 | popd |
---|
| 79 | pushd python3 |
---|
| 80 | %py3_build |
---|
| 81 | popd |
---|
[521] | 82 | |
---|
[12469] | 83 | |
---|
[521] | 84 | %install |
---|
| 85 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 86 | |
---|
[11924] | 87 | mkdir -p %{buildroot}%{_mandir}/man1 |
---|
| 88 | pushd python2 |
---|
[12469] | 89 | %py2_install |
---|
[11924] | 90 | mv %{buildroot}%{_bindir}/nosetests{,-%{python_version}} |
---|
| 91 | ln -sf nosetests-%{python_version} %{buildroot}%{_bindir}/nosetests-2 |
---|
| 92 | mv %{buildroot}%{_prefix}/man/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{python_version}.1 |
---|
| 93 | ln -sf nosetests-%{python_version}.1 %{buildroot}%{_mandir}/man1/nosetests-2.1 |
---|
| 94 | popd |
---|
| 95 | pushd python3 |
---|
| 96 | %py3_install |
---|
| 97 | mv %{buildroot}%{_bindir}/nosetests{,-%{python3_version}} |
---|
| 98 | ln -sf nosetests-%{python3_version} %{buildroot}%{_bindir}/nosetests-3 |
---|
| 99 | mv %{buildroot}%{_prefix}/man/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{python3_version}.1 |
---|
| 100 | ln -sf nosetests-%{python3_version}.1 %{buildroot}%{_mandir}/man1/nosetests-3.1 |
---|
| 101 | popd |
---|
| 102 | |
---|
[12469] | 103 | ln -sf nosetests-3 %{buildroot}%{_bindir}/nosetests |
---|
| 104 | ln -sf nosetests-3.1 %{buildroot}%{_mandir}/man1/nosetests.1 |
---|
[11924] | 105 | |
---|
[12469] | 106 | |
---|
[11924] | 107 | %check |
---|
| 108 | pushd python2 |
---|
[12469] | 109 | %{__python2} selftest.py |
---|
[11924] | 110 | popd |
---|
| 111 | pushd python3 |
---|
| 112 | %{__python3} setup.py build_tests |
---|
| 113 | %{__python3} selftest.py |
---|
| 114 | popd |
---|
| 115 | |
---|
[12469] | 116 | |
---|
[521] | 117 | %clean |
---|
| 118 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 119 | |
---|
[12469] | 120 | |
---|
[521] | 121 | %files |
---|
| 122 | %defattr(-,root,root,-) |
---|
| 123 | %doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt |
---|
[11924] | 124 | %{_bindir}/nosetests-2* |
---|
| 125 | %{_mandir}/man1/nosetests-2* |
---|
[521] | 126 | %{python_sitelib}/nose-%{version}-py%{pyver}.egg-info |
---|
| 127 | %{python_sitelib}/nose |
---|
| 128 | |
---|
[11924] | 129 | %files -n python3-nose |
---|
| 130 | %defattr(-,root,root,-) |
---|
| 131 | %doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt |
---|
[12469] | 132 | %{_bindir}/nosetests |
---|
[11924] | 133 | %{_bindir}/nosetests-3* |
---|
[12469] | 134 | %{_mandir}/man1/nosetests.1* |
---|
[11924] | 135 | %{_mandir}/man1/nosetests-3* |
---|
| 136 | %{python3_sitelib}/nose-%{version}-py%{python3_version}.egg-info |
---|
| 137 | %{python3_sitelib}/nose |
---|
| 138 | |
---|
[521] | 139 | %changelog |
---|
[12469] | 140 | * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.7-2 |
---|
| 141 | - built with python-3.8. |
---|
| 142 | |
---|
[11924] | 143 | * Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.3.7-1 |
---|
| 144 | - new upstream release. |
---|
| 145 | - added python3 support. |
---|
| 146 | |
---|
[7634] | 147 | * Sun Apr 28 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.3.0-1 |
---|
| 148 | - new upstream release |
---|
| 149 | - deleted Patch0 |
---|
| 150 | |
---|
[6416] | 151 | * Sun Jun 24 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.1.2-1 |
---|
| 152 | - new upstream release |
---|
| 153 | - added Patch0 from Debian sid to delete google analytics |
---|
| 154 | |
---|
[5701] | 155 | * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.4-3 |
---|
| 156 | - rebuild with python-2.7.2 |
---|
| 157 | |
---|
[521] | 158 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.10.4-2 |
---|
| 159 | - rebuild with python-2.6 |
---|
| 160 | |
---|
| 161 | * Sat Dec 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.10.4-1 |
---|
| 162 | - initial build for Vine Linux based on fedora package |
---|
| 163 | |
---|
| 164 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.4-1 |
---|
| 165 | - Update to 0.10.4 to fix 2.6 issues |
---|
| 166 | |
---|
| 167 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.3-2 |
---|
| 168 | - Rebuild for Python 2.6 |
---|
| 169 | |
---|
| 170 | * Sat Aug 02 2008 Luke Macken <lmacken@redhat.com> 0.10.3-1 |
---|
| 171 | - Update to 0.10.3 |
---|
| 172 | |
---|
| 173 | * Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> 0.10.1-1 |
---|
| 174 | - Update to 0.10.1 |
---|
| 175 | |
---|
| 176 | * Mon Dec 3 2007 Luke Macken <lmacken@redhat.com> 0.10.0-2 |
---|
| 177 | - Add python-setuptools to Requires (Bug #408491) |
---|
| 178 | |
---|
| 179 | * Tue Nov 27 2007 Luke Macken <lmacken@redhat.com> 0.10.0-1 |
---|
| 180 | - 0.10.0 |
---|
| 181 | |
---|
| 182 | * Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.3.b1 |
---|
| 183 | - Update for python-setuptools changes in rawhide |
---|
| 184 | |
---|
| 185 | * Tue Aug 21 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.2.b1 |
---|
| 186 | - 0.10.0b1 |
---|
| 187 | - Update license tag to LGPLv2 |
---|
| 188 | |
---|
[7634] | 189 | * Wed Jun 20 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.1.a2 |
---|
[521] | 190 | - 0.10.0a2 |
---|
| 191 | |
---|
| 192 | * Sat Jun 2 2007 Luke Macken <lmacken@redhat.com> 0.9.3-1 |
---|
| 193 | - Latest upstream release |
---|
| 194 | - Remove python-nose-0.9.2-mandir.patch |
---|
| 195 | |
---|
| 196 | * Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> 0.9.2-1 |
---|
| 197 | - Add nosetests(1) manpage, and python-nose-0.9.2-mandir.patch to put it in |
---|
| 198 | the correct location. |
---|
| 199 | - 0.9.2 |
---|
| 200 | |
---|
| 201 | * Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> 0.9.1-2 |
---|
| 202 | - Rebuild for python 2.5 |
---|
| 203 | |
---|
| 204 | * Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> 0.9.1-1 |
---|
| 205 | - 0.9.1 |
---|
| 206 | |
---|
| 207 | * Fri Sep 8 2006 Luke Macken <lmacken@redhat.com> 0.9.0-1 |
---|
| 208 | - 0.9.0 |
---|
| 209 | |
---|
| 210 | * Wed Apr 19 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.7.2-1 |
---|
| 211 | - Initial RPM release |
---|