[python-xappy] Initial import of python-xappy for Fedora

Luke Macken lmacken at fedoraproject.org
Thu Mar 22 18:33:01 UTC 2012


commit f43097f8f1923182c31c73b92a55a5b5200cde92
Author: Luke Macken <lmacken at redhat.com>
Date:   Thu Mar 22 11:32:53 2012 -0700

    Initial import of python-xappy for Fedora

 .gitignore        |    1 +
 python-xappy.spec |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..336c7f6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/xappy-0.6.0dev-r624.tar.bz2
diff --git a/python-xappy.spec b/python-xappy.spec
new file mode 100644
index 0000000..1cacc5d
--- /dev/null
+++ b/python-xappy.spec
@@ -0,0 +1,73 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%global svnrev 624
+%global modname xappy
+
+Name:           python-xappy
+Version:        0.6.0
+Release:        0.2.svn%{svnrev}%{?dist}
+Summary:        An easy-to-use layer on top of the Xapian search engine
+
+Group:          Development/Languages
+License:        GPLv2+
+URL:            https://code.google.com/p/xappy
+
+# SVN snapshot generated by doing:
+# svn checkout http://xappy.googlecode.com/svn/trunk/@r624 ; cd trunk
+# echo 'include COPYING_GPL' >> MANIFEST.in
+# echo -e '[egg_info]\ntag_build = dev\n\ntag_svn_revision = true' > setup.cfg
+# python eggsetup.py sdist --format=bztar
+Source0:        http://xappy.googlecode.com/files/xappy-%{version}dev-r%{svnrev}.tar.bz2
+
+BuildArch:      noarch
+
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+Requires:       xapian-bindings-python
+
+%description
+The "xappy" python module is an easy-to-use interface to the Xapian
+search engine. Xapian provides a low level interface, dealing with terms
+and documents, but not really worrying about where terms come from, or
+how to build searches to match the way in which data has been indexed. In
+contrast, "xappy" allows you to design a field structure, specifying what
+kind of information is held in particular fields, and then uses this
+field structure to index data appropriately, and to build and perform
+searches.
+
+%prep
+%setup -q -n %{modname}-%{version}dev-r%{svnrev}
+sed -i 1d xappy/cachemanager/xapian_manager.py \
+    xappy/cachemanager/generic.py \
+    xappy/cachemanager/inmemory_inverter.py \
+    xappy/cachemanager/numpy_inverter.py \
+    xappy/cachemanager/__init__.py \
+    xappy/cachemanager/queryinvert.py
+
+%build
+%{__python} setup.py build
+
+%check
+%{__python} setup.py test
+
+%install
+%{__python} setup.py install -O1 --skip-build \
+    --install-data=%{_datadir} --root %{buildroot}
+
+%files
+%doc README COPYING_GPL
+%{python_sitelib}/*
+
+%changelog
+* Tue Mar 13 2012 Luke Macken <lmacken at redhat.com> - 0.6.0-0.2.svn624
+- Fix a typo in the license
+- Shorten the summary
+- Require xapian-bindings-python
+- Remove shebangs
+- Add svn snapshot instructions
+- Remove the buildroot tag, buildroot cleaning, and defattr
+- Include the license
+
+* Mon Dec 19 2011 Luke Macken <lmacken at redhat.com> - 0.6.0-0.1.svn624
+- Initial package of svn snapshot
diff --git a/sources b/sources
index e69de29..751da4a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+436e2a48b19c13cc797a64331353ef08  xappy-0.6.0dev-r624.tar.bz2


More information about the scm-commits mailing list