]> git.pld-linux.org Git - packages/phpBB.git/blob - phpBB.spec
- reorders in %files.
[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:        2
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 URL:            http://www.phpbb.com/
12 Requires:       php-mysql >= 4.1.0
13 Requires:       webserver
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _phpdir         /home/httpd/html/phpBB
18
19 %description
20 phpBB is a UBB-style dissussion board written in PHP backended by a
21 MySQL database. It includes features such as posting/replying/editing
22 messages, private messages, private forums, user and anonymous
23 posting, robust theming, user ranking by posts or by special, admin
24 definable, ranks, and much more.
25
26 %description -l pl
27 phpBB jest forum dyskusyjnym w stylu UBB napisanym w PHP z u¿yciem
28 bazy danych MySQL. Ma mo¿liwo¶ci takie jak: wysy³anie, odpisywanie,
29 edycja wiadomo¶ci, prywatne wiadomo¶ci, prywatne fora, wysy³anie jako
30 u¿ytkownik i anonimowe, bogaty wybór motywów, ranking u¿ytkowników
31 wed³ug ich wiadomo¶ci lub specjalne, definiowane przez administratora,
32 rankingi i wiele innych.
33
34 %prep
35 %setup -q -n %{name}2
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_phpdir}/{admin,db,images,includes,language,templates}
40
41 install *.{php,inc}     $RPM_BUILD_ROOT%{_phpdir}
42 install admin/*.php     $RPM_BUILD_ROOT%{_phpdir}/admin
43 install db/*.php        $RPM_BUILD_ROOT%{_phpdir}/db
44 install includes/*.php  $RPM_BUILD_ROOT%{_phpdir}/includes
45
46 cp -R images/*          $RPM_BUILD_ROOT%{_phpdir}/images
47 cp -R language/*        $RPM_BUILD_ROOT%{_phpdir}/language
48 cp -R templates/*       $RPM_BUILD_ROOT%{_phpdir}/templates
49 #mkdir                  $RPM_BUILD_ROOT%{_phpdir}/images/avatars
50
51 tar zxfv %{SOURCE1} -C $RPM_BUILD_ROOT%{_phpdir}/language/
52 tar zxfv %{SOURCE2} -C $RPM_BUILD_ROOT%{_phpdir}/templates/
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc docs/* db/schemas/*
60 %dir %{_phpdir}
61 %{_phpdir}/*.php
62 %{_phpdir}/*.inc
63 %dir %{_phpdir}/admin
64 %dir %{_phpdir}/includes
65 %dir %{_phpdir}/db
66 %dir %{_phpdir}/images
67 %dir %{_phpdir}/images/smiles
68 %dir %{_phpdir}/images/avatars
69 %dir %{_phpdir}/images/avatars/*
70 %dir %{_phpdir}/language/*.htm
71 %{_phpdir}/admin/*.php
72 %{_phpdir}/db/*.php
73 %{_phpdir}/includes/*.php
74 %{_phpdir}/images/*.gif
75 %{_phpdir}/images/*.htm
76 %{_phpdir}/images/smiles/*.gif
77 %{_phpdir}/templates/*.htm
78
79 %lang(en) %{_phpdir}/language/lang_english
80 %lang(en) %{_phpdir}/templates/subSilver/images/lang_english/*.gif
81 %lang(pl) %{_phpdir}/language/lang_polish
82 %lang(pl) %{_phpdir}/templates/subSilver/images/lang_polish/*.gif
This page took 0.0323 seconds and 3 git commands to generate.