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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1516215 - (hide annotations) (download)
Fri Feb 14 01:00:36 2020 UTC (4 years, 1 month ago) by umeabot
File size: 3138 byte(s)
Mageia 8 Mass Rebuild
1 dmorgan 77544 %define oname storm
2 philippem 471969 %define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so
3 dmorgan 77544
4     Summary: Object Relational Mapper for Python
5     Name: python-%{oname}
6 philippem 471884 Version: 0.20
7 umeabot 1516215 Release: %mkrel 10
8 dmorgan 77544 Source0: https://launchpad.net/storm/trunk/%{version}/+download/%{oname}-%{version}.tar.bz2
9     License: GPLv2
10     URL: http://storm.canonical.com/
11     Group: Development/Python
12 philippem 471969 # https://lists.ubuntu.com/archives/storm/2013-June/001492.html
13 philippem 471976 Patch0: python-storm-maxint.patch
14 philippem 471969 # https://bugs.launchpad.net/storm/+bug/1199578
15 philippem 471976 Patch1: storm-0.20-exclude-tests.patch
16 philippem 471884 BuildRequires: pkgconfig(python)
17     BuildRequires: python-setuptools
18 philippem 471969 Requires: python-sqlite2
19 dmorgan 77544
20     %description
21     Storm is an object-relation mapper (ORM) for the Python language. It allows
22     rows from a relational database to be seen as objects in an object-oriented
23     language like Python.
24    
25     - Storm lets you efficiently access and update large datasets by allowing you
26     to formulate complex queries spanning multiple tables using Python.
27    
28     - Storm allows you to fallback to SQL if needed (or if you just prefer),
29     allowing you to mix "old school" code and ORM code
30    
31 philippem 471976 %package mysql
32     Summary: MySQL backend for %{name}
33     Group: Development/Python
34     Requires: %{name} = %{version}-%{release}
35     Requires: python-mysql
36 philippem 471969
37 philippem 471976 %description mysql
38 philippem 471969 The %{name}-mysql package contains the MySQL database backend for
39     %{name}.
40    
41 philippem 471976 %package postgresql
42     Summary: PostgreSQL backend for %{name}
43     Group: Development/Python
44     Requires: %{name} = %{version}-%{release}
45     Requires: python-psycopg2
46 philippem 471969
47 philippem 471976 %description postgresql
48 philippem 471969 The %{name}-postgresql package contains the PostgreSQL database
49     backend for %{name}.
50    
51    
52 philippem 471976 %package django
53     Summary: Support for using %{name} as Django ORM
54     Group: Development/Python
55     Requires: python-django
56     Requires: %{name}-zope = %{version}-%{release}
57 philippem 471969
58 philippem 471976 %description django
59 philippem 471969 The %{name}-django package contains an alternative ORM implementation
60     for Django.
61    
62    
63 philippem 471976 %package zope
64     Summary: Zope integration for %{name}
65     Group: Development/Python
66     Requires: %{name} = %{version}-%{release}
67     Requires: python-zope-interface
68 philippem 471969
69 philippem 471976 %description zope
70 philippem 471969 The %{name}-zope package provides Zope integration for %{name}.
71    
72    
73 philippem 471976 %package twisted
74     Summary: Twisted integration for %{name}
75     Group: Development/Python
76     Requires: %{name} = %{version}-%{release}
77     Requires: python-twisted-core
78 philippem 471969
79 philippem 471976 %description twisted
80 philippem 471969 The %{name}-twisted package provides Twisted integration for %{name}.
81    
82    
83 dmorgan 77544 %prep
84     %setup -q -n %{oname}-%{version}
85 ovitters 878217 %autopatch -p1
86 dmorgan 77544
87     %build
88 ovitters 1146353 %py2_build
89 dmorgan 77544
90     %install
91 philippem 471884 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
92 dmorgan 77544
93 philippem 471969 %files
94     %doc LICENSE NEWS README TODO tests/tutorial.txt
95     %exclude %{python_sitearch}/storm/django
96     %exclude %{python_sitearch}/storm/zope
97     %exclude %{python_sitearch}/storm/cextensions.c
98     %exclude %{python_sitearch}/storm/databases/mysql.*
99     %exclude %{python_sitearch}/storm/databases/postgres.*
100     %exclude %{python_sitearch}/storm/twisted
101 ovitters 1146353 %{python2_sitearch}/storm*
102 philippem 471969
103     %files django
104 ovitters 1146353 %{python2_sitearch}/storm/django
105 philippem 471969
106     %files zope
107 ovitters 1146353 %{python2_sitearch}/storm/zope
108 philippem 471969
109     %files mysql
110 ovitters 1146353 %{python2_sitearch}/storm/databases/mysql.*
111 philippem 471969
112     %files postgresql
113 ovitters 1146353 %{python2_sitearch}/storm/databases/postgres.*
114 philippem 471969
115     %files twisted
116 ovitters 1146353 %{python2_sitearch}/storm/twisted

  ViewVC Help
Powered by ViewVC 1.1.30