]> git.pld-linux.org Git - packages/drupal-mod-img_assist.git/blob - drupal-mod-img_assist.spec
- unify drupal path macros
[packages/drupal-mod-img_assist.git] / drupal-mod-img_assist.spec
1 %define         modname img_assist
2 Summary:        Drupal Img_assist Module
3 Summary(pl):    Modu³ Img_assist dla Drupala
4 Name:           drupal-mod-%{modname}
5 Version:        4.6.0
6 Release:        0.11
7 Epoch:          0
8 License:        GPL
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 BuildRequires:  rpmbuild(macros) >= 1.194
14 Requires:       drupal >= 4.6.0
15 Requires:       drupal-mod-image
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _moddir         %{_datadir}/drupal/modules
20 %define         _htmlmoddir     %{_datadir}/drupal/htdocs/modules
21
22 %description
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
27 (categories). 
28
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.
32
33 %description -l pl
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).
39
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.
43
44 %prep
45 %setup -q -n %{modname}
46 rm -f LICENSE.txt # pure GPL
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_moddir},%{_htmlmoddir}}
51
52 install *.module $RPM_BUILD_ROOT%{_moddir}
53 install *.css *.js *.jpg $RPM_BUILD_ROOT%{_htmlmoddir}
54 ln -s ../htdocs/modules/directory.js $RPM_BUILD_ROOT%{_moddir}
55 ln -s ../htdocs/modules/properties.js $RPM_BUILD_ROOT%{_moddir}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 if [ "$1" = 1 ]; then
62 %banner -e %{name} <<EOF
63 To create tables needed for Drupal Img Assist module, issue these commands:
64 zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
65 EOF
66 fi
67
68 %files
69 %defattr(644,root,root,755)
70 %doc *.txt img_assist.{mysql,pgsql}
71 %{_moddir}/*.module
72 %{_moddir}/*.js
73 %{_htmlmoddir}/*.*
This page took 0.047908 seconds and 4 git commands to generate.