2 # - use system jquery, jquery-ui
3 Summary: A collection of useful classes and functions for Django
7 Group: Applications/Networking
8 # Djblets is MIT licensed:
9 # http://code.google.com/p/reviewboard/wiki/Djblets
10 # jQuery is bundled in Djblets. Jquery is dual-licensed MIT or GPLv2, hence
11 # the package license is "MIT and (MIT or GPLv2)":
12 # https://www.redhat.com/archives/fedora-legal-list/2009-May/msg00025.html
13 License: MIT and (MIT or GPL v2)
14 URL: http://www.review-board.org/
15 Source0: http://downloads.review-board.org/releases/Djblets/0.7/Djblets-%{version}.tar.gz
16 # Source0-md5: 9540b0d25ba632c38cc3e3a41e659564
18 BuildRequires: python-devel
19 BuildRequires: python-django-pipeline >= 1.2.16
20 BuildRequires: python-modules
21 BuildRequires: python-setuptools
22 BuildRequires: rpm-pythonprov
23 BuildRequires: sed >= 4.0
25 Requires: python-django >= 1.4.2
26 Requires: python-django-pipeline >= 1.2.16
27 Requires: python-feedparser >= 5.1.2
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 A collection of useful classes and functions for Django
36 %setup -q -n Djblets-%{version}
38 # Remove packaged egg-info so it's regenerated by setup.py
39 %{__rm} -r Djblets*.egg-info
42 %{__python} setup.py build
45 rm -rf $RPM_BUILD_ROOT
46 %{__python} setup.py install \
48 --root=$RPM_BUILD_ROOT
52 # Remove bundled copy of feedparser.py
53 #%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/djblets/feedview/feedparser.py*
55 # Remove the "tests" subdirectory to avoid it polluting the main python namespace:
56 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{py_sitescriptdir}/djblets
65 %{py_sitescriptdir}/Djblets*.egg-info