2 Summary: Drupal ... Module
3 Name: drupal-mod-%{modname}
7 Group: Applications/WWW
8 Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
9 # Source0-md5: 0d218124ee86584375d4981ee1646a06
10 URL: http://drupal.org/project/image
12 #BuildRequires: rpmbuild(macros) >= 1.194
13 Requires: drupal >= 4.6.0
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _sysconfdir /etc/drupal
18 %define _drupaldir %{_datadir}/drupal
19 %define _moddir %{_drupaldir}/modules
20 %define _incdir %{_drupaldir}/includes
21 %define _htdocs %{_drupaldir}/htdocs
22 %define _podir %{_drupaldir}/po/%{modname}
23 %define _htmlmoddir %{_htdocs}/modules
24 %define _htmlmoddir %{_htdocs}/modules/%{modname}
29 %setup -q -n %{modname}
30 #rm -f LICENSE.txt # GPL
31 #rm -f LICENSE.txt # GPL v2
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir},%{_incdir},%{_htdocs}}
36 install -d $RPM_BUILD_ROOT%{_moddir}
38 install *.module $RPM_BUILD_ROOT%{_moddir}
39 install *.inc $RPM_BUILD_ROOT%{_incdir}
40 install *.css $RPM_BUILD_ROOT%{_htmlmoddir}
41 cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
44 rm -rf $RPM_BUILD_ROOT
48 %banner -e %{name} <<EOF
49 If you want to use localization, then you need to upload .po files
50 from %{_podir} via drupal locatization admin.
57 %banner -e %{name} <<EOF
58 To create ... MySQL database tables, import:
59 zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
60 For Postgresql file is:
61 %{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
66 %defattr(644,root,root,755)
67 %doc *.txt po/*.pot *.php
69 %doc %{modname}.{mysql,pgsql}