Subpackage python2-nose has been removed
https://fedoraproject.org/wiki/Changes/RetirePython2
This commit is contained in:
parent
830da8518b
commit
3db14520ce
@ -22,7 +22,7 @@ output capture and more.\
|
|||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.3.7
|
Version: 1.3.7
|
||||||
Release: 27%{?dist}
|
Release: 28%{?dist}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
License: LGPLv2+ and Public Domain
|
License: LGPLv2+ and Public Domain
|
||||||
@ -61,16 +61,6 @@ BuildRequires: python3-sphinx
|
|||||||
%description docs
|
%description docs
|
||||||
Documentation for Nose.
|
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}
|
%package -n python3-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -87,71 +77,36 @@ This package installs the nose module and nosetests3 program that can discover
|
|||||||
python3 unit tests.
|
python3 unit tests.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qc
|
%autosetup -p1 -n %{modname}-%{version}
|
||||||
pushd %{modname}-%{version}
|
|
||||||
%autopatch -p1
|
|
||||||
dos2unix examples/attrib_plugin.py
|
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
|
%build
|
||||||
pushd python2
|
|
||||||
%py2_build
|
|
||||||
popd
|
|
||||||
pushd python3
|
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
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
|
%py3_install
|
||||||
mv %{buildroot}%{_bindir}/nosetests{,-%{python3_version}}
|
mv %{buildroot}%{_bindir}/nosetests{,-%{python3_version}}
|
||||||
ln -sf nosetests-%{python3_version} %{buildroot}%{_bindir}/nosetests-3
|
ln -sf nosetests-%{python3_version} %{buildroot}%{_bindir}/nosetests-3
|
||||||
mv %{buildroot}%{_prefix}/man/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{python3_version}.1
|
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
|
ln -sf nosetests-%{python3_version}.1 %{buildroot}%{_mandir}/man1/nosetests-3.1
|
||||||
popd
|
|
||||||
|
|
||||||
ln -sf nosetests-3 %{buildroot}%{_bindir}/nosetests
|
ln -sf nosetests-3 %{buildroot}%{_bindir}/nosetests
|
||||||
ln -sf nosetests-3.1 %{buildroot}%{_mandir}/man1/nosetests.1
|
ln -sf nosetests-3.1 %{buildroot}%{_mandir}/man1/nosetests.1
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
pushd python3/doc
|
pushd doc
|
||||||
sphinx-build -b html -d .build/doctrees . .build/html
|
sphinx-build -b html -d .build/doctrees . .build/html
|
||||||
rm -vrf .build/html/.buildinfo .build/html/_sources
|
rm -vrf .build/html/.buildinfo .build/html/_sources
|
||||||
mv .build/html ../..
|
mv .build/html ../..
|
||||||
rm -vrf .build
|
rm -vrf .build
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
cp -a python2/doc reST
|
cp -a doc reST
|
||||||
rm -vrf reST/{.static,.templates}
|
rm -vrf reST/{.static,.templates}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd python2
|
|
||||||
%{__python2} selftest.py
|
|
||||||
popd
|
|
||||||
pushd python3
|
|
||||||
%{__python3} setup.py build_tests
|
%{__python3} setup.py build_tests
|
||||||
%{__python3} selftest.py
|
%{__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}
|
%files -n python3-%{modname}
|
||||||
%license lgpl.txt
|
%license lgpl.txt
|
||||||
@ -172,6 +127,10 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Oct 31 2019 Petr Viktorin <pviktori@redhat.com> - 1.3.7-27
|
||||||
- Remove build dependency on python2-coverage
|
- Remove build dependency on python2-coverage
|
||||||
Don't test coverage plugin on Python 2
|
Don't test coverage plugin on Python 2
|
||||||
|
Loading…
Reference in New Issue
Block a user