]>
Commit | Line | Data |
---|---|---|
db041104 | 1 | Summary: ConferenceRoom IRC Server |
d8077267 | 2 | Summary(pl.UTF-8): ConferenceRoom - serwer IRC |
db041104 ER |
3 | Name: ConferenceRoom |
4 | Version: 1.8.9.1 | |
024017be | 5 | Release: 0.20 |
db041104 ER |
6 | License: not distributable |
7 | Group: Applications/Communications | |
8 | Source0: CR%{version}-Linux.tar.gz | |
9 | # NoSource0-md5: ee92ada3f47d6da20f4855c1d5710e92 | |
10 | NoSource: 0 | |
51567308 | 11 | Source1: CR-help.tar.bz2 |
024017be | 12 | # NoSource1-md5: 2b88e7639c2d13b9d23efbb683cf2213 |
51567308 ER |
13 | NoSource: 1 |
14 | Source2: ConfRoom.conf | |
bb876eb8 | 15 | Source3: cr.init |
db041104 | 16 | URL: http://www.conferenceroom.com/ |
bb876eb8 ER |
17 | BuildRequires: rpmbuild(macros) >= 1.268 |
18 | Requires(post,preun): /sbin/chkconfig | |
db041104 ER |
19 | Requires(postun): /usr/sbin/groupdel |
20 | Requires(postun): /usr/sbin/userdel | |
21 | Requires(pre): /bin/id | |
22 | Requires(pre): /usr/bin/getgid | |
23 | Requires(pre): /usr/sbin/groupadd | |
24 | Requires(pre): /usr/sbin/useradd | |
bb876eb8 | 25 | Requires: rc-scripts |
db041104 ER |
26 | Provides: group(ircd) |
27 | Provides: user(ircd) | |
28 | ExclusiveArch: %{ix86} | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | # already stripped | |
32 | %define no_install_post_strip 1 | |
33 | %define no_install_post_chrpath 1 | |
12746723 | 34 | %define _enable_debug_packages 0 |
db041104 ER |
35 | |
36 | %description | |
37 | ConferenceRoom is an IRC Daemon. | |
38 | ||
f97bc5ad | 39 | %description -l pl.UTF-8 |
d8077267 | 40 | ConferenceRoom to serwer IRC-a. |
f97bc5ad | 41 | |
12746723 ER |
42 | %package web |
43 | Summary: ConferenceRoom Web components | |
44 | Group: Applications/WWW | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | ||
47 | %description web | |
48 | ConferenceRoom Web components | |
49 | ||
db041104 | 50 | %prep |
51567308 | 51 | %setup -q -n CR%{version}-Linux -a1 |
db041104 ER |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
024017be | 55 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_datadir}/cr,%{_libdir}/cr/programs,/var/lib/cr/db,/var/log/cr} |
028efdc9 | 56 | cp -a programs/* $RPM_BUILD_ROOT%{_libdir}/cr/programs |
51567308 | 57 | cp -a help $RPM_BUILD_ROOT%{_datadir}/cr |
bb876eb8 | 58 | ln -s %{_datadir}/cr/help $RPM_BUILD_ROOT/var/lib/cr/help |
86ddca76 | 59 | cp -a htdocs template variables $RPM_BUILD_ROOT%{_datadir}/cr |
028efdc9 | 60 | cp -a mime.types $RPM_BUILD_ROOT%{_datadir}/cr |
024017be ER |
61 | |
62 | cp -p db/ConfRoom.base $RPM_BUILD_ROOT%{_sysconfdir}/ConfRoom.conf | |
63 | cat %{SOURCE2} >> $RPM_BUILD_ROOT%{_sysconfdir}/ConfRoom.conf | |
64 | ln -s %{_sysconfdir}/ConfRoom.conf $RPM_BUILD_ROOT/var/lib/cr/ConfRoom.conf | |
65 | ||
1b564560 ER |
66 | ln -s %{_libdir}/cr/programs $RPM_BUILD_ROOT/var/lib/cr |
67 | ln -s /var/log/cr $RPM_BUILD_ROOT/var/lib/cr/db/logs | |
68 | ln -s /var/log/cr/craccess.log $RPM_BUILD_ROOT/var/lib/cr/db/craccess.log | |
bb876eb8 | 69 | install -D %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/cr |
db041104 ER |
70 | |
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %pre | |
75 | %groupadd -g 75 ircd | |
1b564560 ER |
76 | %useradd -u 75 -d /var/lib/cr -g ircd -c "ConferenceRoom IRCD" ircd |
77 | ||
78 | %post | |
bb876eb8 | 79 | /sbin/chkconfig --add cr |
1b564560 ER |
80 | for a in craccess.log chan.log nick.log services.log; do |
81 | if [ ! -f /var/log/cr/$a ]; then | |
82 | touch /var/log/cr/$a | |
83 | chown ircd:ircd /var/log/cr/$a | |
84 | fi | |
85 | done | |
db041104 | 86 | |
bb876eb8 ER |
87 | %preun |
88 | if [ "$1" = "0" ]; then | |
89 | %service -q cr stop | |
90 | /sbin/chkconfig --del cr | |
91 | fi | |
92 | ||
db041104 ER |
93 | %postun |
94 | if [ "$1" = "0" ]; then | |
95 | %userremove ircd | |
96 | %groupremove ircd | |
97 | fi | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
101 | %doc LICENSE.TXT PLATFORM README RELEASE | |
024017be | 102 | %attr(660,root,ircd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ConfRoom.conf |
bb876eb8 | 103 | %attr(754,root,root) /etc/rc.d/init.d/cr |
db041104 | 104 | %dir %{_libdir} |
024017be ER |
105 | %dir %{_libdir}/cr |
106 | %dir %{_libdir}/cr/programs | |
107 | %attr(755,root,root) %{_libdir}/cr/programs/* | |
51567308 ER |
108 | %dir %{_datadir}/cr |
109 | %{_datadir}/cr/help | |
fa2e937b | 110 | %dir %attr(775,root,ircd) /var/lib/cr |
fa2e937b | 111 | %dir %attr(770,root,ircd) /var/lib/cr/db |
024017be | 112 | /var/lib/cr/ConfRoom.conf |
1b564560 ER |
113 | /var/lib/cr/db/craccess.log |
114 | /var/lib/cr/db/logs | |
bb876eb8 | 115 | /var/lib/cr/help |
1b564560 ER |
116 | /var/lib/cr/programs |
117 | %dir /var/log/cr | |
12746723 ER |
118 | |
119 | %files web | |
120 | %defattr(644,root,root,755) | |
51567308 ER |
121 | %{_datadir}/cr/mime.types |
122 | %{_datadir}/cr/htdocs | |
123 | %{_datadir}/cr/template | |
124 | %{_datadir}/cr/variables |