]> git.pld-linux.org Git - packages/drupal-mod-spam.git/commitdiff
- new; for drupal 4.6
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 4 Dec 2006 14:23:41 +0000 (14:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal-mod-spam.spec -> 1.1

drupal-mod-spam.spec [new file with mode: 0644]

diff --git a/drupal-mod-spam.spec b/drupal-mod-spam.spec
new file mode 100644 (file)
index 0000000..2f0e02f
--- /dev/null
@@ -0,0 +1,60 @@
+%define                modname spam
+Summary:       Drupal Spam Module
+Name:          drupal-mod-%{modname}
+Version:       2.0.13
+Release:       0.1
+License:       BSD
+Group:         Applications/WWW
+Source0:       http://www.kerneltrap.org/jeremy/drupal/spam/spam-%{version}.tar.bz2
+# Source0-md5: e00cc205f912744ba0613d21618d5988
+URL:           http://www.kerneltrap.org/jeremy/drupal/spam/
+BuildRequires: rpmbuild(macros) >= 1.194
+Requires:      drupal >= 4.6
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/drupal
+%define                _drupaldir      %{_datadir}/drupal
+%define                _moddir         %{_drupaldir}/modules
+%define                _incdir         %{_drupaldir}/includes
+%define                _htdocs         %{_drupaldir}/htdocs
+%define                _podir          %{_drupaldir}/po/%{modname}
+%define                _htmlmoddir     %{_htdocs}/modules
+%define                _htmlmoddir     %{_htdocs}/modules/%{modname}
+
+%description
+The spam module is a powerful collection of tools designed to help
+website administrators to automatically deal with spam. Spam is any
+content that is posted to a website that is unrelated to the subject
+at hand, usually in the form of advertising and links back to the
+spammer's own website. This module can automatically detect spam,
+instantly unpublish it, and send notification to the site
+administrator.
+
+%prep
+%setup -q -n %{modname}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_moddir}
+
+install *.module $RPM_BUILD_ROOT%{_moddir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<EOF
+To create Spam MySQL database tables, import:
+zcat %{_docdir}/%{name}-%{version}/%{modname}.mysql.gz | mysql drupal
+For Postgresql file is:
+%{_docdir}/%{name}-%{version}/%{modname}.pgsql.gz
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt
+%doc %{modname}.{mysql,pgsql}
+%{_moddir}/*.module
This page took 0.106701 seconds and 4 git commands to generate.