/[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

revision 471884 by philippem, Mon Aug 26 14:53:37 2013 UTC revision 471969 by philippem, Mon Aug 26 17:43:30 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}
# Line 9  License:       GPLv2 Line 10  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    Patch0:         python-storm-maxint.patch
15    # https://bugs.launchpad.net/storm/+bug/1199578
16    Patch1:         storm-0.20-exclude-tests.patch
17  BuildRequires:  pkgconfig(python)  BuildRequires:  pkgconfig(python)
18  BuildRequires:  python-setuptools  BuildRequires:  python-setuptools
19  Requires:       python-psycopg2  Requires:       python-sqlite2
 Requires:       python-sqlite2  
   
 %files  
 %doc TODO LICENSE README tests/tutorial.txt tests/  
 %exclude %{python_sitearch}/storm/cextensions.c  
 %{python_sitearch}/storm*  
   
 #--------------------------------------------------------------------  
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 33  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/Libraries
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/Libraries
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/Libraries
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/Libraries
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/Libraries
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  %{__python} setup.py build
# Line 42  language like Python. Line 92  language like Python.
92  %install  %install
93  %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT  %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
94    
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    %files postgresql
115    %{python_sitearch}/storm/databases/postgres.*
116    
117    %files twisted
118    %{python_sitearch}/storm/twisted

Legend:
Removed from v.471884  
changed lines
  Added in v.471969

  ViewVC Help
Powered by ViewVC 1.1.30