diff --git a/python-whoosh.spec b/python-whoosh.spec index 6792a9e..4d9e6dd 100644 --- a/python-whoosh.spec +++ b/python-whoosh.spec @@ -1,7 +1,3 @@ -%if 0%{?fedora} || 0%{?rhel} >= 7 -%global with_python3 1 -%endif - # For bootstrapping sphinxcontrib-websupport %bcond_without docs @@ -9,7 +5,7 @@ Name: python-whoosh Version: 2.7.4 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Fast, pure-Python full text indexing, search, and spell checking library License: BSD @@ -17,19 +13,14 @@ URL: http://pythonhosted.org/Whoosh/ Source0: https://pypi.python.org/packages/source/W/%{mod_name}/%{mod_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-pytest %if %{with docs} -BuildRequires: python2-sphinx +BuildRequires: python%{python3_pkgversion}-sphinx %endif -%if 0%{?with_python3} BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pytest -%endif %description Whoosh is a fast, featureful full-text indexing and searching library @@ -37,17 +28,6 @@ implemented in pure Python. Programmers can use it to easily add search functionality to their applications and websites. Every part of how Whoosh works can be extended or replaced to meet your needs exactly. -%package -n python2-whoosh -Summary: Fast, Python3 full text indexing, search, and spell checking library -%{?python_provide:%python_provide python2-whoosh} - -%description -n python2-whoosh -Whoosh is a fast, featureful full-text indexing and searching library -implemented in pure Python. Programmers can use it to easily add search -functionality to their applications and websites. Every part of how Whoosh -works can be extended or replaced to meet your needs exactly. - -%if 0%{?with_python3} %package -n python%{python3_pkgversion}-whoosh Summary: Fast, Python3 full text indexing, search, and spell checking library %{?python_provide:%python_provide python%{python3_pkgversion}-whoosh} @@ -57,13 +37,12 @@ Whoosh is a fast, featureful full-text indexing and searching library implemented in pure Python. Programmers can use it to easily add search functionality to their applications and websites. Every part of how Whoosh works can be extended or replaced to meet your needs exactly. -%endif %prep %setup -q -n %{mod_name}-%{version} %build -%py2_build +%py3_build %if %{with docs} sphinx-build docs/source docs/html @@ -71,47 +50,26 @@ rm -f docs/html/.buildinfo rm -rf docs/html/.doctrees %endif -%if 0%{?with_python3} -%py3_build -rm -f docs/html/.buildinfo -rm -rf docs/html/.doctrees -%endif - %install -%py2_install - -%if 0%{?with_python3} %py3_install -%endif %check -%{__python2} setup.py test - -%if 0%{?with_python3} %{__python3} setup.py test -%endif -%files -n python2-whoosh -%license LICENSE.txt -%doc README.txt -%if %{with docs} -%doc docs/html/ -%endif -%{python2_sitelib}/*.egg-info/ -%{python2_sitelib}/whoosh - -%if 0%{?with_python3} %files -n python%{python3_pkgversion}-whoosh %license LICENSE.txt %doc README.txt %if %{with docs} %doc docs/html/ %endif -%{python3_sitelib}/whoosh +%{python3_sitelib}/whoosh/ %{python3_sitelib}/*.egg-info/ -%endif %changelog +* Wed Mar 20 2019 Miro HronĨok - 2.7.4-14 +- Subpackage python2-whoosh has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Feb 02 2019 Fedora Release Engineering - 2.7.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild