%{?drupal7_find_provides_and_requires} %global module honeypot Name: drupal7-%{module} Version: 1.22 Release: 1%{?dist} Summary: Mitigates spam form submissions using the honeypot method Group: Applications/Publishing License: GPLv2+ URL: http://drupal.org/project/%{module} Source0: http://ftp.drupal.org/files/projects/%{module}-7.x-%{version}.tar.gz BuildArch: noarch BuildRequires: drupal7-rpmbuild >= 7.23-3 # phpcompatinfo (computed from version 1.22) Requires: php-ctype Requires: php-pcre %description Honeypot uses both the honeypot and timestamp methods of deterring spam bots from completing forms on your Drupal site (read more here). These methods are effective against many spam bots, and are not as intrusive as CAPTCHAs or other methods which punish the user [YouTube]. The module currently supports enabling for all forms on the site, or particular forms like user registration or password reset forms, webforms, contact forms, node forms, and comment forms. This package provides the following Drupal module: * %{module} %prep %setup -qn %{module} : Licenses and docs mkdir -p .rpm/{licenses,docs} mv LICENSE.txt .rpm/licenses/ mv *.txt .rpm/docs/ %build # Empty build section, nothing to build %install mkdir -p %{buildroot}%{drupal7_modules}/%{module} cp -pr * %{buildroot}%{drupal7_modules}/%{module}/ %files %{!?_licensedir:%global license %%doc} %license .rpm/licenses/* %doc .rpm/docs/* %{drupal7_modules}/%{module} %changelog * Thu Jan 12 2017 Shawn Iwinski - 1.22-1 - Update to 1.22 - Spec cleanup * Sat May 24 2014 Peter Borsa 1.16-1 - Initial package