]> git.pld-linux.org Git - packages/python-djblets.git/blob - python-djblets.spec
f314271d80c4cd1af109f07d8b76aac938d1a4c6
[packages/python-djblets.git] / python-djblets.spec
1 Summary:        A collection of useful classes and functions for Django
2 Name:           python-djblets
3 Version:        0.6.7
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.review-board.org/releases/Djblets/0.6/Djblets-%{version}.tar.gz
14 # Source0-md5:  0c5fb9556442bcf928a0609e54c9203d
15 BuildRequires:  python
16 BuildRequires:  python-devel
17 BuildRequires:  python-modules
18 BuildRequires:  python-setuptools
19 BuildRequires:  rpm-pythonprov
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
This page took 0.056775 seconds and 2 git commands to generate.