SPECS: template-drupal-mod.spec - updated
glen
glen at pld-linux.org
Thu Dec 8 19:40:50 CET 2005
Author: glen Date: Thu Dec 8 18:40:50 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- updated
---- Files affected:
SPECS:
template-drupal-mod.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/template-drupal-mod.spec
diff -u SPECS/template-drupal-mod.spec:1.2 SPECS/template-drupal-mod.spec:1.3
--- SPECS/template-drupal-mod.spec:1.2 Mon Oct 10 11:35:25 2005
+++ SPECS/template-drupal-mod.spec Thu Dec 8 19:40:45 2005
@@ -1,10 +1,10 @@
# $Revision$, $Date$
-%define modname image
-Summary: Drupal Image Module
+%define modname ...
+Summary: Drupal ... Module
Name: drupal-mod-%{modname}
Version: 4.6.0
Release: 0.1
-License: GPL
+License: GPL / GPL v2
Group: Applications/WWW
Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
# Source0-md5: 0d218124ee86584375d4981ee1646a06
@@ -22,16 +22,19 @@
%define _htdocs %{_drupaldir}/htdocs
%define _podir %{_drupaldir}/po/%{modname}
%define _htmlmoddir %{_htdocs}/modules
+%define _htmlmoddir %{_htdocs}/modules/%{modname}
%description
%prep
%setup -q -n %{modname}
-#rm -f LICENSE.txt # pure GPL
+#rm -f LICENSE.txt # GPL
+#rm -f LICENSE.txt # GPL v2
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir},%{_incdir},%{_htdocs}}
+install -d $RPM_BUILD_ROOT%{_moddir}
install *.module $RPM_BUILD_ROOT%{_moddir}
install *.inc $RPM_BUILD_ROOT%{_incdir}
@@ -50,9 +53,22 @@
EOF
fi
+#%post
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
+To create ... MySQL database tables, import:
+zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
+For Postgresql file is:
+%{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
+EOF
+fi
+
%files
%defattr(644,root,root,755)
%doc *.txt po/*.pot *.php
+%doc *.txt
+%doc %{modname}.{mysql,pgsql}
+%doc %{modname}.mysql
%{_moddir}/*.module
%{_incdir}/*.inc
%{_podir}
@@ -64,6 +80,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2005/12/08 18:40:45 glen
+- updated
+
Revision 1.2 2005/10/10 09:35:25 glen
- avoid such error:
error: line 13: Unknown tag: RPM_SCRIPTVERBOSITY=5
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/template-drupal-mod.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list