1 |
%define module django |
2 |
%define tarname Django |
3 |
%define name python-%module |
4 |
%define version 1.3.4 |
5 |
%define release %mkrel 1 |
6 |
|
7 |
Summary: A high-level Python Web framework |
8 |
Name: %{name} |
9 |
Version: %{version} |
10 |
Release: %{release} |
11 |
Source0: http://www.djangoproject.com/m/releases/1.3/Django-%{version}.tar.gz |
12 |
License: BSD |
13 |
Group: Development/Python |
14 |
Url: http://www.djangoproject.com |
15 |
BuildArch: noarch |
16 |
BuildRequires: python-setuptools, python-sphinx, python-devel |
17 |
|
18 |
%description |
19 |
Django is a high-level Python Web framework that encourages rapid development |
20 |
and clean, pragmatic design. |
21 |
|
22 |
Developed and used over the past two years by a fast-moving online-news |
23 |
operation, Django was designed from scratch to handle two challenges: the |
24 |
intensive deadlines of a newsroom and the stringent requirements of experienced |
25 |
Web developers. It has convenient niceties for developing content-management |
26 |
systems, but it's an excellent tool for building any Web site. |
27 |
|
28 |
Django focuses on automating as much as possible and adhering to the |
29 |
DRY principle. |
30 |
|
31 |
%prep |
32 |
%setup -q -n %{tarname}-%{version} |
33 |
sed -i 's/^\(ez_setup.use_setuptools\)/#\1/' setup.py |
34 |
|
35 |
%build |
36 |
PYTHONDONTWRITEBYTECODE= %__python setup.py build |
37 |
make -C docs/ html |
38 |
|
39 |
%install |
40 |
%__rm -rf %{buildroot} |
41 |
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot} |
42 |
|
43 |
%clean |
44 |
%__rm -rf %{buildroot} |
45 |
|
46 |
%files |
47 |
%defattr(-,root,root) |
48 |
%doc LICENSE README docs/_build/html |
49 |
%_bindir/* |
50 |
%py_puresitedir/%{module} |
51 |
%py_puresitedir/%{tarname}-*.egg-info |