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