]> git.pld-linux.org Git - packages/drupal-mod-img_assist.git/blobdiff - drupal-mod-img_assist.spec
- tabs in preamble
[packages/drupal-mod-img_assist.git] / drupal-mod-img_assist.spec
index 6e2aaf14e730e75caf5d0f3c810e8979f77990f7..133ac4e1f74b77cabc781106b1078cefe284f37e 100644 (file)
@@ -1,23 +1,24 @@
 %define                modname img_assist
 Summary:       Drupal Img_assist Module
-Summary(pl):   Modu³ Img_assist dla Drupala
+Summary(pl.UTF-8):     Moduł Img_assist dla Drupala
 Name:          drupal-mod-%{modname}
 Version:       4.6.0
-Release:       0.7
-Epoch:         0
+Release:       0.17
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
-# Source0-md5: 4b1c6d159005fee95ed40b6fd17085d4
+# Source0-md5: 4a38eb192ea4e1276ee6043067271003
 URL:           http://drupal.org/project/img_assist
+BuildRequires: rpmbuild(macros) >= 1.194
 Requires:      drupal >= 4.6.0
 Requires:      drupal-mod-image
-Requires:      drupal-mod-upload
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _moddir         %{_datadir}/drupal/modules
-%define                _htmldir        %{_datadir}/drupal/htdocs/modules
+%define                _drupaldir      %{_datadir}/drupal
+%define                _moddir         %{_drupaldir}/modules
+%define                _htdocs         %{_drupaldir}/htdocs
+%define                _htmlmoddir     %{_htdocs}/modules
 
 %description
 This module generates an image icon next to the textarea fields of you
@@ -30,16 +31,16 @@ Img_assist can also be used when adding images from a rich-text
 editor. This feature currently exists for TinyMCE. Support for
 Htmlarea is also planned.
 
-%description -l pl
-Ten modu³ generuje ikony przy wybranych polach tekstowych. Klikniêcie
-ikony otwiera okno przegl±dania obrazków, wy¶wietlaj±c wszystkie
-obrazki umieszczone poprzez modu³ image, modu³ upload albo img_assist.
-Obrazki mog± byæ filtrowane po w³a¶cicielu lub warunkach
+%description -l pl.UTF-8
+Ten moduł generuje ikony przy wybranych polach tekstowych. Kliknięcie
+ikony otwiera okno przeglądania obrazków, wyświetlając wszystkie
+obrazki umieszczone poprzez moduł image, moduł upload albo img_assist.
+Obrazki mogą być filtrowane po właścicielu lub warunkach
 systematycznych (kategoriach).
 
-Img_assist mo¿na tak¿e u¿ywaæ do dodawania obrazków z edytora
+Img_assist można także używać do dodawania obrazków z edytora
 rich-tekstu. Ta opcja aktualnie istnieje dla TinyMCE. Planowana jest
-tak¿e obs³uga Htmlarea.
+także obsługa Htmlarea.
 
 %prep
 %setup -q -n %{modname}
@@ -47,16 +48,27 @@ rm -f LICENSE.txt # pure GPL
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_moddir},%{_htmldir}}
+install -d $RPM_BUILD_ROOT{%{_moddir},%{_htmlmoddir}}
 
 install *.module $RPM_BUILD_ROOT%{_moddir}
-install *.css *.js *.jpg $RPM_BUILD_ROOT%{_htmldir}
+install *.css *.js *.jpg $RPM_BUILD_ROOT%{_htmlmoddir}
+ln -s ../htdocs/modules/directory.js $RPM_BUILD_ROOT%{_moddir}
+ln -s ../htdocs/modules/properties.js $RPM_BUILD_ROOT%{_moddir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
+To create tables needed for Drupal Img Assist module, issue these commands:
+zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
+EOF
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc *.txt img_assist.{mysql,pgsql}
 %{_moddir}/*.module
-%{_htmldir}/*.*
+%{_moddir}/*.js
+%{_htmlmoddir}/*.*
This page took 0.068659 seconds and 4 git commands to generate.