SPECS: drupal-mod-image.spec - include .po files in drupal/po/ dir
glen
glen at pld-linux.org
Tue Jul 5 19:14:10 CEST 2005
Author: glen Date: Tue Jul 5 17:14:10 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- include .po files in drupal/po/ dir
---- Files affected:
SPECS:
drupal-mod-image.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/drupal-mod-image.spec
diff -u SPECS/drupal-mod-image.spec:1.1 SPECS/drupal-mod-image.spec:1.2
--- SPECS/drupal-mod-image.spec:1.1 Tue Jul 5 16:53:24 2005
+++ SPECS/drupal-mod-image.spec Tue Jul 5 19:14:05 2005
@@ -3,7 +3,7 @@
Summary: Drupal Image Module
Name: drupal-mod-%{modname}
Version: 4.6.0
-Release: 0.2
+Release: 0.7
Epoch: 0
License: GPL
Group: Applications/WWW
@@ -11,10 +11,12 @@
# Source0-md5: 0d218124ee86584375d4981ee1646a06
URL: http://drupal.org/project/image
Requires: drupal >= 4.6.0
+Requires: ImageMagick
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _moddir %{_datadir}/drupal/modules
+%define _podir %{_datadir}/drupal/po/%{modname}
%description
This module allow users with proper permissions to upload images into
@@ -29,26 +31,33 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_moddir}
+install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir}}
install *.module $RPM_BUILD_ROOT%{_moddir}
install *.inc *.module *.php $RPM_BUILD_ROOT%{_moddir}
# FIXME. not in public dir
install *.css $RPM_BUILD_ROOT%{_moddir}
-cp -a po $RPM_BUILD_ROOT%{_moddir}
+cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
+If you want to use localization, then you need to upload .po files
+from %{_podir} via drupal locatization admin.
+
+EOF
+fi
+
%files
%defattr(644,root,root,755)
%doc *.txt
%{_moddir}/*.module
%{_moddir}/*.inc
%{_moddir}/*.php
-# FIXME
-%dir %{_moddir}/po
-%{_moddir}/po/*
+%{_podir}
# TODO
%{_moddir}/*.css
@@ -58,6 +67,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2005/07/05 17:14:05 glen
+- include .po files in drupal/po/ dir
+
Revision 1.1 2005/07/05 14:53:24 glen
- new
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/drupal-mod-image.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list