--- /dev/null
+Summary: A feature-rich PHP discussion board
+Summary(pl): phpBB
+Name: phpBB
+Version: 2.0.3
+Release: 1
+License: GPL v2
+Group: Applications/Databases/Interfaces
+Source0: http://prdownloads.sourceforge.net/phpbb/%{name}-%{version}.tar.gz
+URL: http://www.phpbb.com/
+Requires: mysql
+Requires: php-mysql >= 4.1.0
+Requires: webserver
+Buildarch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _phpdir /home/httpd/html/phpBB
+
+%description
+phpBB is a UBB-style dissussion board written in PHP backended by a
+MySQL database. It includes features such as posting/replying/editing
+messages, private messages, private forums, user and anonymous
+posting, robust theming, user ranking by posts or by special, admin
+definable, ranks, and much more.
+
+%prep
+%setup -q -n %{name}2
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_phpdir}/{admin,db,images,includes,language,templates}
+
+install *.{php,inc} $RPM_BUILD_ROOT%{_phpdir}
+install admin/*.php $RPM_BUILD_ROOT%{_phpdir}/admin
+install db/*.php $RPM_BUILD_ROOT%{_phpdir}/db
+install includes/*.php $RPM_BUILD_ROOT%{_phpdir}/includes
+
+cp -R images/* $RPM_BUILD_ROOT%{_phpdir}/images
+cp -R language/* $RPM_BUILD_ROOT%{_phpdir}/language
+cp -R templates/* $RPM_BUILD_ROOT%{_phpdir}/templates
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc docs/* db/schemas/*
+%dir %{_phpdir}
+%{_phpdir}/*.php
+%{_phpdir}/*.inc
+%{_phpdir}/admin/*.php
+%{_phpdir}/db/*.php
+%{_phpdir}/includes/*.php
+%{_phpdir}/images/*.gif
+%{_phpdir}/images/smiles/*.gif
+%{_phpdir}/language
+%{_phpdir}/templates