/[packages]/cauldron/python-storm/current/SPECS/python-storm.spec
ViewVC logotype

Diff of /cauldron/python-storm/current/SPECS/python-storm.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

obsolete/cauldron/python-storm/current/SPECS/python-storm.spec revision 389213 by pterjan, Thu Jan 17 21:29:26 2013 UTC cauldron/python-storm/current/SPECS/python-storm.spec revision 544203 by umeabot, Tue Oct 22 03:14:24 2013 UTC
# Line 1  Line 1 
1  %define oname   storm  %define oname   storm
2    %define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so
3    
4  Summary:        Object Relational Mapper for Python  Summary:        Object Relational Mapper for Python
5  Name:           python-%{oname}  Name:           python-%{oname}
6  Version:        0.19  Version:        0.20
7  Release:        %mkrel 2  Release:        %mkrel 3
8  Source0:        https://launchpad.net/storm/trunk/%{version}/+download/%{oname}-%{version}.tar.bz2  Source0:        https://launchpad.net/storm/trunk/%{version}/+download/%{oname}-%{version}.tar.bz2
9  License:        GPLv2  License:        GPLv2
10  URL:            http://storm.canonical.com/  URL:            http://storm.canonical.com/
11  Group:          Development/Python  Group:          Development/Python
12  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
13  Prefix:         %{_prefix}  # https://lists.ubuntu.com/archives/storm/2013-June/001492.html
14  BuildArch:      noarch  Patch0:         python-storm-maxint.patch
15  BuildRequires:  libpython-devel  # https://bugs.launchpad.net/storm/+bug/1199578
16  Requires:       python >= 2.4  Patch1:         storm-0.20-exclude-tests.patch
17  Requires:       python-psycopg2  BuildRequires:  pkgconfig(python)
18  Requires:       python-sqlite2  BuildRequires:  python-setuptools
19    Requires:       python-sqlite2
 %files  
 %defattr(-,root,root)  
 %doc TODO LICENSE README tests/tutorial.txt tests/  
 %{py_puresitedir}/*  
   
 #--------------------------------------------------------------------  
20    
21  %description  %description
22  Storm is an object-relation mapper (ORM) for the Python language. It allows  Storm is an object-relation mapper (ORM) for the Python language. It allows
# Line 34  language like Python. Line 29  language like Python.
29  - Storm allows you to fallback to SQL if needed (or if you just prefer),  - Storm allows you to fallback to SQL if needed (or if you just prefer),
30    allowing you to mix "old school" code and ORM code    allowing you to mix "old school" code and ORM code
31    
32    %package        mysql
33    Summary:        MySQL backend for %{name}
34    Group:          Development/Python
35    Requires:       %{name} = %{version}-%{release}
36    Requires:       python-mysql
37    
38    %description    mysql
39    The %{name}-mysql package contains the MySQL database backend for
40    %{name}.
41    
42    %package        postgresql
43    Summary:        PostgreSQL backend for %{name}
44    Group:          Development/Python
45    Requires:       %{name} = %{version}-%{release}
46    Requires:       python-psycopg2
47    
48    %description    postgresql
49    The %{name}-postgresql package contains the PostgreSQL database
50    backend for %{name}.
51    
52    
53    %package        django
54    Summary:        Support for using %{name} as Django ORM
55    Group:          Development/Python
56    Requires:       python-django
57    Requires:       %{name}-zope = %{version}-%{release}
58    
59    %description    django
60    The %{name}-django package contains an alternative ORM implementation
61    for Django.
62    
63    
64    %package        zope
65    Summary:        Zope integration for %{name}
66    Group:          Development/Python
67    Requires:       %{name} = %{version}-%{release}
68    Requires:       python-zope-interface
69    
70    %description    zope
71    The %{name}-zope package provides Zope integration for %{name}.
72    
73    
74    %package        twisted
75    Summary:        Twisted integration for %{name}
76    Group:          Development/Python
77    Requires:       %{name} = %{version}-%{release}
78    Requires:       python-twisted-core
79    
80    %description    twisted
81    The %{name}-twisted package provides Twisted integration for %{name}.
82    
83    
84  %prep  %prep
85  %setup -q -n %{oname}-%{version}  %setup -q -n %{oname}-%{version}
86    %patch0 -p1
87    %patch1 -p1
88    
89  %build  %build
90    %{__python} setup.py build
91    
92  %install  %install
93  install -d %{buildroot}%{py_puresitedir}  %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
94  cp -af storm/ %{buildroot}%{py_puresitedir}  
95    %files
96    %doc LICENSE NEWS README TODO tests/tutorial.txt
97    %exclude %{python_sitearch}/storm/django
98    %exclude %{python_sitearch}/storm/zope
99    %exclude %{python_sitearch}/storm/cextensions.c
100    %exclude %{python_sitearch}/storm/databases/mysql.*
101    %exclude %{python_sitearch}/storm/databases/postgres.*
102    %exclude %{python_sitearch}/storm/twisted
103    %{python_sitearch}/storm*
104    
105    %files django
106    %{python_sitearch}/storm/django
107    
108    %files zope
109    %{python_sitearch}/storm/zope
110    
111    %files mysql
112    %{python_sitearch}/storm/databases/mysql.*
113    
114  %clean  %files postgresql
115  rm -rf $RPM_BUILD_ROOT  %{python_sitearch}/storm/databases/postgres.*
116    
117    %files twisted
118    %{python_sitearch}/storm/twisted

Legend:
Removed from v.389213  
changed lines
  Added in v.544203

  ViewVC Help
Powered by ViewVC 1.1.30