2 %define php_min_version 5.2.0
3 Summary: bbPress is forum software, made the WordPress way
4 Name: wordpress-plugin-%{plugin}
5 # for wordpress 3.5 (current th version), use 2.3-branch branch
9 Group: Applications/WWW
10 Source0: http://downloads.wordpress.org/plugin/bbpress.%{version}.zip
11 # Source0-md5: 6657454e11d0f2243b97e9f5092a9c55
12 URL: http://wordpress.org/plugins/bbpress/
13 BuildRequires: rpmbuild(macros) >= 1.553
15 Requires: php(core) >= %{php_min_version}
18 Requires: php(mbstring)
22 Requires: webserver(php)
23 Requires: wordpress >= 3.6
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define wp_root %{_datadir}/wordpress
28 %define wp_content %{wp_root}/wp-content
29 %define pluginsdir %{wp_content}/plugins
30 %define plugindir %{pluginsdir}/%{plugin}
33 bbPress is forum software, made the WordPress way.
40 rm languages/bbpress.pot
41 find -name index.php | xargs rm
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{plugindir}
46 cp -a . $RPM_BUILD_ROOT%{plugindir}
47 %{__rm} $RPM_BUILD_ROOT%{plugindir}/{readme,humans,license}.txt
48 rm -f $RPM_BUILD_ROOT%{plugindir}/debug*.list
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc readme.txt humans.txt
57 %{plugindir}/bbpress.php
59 %{plugindir}/templates