%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
%define alphatag 20070626git
%define commitid 30c1a1abb8
Name: sugar-datastore
Version: 0.2.2
Release: 0.2.%{alphatag}30c1a1abb8
Summary: Sugar Datastore
Group: Development/Libraries
License: GPL
URL: http://dev.laptop.org/
# OLPC is upstream, RPM is canonical source for packaged code.
# git clone git://dev.laptop.org/projects/sugar-datastore
# cd sugar
# git-checkout %{commitid}
Source0: sugar-datastore-%{version}-git%{commitid}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: xapian-bindings-python
Requires: python-sqlalchemy
Requires: python-sqlite2
Requires: pyxapian
%description
sugar-datastore is a simple log like datastore able to connect with multiple
backends. The datastore supports connectionig and disconnecting from
backends on the fly to help the support the limit space/memory
characteristics of the OLPC system and the fact that network services
may become unavailable at times
%prep
%setup -q
%build
%configure
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE.GPL README.txt NOTES.txt
%{python_sitelib}/*
%{_bindir}/*
%{_datadir}/dbus-1/services/*.service
%changelog
* Tue Jun 26 2007 Marco Pesenti Gritti <marco@localhost.localdomain> - 0.2.2-0.2.20070626git30c1a1abb8
- New snapshot
* Wed Jun 20 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.2-0.1.20070620git49f3211d34
- Update to 0.2.2
- Fix rpmlint complaints
* Mon Jun 4 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.1-3.git8d46929bf7.1
- New snapshot
* Wed May 30 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-2.gita7ec17405d
- Fix locks
* Tue May 29 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.9.20070529git
- New snapshot
* Tue May 16 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.9.20070516.2git
- Remove setuptools again
* Tue May 16 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.9.20070516git
- More performance work
* Tue May 15 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.7.20070515git
- Performance fix
* Mon May 14 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.7.20070514git.4
- Disable indexer, fix empty files
* Mon May 14 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.7.20070514git.3
- Fixes
* Mon May 14 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.7.20070514git.2
- Fix startup
* Mon May 14 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.7.20070514git
- New snapshot, use auto*
* Thu May 11 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.6.20070511git
- Fix service path
* Thu May 11 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.5.20070511git
- Update snapshot
* Thu May 10 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.4.20070510git
- Require pyxapian
* Thu May 10 2007 Marco Pesenti Gritti <mpg@redhat.com> - 0.2.0-1.3.20070510git
- Initial build