File python-Schevo.spec of Package python-Schevo
#
# spec file for package python-Schevo
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-Schevo
Version: 3.1a1
Release: 0
Url: http://www.schevo.org/
Summary: Next-generation DBMS
License: MIT
Group: Development/Languages/Python
Source: Schevo-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-Louie
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1010
BuildRequires: fdupes
%endif
%endif
Provides: python-schevo = %{version}
#TODO: Change back to '<' after next version update:
Obsoletes: python-schevo <= %{version}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description
Schevo is a next-generation DBMS that focuses on the following:
- Rapid Development:
It's easy and fun to create even the most complex of databases. Easily
write and understand schema syntax. Quickly place required initial data
directly in your schema; use the same syntax to create sets of sample
data for development use.
- Rich Schema Definition:
Write database schemata using concise, easy-to-read Python code. Your
schema will describe not only database structure, but also all
transactions and rules that ensure database integrity.
- Automated Schema Evolution:
Deploy a Schevo database and use it to store valuable data, then easily
make further changes to the structure of the database. Use Schevo's
tools to help restructure a database and safely migrate data from one
schema version to the next.
- Transaction Based:
Schevo protects your data. Use transactions to make all changes to a
Schevo database (it's the only way it allows you to!), and you can trust
Schevo to ensure that your database is left in a consistent state at all
times.
- User Interface Generation:
User interface code takes advantage of the richness of your database
schema. Use a full-featured database navigator to interact with your
database without writing a single line of code outside your database
schema. Build customized UIs using Schevo-aware widgets and UI tools.
%prep
%setup -q -n Schevo-%{version}
rm schevo/templates/schevo/._setup.py_tmpl # Remove junk
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}%{python_sitearch}/schevo/{test,store/tests} # Don't package testsuite
%if 0%{?suse_version} > 1010
%fdupes %{buildroot}%{python_sitearch}
%endif
%files
%defattr(-,root,root,-)
%doc README.txt
%{_bindir}/schevo*
%{python_sitearch}/*
%changelog