]> git.pld-linux.org Git - packages/python-djblets.git/blame - python-djblets.spec
- BR: python-modules, rpm-pythonprov
[packages/python-djblets.git] / python-djblets.spec
CommitLineData
f2c32113
ER
1Summary: A collection of useful classes and functions for Django
2Name: python-djblets
3Version: 0.5.9
4Release: 1
5Group: 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
11License: MIT and (MIT or GPL v2)
12URL: http://www.review-board.org/
13Source0: http://downloads.reviewboard.org/releases/Djblets/0.5/Djblets-%{version}.tar.gz
14# Source0-md5: 389476bf51066392d769837ddb3068ef
15BuildRequires: python
16BuildRequires: python-devel
3c1a4f4c 17BuildRequires: python-modules
f2c32113 18BuildRequires: python-setuptools
3c1a4f4c 19BuildRequires: rpm-pythonprov
f2c32113
ER
20BuildRequires: sed >= 4.0
21Requires: python-PIL
22Requires: python-django >= 1.1.1
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27A 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
38rm -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:
47rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
48
49%clean
50rm -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.075234 seconds and 4 git commands to generate.