]> git.pld-linux.org Git - packages/phpdc.git/blob - phpdc.spec
- added config patch
[packages/phpdc.git] / phpdc.spec
1 Summary:        A Web frontend for the Direct Connect Text Client
2 Summary(pl):    Interfejs WWW do Direct Connect Text Client
3 Name:           phpdc
4 Version:        1.0
5 %define _rc     rc1
6 Release:        0.%{_rc}.1
7 License:        GPL v2
8 Group:          Applications/Databases/Interfaces
9 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}%{_rc}.tar.gz
10 Patch0:         %{name}-config.patch
11 URL:            http://phpdc.sourceforge.net/
12 Requires:       dctc
13 Requires:       php >= 4.3.0
14 Requires:       php-gd >= 4.3.0
15 Requires:       php-sockets >= 4.3.0
16 Requires:       webserver
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _phpdir /home/services/httpd/html/phpdc
21
22 %description
23 PHPDC Web is a server-side Web frontend for the Direct Connect Text
24 Client (dctc).
25
26 %prep
27 %setup -q -n %{name}
28 %patch0 -p1
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_phpdir}/{layout,private,styles}
33
34 install *.php $RPM_BUILD_ROOT%{_phpdir}
35 install *.{html,png,ini} $RPM_BUILD_ROOT%{_phpdir}
36 install layout/* $RPM_BUILD_ROOT%{_phpdir}/layout
37 install private/* $RPM_BUILD_ROOT%{_phpdir}/private
38 install styles/* $RPM_BUILD_ROOT%{_phpdir}/styles
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %dir %{_phpdir}
46 %dir %{_phpdir}/layout
47 %dir %{_phpdir}/private
48 %dir %{_phpdir}/styles
49 %{_phpdir}/*.html
50 %{_phpdir}/*.php
51 %{_phpdir}/*.png
52 %{_phpdir}/layout/*
53 %{_phpdir}/private/*.php
54 %{_phpdir}/styles/*
55 %attr(664,root,http) %config(noreplace) %verify(not md5 size mtime) %{_phpdir}/private/phpdc.ini
This page took 0.125397 seconds and 4 git commands to generate.