]> git.pld-linux.org Git - packages/drupal-mod-spam.git/blame - drupal-mod-spam.spec
- new; for drupal 4.6
[packages/drupal-mod-spam.git] / drupal-mod-spam.spec
CommitLineData
64e332ab
ER
1%define modname spam
2Summary: Drupal Spam Module
3Name: drupal-mod-%{modname}
4Version: 2.0.13
5Release: 0.1
6License: BSD
7Group: Applications/WWW
8Source0: http://www.kerneltrap.org/jeremy/drupal/spam/spam-%{version}.tar.bz2
9# Source0-md5: e00cc205f912744ba0613d21618d5988
10URL: http://www.kerneltrap.org/jeremy/drupal/spam/
11BuildRequires: rpmbuild(macros) >= 1.194
12Requires: drupal >= 4.6
13BuildArch: noarch
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%define _sysconfdir /etc/drupal
17%define _drupaldir %{_datadir}/drupal
18%define _moddir %{_drupaldir}/modules
19%define _incdir %{_drupaldir}/includes
20%define _htdocs %{_drupaldir}/htdocs
21%define _podir %{_drupaldir}/po/%{modname}
22%define _htmlmoddir %{_htdocs}/modules
23%define _htmlmoddir %{_htdocs}/modules/%{modname}
24
25%description
26The spam module is a powerful collection of tools designed to help
27website administrators to automatically deal with spam. Spam is any
28content that is posted to a website that is unrelated to the subject
29at hand, usually in the form of advertising and links back to the
30spammer's own website. This module can automatically detect spam,
31instantly unpublish it, and send notification to the site
32administrator.
33
34%prep
35%setup -q -n %{modname}
36
37%install
38rm -rf $RPM_BUILD_ROOT
39install -d $RPM_BUILD_ROOT%{_moddir}
40
41install *.module $RPM_BUILD_ROOT%{_moddir}
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%post
47if [ "$1" = 1 ]; then
48%banner -e %{name} <<EOF
49To create Spam MySQL database tables, import:
50zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
51For Postgresql file is:
52%{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
53EOF
54fi
55
56%files
57%defattr(644,root,root,755)
58%doc *.txt
59%doc %{modname}.{mysql,pgsql}
60%{_moddir}/*.module
This page took 0.057646 seconds and 4 git commands to generate.