SPECS: drupal-mod-spam.spec (NEW) - new; for drupal 4.6

glen glen at pld-linux.org
Mon Dec 4 15:23:46 CET 2006


Author: glen                         Date: Mon Dec  4 14:23:46 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new; for drupal 4.6

---- Files affected:
SPECS:
   drupal-mod-spam.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/drupal-mod-spam.spec
diff -u /dev/null SPECS/drupal-mod-spam.spec:1.1
--- /dev/null	Mon Dec  4 15:23:46 2006
+++ SPECS/drupal-mod-spam.spec	Mon Dec  4 15:23:41 2006
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+%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
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/12/04 14:23:41  glen
+- new; for drupal 4.6
+
================================================================


More information about the pld-cvs-commit mailing list