]> git.pld-linux.org Git - SPECS.git/blob - python-djblets.spec
SPECS updated Tue 30 Apr 15:06:09 CEST 2024
[SPECS.git] / python-djblets.spec
1 # TODO
2 # - use system jquery, jquery-ui
3 Summary:        A collection of useful classes and functions for Django
4 Name:           python-djblets
5 Version:        0.7.10
6 Release:        3
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 BuildRequires:  rpmbuild(macros) >= 1.710
16 Source0:        http://downloads.review-board.org/releases/Djblets/0.7/Djblets-%{version}.tar.gz
17 # Source0-md5:  c2e1987fc6badad138743aa0ea009922
18 BuildRequires:  fslint
19 BuildRequires:  python
20 BuildRequires:  python-devel
21 BuildRequires:  python-django-pipeline >= 1.2.24
22 BuildRequires:  python-modules
23 BuildRequires:  python-setuptools
24 BuildRequires:  rpm-pythonprov
25 BuildRequires:  sed >= 4.0
26 Requires:       python-PIL
27 Requires:       python-django >= 1.4.2
28 Requires:       python-django-pipeline >= 1.2.24
29 Requires:       python-feedparser >= 5.1.2
30 Requires:       python-pytz
31 BuildArch:      noarch
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 A collection of useful classes and functions for Django
36
37 %prep
38 %setup -q -n Djblets-%{version}
39
40 # Remove packaged egg-info so it's regenerated by setup.py
41 %{__rm} -r Djblets*.egg-info
42
43 %build
44 %py_build
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 %py_install
49
50 %py_postclean
51
52 # hardlink files with fingerprinted variants
53 findup -m $RPM_BUILD_ROOT
54
55 # Remove the "tests" subdirectory to avoid it polluting the main python namespace:
56 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/tests
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc AUTHORS NEWS README
64 %{py_sitescriptdir}/djblets
65 %{py_sitescriptdir}/Djblets*.egg-info
This page took 0.257695 seconds and 3 git commands to generate.