]>
Commit | Line | Data |
---|---|---|
e4174b61 ER |
1 | # TODO |
2 | # - jquery, jquery-ui | |
3 | ||
4 | # Conditional build: | |
5 | %bcond_with tests # do not perform "make test" | |
6 | ||
7 | %define module deform_bootstrap | |
8 | Summary: Twitter Bootstrap compatible widgets, templates and styles for the deform form library | |
9 | Name: python-%{module} | |
10 | Version: 0.2.5 | |
bda30528 | 11 | Release: 2 |
e4174b61 ER |
12 | License: BSD-derived (http://www.repoze.org/LICENSE.txt) |
13 | Group: Libraries/Python | |
14 | Source0: http://pypi.python.org/packages/source/d/deform_bootstrap/%{module}-%{version}.tar.gz | |
bd498620 | 15 | # Source0-md5: 82b77818ae4d865127888c86b6598a07 |
e4174b61 ER |
16 | URL: http://pypi.python.org/pypi/deform_bootstrap |
17 | BuildRequires: python-distribute | |
18 | BuildRequires: rpm-pythonprov | |
19 | BuildRequires: rpmbuild(macros) >= 1.219 | |
20 | Requires: python-deform | |
21 | Requires: python-modules | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | deform_bootstrap provides Twitter Bootstrap compatible widgets, | |
27 | templates and styles for the deform form library. | |
28 | ||
29 | %prep | |
30 | %setup -q -n %{module}-%{version} | |
31 | ||
32 | %build | |
3c7046a7 | 33 | %py_build |
e4174b61 ER |
34 | |
35 | %{?with_tests:%{__python} setup.py test} | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
3c7046a7 | 39 | %py_install |
e4174b61 ER |
40 | |
41 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/demo | |
42 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests | |
43 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/static/*.less | |
44 | ||
45 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
46 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
47 | %py_postclean | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc README.rst CHANGES.txt | |
55 | %dir %{py_sitescriptdir}/%{module} | |
56 | %{py_sitescriptdir}/%{module}/*.py[co] | |
57 | %{py_sitescriptdir}/%{module}-%{version}*.egg-info | |
58 | %{py_sitescriptdir}/%{module}/templates | |
59 | %dir %{py_sitescriptdir}/%{module}/static | |
60 | %{py_sitescriptdir}/%{module}/static/bootstrap-datepicker.css | |
61 | %{py_sitescriptdir}/%{module}/static/bootstrap-datepicker.js | |
62 | %{py_sitescriptdir}/%{module}/static/bootstrap-typeahead.js | |
63 | %{py_sitescriptdir}/%{module}/static/bootstrap.min.js | |
64 | %{py_sitescriptdir}/%{module}/static/chosen_bootstrap.css | |
65 | %{py_sitescriptdir}/%{module}/static/deform_bootstrap.css | |
66 | %{py_sitescriptdir}/%{module}/static/deform_bootstrap.js | |
67 | %{py_sitescriptdir}/%{module}/static/jquery-1.7.1.min.js | |
68 | %{py_sitescriptdir}/%{module}/static/jquery-ui-1.8.18.custom.min.js | |
69 | %{py_sitescriptdir}/%{module}/static/jquery-ui-timepicker-addon-0.9.9.js | |
70 | %{py_sitescriptdir}/%{module}/static/jquery.form-2.96.js | |
71 | %{py_sitescriptdir}/%{module}/static/jquery.maskedinput-1.3.js | |
72 | %dir %{py_sitescriptdir}/%{module}/static/jquery_chosen | |
73 | %{py_sitescriptdir}/%{module}/static/jquery_chosen/chosen-sprite.png | |
74 | %{py_sitescriptdir}/%{module}/static/jquery_chosen/chosen.css | |
75 | %{py_sitescriptdir}/%{module}/static/jquery_chosen/chosen.jquery.js | |
76 | %{py_sitescriptdir}/%{module}/static/jquery_chosen/chosen.jquery.min.js |