]> git.pld-linux.org Git - packages/phpBB.git/blob - phpBB.spec
- separated install package - this files in main package was security hole
[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:        5
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 Patch0:         %{name}-viewtopic-sec_fix.patch
16 URL:            http://www.phpbb.com/
17 Requires:       php-mysql >= 4.1.0
18 Requires:       php-pcre
19 Requires:       webserver
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _phpdir         /home/services/httpd/html/phpBB
24
25 %description
26 phpBB is a UBB-style dissussion board written in PHP backended by a
27 MySQL database. It includes features such as posting/replying/editing
28 messages, private messages, private forums, user and anonymous
29 posting, robust theming, user ranking by posts or by special, admin
30 definable, ranks, and much more.
31
32 %description -l pl
33 phpBB jest forum dyskusyjnym w stylu UBB napisanym w PHP z u¿yciem
34 bazy danych MySQL. Ma mo¿liwo¶ci takie jak: wysy³anie, odpisywanie,
35 edycja wiadomo¶ci, prywatne wiadomo¶ci, prywatne fora, wysy³anie jako
36 u¿ytkownik i anonimowe, bogaty wybór motywów, ranking u¿ytkowników
37 wed³ug ich wiadomo¶ci lub specjalne, definiowane przez administratora,
38 rankingi i wiele innych.
39
40 %package install
41 Summary:        A feature-rich PHP discussion board
42 Summary(pl):    Forum dyskusyjne o du¿ych mo¿liwo¶ciach
43 Group:          Applications/Databases/Interfaces
44 Requires:       phpBB
45
46 %description install
47 Package needed for %{name} formu instalation.
48
49 %description install -l pl
50 Pakiet potrzebny do instalacji forum %{name}.
51
52 %prep
53 %setup -q -n %{name}2
54 %patch0 -p1
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_phpdir}/{admin,db,images,includes,language,templates}
59
60 install *.{php,inc}     $RPM_BUILD_ROOT%{_phpdir}
61 install admin/*.php     $RPM_BUILD_ROOT%{_phpdir}/admin
62 install db/*.php        $RPM_BUILD_ROOT%{_phpdir}/db
63 install includes/*.php  $RPM_BUILD_ROOT%{_phpdir}/includes
64
65 cp -R images/*          $RPM_BUILD_ROOT%{_phpdir}/images
66 cp -R language/*        $RPM_BUILD_ROOT%{_phpdir}/language
67 cp -R templates/*       $RPM_BUILD_ROOT%{_phpdir}/templates
68
69 tar zxfv %{SOURCE1} -C $RPM_BUILD_ROOT%{_phpdir}/language/
70 tar zxfv %{SOURCE2} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
71
72 tar zxfv %{SOURCE3} -C $RPM_BUILD_ROOT%{_phpdir}/language/
73 tar zxfv %{SOURCE4} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
74
75 tar zxfv %{SOURCE5} -C $RPM_BUILD_ROOT%{_phpdir}/language/
76 tar zxfv %{SOURCE6} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %doc docs/* db/schemas/*
84 %attr(755,root,http) %dir %{_phpdir}
85 %attr(640,root,http) %config(noreplace) %{_phpdir}/config.php
86 %attr(640,root,http) %{_phpdir}/[efglmpsv]*.php
87 %attr(640,root,http) %{_phpdir}/index.php
88 %attr(640,root,http) %{_phpdir}/com*.php
89 %attr(640,root,http) %{_phpdir}/*.inc
90 %attr(640,root,http) %{_phpdir}/admin
91 %attr(640,root,http) %{_phpdir}/includes
92 %attr(640,root,http) %{_phpdir}/db
93 %attr(640,root,http) %{_phpdir}/images
94 %attr(640,root,http) %dir %{_phpdir}/language
95 # ?
96 %attr(640,root,http) %{_phpdir}/language/*.htm
97 %attr(640,root,http) %{_phpdir}/templates/subSilver/admin/
98 %attr(640,root,http) %{_phpdir}/templates/subSilver/*.*
99 %attr(640,root,http) %{_phpdir}/templates/subSilver/images/*.*
100
101 %lang(en) %{_phpdir}/language/lang_english
102 %lang(en) %{_phpdir}/templates/subSilver/images/lang_english
103
104 %lang(pl) %{_phpdir}/language/lang_polish
105 %lang(pl) %{_phpdir}/templates/subSilver/images/lang_polish
106
107 %lang(de) %{_phpdir}/language/lang_german
108 %lang(de) %{_phpdir}/templates/subSilver/images/lang_german
109
110 %lang(fr) %{_phpdir}/language/lang_french
111 %lang(fr) %{_phpdir}/templates/subSilver/images/lang_french
112
113 %files install
114 %defattr(644,root,root,755)
115 %attr(640,root,http) %{_phpdir}/install.php
116 %attr(640,root,http) %{_phpdir}/up*.php
This page took 0.033101 seconds and 4 git commands to generate.