]> git.pld-linux.org Git - packages/php-bad-behavior.git/blame - php-bad-behavior.spec
- rename to php-bad-behavior
[packages/php-bad-behavior.git] / php-bad-behavior.spec
CommitLineData
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 4Summary: PHP-based software which blocks automated link spam
a21366ef 5Summary(pl.UTF-8): Oparte na PHP oprogramowanie blokujące spam z automatycznych odnośników
b255d899
ER
6Name: php-bad-behavior
7Version: 2.0.34
4c4366f4 8Release: 1
bdb1d172
ER
9License: GPL v2
10Group: Applications/WWW
b255d899
ER
11Source0: http://downloads.wordpress.org/plugin/bad-behavior.%{version}.zip
12# Source0-md5: 41aa0f1bed34e507ef9467eac4d5e735
a84222b0 13URL: http://www.bad-behavior.ioerror.us/
1ce233e9 14BuildRequires: unzip
8c01224d 15Requires: php-common
b255d899 16Obsoletes: bad-behavior
bdb1d172
ER
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
b255d899 20%define _appdir %{php_data_dir}/bad-behavior
bdb1d172
ER
21
22%description
23Bad Behavior is a set of PHP scripts which prevents spambots from
24accessing your site by analyzing their actual HTTP requests and
25comparing them to profiles from known spambots. It goes far beyond
26User-Agent and Referer, however. Bad Behavior is available for several
27PHP-based software packages, and also can be integrated in seconds
28into any PHP script.
29
5c627418
JR
30%description -l pl.UTF-8
31Bad Behavior to zbiór skryptów PHP zapobiegający dostępowi spambotów
32do strony poprzez analizę ich żądań HTTP i porównywanie z profilami
33znanych spambotów. Wykracza znacząco poza User-Agent i Referer. Bad
34Behavior jest dostępny dla kilku opartych na PHP pakietów, może być
35takż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
41mv {,.}bad-behavior
42mv .bad-behavior/* .
85f901f2 43rm index.html bad-behavior/index.html
bdb1d172
ER
44
45%install
46rm -rf $RPM_BUILD_ROOT
b255d899
ER
47install -d $RPM_BUILD_ROOT%{php_data_dir}
48cp -a bad-behavior* $RPM_BUILD_ROOT%{php_data_dir}
bdb1d172
ER
49
50%clean
51rm -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
This page took 0.078037 seconds and 4 git commands to generate.