blob: 9641fb2e6edd53fc9a435872c23f99bc2f3371cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#
# Conditional build:
%bcond_without tests # do not perform "make test"
%define module Flask-SQLAlchemy
Summary: Adds SQLAlchemy support to your Flask application
Name: python-%{module}
Version: 0.15
Release: 0.1
License: BSD
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/F/Flask-SQLAlchemy/%{module}-%{version}.tar.gz
# Source0-md5: d69571aee51eec584b0978c35ca047ba
#URL: -
BuildRequires: python-distribute
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
Requires: python-Flask
Requires: python-SQLAlchemy
Requires: python-modules
Requires: python-setuptools
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Adds SQLAlchemy support to your Flask application.
%prep
%setup -q -n %{module}-%{version}
%build
%{__python} setup.py build
%{?with_tests:%{__python} setup.py test}
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install \
--skip-build \
--optimize=2 \
--root=$RPM_BUILD_ROOT
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
%py_postclean
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGES README
%{py_sitescriptdir}/flaskext
%if "%{py_ver}" > "2.4"
%{py_sitescriptdir}/Flask_SQLAlchemy-*.egg-info
%endif
|