SPECS: phpBB.spec - more sane way to write %post (= %triggerpostun...

glen glen at pld-linux.org
Sun Jan 22 17:17:49 CET 2006


Author: glen                         Date: Sun Jan 22 16:17:49 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more sane way to write %post (= %triggerpostun -- %{name} < %{version})
- corrected changelog header

---- Files affected:
SPECS:
   phpBB.spec (1.83 -> 1.84) 

---- Diffs:

================================================================
Index: SPECS/phpBB.spec
diff -u SPECS/phpBB.spec:1.83 SPECS/phpBB.spec:1.84
--- SPECS/phpBB.spec:1.83	Sun Jan 22 12:36:59 2006
+++ SPECS/phpBB.spec	Sun Jan 22 17:17:44 2006
@@ -29,7 +29,7 @@
 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
@@ -116,8 +116,12 @@
 %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}!!"
@@ -134,7 +138,6 @@
 %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
@@ -175,10 +178,6 @@
 /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}
@@ -226,10 +225,13 @@
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
-
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.84  2006/01/22 16:17:44  glen
+- more sane way to write %post (= %triggerpostun -- %{name} < %{version})
+- corrected changelog header
+
 Revision 1.83  2006/01/22 11:36:59  dzeus
 - webapps in progress
 
@@ -238,7 +240,7 @@
 - starting use webapps (NFY)
 
 Revision 1.81  2005/11/02 14:03:16  orzech
-old Source0 renamed to Source9
+- old Source0 renamed to Source9
 
 Revision 1.80  2005/11/02 13:05:58  orzech
 - proper md5sum for Source9
@@ -274,8 +276,8 @@
 - rel. 1, STBR
 
 Revision 1.69  2005/05/04 16:59:10  troll
-- let symlink point to %%{_avatardir}, not RPM_BUILD_ROOT/%%{_avatardir}
-- added above symlink to %%files
+- let symlink point to %{_avatardir}, not RPM_BUILD_ROOT/%{_avatardir}
+- added above symlink to %files
 
 Revision 1.68  2005/04/17 13:02:09  dzeus
 - missing dir, rel. down to 0.9 (NFY)
@@ -393,8 +395,8 @@
 
 Revision 1.34  2003/08/04 14:23:29  orzech
 - up to 2.0.6
-"This release fixes a number of potential security issues and hopefully
-addresses most problems seen with email."
+  "This release fixes a number of potential security issues and
+  hopefully addresses most problems seen with email."
 - STBR to ra/updates/security (?)
 
 Revision 1.33  2003/06/16 20:10:42  adamg
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/phpBB.spec?r1=1.83&r2=1.84&f=u



More information about the pld-cvs-commit mailing list