]> git.pld-linux.org Git - packages/drupal-mod-img_assist.git/blobdiff - drupal-mod-img_assist.spec
- %banner for table creation help
[packages/drupal-mod-img_assist.git] / drupal-mod-img_assist.spec
index 6e2aaf14e730e75caf5d0f3c810e8979f77990f7..d8e9f71c4ecad8d398b69ca64470eb2a842c6db9 100644 (file)
@@ -3,13 +3,14 @@ Summary:      Drupal Img_assist Module
 Summary(pl):   Modu³ Img_assist dla Drupala
 Name:          drupal-mod-%{modname}
 Version:       4.6.0
-Release:       0.7
+Release:       0.9
 Epoch:         0
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
 # Source0-md5: 4b1c6d159005fee95ed40b6fd17085d4
 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
@@ -51,12 +52,23 @@ install -d $RPM_BUILD_ROOT{%{_moddir},%{_htmldir}}
 
 install *.module $RPM_BUILD_ROOT%{_moddir}
 install *.css *.js *.jpg $RPM_BUILD_ROOT%{_htmldir}
+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
+%{_moddir}/*.js
 %{_htmldir}/*.*
This page took 0.188987 seconds and 4 git commands to generate.