]> git.pld-linux.org Git - packages/drupal-mod-spam.git/blame - drupal-mod-spam.spec
- tabs in preamble
[packages/drupal-mod-spam.git] / drupal-mod-spam.spec
CommitLineData
64e332ab
ER
1%define modname spam
2Summary: Drupal Spam Module
c2f21a12 3Summary(pl.UTF-8): Moduł Spam dla Drupala
64e332ab
ER
4Name: drupal-mod-%{modname}
5Version: 2.0.13
6Release: 0.1
7License: BSD
8Group: Applications/WWW
9Source0: http://www.kerneltrap.org/jeremy/drupal/spam/spam-%{version}.tar.bz2
10# Source0-md5: e00cc205f912744ba0613d21618d5988
11URL: http://www.kerneltrap.org/jeremy/drupal/spam/
12BuildRequires: rpmbuild(macros) >= 1.194
13Requires: drupal >= 4.6
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
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}
25
26%description
27The spam module is a powerful collection of tools designed to help
28website administrators to automatically deal with spam. Spam is any
29content that is posted to a website that is unrelated to the subject
30at hand, usually in the form of advertising and links back to the
31spammer's own website. This module can automatically detect spam,
32instantly unpublish it, and send notification to the site
33administrator.
34
ce2049a6
JR
35%description -l pl.UTF-8
36Moduł spam to potężny zbiór narzędzi przygotowanych aby pomóc
37administratorom serwisów WWW automatycznie radzić sobie ze spamem.
38Spam to dowolna treść wysyłana na stronę nie związana z tematem,
39zwykle w postaci reklam i odnośników do własnego serwisu spamera. Ten
40moduł potrafi automatycznie wykrywać spam, natychmiast anulować jego
41publikację i wysłać powiadomienie do administratora serwisu.
91eef934 42
64e332ab
ER
43%prep
44%setup -q -n %{modname}
45
46%install
47rm -rf $RPM_BUILD_ROOT
48install -d $RPM_BUILD_ROOT%{_moddir}
49
50install *.module $RPM_BUILD_ROOT%{_moddir}
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post
56if [ "$1" = 1 ]; then
57%banner -e %{name} <<EOF
58To create Spam MySQL database tables, import:
59zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
60For Postgresql file is:
61%{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
62EOF
63fi
64
65%files
66%defattr(644,root,root,755)
67%doc *.txt
68%doc %{modname}.{mysql,pgsql}
69%{_moddir}/*.module
This page took 0.07212 seconds and 4 git commands to generate.