]> git.pld-linux.org Git - packages/python-djblets.git/blame - python-djblets.spec
up to 0.7.8
[packages/python-djblets.git] / python-djblets.spec
CommitLineData
c7545941
ER
1# TODO
2# - use system jquery, jquery-ui
f2c32113
ER
3Summary: A collection of useful classes and functions for Django
4Name: python-djblets
c7545941 5Version: 0.7.8
e839d5bd 6Release: 1
f2c32113
ER
7Group: Applications/Networking
8# Djblets is MIT licensed:
9# http://code.google.com/p/reviewboard/wiki/Djblets
c7545941 10# jQuery is bundled in Djblets. Jquery is dual-licensed MIT or GPLv2, hence
f2c32113
ER
11# the package license is "MIT and (MIT or GPLv2)":
12# https://www.redhat.com/archives/fedora-legal-list/2009-May/msg00025.html
13License: MIT and (MIT or GPL v2)
14URL: http://www.review-board.org/
c7545941
ER
15Source0: http://downloads.review-board.org/releases/Djblets/0.7/Djblets-%{version}.tar.gz
16# Source0-md5: 9540b0d25ba632c38cc3e3a41e659564
f2c32113
ER
17BuildRequires: python
18BuildRequires: python-devel
c7545941 19BuildRequires: python-django-pipeline >= 1.2.16
3c1a4f4c 20BuildRequires: python-modules
f2c32113 21BuildRequires: python-setuptools
3c1a4f4c 22BuildRequires: rpm-pythonprov
f2c32113
ER
23BuildRequires: sed >= 4.0
24Requires: python-PIL
c7545941
ER
25Requires: python-django >= 1.4.2
26Requires: python-django-pipeline >= 1.2.16
27Requires: python-feedparser >= 5.1.2
28Requires: python-pytz
f2c32113
ER
29BuildArch: noarch
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33A collection of useful classes and functions for Django
34
35%prep
36%setup -q -n Djblets-%{version}
c7545941
ER
37
38# Remove packaged egg-info so it's regenerated by setup.py
39%{__rm} -r Djblets*.egg-info
f2c32113
ER
40
41%build
42%{__python} setup.py build
43
44%install
45rm -rf $RPM_BUILD_ROOT
46%{__python} setup.py install \
47 --optimize=2 \
48 --root=$RPM_BUILD_ROOT
49
50%py_postclean
51
c7545941
ER
52# Remove bundled copy of feedparser.py
53#%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/djblets/feedview/feedparser.py*
54
55# Remove the "tests" subdirectory to avoid it polluting the main python namespace:
56%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
f2c32113
ER
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc NEWS
64%{py_sitescriptdir}/djblets
65%{py_sitescriptdir}/Djblets*.egg-info
This page took 0.097479 seconds and 4 git commands to generate.