2 Summary: Drupal Spam Module
3 Summary(pl.UTF-8): Moduł Spam dla Drupala
4 Name: drupal-mod-%{modname}
8 Group: Applications/WWW
9 Source0: http://kerneltrap.org/jeremy/drupal/spam/spam-%{version}.tar.bz2
10 # Source0-md5: e00cc205f912744ba0613d21618d5988
11 URL: http://kerneltrap.org/jeremy/drupal/spam/
12 BuildRequires: rpmbuild(macros) >= 1.194
13 Requires: drupal >= 4.6
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}
27 The spam module is a powerful collection of tools designed to help
28 website administrators to automatically deal with spam. Spam is any
29 content that is posted to a website that is unrelated to the subject
30 at hand, usually in the form of advertising and links back to the
31 spammer's own website. This module can automatically detect spam,
32 instantly unpublish it, and send notification to the site
35 %description -l pl.UTF-8
36 Moduł spam to potężny zbiór narzędzi przygotowanych aby pomóc
37 administratorom serwisów WWW automatycznie radzić sobie ze spamem.
38 Spam to dowolna treść wysyłana na stronę nie związana z tematem,
39 zwykle w postaci reklam i odnośników do własnego serwisu spamera. Ten
40 moduł potrafi automatycznie wykrywać spam, natychmiast anulować jego
41 publikację i wysłać powiadomienie do administratora serwisu.
44 %setup -q -n %{modname}
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_moddir}
50 install *.module $RPM_BUILD_ROOT%{_moddir}
53 rm -rf $RPM_BUILD_ROOT
57 %banner -e %{name} <<EOF
58 To create Spam 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)
68 %doc %{modname}.{mysql,pgsql}