Blame SPECS/python-whoosh.spec

93b7c9
%if 0%{?fedora} || 0%{?rhel} >= 7
93b7c9
%global with_python3 1
93b7c9
%endif
93b7c9
93b7c9
%global mod_name Whoosh
93b7c9
93b7c9
%if 0%{?rhel} > 7
93b7c9
# Disable python2 build by default
93b7c9
%bcond_with python2
93b7c9
%else
93b7c9
%bcond_without python2
93b7c9
%endif
93b7c9
93b7c9
Name:           python-whoosh
93b7c9
Version:        2.7.4
93b7c9
Release:        9%{?dist}
93b7c9
Summary:        Fast, pure-Python full text indexing, search, and spell checking library 
93b7c9
93b7c9
License:        BSD 
93b7c9
URL:            http://pythonhosted.org/Whoosh/
93b7c9
Source0:        https://pypi.python.org/packages/source/W/%{mod_name}/%{mod_name}-%{version}.tar.gz
93b7c9
93b7c9
BuildArch:      noarch
93b7c9
93b7c9
%if %{with python2}
93b7c9
BuildRequires:  python2-devel
93b7c9
BuildRequires:  python2-setuptools
93b7c9
BuildRequires:  python2-pytest
93b7c9
%endif # with python2
93b7c9
93b7c9
%if 0%{?with_python3}
93b7c9
BuildRequires: python%{python3_pkgversion}-devel
93b7c9
BuildRequires: python%{python3_pkgversion}-setuptools
93b7c9
BuildRequires: python%{python3_pkgversion}-pytest
93b7c9
BuildRequires: python%{python3_pkgversion}-sphinx
93b7c9
%endif
93b7c9
93b7c9
%description
93b7c9
Whoosh is a fast, featureful full-text indexing and searching library
93b7c9
implemented in pure Python. Programmers can use it to easily add search
93b7c9
functionality to their applications and websites. Every part of how Whoosh
93b7c9
works can be extended or replaced to meet your needs exactly.
93b7c9
93b7c9
%if %{with python2}
93b7c9
%package -n python2-whoosh
93b7c9
Summary:    Fast, Python3 full text indexing, search, and spell checking library
93b7c9
%{?python_provide:%python_provide python2-whoosh}
93b7c9
93b7c9
%description -n python2-whoosh
93b7c9
Whoosh is a fast, featureful full-text indexing and searching library
93b7c9
implemented in pure Python. Programmers can use it to easily add search
93b7c9
functionality to their applications and websites. Every part of how Whoosh
93b7c9
works can be extended or replaced to meet your needs exactly.
93b7c9
%endif # with python2
93b7c9
93b7c9
%if 0%{?with_python3}
93b7c9
%package -n python%{python3_pkgversion}-whoosh
93b7c9
Summary:    Fast, Python3 full text indexing, search, and spell checking library
93b7c9
%{?python_provide:%python_provide python%{python3_pkgversion}-whoosh}
93b7c9
93b7c9
%description -n python%{python3_pkgversion}-whoosh
93b7c9
Whoosh is a fast, featureful full-text indexing and searching library
93b7c9
implemented in pure Python. Programmers can use it to easily add search
93b7c9
functionality to their applications and websites. Every part of how Whoosh
93b7c9
works can be extended or replaced to meet your needs exactly.
93b7c9
%endif
93b7c9
93b7c9
%prep
93b7c9
%setup -q -n %{mod_name}-%{version}
93b7c9
93b7c9
%build
93b7c9
%if %{with python2}
93b7c9
%py2_build
93b7c9
%endif # with python2
93b7c9
93b7c9
%if 0%{?with_python3}
93b7c9
%py3_build
93b7c9
sphinx-build-3 docs/source docs/html
93b7c9
rm -f docs/html/.buildinfo
93b7c9
rm -rf docs/html/.doctrees
93b7c9
%endif
93b7c9
93b7c9
%install
93b7c9
%if %{with python2}
93b7c9
%py2_install
93b7c9
%endif # with python2
93b7c9
93b7c9
%if 0%{?with_python3}
93b7c9
%py3_install
93b7c9
%endif
93b7c9
93b7c9
%check
93b7c9
%if %{with python2}
93b7c9
%{__python2} setup.py test
93b7c9
%endif # with python2
93b7c9
93b7c9
%if 0%{?with_python3}
93b7c9
%{__python3} setup.py test
93b7c9
%endif
93b7c9
93b7c9
%if %{with python2}
93b7c9
%files -n python2-whoosh
93b7c9
%license LICENSE.txt
93b7c9
%doc docs/html/ README.txt
93b7c9
%{python2_sitelib}/*.egg-info/
93b7c9
%{python2_sitelib}/whoosh
93b7c9
%endif # with python2
93b7c9
93b7c9
%if 0%{?with_python3}
93b7c9
%files -n python%{python3_pkgversion}-whoosh
93b7c9
%license LICENSE.txt
93b7c9
%doc README.txt docs/html/
93b7c9
%{python3_sitelib}/whoosh
93b7c9
%{python3_sitelib}/*.egg-info/
93b7c9
%endif
93b7c9
93b7c9
%changelog
93b7c9
* Thu Jun 14 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.7.4-9
93b7c9
- Conditionalize the python2 subpackage
93b7c9
93b7c9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-8
93b7c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
93b7c9
93b7c9
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-7
93b7c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
93b7c9
93b7c9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-6
93b7c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
93b7c9
93b7c9
* Tue Dec 13 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.4-5
93b7c9
- Enable tests
93b7c9
93b7c9
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.7.4-4
93b7c9
- Rebuild for Python 3.6
93b7c9
- Disable python3 tests for now
93b7c9
93b7c9
* Wed Oct 12 2016 Orion Poplawski <orion@cora.nwra.com> - 2.7.4-3
93b7c9
- Ship python2-whoosh
93b7c9
- Build python3 package for EPEL7
93b7c9
- Modernize spec
93b7c9
93b7c9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.4-2
93b7c9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
93b7c9
93b7c9
* Sun May 01 2016 Robert Kuska <rkuska@gmail.com> - 2.7.4-1
93b7c9
- Update to version 2.7.4
93b7c9
93b7c9
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-2
93b7c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
93b7c9
93b7c9
* Mon Oct 12 2015 Robert Kuska <rkuska@redhat.com> 2.7.0-1
93b7c9
- Update to version 2.7.0
93b7c9
93b7c9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.7-5
93b7c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
93b7c9
93b7c9
* Wed Jul 30 2014 Robert Kuska <rkuska@redhat.com> - 2.7.5-4
93b7c9
- Change spec for el6 and epel7
93b7c9
93b7c9
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.7-3
93b7c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
93b7c9
93b7c9
* Fri May 16 2014 Robert Kuska <rkuska@redhat.com> - 2.7.5-2
93b7c9
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
93b7c9
93b7c9
* Mon Mar 03 2014 Robert Kuska <rkuska@redhat.com> - 2.5.7-1
93b7c9
- Rebase to 2.5.7
93b7c9
93b7c9
* Mon Jan 27 2014 Robert Kuska <rkuska@redhat.com> - 2.5.6-1
93b7c9
- Rebase to 2.5.6
93b7c9
93b7c9
* Tue Nov 19 2013 Robert Kuska <rkuska@redhat.com> - 2.5.5-1
93b7c9
- Rebase to 2.5.5
93b7c9
93b7c9
* Mon Sep 09 2013 Robert Kuska <rkuska@redhat.com> - 2.5.3-1
93b7c9
- Rebase to 2.5.3
93b7c9
93b7c9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-2
93b7c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
93b7c9
93b7c9
* Mon Jul 08 2013 Robert Kuska <rkuska@redhat.com> - 2.5.1-1
93b7c9
- Update source
93b7c9
- Add python3 subpackage (rhbz#979235)
93b7c9
93b7c9
* Mon Apr 08 2013 Robert Kuska <rkuska@redhat.com> - 2.4.1-2
93b7c9
- Review fixes
93b7c9
93b7c9
* Fri Apr 05 2013 Robert Kuska <rkuska@redhat.com> - 2.4.1-1
93b7c9
- Initial package
93b7c9