1 Summary: A feature-rich PHP discussion board
2 Summary(pl): Forum dyskusyjne o du¿ych mo¿liwo¶ciach
7 Group: Applications/WWW
8 #Source0: http://dl.sourceforge.net/phpbb/%{name}-%{version}.tar.bz2
9 Source0: http://dl.sourceforge.net/phpbb-php5mod/20133.tar.gz
10 # Source0-md5: f57e472cc000b0721a365af45c41f3fd
11 Source1: http://dl.sourceforge.net/phpbb/lang_polish.tar.gz
12 # Source1-md5: db020ef788d4bd50ce04014964e3e043
13 Source2: http://dl.sourceforge.net/phpbb/subSilver_polish.tar.gz
14 # Source2-md5: 9367f7a761aef3795ffa296b413136b4
15 Source3: http://dl.sourceforge.net/phpbb/lang_german.tar.gz
16 # Source3-md5: afc686072978b896e18fa211210c3b13
17 Source4: http://dl.sourceforge.net/phpbb/subSilver_german.tar.gz
18 # Source4-md5: 8340f310ee4892f3e19da3e000fdb708
19 Source5: http://dl.sourceforge.net/phpbb/lang_french.tar.gz
20 # Source5-md5: c81f843d4adf0a086efef590074478e6
21 Source6: http://dl.sourceforge.net/phpbb/subSilver_french.tar.gz
22 # Source6-md5: 419157eb144fa81b7464a5f2edeea434
25 URL: http://www.phpbb.com/
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _phpdir %{_datadir}/%{name}
32 %define _sysconfdir /etc/%{name}
35 phpBB is a UBB-style dissussion board written in PHP backended by a
36 MySQL database. It includes features such as posting/replying/editing
37 messages, private messages, private forums, user and anonymous
38 posting, robust theming, user ranking by posts or by special, admin
39 definable, ranks, and much more.
42 phpBB jest forum dyskusyjnym w stylu UBB napisanym w PHP z u¿yciem
43 bazy danych MySQL. Ma mo¿liwo¶ci takie jak: wysy³anie, odpisywanie,
44 edycja wiadomo¶ci, prywatne wiadomo¶ci, prywatne fora, wysy³anie jako
45 u¿ytkownik i anonimowe, bogaty wybór motywów, ranking u¿ytkowników
46 wed³ug ich wiadomo¶ci lub specjalne, definiowane przez administratora,
47 rankingi i wiele innych.
50 Summary: A feature-rich PHP discussion board - installer
51 Summary(pl): Forum dyskusyjne o du¿ych mo¿liwo¶ciach - instalator
52 Group: Applications/Databases/Interfaces
56 Package needed for %{name} forum instalation.
58 %description install -l pl
59 Pakiet potrzebny do instalacji forum %{name}.
62 %setup -q -n phpbb-php5
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_phpdir}/{admin,db,images,includes,install/schemas,language,templates} \
67 $RPM_BUILD_ROOT{%{_sysconfdir},/etc/httpd}
69 install *.{php,inc} $RPM_BUILD_ROOT%{_phpdir}
70 install admin/*.php $RPM_BUILD_ROOT%{_phpdir}/admin
71 install db/*.php $RPM_BUILD_ROOT%{_phpdir}/db
72 install includes/*.php $RPM_BUILD_ROOT%{_phpdir}/includes
73 install install/*.php $RPM_BUILD_ROOT%{_phpdir}/install
74 install install/schemas/*.sql $RPM_BUILD_ROOT%{_phpdir}/install/schemas
76 cp -R images/* $RPM_BUILD_ROOT%{_phpdir}/images
77 cp -R language/* $RPM_BUILD_ROOT%{_phpdir}/language
78 cp -R templates/* $RPM_BUILD_ROOT%{_phpdir}/templates
80 install config.php $RPM_BUILD_ROOT%{_sysconfdir}
81 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/favicon.ico
82 touch $RPM_BUILD_ROOT%{_sysconfdir}/robots.txt
83 ln -sf %{_sysconfdir}/config.php $RPM_BUILD_ROOT%{_phpdir}/config.php
84 ln -sf %{_sysconfdir}/favicon.ico $RPM_BUILD_ROOT%{_phpdir}/favicon.ico
85 ln -sf %{_sysconfdir}/robots.txt $RPM_BUILD_ROOT%{_phpdir}/robots.txt
87 tar zxfv %{SOURCE1} -C $RPM_BUILD_ROOT%{_phpdir}/language/
88 tar zxfv %{SOURCE2} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
90 tar zxfv %{SOURCE3} -C $RPM_BUILD_ROOT%{_phpdir}/language/
91 tar zxfv %{SOURCE4} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
93 tar zxfv %{SOURCE5} -C $RPM_BUILD_ROOT%{_phpdir}/language/
94 tar zxfv %{SOURCE6} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
96 install %{SOURCE7} $RPM_BUILD_ROOT/etc/httpd/%{name}.conf
99 rm -rf $RPM_BUILD_ROOT
102 if [ "$1" = "1" ]; then
103 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*%{name}.conf" /etc/httpd/httpd.conf; then
104 echo "Include /etc/httpd/%{name}.conf" >> /etc/httpd/httpd.conf
105 elif [ -d /etc/httpd/httpd.conf ]; then
106 ln -sf /etc/httpd/%{name}.conf /etc/httpd/httpd.conf/99_%{name}.conf
108 if [ -f /var/lock/subsys/httpd ]; then
109 /usr/sbin/apachectl graceful 1>&2
114 echo "For instalation: http://<your.site.address>/<path>/install/install.php"
115 echo "For upgrade: http://<your.site.address>/<path>/install/upgrade.php"
117 echo "Remember to uninstall %{name}-install after initiation/upgrade of %{name}!!"
120 if [ "$1" = "0" ]; then
122 if [ -d /etc/httpd/httpd.conf ]; then
123 rm -f /etc/httpd/httpd.conf/99_%{name}.conf
125 grep -v "^Include.*%{name}.conf" /etc/httpd/httpd.conf > \
126 /etc/httpd/httpd.conf.tmp
127 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
128 if [ -f /var/lock/subsys/httpd ]; then
129 /usr/sbin/apachectl graceful 1>&2
134 %triggerpostun -- %{name} < %{version}
135 echo "You have to install %{name}-install package to prepare upgrade!!!"
136 echo "For upgrade: http://<your.site.address>/<path>/install/upgrade.php"
138 %triggerpostun -- %{name} <= 2.0.10-1
139 if [ -f /home/services/httpd/html/phpBB/config.php.rpmsave ]; then
140 mv -f /home/services/httpd/html/phpBB/config.php.rpmsave /etc/phpBB/config.php
142 if [ -f /home/httpd/html/phpBB/config.php.rpmsave ]; then
143 mv -f /home/httpd/html/phpBB/config.php.rpmsave /etc/phpBB/config.php
146 for i in `grep -lr "/home/\(services/\)*httpd/html/phpBB" /etc/httpd/*`; do
148 %{__perl} -pi -e "s#/home/httpd/html/phpBB#%{_phpdir}#g" $i
149 %{__perl} -pi -e "s#/home/services/httpd/html/phpBB#%{_phpdir}#g" $i
150 echo "File changed by trigger: $i (backup: $i.backup)"
152 if [ -f /var/lock/subsys/httpd ]; then
153 /usr/sbin/apachectl graceful 1>&2
157 %defattr(644,root,root,755)
159 %attr(640,root,http) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
160 %config(noreplace) %verify(not size mtime md5) /etc/httpd/%{name}.conf
162 %attr(755,root,http) %dir %{_phpdir}
163 %attr(640,root,http) %{_phpdir}/[!c]*.php
164 %attr(640,root,http) %{_phpdir}/common.php
165 %attr(640,root,http) %{_phpdir}/*.inc
166 %attr(750,root,http) %dir %{_phpdir}/admin
167 %attr(750,root,http) %dir %{_phpdir}/db
168 %attr(750,root,http) %dir %{_phpdir}/images
169 %attr(640,root,http) %{_phpdir}/images/*.gif
170 %attr(640,root,http) %{_phpdir}/images/index.htm
171 %attr(750,root,http) %dir %{_phpdir}/images/smiles
172 %attr(1770,root,http) %dir %{_phpdir}/images/avatars
173 %attr(750,root,http) %dir %{_phpdir}/includes
176 %{_phpdir}/images/smiles/*
177 %{_phpdir}/images/avatars/*
178 %{_phpdir}/includes/*
179 %{_phpdir}/templates/index.htm
180 %attr(750,root,http) %dir %{_phpdir}/templates
181 %attr(750,root,http) %dir %{_phpdir}/templates/subSilver
182 %attr(750,root,http) %dir %{_phpdir}/templates/subSilver/admin
183 %attr(640,root,http) %{_phpdir}/templates/subSilver/admin/*
184 %attr(640,root,http) %{_phpdir}/templates/subSilver/*.*
185 %attr(750,root,http) %dir %{_phpdir}/templates/subSilver/images
186 %attr(640,root,http) %{_phpdir}/templates/subSilver/images/*.*
187 %attr(750,root,http) %dir %{_phpdir}/language
188 %attr(640,root,http) %{_phpdir}/language/*.htm
190 %lang(en) %{_phpdir}/language/lang_english
191 %lang(en) %{_phpdir}/templates/subSilver/images/lang_english
193 %lang(pl) %{_phpdir}/language/lang_polish
194 %lang(pl) %{_phpdir}/templates/subSilver/images/lang_polish
196 %lang(de) %{_phpdir}/language/lang_german
197 %lang(de) %{_phpdir}/templates/subSilver/images/lang_german
199 %lang(fr) %{_phpdir}/language/lang_french
200 %lang(fr) %{_phpdir}/templates/subSilver/images/lang_french
203 %defattr(644,root,root,755)
204 %doc install/schemas/*.zip
205 %attr(750,root,http) %dir %{_phpdir}/install
206 %attr(640,root,http) %{_phpdir}/install/*.php
207 %attr(750,root,http) %dir %{_phpdir}/install/schemas
208 %attr(640,root,http) %{_phpdir}/install/schemas/*.sql