1 |
# $Id: smeserver-ejabberd.spec,v 1.25 2010/05/23 19:13:41 slords Exp $ |
2 |
# Authority: gnujpl |
3 |
# Name: Jean-Paul Leclère |
4 |
|
5 |
Summary: SME Server ejabberd Jabber service |
6 |
%define name smeserver-ejabberd |
7 |
Name: %{name} |
8 |
%define version 2.0.1 |
9 |
%define release 18 |
10 |
|
11 |
Version: %{version} |
12 |
Release: %{release}%{?dist} |
13 |
License: GPL |
14 |
Group: Networking/Daemons |
15 |
Source: %{name}-%{version}.tar.gz |
16 |
Patch1: smeserver-ejabberd-2.0.1-locale-2008-07-01.patch |
17 |
Patch2: smeserver-ejabberd-2.0.1-locale-2008-10-14.patch |
18 |
Patch3: smeserver-ejabberd-2.0.1-locale-2008-10-16.patch |
19 |
Patch4: smeserver-ejabberd-2.0.1-locale-2008-11-19.patch |
20 |
Patch5: smeserver-ejabberd-2.0.1-locale-2008-11-30.patch |
21 |
Patch6: smeserver-ejabberd-2.0.1-locale-2009-01-01.patch |
22 |
Patch7: smeserver-ejabberd-2.0.1-locale-2009-01-31.patch |
23 |
Patch8: smeserver-ejabberd-2.0.1-locale-2009-03-01.patch |
24 |
Patch9: smeserver-ejabberd-2.0.1-locale-2009-03-03.patch |
25 |
Patch10: smeserver-ejabberd-2.0.1-locale-2009-04-27.patch |
26 |
Patch11: smeserver-ejabberd-2.0.1-locale-2009-05-20.patch |
27 |
Patch12: smeserver-ejabberd-2.0.1-locale-2009-08-24.patch |
28 |
Patch13: smeserver-ejabberd-2.0.1-locale-2009-10-21.patch |
29 |
Patch14: smeserver-ejabberd-2.0.1-locale-2009-10-27.patch |
30 |
Patch15: smeserver-ejabberd-2.0.1-locale-2010-03-02.patch |
31 |
Patch16: smeserver-ejabberd-2.0.1-locale-2010-05-23.patch |
32 |
Patch17: smeserver-ejabberd-2.0.1-mod_admin_extra.patch |
33 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
34 |
BuildArch: noarch |
35 |
BuildRequires: e-smith-devtools >= 1.7.5 |
36 |
Requires: ejabberd >= 2.0.1 |
37 |
Requires: e-smith-formmagick >= 1.4.0-12 |
38 |
Obsoletes: e-smith-jabber |
39 |
AutoReqProv: no |
40 |
|
41 |
%changelog |
42 |
* Sun Jan 2 2011 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.1-18.sme |
43 |
- add mod_admin_extra support (see Bug 6462) |
44 |
|
45 |
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 2.0.1-17.sme |
46 |
- apply locale 2010-05-23 patch |
47 |
|
48 |
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 2.0.1-16.sme |
49 |
- apply locale 2010-03-02 patch |
50 |
|
51 |
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 2.0.1-15.sme |
52 |
- apply locale 2009-10-27 patch |
53 |
|
54 |
* Wed Oct 21 2009 SME Translation Server <translations@contribs.org> 2.0.1-14.sme |
55 |
- apply locale 2009-10-21 patch |
56 |
|
57 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 2.0.1-13.sme |
58 |
- apply locale 2009-08-24 patch |
59 |
|
60 |
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 2.0.1-12.sme |
61 |
- apply locale 2009-05-20 patch |
62 |
|
63 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 2.0.1-11.sme |
64 |
- apply locale 2009-04-27 patch |
65 |
|
66 |
* Tue Mar 03 2009 SME Translation Server |
67 |
- apply locale 2009-03-03 patch |
68 |
|
69 |
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-9 |
70 |
- Apply 1 Mar 2009 locale patch [SME: 5018] |
71 |
|
72 |
* Sat Jan 31 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-8 |
73 |
- Apply 31 Jan 2009 locale patch [SME: 4951] |
74 |
|
75 |
* Thu Jan 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-7 |
76 |
- Apply 1 Jan 2009 locale patch [SME: 4900] |
77 |
|
78 |
* Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-6 |
79 |
- Apply 30 Nov 2008 locale patch |
80 |
|
81 |
* Wed Nov 19 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-5 |
82 |
- Apply 19 Nov 2008 locale patch |
83 |
|
84 |
* Thu Oct 16 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-4 |
85 |
- Apply 16 Oct 2008 locale patch |
86 |
|
87 |
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-3 |
88 |
- Apply 14 Oct 2008 locale patch |
89 |
|
90 |
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.1-2 |
91 |
- Apply 1 July 2008 locale patch |
92 |
|
93 |
* Fri Jun 27 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.1-1 |
94 |
- update for ejabberd >= 2.0.1 |
95 |
- disable polling (thanks to Daniel Berteaud) |
96 |
|
97 |
* Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-5 |
98 |
- Apply 27 Jun 2008 locale patch |
99 |
- Added missing dependency on e-smith-formmagick >= 1.4.0-12 |
100 |
|
101 |
* Sun Jun 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-4 |
102 |
- use new ejabberd ssl cert file in /var/service/ejabberd/ssl |
103 |
- sync ejabberd cert file with SME cert file |
104 |
|
105 |
* Thu May 22 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-3 |
106 |
- no more use /opt |
107 |
- use SME server ssl certs |
108 |
- db migrate process |
109 |
|
110 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.0.0-2 |
111 |
- Apply 21 May 2008 locale patch |
112 |
|
113 |
* Wed May 14 2008 Jean-Paul Leclere <jean-paul@leclere.org> 2.0.0-1 |
114 |
- bump to ejabberd 2.0.0 |
115 |
- no more contains ejabberd Process-One binary installer (due to GPL violation) |
116 |
- use smecontribs ejabberd rpm |
117 |
|
118 |
* Thu Apr 24 2008 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-5 |
119 |
- convert fr locale to UTF-8 |
120 |
|
121 |
* Wed Oct 17 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-5 |
122 |
- fix another bug for starttls in ejabberd.cfg template |
123 |
|
124 |
* Tue Oct 16 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-4 |
125 |
- fix bug for starttls in ejabberd.cfg template |
126 |
|
127 |
* Sun Oct 14 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-3 |
128 |
- modify ejabberd.cfg template for ejabberd services add-ons |
129 |
|
130 |
* Sat Oct 6 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-2 |
131 |
- fix bug in ejabberd.cfg template for users acls |
132 |
- add more ejabberd restarting events |
133 |
- add more ejabberd.cfg generation events |
134 |
|
135 |
* Sun Sep 30 2007 Jean-Paul Leclere <jean-paul@leclere.org> 1.1.4-1 |
136 |
- Initial Release with ejabberd 1.1.4 |
137 |
|
138 |
%description |
139 |
SME Server implementation of ejabberd XMPP server |
140 |
|
141 |
%pre |
142 |
|
143 |
%preun |
144 |
if [ $1 -eq 0 ]; then |
145 |
# remove, not upgrade |
146 |
/sbin/e-smith/db configuration delete ejabberd |
147 |
/sbin/e-smith/db configuration delete ejabberd.init |
148 |
/usr/bin/sv down /service/ejabberd |
149 |
/usr/lib/erlang/bin/epmd -kill |
150 |
cd /service/ejabberd |
151 |
rm /service/ejabberd |
152 |
/usr/bin/sv exit . log |
153 |
fi |
154 |
exit 0 |
155 |
|
156 |
%prep |
157 |
%setup |
158 |
%patch1 -p1 |
159 |
%patch2 -p1 |
160 |
%patch3 -p1 |
161 |
%patch4 -p1 |
162 |
%patch5 -p1 |
163 |
%patch6 -p1 |
164 |
%patch7 -p1 |
165 |
%patch8 -p1 |
166 |
%patch9 -p1 |
167 |
%patch10 -p1 |
168 |
%patch11 -p1 |
169 |
%patch12 -p1 |
170 |
%patch13 -p1 |
171 |
%patch14 -p1 |
172 |
%patch15 -p1 |
173 |
%patch16 -p1 |
174 |
%patch17 -p1 |
175 |
|
176 |
%build |
177 |
perl createlinks |
178 |
|
179 |
%install |
180 |
rm -rf $RPM_BUILD_ROOT |
181 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
182 |
rm -f %{name}-%{version}-%{release}-filelist |
183 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
184 |
--dir '/var/service/ejabberd' 'attr(1755,root,root)' \ |
185 |
--file '/var/service/ejabberd/down' 'attr(0644,root,root)' \ |
186 |
--file '/var/service/ejabberd/run' 'attr(0755,root,root)' \ |
187 |
--dir '/var/service/ejabberd/supervise' 'attr(0700,root,root)' \ |
188 |
--file '/var/service/ejabberd/control/2' 'attr(0755,root,root)' \ |
189 |
--dir '/var/service/ejabberd/log' 'attr(1755,root,root)' \ |
190 |
--file '/var/service/ejabberd/log/run' 'attr(0755,root,root)' \ |
191 |
--dir '/var/service/ejabberd/log/supervise' 'attr(0700,root,root)' \ |
192 |
--dir '/var/log/ejabberd' 'attr(0750,ejabberd,ejabberd)' \ |
193 |
--dir '/var/log/ejabberd.run' 'attr(0750,smelog,root)' \ |
194 |
> %{name}-%{version}-%{release}-filelist |
195 |
|
196 |
%clean |
197 |
rm -rf $RPM_BUILD_ROOT |
198 |
|
199 |
%post |
200 |
mkdir -p /var/service/ejabberd/ssl |
201 |
|
202 |
%postun |
203 |
|
204 |
%files -f %{name}-%{version}-%{release}-filelist |
205 |
%defattr(-,root,root) |