]>
Commit | Line | Data |
---|---|---|
f2c32113 ER |
1 | Summary: A collection of useful classes and functions for Django |
2 | Name: python-djblets | |
3 | Version: 0.5.9 | |
4 | Release: 1 | |
5 | Group: Applications/Networking | |
6 | # Djblets is MIT licensed: | |
7 | # http://code.google.com/p/reviewboard/wiki/Djblets | |
8 | # Jquery is bundled in Djblets. Jquery is dual-licensed MIT or GPLv2, hence | |
9 | # the package license is "MIT and (MIT or GPLv2)": | |
10 | # https://www.redhat.com/archives/fedora-legal-list/2009-May/msg00025.html | |
11 | License: MIT and (MIT or GPL v2) | |
12 | URL: http://www.review-board.org/ | |
13 | Source0: http://downloads.reviewboard.org/releases/Djblets/0.5/Djblets-%{version}.tar.gz | |
14 | # Source0-md5: 389476bf51066392d769837ddb3068ef | |
15 | BuildRequires: python | |
16 | BuildRequires: python-devel | |
3c1a4f4c | 17 | BuildRequires: python-modules |
f2c32113 | 18 | BuildRequires: python-setuptools |
3c1a4f4c | 19 | BuildRequires: rpm-pythonprov |
f2c32113 ER |
20 | BuildRequires: sed >= 4.0 |
21 | Requires: python-PIL | |
22 | Requires: python-django >= 1.1.1 | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | A collection of useful classes and functions for Django | |
28 | ||
29 | %prep | |
30 | %setup -q -n Djblets-%{version} | |
31 | %{__sed} -i -e 's/^from ez_setup/#from ez_setup/' setup.py | |
32 | %{__sed} -i -e 's/^use_setuptools()/#use_setuptools()/' setup.py | |
33 | ||
34 | %build | |
35 | %{__python} setup.py build | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | %{__python} setup.py install \ | |
40 | --optimize=2 \ | |
41 | --root=$RPM_BUILD_ROOT | |
42 | ||
43 | %py_postclean | |
44 | ||
45 | # Remove the "tests" subdirectory to avoid it polluting the main python | |
46 | # namespace: | |
47 | rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc NEWS | |
55 | %{py_sitescriptdir}/djblets | |
56 | %{py_sitescriptdir}/Djblets*.egg-info |