]>
Commit | Line | Data |
---|---|---|
aa2edd3c ER |
1 | # NOTE |
2 | # - the md5 is different in various wp backends, so invoke this to find the most used one and fetchsrc_request several times until distfiles catches the same one: | |
b255d899 | 3 | # while sleep 1; do rm *.zip; ./md5 php-bad-behavior.spec; done |
bdb1d172 | 4 | Summary: PHP-based software which blocks automated link spam |
a21366ef | 5 | Summary(pl.UTF-8): Oparte na PHP oprogramowanie blokujące spam z automatycznych odnośników |
b255d899 ER |
6 | Name: php-bad-behavior |
7 | Version: 2.0.34 | |
4c4366f4 | 8 | Release: 1 |
bdb1d172 ER |
9 | License: GPL v2 |
10 | Group: Applications/WWW | |
b255d899 ER |
11 | Source0: http://downloads.wordpress.org/plugin/bad-behavior.%{version}.zip |
12 | # Source0-md5: 41aa0f1bed34e507ef9467eac4d5e735 | |
a84222b0 | 13 | URL: http://www.bad-behavior.ioerror.us/ |
1ce233e9 | 14 | BuildRequires: unzip |
8c01224d | 15 | Requires: php-common |
b255d899 | 16 | Obsoletes: bad-behavior |
bdb1d172 ER |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
b255d899 | 20 | %define _appdir %{php_data_dir}/bad-behavior |
bdb1d172 ER |
21 | |
22 | %description | |
23 | Bad Behavior is a set of PHP scripts which prevents spambots from | |
24 | accessing your site by analyzing their actual HTTP requests and | |
25 | comparing them to profiles from known spambots. It goes far beyond | |
26 | User-Agent and Referer, however. Bad Behavior is available for several | |
27 | PHP-based software packages, and also can be integrated in seconds | |
28 | into any PHP script. | |
29 | ||
5c627418 JR |
30 | %description -l pl.UTF-8 |
31 | Bad Behavior to zbiór skryptów PHP zapobiegający dostępowi spambotów | |
32 | do strony poprzez analizę ich żądań HTTP i porównywanie z profilami | |
33 | znanych spambotów. Wykracza znacząco poza User-Agent i Referer. Bad | |
34 | Behavior jest dostępny dla kilku opartych na PHP pakietów, może być | |
35 | także zintegrowany w krótkim czasie z dowolnym skryptem PHP. | |
bd8505f3 | 36 | |
bdb1d172 | 37 | %prep |
cfa8a6af ER |
38 | # unpack in ascii mode |
39 | %define __unzip /usr/bin/unzip -a | |
40 | %setup -qc | |
41 | mv {,.}bad-behavior | |
42 | mv .bad-behavior/* . | |
85f901f2 | 43 | rm index.html bad-behavior/index.html |
bdb1d172 ER |
44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
b255d899 ER |
47 | install -d $RPM_BUILD_ROOT%{php_data_dir} |
48 | cp -a bad-behavior* $RPM_BUILD_ROOT%{php_data_dir} | |
bdb1d172 ER |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
cfa8a6af | 55 | %doc README.txt |
b255d899 ER |
56 | %{php_data_dir}/bad-behavior |
57 | %{php_data_dir}/bad-behavior-generic.php | |
58 | %{php_data_dir}/bad-behavior-lifetype.php | |
59 | %{php_data_dir}/bad-behavior-mediawiki.php | |
60 | %{php_data_dir}/bad-behavior-wordpress-admin.php | |
61 | %{php_data_dir}/bad-behavior-wordpress.php |