English
%build
%changelog
%clean
rm -rf %{buildroot}
%description -n wordpress-mu-plugin-%{plugin_name}
Your plugin's description goes here.
%description
Your plugin's description goes here.
Example
%files
%doc README.fedora
%{_datadir}/wordpress/wp-content/plugins/%{plugin_name}
%files -n wordpress-mu-plugin-%{plugin_name}
%doc README.fedora.mu
%{_datadir}/wordpress-mu/wp-content/plugins/%{plugin_name}
Fill in a package description in both places where it says "Your plugin's description goes here."
Fill in the version of the package as it is displayed in the .zip filename
%global plugin_name
%global plugin_human_name
%global plugin_name stats
%global plugin_human_name WordPress.com Stats
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: GPLv3+
URL: http://wordpress.org/extend/plugins/%{plugin_name}/
Source0: http://downloads.wordpress.org/plugin/%{plugin_name}.%{version}.zip
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: wordpress
BuildArch: noarch
http://wordpress.org/extend/plugins/stats/
http://wordpress.org/extend/plugins/[WordPress plugins] are packaged for Fedora so that the plugin can be used for both and without requiring both.
%install
rm -rf %{buildroot}
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/
Name: wordpress-plugin-%{plugin_name}
Version:
Release: 1%{?dist}
Summary: %{plugin_human_name} plugin for WordPress
Notes
%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: GPLv3+
Requires: wordpress-mu
BuildArch: noarch
`+plugin_human_name+` is the full name of the plugin as displayed on the plugin's page on wordpress.org