]> git.pld-linux.org Git - packages/phpBB.git/blob - phpBB.spec
67021bdc18e7cc52d385cacceb042b9f765312ee
[packages/phpBB.git] / phpBB.spec
1 Summary:        A feature-rich PHP discussion board
2 Summary(pl):    Forum dyskusyjne o du¿ych mo¿liwo¶ciach
3 Name:           phpBB
4 Version:        2.0.3
5 Release:        4
6 License:        GPL v2
7 Group:          Applications/Databases/Interfaces
8 Source0:        http://prdownloads.sourceforge.net/phpbb/%{name}-%{version}.tar.gz
9 Source1:        http://prdownloads.sourceforge.net/phpbb/lang_polish.tar.gz
10 Source2:        http://prdownloads.sourceforge.net/phpbb/subSilver_polish.tar.gz
11 Source3:        http://prdownloads.sourceforge.net/phpbb/lang_german.tar.gz
12 Source4:        http://prdownloads.sourceforge.net/phpbb/subSilver_german.tar.gz
13 Source5:        http://prdownloads.sourceforge.net/phpbb/lang_french.tar.gz
14 Source6:        http://prdownloads.sourceforge.net/phpbb/subSilver_french.tar.gz
15 URL:            http://www.phpbb.com/
16 Requires:       php-mysql >= 4.1.0
17 Requires:       webserver
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _phpdir         /home/httpd/html/phpBB
22
23 %description
24 phpBB is a UBB-style dissussion board written in PHP backended by a
25 MySQL database. It includes features such as posting/replying/editing
26 messages, private messages, private forums, user and anonymous
27 posting, robust theming, user ranking by posts or by special, admin
28 definable, ranks, and much more.
29
30 %description -l pl
31 phpBB jest forum dyskusyjnym w stylu UBB napisanym w PHP z u¿yciem
32 bazy danych MySQL. Ma mo¿liwo¶ci takie jak: wysy³anie, odpisywanie,
33 edycja wiadomo¶ci, prywatne wiadomo¶ci, prywatne fora, wysy³anie jako
34 u¿ytkownik i anonimowe, bogaty wybór motywów, ranking u¿ytkowników
35 wed³ug ich wiadomo¶ci lub specjalne, definiowane przez administratora,
36 rankingi i wiele innych.
37
38 %prep
39 %setup -q -n %{name}2
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_phpdir}/{admin,db,images,includes,language,templates}
44
45 install *.{php,inc}     $RPM_BUILD_ROOT%{_phpdir}
46 install admin/*.php     $RPM_BUILD_ROOT%{_phpdir}/admin
47 install db/*.php        $RPM_BUILD_ROOT%{_phpdir}/db
48 install includes/*.php  $RPM_BUILD_ROOT%{_phpdir}/includes
49
50 cp -R images/*          $RPM_BUILD_ROOT%{_phpdir}/images
51 cp -R language/*        $RPM_BUILD_ROOT%{_phpdir}/language
52 cp -R templates/*       $RPM_BUILD_ROOT%{_phpdir}/templates
53
54 tar zxfv %{SOURCE1} -C $RPM_BUILD_ROOT%{_phpdir}/language/
55 tar zxfv %{SOURCE2} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
56
57 tar zxfv %{SOURCE3} -C $RPM_BUILD_ROOT%{_phpdir}/language/
58 tar zxfv %{SOURCE4} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
59
60 tar zxfv %{SOURCE5} -C $RPM_BUILD_ROOT%{_phpdir}/language/
61 tar zxfv %{SOURCE6} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc docs/* db/schemas/*
69 %attr(755,root,http) %dir %{_phpdir}
70 %attr(640,root,http) %config(noreplace) %{_phpdir}/config.php
71 %attr(640,root,http) %{_phpdir}/[efgilmpsuv]*.php
72 %attr(640,root,http) %{_phpdir}/com*.php
73 %attr(640,root,http) %{_phpdir}/*.inc
74 %attr(640,root,http) %{_phpdir}/admin
75 %attr(640,root,http) %{_phpdir}/includes
76 %attr(640,root,http) %{_phpdir}/db
77 %attr(640,root,http) %{_phpdir}/images
78 %attr(640,root,http) %dir %{_phpdir}/language
79 # ?
80 %attr(640,root,http) %{_phpdir}/language/*.htm
81 %attr(640,root,http) %{_phpdir}/templates/subSilver/admin/
82 %attr(640,root,http) %{_phpdir}/templates/subSilver/*.*
83 %attr(640,root,http) %{_phpdir}/templates/subSilver/images/*.*
84
85 %lang(en) %{_phpdir}/language/lang_english
86 %lang(en) %{_phpdir}/templates/subSilver/images/lang_english
87
88 %lang(pl) %{_phpdir}/language/lang_polish
89 %lang(pl) %{_phpdir}/templates/subSilver/images/lang_polish
90
91 %lang(de) %{_phpdir}/language/lang_german
92 %lang(de) %{_phpdir}/templates/subSilver/images/lang_german
93
94 %lang(fr) %{_phpdir}/language/lang_french
95 %lang(fr) %{_phpdir}/templates/subSilver/images/lang_french
This page took 0.039636 seconds and 3 git commands to generate.