1 %define modname img_assist
2 Summary: Drupal Img_assist Module
3 Summary(pl): Modu³ Img_assist dla Drupala
4 Name: drupal-mod-%{modname}
9 Group: Applications/WWW
10 Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
11 # Source0-md5: 4b1c6d159005fee95ed40b6fd17085d4
12 URL: http://drupal.org/project/img_assist
13 Requires: drupal >= 4.6.0
14 Requires: drupal-mod-image
15 Requires: drupal-mod-upload
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _moddir %{_datadir}/drupal/modules
20 %define _htmldir %{_datadir}/drupal/htdocs/modules
23 This module generates an image icon next to the textarea fields of you
24 choice. Clicking the icon opens an image browsing window, displaying
25 all images that have been uploaded through image module, upload module
26 or img_assist. Images can be filtered by ownership or taxonomic terms
29 Img_assist can also be used when adding images from a rich-text
30 editor. This feature currently exists for TinyMCE. Support for
31 Htmlarea is also planned.
34 Ten modu³ generuje ikony przy wybranych polach tekstowych. Klikniêcie
35 ikony otwiera okno przegl±dania obrazków, wy¶wietlaj±c wszystkie
36 obrazki umieszczone poprzez modu³ image, modu³ upload albo img_assist.
37 Obrazki mog± byæ filtrowane po w³a¶cicielu lub warunkach
38 systematycznych (kategoriach).
40 Img_assist mo¿na tak¿e u¿ywaæ do dodawania obrazków z edytora
41 rich-tekstu. Ta opcja aktualnie istnieje dla TinyMCE. Planowana jest
42 tak¿e obs³uga Htmlarea.
45 %setup -q -n %{modname}
46 rm -f LICENSE.txt # pure GPL
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_moddir},%{_htmldir}}
52 install *.module $RPM_BUILD_ROOT%{_moddir}
53 install *.css *.js *.jpg $RPM_BUILD_ROOT%{_htmldir}
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc *.txt img_assist.{mysql,pgsql}