Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 235a95bde25ec2f1e02a0b47eb2d2c2c > files > 2

python-whoosh-2.5.7-2.mga5.src.rpm

%global mod_name Whoosh

Name:           python-whoosh
Version:        2.5.7
Release:        %mkrel 2
Summary:        Fast, pure-Python full text indexing, search, and spell checking library 
License:        BSD
Group:          Development/Python
URL:            http://pythonhosted.org/Whoosh/
Source0:        https://pypi.python.org/packages/source/W/%{mod_name}/%{mod_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-nose
BuildRequires:  python-sphinx

%description
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.

%package -n python3-whoosh
Summary:        Fast, pure-Python full text indexing, search, and spell checking library 
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-nose
BuildRequires:  python3-sphinx
    
%description -n python3-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.

%prep
%setup -q -n %{mod_name}-%{version}
cp -a . %{py3dir}

%build
%{__python} setup.py build
sphinx-build docs/source docs/html
rm -f docs/html/.buildinfo
rm -rf docs/html/.doctrees

pushd %{py3dir}
%{__python3} setup.py build
sphinx-build docs/source docs/html
rm -f docs/html/.buildinfo
rm -rf docs/html/.doctrees
popd

%install
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT

pushd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
popd

%files
%doc docs/html/ README.txt LICENSE.txt
%{python_sitelib}/*.egg-info/
%{python_sitelib}/whoosh

%files -n python3-whoosh
%doc docs/html/ README.txt LICENSE.txt
%{python3_sitelib}/*.egg-info/
%{python3_sitelib}/whoosh




%changelog
* Wed Oct 15 2014 umeabot <umeabot> 2.5.7-2.mga5
+ Revision: 748244
- Second Mageia 5 Mass Rebuild

* Sun Sep 28 2014 dglent <dglent> 2.5.7-1.mga5
+ Revision: 730951
- imported package python-whoosh