]>
Commit | Line | Data |
---|---|---|
56959d3f ER |
1 | %define modname img_assist |
2 | Summary: Drupal Img_assist Module | |
44760185 | 3 | Summary(pl.UTF-8): Moduł Img_assist dla Drupala |
56959d3f ER |
4 | Name: drupal-mod-%{modname} |
5 | Version: 4.6.0 | |
5d72bc1e | 6 | Release: 0.17 |
56959d3f ER |
7 | License: GPL |
8 | Group: Applications/WWW | |
9 | Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz | |
5d72bc1e | 10 | # Source0-md5: 4a38eb192ea4e1276ee6043067271003 |
56959d3f | 11 | URL: http://drupal.org/project/img_assist |
5020b8b6 | 12 | BuildRequires: rpmbuild(macros) >= 1.194 |
56959d3f | 13 | Requires: drupal >= 4.6.0 |
fec19d40 | 14 | Requires: drupal-mod-image |
56959d3f ER |
15 | BuildArch: noarch |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
f6f86fd5 ER |
18 | %define _drupaldir %{_datadir}/drupal |
19 | %define _moddir %{_drupaldir}/modules | |
20 | %define _htdocs %{_drupaldir}/htdocs | |
21 | %define _htmlmoddir %{_htdocs}/modules | |
56959d3f ER |
22 | |
23 | %description | |
24 | This module generates an image icon next to the textarea fields of you | |
25 | choice. Clicking the icon opens an image browsing window, displaying | |
26 | all images that have been uploaded through image module, upload module | |
27 | or img_assist. Images can be filtered by ownership or taxonomic terms | |
28 | (categories). | |
29 | ||
30 | Img_assist can also be used when adding images from a rich-text | |
31 | editor. This feature currently exists for TinyMCE. Support for | |
32 | Htmlarea is also planned. | |
33 | ||
45fb3475 JR |
34 | %description -l pl.UTF-8 |
35 | Ten moduł generuje ikony przy wybranych polach tekstowych. Kliknięcie | |
36 | ikony otwiera okno przeglądania obrazków, wyświetlając wszystkie | |
37 | obrazki umieszczone poprzez moduł image, moduł upload albo img_assist. | |
38 | Obrazki mogą być filtrowane po właścicielu lub warunkach | |
59bc9f89 JB |
39 | systematycznych (kategoriach). |
40 | ||
45fb3475 | 41 | Img_assist można także używać do dodawania obrazków z edytora |
59bc9f89 | 42 | rich-tekstu. Ta opcja aktualnie istnieje dla TinyMCE. Planowana jest |
45fb3475 | 43 | także obsługa Htmlarea. |
59bc9f89 | 44 | |
56959d3f ER |
45 | %prep |
46 | %setup -q -n %{modname} | |
47 | rm -f LICENSE.txt # pure GPL | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
b1758e7b | 51 | install -d $RPM_BUILD_ROOT{%{_moddir},%{_htmlmoddir}} |
56959d3f ER |
52 | |
53 | install *.module $RPM_BUILD_ROOT%{_moddir} | |
b1758e7b | 54 | install *.css *.js *.jpg $RPM_BUILD_ROOT%{_htmlmoddir} |
5020b8b6 ER |
55 | ln -s ../htdocs/modules/directory.js $RPM_BUILD_ROOT%{_moddir} |
56 | ln -s ../htdocs/modules/properties.js $RPM_BUILD_ROOT%{_moddir} | |
56959d3f ER |
57 | |
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
5020b8b6 ER |
61 | %post |
62 | if [ "$1" = 1 ]; then | |
63 | %banner -e %{name} <<EOF | |
64 | To create tables needed for Drupal Img Assist module, issue these commands: | |
65 | zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal | |
66 | EOF | |
67 | fi | |
68 | ||
56959d3f ER |
69 | %files |
70 | %defattr(644,root,root,755) | |
71 | %doc *.txt img_assist.{mysql,pgsql} | |
72 | %{_moddir}/*.module | |
5020b8b6 | 73 | %{_moddir}/*.js |
b1758e7b | 74 | %{_htmlmoddir}/*.* |