|
|
|
@ -22,7 +22,7 @@ output capture and more.\
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
|
|
|
|
Version: 1.3.7
|
|
|
|
|
Release: 27%{?dist}
|
|
|
|
|
Release: 28%{?dist}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+ and Public Domain
|
|
|
|
@ -61,16 +61,6 @@ BuildRequires: python3-sphinx
|
|
|
|
|
%description docs
|
|
|
|
|
Documentation for Nose.
|
|
|
|
|
|
|
|
|
|
%package -n python2-%{modname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
Requires: python2-setuptools
|
|
|
|
|
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{modname}
|
|
|
|
|
%{desc}
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
@ -87,71 +77,36 @@ This package installs the nose module and nosetests3 program that can discover
|
|
|
|
|
python3 unit tests.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -qc
|
|
|
|
|
pushd %{modname}-%{version}
|
|
|
|
|
%autopatch -p1
|
|
|
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
|
|
|
dos2unix examples/attrib_plugin.py
|
|
|
|
|
cp -pr lgpl.txt AUTHORS CHANGELOG examples NEWS README.txt ..
|
|
|
|
|
popd
|
|
|
|
|
mv %{modname}-%{version} python2
|
|
|
|
|
cp -pr python2 python3
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
pushd python2
|
|
|
|
|
%py2_build
|
|
|
|
|
popd
|
|
|
|
|
pushd python3
|
|
|
|
|
%py3_build
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
|
pushd python2
|
|
|
|
|
%py2_install
|
|
|
|
|
mv %{buildroot}%{_bindir}/nosetests{,-%{python2_version}}
|
|
|
|
|
ln -sf nosetests-%{python2_version} %{buildroot}%{_bindir}/nosetests-2
|
|
|
|
|
mv %{buildroot}%{_prefix}/man/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{python2_version}.1
|
|
|
|
|
ln -sf nosetests-%{python2_version}.1 %{buildroot}%{_mandir}/man1/nosetests-2.1
|
|
|
|
|
popd
|
|
|
|
|
pushd python3
|
|
|
|
|
%py3_install
|
|
|
|
|
mv %{buildroot}%{_bindir}/nosetests{,-%{python3_version}}
|
|
|
|
|
ln -sf nosetests-%{python3_version} %{buildroot}%{_bindir}/nosetests-3
|
|
|
|
|
mv %{buildroot}%{_prefix}/man/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{python3_version}.1
|
|
|
|
|
ln -sf nosetests-%{python3_version}.1 %{buildroot}%{_mandir}/man1/nosetests-3.1
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
ln -sf nosetests-3 %{buildroot}%{_bindir}/nosetests
|
|
|
|
|
ln -sf nosetests-3.1 %{buildroot}%{_mandir}/man1/nosetests.1
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
pushd python3/doc
|
|
|
|
|
pushd doc
|
|
|
|
|
sphinx-build -b html -d .build/doctrees . .build/html
|
|
|
|
|
rm -vrf .build/html/.buildinfo .build/html/_sources
|
|
|
|
|
mv .build/html ../..
|
|
|
|
|
rm -vrf .build
|
|
|
|
|
popd
|
|
|
|
|
%endif
|
|
|
|
|
cp -a python2/doc reST
|
|
|
|
|
cp -a doc reST
|
|
|
|
|
rm -vrf reST/{.static,.templates}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd python2
|
|
|
|
|
%{__python2} selftest.py
|
|
|
|
|
popd
|
|
|
|
|
pushd python3
|
|
|
|
|
%{__python3} setup.py build_tests
|
|
|
|
|
%{__python3} selftest.py
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{modname}
|
|
|
|
|
%license lgpl.txt
|
|
|
|
|
%{_bindir}/nosetests-2
|
|
|
|
|
%{_bindir}/nosetests-%{python2_version}
|
|
|
|
|
%{_mandir}/man1/nosetests-2.1*
|
|
|
|
|
%{_mandir}/man1/nosetests-%{python2_version}.1*
|
|
|
|
|
%{python2_sitelib}/nose-*.egg-info/
|
|
|
|
|
%{python2_sitelib}/nose/
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{modname}
|
|
|
|
|
%license lgpl.txt
|
|
|
|
@ -172,6 +127,10 @@ popd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Nov 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.7-28
|
|
|
|
|
- Subpackage python2-nose has been removed
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
|
|
|
|
|
* Thu Oct 31 2019 Petr Viktorin <pviktori@redhat.com> - 1.3.7-27
|
|
|
|
|
- Remove build dependency on python2-coverage
|
|
|
|
|
Don't test coverage plugin on Python 2
|
|
|
|
|