1 %define modname urlfilter
2 Summary: Drupal URL Filter Module
3 Name: drupal-mod-%{modname}
7 Group: Applications/WWW
8 Source0: http://drupal.org/files/projects/%{modname}-%{version}.tar.gz
9 # Source0-md5: bd7d7cc306a54d7f463dba53334a54cc
10 URL: http://drupal.org/project/urlfilter
11 BuildRequires: rpmbuild(macros) >= 1.194
12 Requires: drupal >= 4.6.0
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _drupaldir %{_datadir}/drupal
17 %define _moddir %{_drupaldir}/modules
18 %define _podir %{_drupaldir}/po/%{modname}
21 This is a simple filter module. It automatically converts URLs (http,
22 ftp, email, ...) into hyperlinks.
25 %setup -q -n %{modname}
26 rm -f LICENSE.txt # GPL v2
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir}}
32 install *.module $RPM_BUILD_ROOT%{_moddir}
33 cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
36 rm -rf $RPM_BUILD_ROOT
40 %banner -e %{name} <<EOF
41 If you want to use localization, then you need to upload .po files
42 from %{_podir} via drupal locatization admin.
48 %defattr(644,root,root,755)