]> git.pld-linux.org Git - packages/phpdc.git/blob - phpdc.spec
f1797cdba1affbdf1100e4e1d1c379543c735d8a
[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 # Source0-md5:  035a6a0dbedd55f724237aa0b9cebff9
11 Patch0:         %{name}-config.patch
12 #               http://phpdc.sourceforge.net/release/phpdc-1.0rc1-hublist_bug.patch
13 Patch1:         %{name}-1.0rc1-hublist_bug.patch
14 URL:            http://phpdc.sourceforge.net/
15 Requires:       dctc
16 Requires:       php >= 4.3.0
17 Requires:       php-gd >= 4.3.0
18 Requires:       php-sockets >= 4.3.0
19 Requires:       webserver
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _phpdir /home/services/httpd/html/phpdc
24
25 %description
26 PHPDC Web is a server-side Web frontend for the Direct Connect Text
27 Client (dctc).
28
29 %description -l pl
30 PHPDC Web to dzia³aj±cy po stronie serwera frontend WWW do tekstowego
31 klienta Direct Connect (dctc - Direct Connect Text Client).
32
33 %prep
34 %setup -q -n %{name}
35 %patch0 -p1
36 %patch1 -p0
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_phpdir}/{layout,private,styles,Downloads}
41
42 install *.php $RPM_BUILD_ROOT%{_phpdir}
43 install *.{html,png,ini} $RPM_BUILD_ROOT%{_phpdir}
44 install layout/* $RPM_BUILD_ROOT%{_phpdir}/layout
45 install private/* $RPM_BUILD_ROOT%{_phpdir}/private
46 install styles/* $RPM_BUILD_ROOT%{_phpdir}/styles
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %dir %{_phpdir}
54 %dir %{_phpdir}/layout
55 %dir %{_phpdir}/private
56 %dir %{_phpdir}/styles
57 %attr(664,http,http) %dir %{_phpdir}/Downloads
58 %{_phpdir}/*.html
59 %{_phpdir}/*.php
60 %{_phpdir}/*.png
61 %{_phpdir}/layout/*
62 %{_phpdir}/private/*.php
63 %{_phpdir}/styles/*
64 %attr(664,root,http) %config(noreplace) %verify(not md5 size mtime) %{_phpdir}/private/phpdc.ini
This page took 0.055824 seconds and 3 git commands to generate.