]> git.pld-linux.org Git - packages/phpBB.git/commitdiff
- more sane way to write %post (= %triggerpostun -- %{name} < %{version})
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Jan 2006 16:17:44 +0000 (16:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- corrected changelog header

Changed files:
    phpBB.spec -> 1.84

phpBB.spec

index 1667b8084622af4dea6f9ea3db2b93ba13c5b736..2371d14ee9db69eb0660ee85354ed4153d25e033 100644 (file)
@@ -28,7 +28,7 @@ Source8:      %{name}.ico
 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
@@ -115,8 +115,12 @@ find $RPM_BUILD_ROOT%{_appdir} -name Thumbs.db | xargs rm -f
 %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}!!"
@@ -133,7 +137,6 @@ 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
@@ -174,10 +177,6 @@ rm -f /etc/httpd/httpd.conf/99_%{name}.conf
 /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}
This page took 0.052662 seconds and 4 git commands to generate.