]>
Commit | Line | Data |
---|---|---|
60818edf | 1 | Summary: PHP-based software which blocks automated link spam |
a3954d40 | 2 | Summary(pl.UTF-8): Oparte na PHP oprogramowanie blokujące spam z automatycznych odnośników |
60818edf | 3 | Name: bad-behavior |
73f6cffb | 4 | Version: 2.0.23 |
05802bb6 | 5 | Release: 1 |
60818edf ER |
6 | License: GPL v2 |
7 | Group: Applications/WWW | |
7dfa6ac5 | 8 | Source0: http://downloads.wordpress.org/plugin/%{name}.%{version}.zip |
7064f5a6 | 9 | # Source0-md5: 603e59be572c84647f94e8a2c96b7625 |
3a446af5 | 10 | URL: http://www.bad-behavior.ioerror.us/ |
f28a0345 | 11 | BuildRequires: unzip |
60818edf ER |
12 | BuildArch: noarch |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %define _appdir %{_datadir}/php/%{name} | |
16 | ||
17 | %description | |
18 | Bad Behavior is a set of PHP scripts which prevents spambots from | |
19 | accessing your site by analyzing their actual HTTP requests and | |
20 | comparing them to profiles from known spambots. It goes far beyond | |
21 | User-Agent and Referer, however. Bad Behavior is available for several | |
22 | PHP-based software packages, and also can be integrated in seconds | |
23 | into any PHP script. | |
24 | ||
12cd7d72 JR |
25 | %description -l pl.UTF-8 |
26 | Bad Behavior to zbiór skryptów PHP zapobiegający dostępowi spambotów | |
27 | do strony poprzez analizę ich żądań HTTP i porównywanie z profilami | |
28 | znanych spambotów. Wykracza znacząco poza User-Agent i Referer. Bad | |
29 | Behavior jest dostępny dla kilku opartych na PHP pakietów, może być | |
30 | także zintegrowany w krótkim czasie z dowolnym skryptem PHP. | |
17425129 | 31 | |
60818edf | 32 | %prep |
aa2f8521 ER |
33 | %setup -qcT |
34 | %{__unzip} -qq -a %{SOURCE0} | |
7dfa6ac5 | 35 | cd bad-behavior |
aa2f8521 | 36 | rm index.html bad-behavior/index.html |
60818edf ER |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
7dfa6ac5 | 40 | cd bad-behavior |
60818edf | 41 | install -d $RPM_BUILD_ROOT%{_appdir} |
05802bb6 | 42 | cp -a bad-behavior* $RPM_BUILD_ROOT%{_appdir} |
60818edf ER |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
7dfa6ac5 ER |
49 | %doc bad-behavior/README.txt |
50 | %dir %{_appdir} | |
51 | %{_appdir}/bad-behavior | |
52 | %{_appdir}/bad-behavior-generic.php | |
53 | %{_appdir}/bad-behavior-lifetype.php | |
54 | %{_appdir}/bad-behavior-mediawiki.php | |
55 | %{_appdir}/bad-behavior-wordpress-admin.php | |
56 | %{_appdir}/bad-behavior-wordpress.php |