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