]>
Commit | Line | Data |
---|---|---|
64e332ab ER |
1 | %define modname spam |
2 | Summary: Drupal Spam Module | |
c2f21a12 | 3 | Summary(pl.UTF-8): Moduł Spam dla Drupala |
64e332ab ER |
4 | Name: drupal-mod-%{modname} |
5 | Version: 2.0.13 | |
6 | Release: 0.1 | |
7 | License: BSD | |
8 | Group: Applications/WWW | |
67b13b35 | 9 | Source0: http://kerneltrap.org/jeremy/drupal/spam/spam-%{version}.tar.bz2 |
64e332ab | 10 | # Source0-md5: e00cc205f912744ba0613d21618d5988 |
67b13b35 | 11 | URL: http://kerneltrap.org/jeremy/drupal/spam/ |
64e332ab ER |
12 | BuildRequires: rpmbuild(macros) >= 1.194 |
13 | Requires: drupal >= 4.6 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{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 | |
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 | |
33 | administrator. | |
34 | ||
ce2049a6 JR |
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. | |
91eef934 | 42 | |
64e332ab ER |
43 | %prep |
44 | %setup -q -n %{modname} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | install -d $RPM_BUILD_ROOT%{_moddir} | |
49 | ||
50 | install *.module $RPM_BUILD_ROOT%{_moddir} | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %post | |
56 | if [ "$1" = 1 ]; then | |
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 | |
62 | EOF | |
63 | fi | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc *.txt | |
68 | %doc %{modname}.{mysql,pgsql} | |
69 | %{_moddir}/*.module |