Source9: http://dl.sourceforge.net/phpbb/%{name}-%{version}.tar.bz2
# Source9-md5: 7b8c6d6f7f92571afb34f192f3c242dd
URL: http://www.phpbb.com/
-BuildRequires:rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(triggerpostun): sed >= 4.0
Requires: php-pcre
Requires: webapps
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+echo "You have to install %{name}-install package to prepare upgrade!!!"
+echo "For upgrade: http://<your.site.address>/<path>/install/upgrade.php"
+
%post install
-echo "For instalation: http://<your.site.address>/<path>/install/install.php"
+echo "For installation: http://<your.site.address>/<path>/install/install.php"
echo "For upgrade: http://<your.site.address>/<path>/install/upgrade.php"
echo
echo "Remember to uninstall %{name}-install after initiation/upgrade of %{name}!!"
%triggerun -- apache >= 2.0.0
%webapp_unregister httpd %{_webapp}
-
%triggerpostun -- %{name} <= 2.0.10-1
for i in `grep -lr "/home/\(services/\)*httpd/html/phpBB" /etc/httpd/*`; do
cp $i $i.backup
/usr/sbin/webapp register httpd %{_webapp}
%service httpd reload
-%triggerpostun -- %{name} < %{version}
-echo "You have to install %{name}-install package to prepare upgrade!!!"
-echo "For upgrade: http://<your.site.address>/<path>/install/upgrade.php"
-
%files
%defattr(644,root,root,755)
%dir %attr(750,root,http) %{_sysconfdir}