]>
Commit | Line | Data |
---|---|---|
60818edf ER |
1 | Summary: PHP-based software which blocks automated link spam |
2 | Name: bad-behavior | |
3 | Version: 1.2.4 | |
4 | Release: 0.7 | |
5 | License: GPL v2 | |
6 | Group: Applications/WWW | |
7 | Source0: http://www.homelandstupidity.us/download/%{name}-%{version}.zip | |
8 | # Source0-md5: 2f7db82336542af415d59d7b0a52687f | |
9 | URL: http://www.homelandstupidity.us/software/bad-behavior/ | |
10 | BuildArch: noarch | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %define _appdir %{_datadir}/php/%{name} | |
14 | ||
15 | %description | |
16 | Bad Behavior is a set of PHP scripts which prevents spambots from | |
17 | accessing your site by analyzing their actual HTTP requests and | |
18 | comparing them to profiles from known spambots. It goes far beyond | |
19 | User-Agent and Referer, however. Bad Behavior is available for several | |
20 | PHP-based software packages, and also can be integrated in seconds | |
21 | into any PHP script. | |
22 | ||
23 | %prep | |
24 | %setup -qcT -n %{name} | |
25 | %{__unzip} -qq -a %{SOURCE0} -d .. | |
26 | ||
27 | %install | |
28 | rm -rf $RPM_BUILD_ROOT | |
29 | install -d $RPM_BUILD_ROOT%{_appdir} | |
30 | cp -a *.php $RPM_BUILD_ROOT%{_appdir} | |
31 | ||
32 | %clean | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %files | |
36 | %defattr(644,root,root,755) | |
37 | %doc README.txt | |
38 | %{_appdir} |