2 %define php_min_version 5.2.0
3 %include /usr/lib/rpm/macros.php
4 Summary: bbPress is forum software, made the WordPress way
5 Name: wordpress-plugin-%{plugin}
9 Group: Applications/WWW
10 Source0: http://downloads.wordpress.org/plugin/bbpress.%{version}.zip
11 # Source0-md5: 7b299cc13d1f1db3624b7f351083af24
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.
38 rm languages/bbpress.pot
39 find -name index.php | xargs rm
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{plugindir}
44 cp -a . $RPM_BUILD_ROOT%{plugindir}
45 %{__rm} $RPM_BUILD_ROOT%{plugindir}/{readme,humans,license}.txt
46 rm -f $RPM_BUILD_ROOT%{plugindir}/debug*.list
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc readme.txt humans.txt
55 %{plugindir}/bbpress.php
57 %{plugindir}/templates