Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 9bf25f2ddfa5a6d11628ea690df7ce0a > files > 2

python-storm-0.18-1.fc13.src.rpm

%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-storm
Version:        0.18
Release:        1%{?dist}
Summary:        An object-relational mapper (ORM) for Python

Group:          Development/Languages
License:        LGPLv2+
URL:            https://storm.canonical.com/
Source0:        https://launchpad.net/storm/trunk/%{version}/+download/storm-%{version}.tar.bz2
Source1:        README-Django.Fedora
# https://bugs.launchpad.net/ubuntu/+bug/641326
Patch0: storm-fix-non-ordered-test.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# C extension now compiled by default
#BuildArch:      noarch
BuildRequires:  python2-devel python-setuptools

Provides:       %{name}-sqlite = %{version}-%{release}
Obsoletes:      %{name}-sqlite  < %{version}-%{release}

%description
Storm is an object-relational mapper (ORM) for Python. It offers a clean and
lightweight API offers a short learning curve and long-term maintainability and
it is easy to written backends for it.


%package    mysql
Summary:    MySQL backend for %{name}
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   MySQL-python

%description mysql
The %{name}-mysql package contains the MySQL database backend for
%{name}.

%package    postgresql
Summary:    PostgreSQL backend for %{name}
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   python-psycopg2

%description postgresql
The %{name}-postgresql package contains the PostgreSQL database
backend for %{name}.


%package    django
Summary:    Support for using %{name} as Django ORM
Group:      Development/Libraries
Requires:   Django
Requires:   %{name}-zope = %{version}-%{release}

%description django
The %{name}-django package contains an alternative ORM implementation
for Django.


%package    zope
Summary:    Zope integration for %{name}
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   python-zope-interface python-transaction

%description zope
The %{name}-zope package provides Zope integration for %{name}.


%prep
%setup -q -n storm-%{version}
%patch0 -p1
cp -p %{SOURCE1} .


%build
%{__python} setup.py build


%check
# Disable Django tests for now
#mkdir off-tests
#mv tests/django off-tests/
./test


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

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc LICENSE NEWS README TODO tests/tutorial.txt
%exclude %{python_sitearch}/storm/django
%exclude %{python_sitearch}/storm/zope
%exclude %{python_sitearch}/storm/cextensions.c
%exclude %{python_sitearch}/storm/databases/mysql.*
%exclude %{python_sitearch}/storm/databases/postgres.*
%{python_sitearch}/storm*

%files django
%defattr(-,root,root,-)
%doc README-Django.Fedora
%{python_sitearch}/storm/django

%files zope
%defattr(-,root,root,-)
%{python_sitearch}/storm/zope

%files mysql
%defattr(-,root,root,-)
%{python_sitearch}/storm/databases/mysql.*

%files postgresql
%defattr(-,root,root,-)
%{python_sitearch}/storm/databases/postgres.*

%changelog
* Sun Mar 13 2011 Michel Salim <salimma@fedoraproject.org> - 0.18-1
- Update to 0.18

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Sep 29 2010 jkeating - 0.17-2
- Rebuilt for gcc bug 634757

* Fri Sep 17 2010 Michel Salim <salimma@fedoraproject.org> - 0.17-1
- Update to 0.17

* Fri Jul 30 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.15-4
- Fix test for failing build

* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.15-3
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Fri Aug 28 2009 Michel Salim <salimma@fedoraproject.org> - 0.15-2
- Reenable tests on Fedora >= 11 (disabling Django tests for now)

* Fri Aug 28 2009 Michel Salim <salimma@fedoraproject.org> - 0.15-1
- Update to 0.15
- Deprecate %{name}-sqlite, now part of main package
- Separate -django and -zope subpackages

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Wed Feb 18 2009 Michel Salim <salimma@fedoraproject.org> - 0.14-1
- Update to 0.14

* Mon Dec 22 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.13-4
- Temporarily disable the check to fix broken deps 
  (opened #477591 to track this)

* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.13-3
- Rebuild for Python 2.6

* Mon Sep  1 2008 Michel Salim <salimma@fedoraproject.org> - 0.13-2
- Add build dependency on python-sqlite2, for unit testing

* Sat Aug 30 2008 Michel Salim <salimma@fedoraproject.org> - 0.13-1
- Update to 0.13

* Mon Jul 14 2008 Michel Salim <salimma@fedoraproject.org> - 0.12-2
- Run unit tests
- Exclude database backends from main package
- Set file attributes for subpackages

* Wed Jun 18 2008 Michel Salim <salimma@fedoraproject.org> - 0.12-1
- Update to 0.12

* Sun Jan 27 2008 Michel Salim <salimma@fedoraproject.org> - 0.11-1
- Initial Fedora package