From 8548c6d34f8466c82c400211e579c434ede9b2fe Mon Sep 17 00:00:00 2001 From: Nick Bebout Date: Tue, 9 Mar 2010 18:56:39 +0000 Subject: [PATCH 1/4] Initial commit --- .cvsignore | 1 + sources | 1 + wordpress-plugin-bad-behavior.spec | 123 +++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 wordpress-plugin-bad-behavior.spec diff --git a/.cvsignore b/.cvsignore index e69de29..1b72b7b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +bad-behavior.2.0.32.zip diff --git a/sources b/sources index e69de29..613670d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c050e3ba5a165c722c43f49b1071e307 bad-behavior.2.0.32.zip diff --git a/wordpress-plugin-bad-behavior.spec b/wordpress-plugin-bad-behavior.spec new file mode 100644 index 0000000..948a390 --- /dev/null +++ b/wordpress-plugin-bad-behavior.spec @@ -0,0 +1,123 @@ +%global plugin_name bad-behavior +%global plugin_human_name Bad Behavior + + +Name: wordpress-plugin-%{plugin_name} +Version: 2.0.32 +Release: 2%{?dist} +Summary: %{plugin_human_name} plugin for WordPress + +Group: Applications/Publishing +# According to http://plugins.trac.wordpress.org/ all plugins are licensed +# under the GPL unless otherwise stated in the plugin source. +License: GPLv2+ +URL: http://www.bad-behavior.ioerror.us/ +Source0: http://downloads.wordpress.org/plugin/%{plugin_name}.%{version}.zip +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +Requires: wordpress +BuildArch: noarch + +%description +Bad Behavior is a PHP-based solution for blocking link spam and the robots +which deliver it. + +Bad Behavior complements other link spam solutions by acting as a gatekeeper, +preventing spammers from ever delivering their junk, and in many cases, from +ever reading your site in the first place. This keeps your site's load down, +makes your site logs cleaner, and can help prevent denial of service conditions +caused by spammers. + +Bad Behavior also transcends other link spam solutions by working in a +completely different, unique way. Instead of merely looking at the content of +potential spam, Bad Behavior analyzes the delivery method as well as the +software the spammer is using. In this way, Bad Behavior can stop spam attacks +even when nobody has ever seen the particular spam before. + +Bad Behavior is designed to work alongside existing spam prevention services to +increase their effectiveness and efficiency. Whenever possible, you should run +it in combination with a more traditional spam prevention service. + +This package is built for use with WordPress (wordpress), not WordPress MU. Use +wordpress-mu-plugin-%{plugin_name} for WordPress MU. + + +%package -n wordpress-mu-plugin-%{plugin_name} +Summary: %{plugin_human_name} plugin for WordPress MU +Group: Applications/Publishing +# According to http://plugins.trac.wordpress.org/ all plugins are licensed +# under the GPL unless otherwise stated in the plugin source. +License: GPLv2+ +Requires: wordpress-mu +BuildArch: noarch + +%description -n wordpress-mu-plugin-%{plugin_name} +Bad Behavior is a PHP-based solution for blocking link spam and the robots +which deliver it. + +Bad Behavior complements other link spam solutions by acting as a gatekeeper, +preventing spammers from ever delivering their junk, and in many cases, from +ever reading your site in the first place. This keeps your site's load down, +makes your site logs cleaner, and can help prevent denial of service conditions +caused by spammers. + +Bad Behavior also transcends other link spam solutions by working in a +completely different, unique way. Instead of merely looking at the content of +potential spam, Bad Behavior analyzes the delivery method as well as the +software the spammer is using. In this way, Bad Behavior can stop spam attacks +even when nobody has ever seen the particular spam before. + +Bad Behavior is designed to work alongside existing spam prevention services to +increase their effectiveness and efficiency. Whenever possible, you should run +it in combination with a more traditional spam prevention service. + +This package is built for use with WordPress MU (wordpress-mu), not regular +WordPress. Use wordpress-plugin-%{plugin_name} for regular Wordpress. + +%prep +%setup -q -c +echo 'To enable "%{plugin_human_name}", go to the administrative section +of your blog, "Plugins", and enable the plugin there.' > README.fedora +echo 'To allow users to enable "%{plugin_human_name}" for their blogs, +be sure to enable this plugin in the administrative control panel +for your website.' > README.fedora.mu + + +%build + + +%install +rm -rf %{buildroot} +# Pull doc files up so they aren't duplicated +mv %{plugin_name}/{COPYING,README.txt} . +# Trim some non-WordPress files we don't need +rm -f %{plugin_name}/bad-behavior-{lifetype,mediawiki}.php +mkdir -p %{buildroot}%{_datadir}/wordpress/wp-content/plugins/ +cp -a %{plugin_name} %{buildroot}%{_datadir}/wordpress/wp-content/plugins/ +mkdir -p %{buildroot}%{_datadir}/wordpress-mu/wp-content/plugins/ +cp -a %{plugin_name} %{buildroot}%{_datadir}/wordpress-mu/wp-content/plugins/ +# Note, no %find_lang since there are no language files + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc COPYING README.txt README.fedora +%{_datadir}/wordpress/wp-content/plugins/%{plugin_name} + + +%files -n wordpress-mu-plugin-%{plugin_name} +%defattr(-,root,root,-) +%doc COPYING README.txt README.fedora.mu +%{_datadir}/wordpress-mu/wp-content/plugins/%{plugin_name} + + +%changelog +* Tue Nov 10 2009 Nick Bebout 2.0.32-2 +- Remove non-applicable comment about language files +* Mon Nov 9 2009 Nick Bebout 2.0.32-1 +- Fix packaging issues +* Wed Jul 15 2009 Michael Hampton 2.0.28 +- Initial package build From 3f3ec0f2f855ac999bae6b292bcc6ba7b2d87f66 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 8 May 2010 02:28:42 +0000 Subject: [PATCH 2/4] Initialize branch EL-6 for wordpress-plugin-bad-behavior --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..46381b9 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-6 From f08147dcdd2e40fec47f456e1dd80c3d509f7f23 Mon Sep 17 00:00:00 2001 From: Nick Bebout Date: Sat, 29 May 2010 00:19:22 +0000 Subject: [PATCH 3/4] Update to 2.0.36 --- .cvsignore | 2 +- sources | 2 +- wordpress-plugin-bad-behavior.spec | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.cvsignore b/.cvsignore index 1b72b7b..1a3c311 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -bad-behavior.2.0.32.zip +bad-behavior.2.0.36.zip diff --git a/sources b/sources index 613670d..938862f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c050e3ba5a165c722c43f49b1071e307 bad-behavior.2.0.32.zip +137e978d8056bc77f5d1b05085af3bc1 bad-behavior.2.0.36.zip diff --git a/wordpress-plugin-bad-behavior.spec b/wordpress-plugin-bad-behavior.spec index 948a390..f5ea5ef 100644 --- a/wordpress-plugin-bad-behavior.spec +++ b/wordpress-plugin-bad-behavior.spec @@ -3,8 +3,8 @@ Name: wordpress-plugin-%{plugin_name} -Version: 2.0.32 -Release: 2%{?dist} +Version: 2.0.36 +Release: 1%{?dist} Summary: %{plugin_human_name} plugin for WordPress Group: Applications/Publishing @@ -115,6 +115,8 @@ rm -rf %{buildroot} %changelog +* Fri May 28 2010 Nick Bebout 2.0.36-1 +- Update to 2.0.36 * Tue Nov 10 2009 Nick Bebout 2.0.32-2 - Remove non-applicable comment about language files * Mon Nov 9 2009 Nick Bebout 2.0.32-1 From 169ad7ad3bc1999c524efd2e1aa77c23d305c149 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 15:24:16 +0000 Subject: [PATCH 4/4] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 7b72639..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: wordpress-plugin-bad-behavior -# $Id$ -NAME := wordpress-plugin-bad-behavior -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 46381b9..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-6