2 |
|
|
3 |
Summary: Object Relational Mapper for Python |
Summary: Object Relational Mapper for Python |
4 |
Name: python-%{oname} |
Name: python-%{oname} |
5 |
Version: 0.19 |
Version: 0.20 |
6 |
Release: %mkrel 2 |
Release: %mkrel 1 |
7 |
Source0: https://launchpad.net/storm/trunk/%{version}/+download/%{oname}-%{version}.tar.bz2 |
Source0: https://launchpad.net/storm/trunk/%{version}/+download/%{oname}-%{version}.tar.bz2 |
8 |
License: GPLv2 |
License: GPLv2 |
9 |
URL: http://storm.canonical.com/ |
URL: http://storm.canonical.com/ |
10 |
Group: Development/Python |
Group: Development/Python |
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
12 |
Prefix: %{_prefix} |
Prefix: %{_prefix} |
13 |
BuildArch: noarch |
BuildRequires: pkgconfig(python) |
14 |
BuildRequires: libpython-devel |
BuildRequires: python-setuptools |
|
Requires: python >= 2.4 |
|
15 |
Requires: python-psycopg2 |
Requires: python-psycopg2 |
16 |
Requires: python-sqlite2 |
Requires: python-sqlite2 |
17 |
|
|
18 |
%files |
%files |
|
%defattr(-,root,root) |
|
19 |
%doc TODO LICENSE README tests/tutorial.txt tests/ |
%doc TODO LICENSE README tests/tutorial.txt tests/ |
20 |
%{py_puresitedir}/* |
%exclude %{python_sitearch}/storm/cextensions.c |
21 |
|
%{python_sitearch}/storm* |
22 |
|
|
23 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
24 |
|
|
37 |
%setup -q -n %{oname}-%{version} |
%setup -q -n %{oname}-%{version} |
38 |
|
|
39 |
%build |
%build |
40 |
|
%{__python} setup.py build |
41 |
|
|
42 |
%install |
%install |
43 |
install -d %{buildroot}%{py_puresitedir} |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
|
cp -af storm/ %{buildroot}%{py_puresitedir} |
|
|
|
|
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
44 |
|
|