1 Summary: A collection of useful classes and functions for Django
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.review-board.org/releases/Djblets/0.6/Djblets-%{version}.tar.gz
14 # Source0-md5: 0c5fb9556442bcf928a0609e54c9203d
16 BuildRequires: python-devel
17 BuildRequires: python-modules
18 BuildRequires: python-setuptools
19 BuildRequires: rpm-pythonprov
20 BuildRequires: sed >= 4.0
22 Requires: python-django >= 1.1.1
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 A collection of useful classes and functions for Django
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
35 %{__python} setup.py build
38 rm -rf $RPM_BUILD_ROOT
39 %{__python} setup.py install \
41 --root=$RPM_BUILD_ROOT
45 # Remove the "tests" subdirectory to avoid it polluting the main python
47 rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %{py_sitescriptdir}/djblets
56 %{py_sitescriptdir}/Djblets*.egg-info