[packages/python-whoosh] new, version 2.7.4
glen
glen at pld-linux.org
Mon Jun 20 23:31:48 CEST 2016
commit 728d741ce88a27c1615467ac354bef9690d1cb46
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jun 21 00:31:22 2016 +0300
new, version 2.7.4
based on fedora package, bc0c236
python-whoosh.spec | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 121 insertions(+)
---
diff --git a/python-whoosh.spec b/python-whoosh.spec
new file mode 100644
index 0000000..c0a9c48
--- /dev/null
+++ b/python-whoosh.spec
@@ -0,0 +1,121 @@
+#
+# Conditional build:
+%bcond_without doc # don't build doc
+%bcond_without tests # do not perform "make test"
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+%define module whoosh
+Summary: Fast, pure-Python full text indexing, search, and spell checking library
+Name: python-%{module}
+Version: 2.7.4
+Release: 1
+License: BSD
+Group: Libraries/Python
+Source0: https://pypi.python.org/packages/source/W/Whoosh/Whoosh-%{version}.tar.gz
+# Source0-md5: c2710105f20b3e29936bd2357383c325
+URL: http://pythonhosted.org/Whoosh/
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-modules
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-modules
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+%endif
+%if %{with doc}
+BuildRequires: sphinx-pdg-2
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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-%{module}
+Summary: Fast, Python3 full text indexing, search, and spell checking library
+Group: Libraries/Python
+
+%description -n python3-%{module}
+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 apidocs
+Summary: %{module} API documentation
+Summary(pl.UTF-8): Dokumentacja API %{module}
+Group: Documentation
+
+%description apidocs
+API documentation for %{module}.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API %{module}.
+
+%prep
+%setup -q -n Whoosh-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%if %{with doc}
+sphinx-build-2 docs/source docs/html
+rm docs/html/.buildinfo
+rm -r docs/html/.doctrees
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
+%py_install
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python3}
+%files
+%defattr(644,root,root,755)
+%doc README.txt LICENSE.txt
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/Whoosh-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.txt LICENSE.txt
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/Whoosh-%{version}-py*.egg-info
+%endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/html/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-whoosh.git/commitdiff/728d741ce88a27c1615467ac354bef9690d1cb46
More information about the pld-cvs-commit
mailing list